From 9dfa5fdd089210b3ba54d372090ef768032230e6 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 24 Mar 2026 19:06:44 +0000 Subject: [PATCH 1/2] 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: eyJwIjoiRGF0YWZvcm0vLk93bEJvdC55YW1sIiwiaCI6IjUxMjVlM2ZlYWY3NmVhNjY4MTBjMGM1ZjU5NjA3ZjIxYjBhYWJhNzYifQ== --- .../Google/Cloud/Dataform/V1/Dataform.php | 36 + .../V1/CancelWorkflowInvocationRequest.php | 67 + .../V1/CancelWorkflowInvocationResponse.php | 33 + .../Dataform/V1/CodeCompilationConfig.php | 403 ++ .../Google/Cloud/Dataform/V1/CommitAuthor.php | 101 + .../Cloud/Dataform/V1/CommitLogEntry.php | 189 + .../Cloud/Dataform/V1/CommitMetadata.php | 111 + .../V1/CommitRepositoryChangesRequest.php | 191 + .../FileOperation.php | 108 + .../FileOperation/DeleteFile.php | 33 + .../FileOperation/WriteFile.php | 67 + .../V1/CommitRepositoryChangesResponse.php | 67 + .../V1/CommitWorkspaceChangesRequest.php | 183 + .../V1/CommitWorkspaceChangesResponse.php | 33 + .../Cloud/Dataform/V1/CompilationResult.php | 539 ++ .../V1/CompilationResult/CompilationError.php | 187 + .../Dataform/V1/CompilationResultAction.php | 422 ++ .../V1/CompilationResultAction/Assertion.php | 270 + .../DataPreparation.php | 213 + .../DataPreparation/ErrorTable.php | 116 + .../DataPreparation/SqlDefinition.php | 159 + .../CompilationResultAction/Declaration.php | 82 + .../IncrementalLoadMode.php | 67 + .../V1/CompilationResultAction/LoadConfig.php | 180 + .../V1/CompilationResultAction/Notebook.php | 169 + .../V1/CompilationResultAction/Operations.php | 255 + .../V1/CompilationResultAction/Relation.php | 709 ++ .../Relation/FileFormat.php | 54 + .../Relation/IncrementalTableConfig.php | 269 + .../Relation/RelationType.php | 75 + .../Relation/TableFormat.php | 54 + .../SimpleLoadMode.php | 33 + ...puteRepositoryAccessTokenStatusRequest.php | 67 + ...uteRepositoryAccessTokenStatusResponse.php | 67 + .../TokenStatus.php | 76 + .../src/Google/Cloud/Dataform/V1/Config.php | 157 + .../V1/CreateCompilationResultRequest.php | 132 + .../Cloud/Dataform/V1/CreateFolderRequest.php | 132 + .../V1/CreateReleaseConfigRequest.php | 173 + .../Dataform/V1/CreateRepositoryRequest.php | 173 + .../Dataform/V1/CreateTeamFolderRequest.php | 132 + .../V1/CreateWorkflowConfigRequest.php | 173 + .../V1/CreateWorkflowInvocationRequest.php | 132 + .../Dataform/V1/CreateWorkspaceRequest.php | 173 + .../Cloud/Dataform/V1/DataEncryptionState.php | 71 + .../Cloud/Dataform/V1/DeleteFolderRequest.php | 81 + .../Dataform/V1/DeleteFolderTreeMetadata.php | 232 + .../V1/DeleteFolderTreeMetadata/State.php | 76 + .../Dataform/V1/DeleteFolderTreeRequest.php | 148 + .../V1/DeleteReleaseConfigRequest.php | 81 + .../Dataform/V1/DeleteRepositoryRequest.php | 135 + .../Dataform/V1/DeleteTeamFolderRequest.php | 81 + .../V1/DeleteTeamFolderTreeRequest.php | 148 + .../V1/DeleteWorkflowConfigRequest.php | 81 + .../V1/DeleteWorkflowInvocationRequest.php | 81 + .../Dataform/V1/DeleteWorkspaceRequest.php | 81 + .../Dataform/V1/DirectoryContentsView.php | 62 + .../Cloud/Dataform/V1/DirectoryEntry.php | 152 + .../Dataform/V1/DirectorySearchResult.php | 67 + .../Dataform/V1/FetchFileDiffRequest.php | 105 + .../Dataform/V1/FetchFileDiffResponse.php | 67 + .../V1/FetchFileGitStatusesRequest.php | 67 + .../V1/FetchFileGitStatusesResponse.php | 71 + .../UncommittedFileChange.php | 101 + .../UncommittedFileChange/State.php | 75 + .../V1/FetchGitAheadBehindRequest.php | 109 + .../V1/FetchGitAheadBehindResponse.php | 101 + .../V1/FetchRemoteBranchesRequest.php | 67 + .../V1/FetchRemoteBranchesResponse.php | 67 + .../V1/FetchRepositoryHistoryRequest.php | 159 + .../V1/FetchRepositoryHistoryResponse.php | 105 + .../Cloud/Dataform/V1/FileSearchResult.php | 67 + .../Dataform/V1/FilesystemEntryMetadata.php | 115 + .../src/Google/Cloud/Dataform/V1/Folder.php | 386 ++ .../V1/GetCompilationResultRequest.php | 81 + .../Cloud/Dataform/V1/GetConfigRequest.php | 81 + .../Cloud/Dataform/V1/GetFolderRequest.php | 81 + .../Dataform/V1/GetReleaseConfigRequest.php | 81 + .../Dataform/V1/GetRepositoryRequest.php | 81 + .../Dataform/V1/GetTeamFolderRequest.php | 81 + .../Dataform/V1/GetWorkflowConfigRequest.php | 81 + .../V1/GetWorkflowInvocationRequest.php | 81 + .../Cloud/Dataform/V1/GetWorkspaceRequest.php | 81 + .../Dataform/V1/InstallNpmPackagesRequest.php | 67 + .../V1/InstallNpmPackagesResponse.php | 33 + .../Cloud/Dataform/V1/InvocationConfig.php | 299 + .../V1/InvocationConfig/QueryPriority.php | 65 + .../V1/ListCompilationResultsRequest.php | 254 + .../V1/ListCompilationResultsResponse.php | 139 + .../Dataform/V1/ListReleaseConfigsRequest.php | 178 + .../V1/ListReleaseConfigsResponse.php | 139 + .../Dataform/V1/ListRepositoriesRequest.php | 254 + .../Dataform/V1/ListRepositoriesResponse.php | 139 + .../V1/ListWorkflowConfigsRequest.php | 178 + .../V1/ListWorkflowConfigsResponse.php | 139 + .../V1/ListWorkflowInvocationsRequest.php | 254 + .../V1/ListWorkflowInvocationsResponse.php | 139 + .../Dataform/V1/ListWorkspacesRequest.php | 254 + .../Dataform/V1/ListWorkspacesResponse.php | 139 + .../Dataform/V1/MakeDirectoryRequest.php | 105 + .../Dataform/V1/MakeDirectoryResponse.php | 33 + .../Dataform/V1/MoveDirectoryRequest.php | 143 + .../Dataform/V1/MoveDirectoryResponse.php | 33 + .../Cloud/Dataform/V1/MoveFileRequest.php | 143 + .../Cloud/Dataform/V1/MoveFileResponse.php | 33 + .../Cloud/Dataform/V1/MoveFolderMetadata.php | 224 + .../Dataform/V1/MoveFolderMetadata/State.php | 75 + .../Cloud/Dataform/V1/MoveFolderRequest.php | 137 + .../Dataform/V1/MoveRepositoryMetadata.php | 224 + .../V1/MoveRepositoryMetadata/State.php | 75 + .../Dataform/V1/MoveRepositoryRequest.php | 142 + .../Dataform/V1/NotebookRuntimeOptions.php | 124 + .../Dataform/V1/PrivateResourceMetadata.php | 71 + .../Dataform/V1/PullGitCommitsRequest.php | 153 + .../Dataform/V1/PullGitCommitsResponse.php | 33 + .../Dataform/V1/PushGitCommitsRequest.php | 109 + .../Dataform/V1/PushGitCommitsResponse.php | 33 + .../QueryCompilationResultActionsRequest.php | 201 + .../QueryCompilationResultActionsResponse.php | 105 + .../V1/QueryDirectoryContentsRequest.php | 243 + .../V1/QueryDirectoryContentsResponse.php | 105 + .../V1/QueryFolderContentsRequest.php | 282 + .../V1/QueryFolderContentsResponse.php | 105 + .../FolderContentsEntry.php | 108 + ...ueryRepositoryDirectoryContentsRequest.php | 239 + ...eryRepositoryDirectoryContentsResponse.php | 105 + .../V1/QueryTeamFolderContentsRequest.php | 282 + .../V1/QueryTeamFolderContentsResponse.php | 105 + .../TeamFolderContentsEntry.php | 108 + .../V1/QueryUserRootContentsRequest.php | 278 + .../V1/QueryUserRootContentsResponse.php | 105 + .../RootContentsEntry.php | 108 + .../QueryWorkflowInvocationActionsRequest.php | 163 + ...QueryWorkflowInvocationActionsResponse.php | 105 + .../Cloud/Dataform/V1/ReadFileRequest.php | 143 + .../Cloud/Dataform/V1/ReadFileResponse.php | 67 + .../Dataform/V1/ReadRepositoryFileRequest.php | 139 + .../V1/ReadRepositoryFileResponse.php | 67 + .../Cloud/Dataform/V1/RelationDescriptor.php | 135 + .../RelationDescriptor/ColumnDescriptor.php | 139 + .../Cloud/Dataform/V1/ReleaseConfig.php | 435 ++ .../ReleaseConfig/ScheduledReleaseRecord.php | 162 + .../Dataform/V1/RemoveDirectoryRequest.php | 105 + .../Dataform/V1/RemoveDirectoryResponse.php | 33 + .../Cloud/Dataform/V1/RemoveFileRequest.php | 105 + .../Cloud/Dataform/V1/RemoveFileResponse.php | 33 + .../Google/Cloud/Dataform/V1/Repository.php | 663 ++ .../V1/Repository/GitRemoteSettings.php | 232 + .../SshAuthenticationConfig.php | 113 + .../GitRemoteSettings/TokenStatus.php | 69 + .../WorkspaceCompilationOverrides.php | 139 + .../V1/ResetWorkspaceChangesRequest.php | 139 + .../V1/ResetWorkspaceChangesResponse.php | 33 + .../Cloud/Dataform/V1/SearchFilesRequest.php | 201 + .../Cloud/Dataform/V1/SearchFilesResponse.php | 105 + .../Google/Cloud/Dataform/V1/SearchResult.php | 108 + .../Dataform/V1/SearchTeamFoldersRequest.php | 259 + .../Dataform/V1/SearchTeamFoldersResponse.php | 105 + .../TeamFolderSearchResult.php | 75 + .../src/Google/Cloud/Dataform/V1/Target.php | 136 + .../Google/Cloud/Dataform/V1/TeamFolder.php | 287 + .../Cloud/Dataform/V1/UpdateConfigRequest.php | 136 + .../Cloud/Dataform/V1/UpdateFolderRequest.php | 151 + .../V1/UpdateReleaseConfigRequest.php | 141 + .../Dataform/V1/UpdateRepositoryRequest.php | 141 + .../Dataform/V1/UpdateTeamFolderRequest.php | 141 + .../V1/UpdateWorkflowConfigRequest.php | 141 + .../Cloud/Dataform/V1/WorkflowConfig.php | 453 ++ .../ScheduledExecutionRecord.php | 162 + .../Cloud/Dataform/V1/WorkflowInvocation.php | 463 ++ .../Dataform/V1/WorkflowInvocation/State.php | 83 + .../Dataform/V1/WorkflowInvocationAction.php | 421 ++ .../BigQueryAction.php | 105 + .../DataPreparationAction.php | 190 + .../ActionErrorTable.php | 116 + .../ActionIncrementalLoadMode.php | 67 + .../ActionLoadConfig.php | 180 + .../ActionSimpleLoadMode.php | 33 + .../ActionSqlDefinition.php | 159 + .../NotebookAction.php | 109 + .../V1/WorkflowInvocationAction/State.php | 91 + .../Google/Cloud/Dataform/V1/Workspace.php | 307 + .../Cloud/Dataform/V1/WriteFileRequest.php | 135 + .../Cloud/Dataform/V1/WriteFileResponse.php | 33 + .../V1/DataformClient/cancel_operation.php | 78 + .../cancel_workflow_invocation.php | 76 + .../commit_repository_changes.php | 91 + .../commit_workspace_changes.php | 88 + ...compute_repository_access_token_status.php | 71 + .../create_compilation_result.php | 74 + .../V1/DataformClient/create_folder.php | 77 + .../DataformClient/create_release_config.php | 88 + .../V1/DataformClient/create_repository.php | 78 + .../V1/DataformClient/create_team_folder.php | 77 + .../DataformClient/create_workflow_config.php | 96 + .../create_workflow_invocation.php | 74 + .../V1/DataformClient/create_workspace.php | 78 + .../V1/DataformClient/delete_folder.php | 69 + .../V1/DataformClient/delete_folder_tree.php | 82 + .../V1/DataformClient/delete_operation.php | 71 + .../DataformClient/delete_release_config.php | 74 + .../V1/DataformClient/delete_repository.php | 69 + .../V1/DataformClient/delete_team_folder.php | 69 + .../delete_team_folder_tree.php | 82 + .../DataformClient/delete_workflow_config.php | 74 + .../delete_workflow_invocation.php | 74 + .../V1/DataformClient/delete_workspace.php | 74 + .../V1/DataformClient/fetch_file_diff.php | 80 + .../fetch_file_git_statuses.php | 76 + .../DataformClient/fetch_git_ahead_behind.php | 76 + .../DataformClient/fetch_remote_branches.php | 71 + .../fetch_repository_history.php | 77 + .../DataformClient/get_compilation_result.php | 76 + .../samples/V1/DataformClient/get_config.php | 71 + .../samples/V1/DataformClient/get_folder.php | 71 + .../V1/DataformClient/get_iam_policy.php | 73 + .../V1/DataformClient/get_location.php | 57 + .../V1/DataformClient/get_operation.php | 72 + .../V1/DataformClient/get_release_config.php | 76 + .../V1/DataformClient/get_repository.php | 71 + .../V1/DataformClient/get_team_folder.php | 71 + .../V1/DataformClient/get_workflow_config.php | 76 + .../get_workflow_invocation.php | 76 + .../V1/DataformClient/get_workspace.php | 76 + .../DataformClient/install_npm_packages.php | 76 + .../list_compilation_results.php | 77 + .../V1/DataformClient/list_locations.php | 78 + .../V1/DataformClient/list_operations.php | 79 + .../DataformClient/list_release_configs.php | 77 + .../V1/DataformClient/list_repositories.php | 80 + .../DataformClient/list_workflow_configs.php | 77 + .../list_workflow_invocations.php | 77 + .../V1/DataformClient/list_workspaces.php | 77 + .../V1/DataformClient/make_directory.php | 80 + .../V1/DataformClient/move_directory.php | 85 + .../samples/V1/DataformClient/move_file.php | 84 + .../samples/V1/DataformClient/move_folder.php | 80 + .../V1/DataformClient/move_repository.php | 80 + .../V1/DataformClient/pull_git_commits.php | 88 + .../V1/DataformClient/push_git_commits.php | 76 + .../query_compilation_result_actions.php | 81 + .../query_directory_contents.php | 81 + .../DataformClient/query_folder_contents.php | 77 + .../query_repository_directory_contents.php | 77 + .../query_team_folder_contents.php | 77 + .../query_user_root_contents.php | 79 + .../query_workflow_invocation_actions.php | 81 + .../samples/V1/DataformClient/read_file.php | 80 + .../DataformClient/read_repository_file.php | 75 + .../V1/DataformClient/remove_directory.php | 80 + .../samples/V1/DataformClient/remove_file.php | 80 + .../reset_workspace_changes.php | 76 + .../V1/DataformClient/search_files.php | 81 + .../V1/DataformClient/search_team_folders.php | 78 + .../V1/DataformClient/set_iam_policy.php | 76 + .../DataformClient/test_iam_permissions.php | 84 + .../V1/DataformClient/update_config.php | 64 + .../V1/DataformClient/update_folder.php | 72 + .../DataformClient/update_release_config.php | 81 + .../V1/DataformClient/update_repository.php | 64 + .../V1/DataformClient/update_team_folder.php | 72 + .../DataformClient/update_workflow_config.php | 85 + .../samples/V1/DataformClient/write_file.php | 82 + .../v1/src/V1/Client/DataformClient.php | 2861 ++++++++ .../Dataform/v1/src/V1/gapic_metadata.json | 413 ++ .../V1/resources/dataform_client_config.json | 429 ++ .../resources/dataform_descriptor_config.php | 1176 ++++ .../resources/dataform_rest_client_config.php | 1002 +++ .../Unit/V1/Client/DataformClientTest.php | 6042 +++++++++++++++++ .../Cloud/Dataform/V1Beta1/Dataform.php | 36 + .../CancelWorkflowInvocationRequest.php | 67 + .../CancelWorkflowInvocationResponse.php | 33 + .../V1beta1/CodeCompilationConfig.php | 403 ++ .../Cloud/Dataform/V1beta1/CommitAuthor.php | 101 + .../Cloud/Dataform/V1beta1/CommitLogEntry.php | 189 + .../Cloud/Dataform/V1beta1/CommitMetadata.php | 111 + .../CommitRepositoryChangesRequest.php | 191 + .../FileOperation.php | 108 + .../FileOperation/DeleteFile.php | 33 + .../FileOperation/WriteFile.php | 67 + .../CommitRepositoryChangesResponse.php | 67 + .../V1beta1/CommitWorkspaceChangesRequest.php | 183 + .../CommitWorkspaceChangesResponse.php | 33 + .../Dataform/V1beta1/CompilationResult.php | 539 ++ .../CompilationResult/CompilationError.php | 187 + .../V1beta1/CompilationResultAction.php | 422 ++ .../CompilationResultAction/Assertion.php | 270 + .../DataPreparation.php | 213 + .../DataPreparation/ErrorTable.php | 116 + .../DataPreparation/SqlDefinition.php | 159 + .../CompilationResultAction/Declaration.php | 82 + .../IncrementalLoadMode.php | 67 + .../CompilationResultAction/LoadConfig.php | 180 + .../CompilationResultAction/Notebook.php | 169 + .../CompilationResultAction/Operations.php | 255 + .../CompilationResultAction/Relation.php | 709 ++ .../Relation/FileFormat.php | 54 + .../Relation/IncrementalTableConfig.php | 269 + .../Relation/RelationType.php | 75 + .../Relation/TableFormat.php | 54 + .../SimpleLoadMode.php | 33 + ...puteRepositoryAccessTokenStatusRequest.php | 67 + ...uteRepositoryAccessTokenStatusResponse.php | 67 + .../TokenStatus.php | 69 + .../Google/Cloud/Dataform/V1beta1/Config.php | 157 + .../CreateCompilationResultRequest.php | 132 + .../Dataform/V1beta1/CreateFolderRequest.php | 170 + .../V1beta1/CreateReleaseConfigRequest.php | 173 + .../V1beta1/CreateRepositoryRequest.php | 173 + .../V1beta1/CreateTeamFolderRequest.php | 170 + .../V1beta1/CreateWorkflowConfigRequest.php | 173 + .../CreateWorkflowInvocationRequest.php | 132 + .../V1beta1/CreateWorkspaceRequest.php | 173 + .../Dataform/V1beta1/DataEncryptionState.php | 71 + .../Dataform/V1beta1/DeleteFolderRequest.php | 81 + .../V1beta1/DeleteReleaseConfigRequest.php | 81 + .../V1beta1/DeleteRepositoryRequest.php | 135 + .../V1beta1/DeleteTeamFolderRequest.php | 81 + .../V1beta1/DeleteWorkflowConfigRequest.php | 81 + .../DeleteWorkflowInvocationRequest.php | 81 + .../V1beta1/DeleteWorkspaceRequest.php | 81 + .../Cloud/Dataform/V1beta1/DirectoryEntry.php | 108 + .../V1beta1/DirectorySearchResult.php | 67 + .../Dataform/V1beta1/FetchFileDiffRequest.php | 105 + .../V1beta1/FetchFileDiffResponse.php | 67 + .../V1beta1/FetchFileGitStatusesRequest.php | 67 + .../V1beta1/FetchFileGitStatusesResponse.php | 71 + .../UncommittedFileChange.php | 101 + .../UncommittedFileChange/State.php | 75 + .../V1beta1/FetchGitAheadBehindRequest.php | 109 + .../V1beta1/FetchGitAheadBehindResponse.php | 101 + .../V1beta1/FetchRemoteBranchesRequest.php | 67 + .../V1beta1/FetchRemoteBranchesResponse.php | 67 + .../V1beta1/FetchRepositoryHistoryRequest.php | 159 + .../FetchRepositoryHistoryResponse.php | 105 + .../Dataform/V1beta1/FileSearchResult.php | 67 + .../Google/Cloud/Dataform/V1beta1/Folder.php | 386 ++ .../V1beta1/GetCompilationResultRequest.php | 81 + .../Dataform/V1beta1/GetConfigRequest.php | 81 + .../Dataform/V1beta1/GetFolderRequest.php | 81 + .../V1beta1/GetReleaseConfigRequest.php | 81 + .../Dataform/V1beta1/GetRepositoryRequest.php | 81 + .../Dataform/V1beta1/GetTeamFolderRequest.php | 81 + .../V1beta1/GetWorkflowConfigRequest.php | 81 + .../V1beta1/GetWorkflowInvocationRequest.php | 81 + .../Dataform/V1beta1/GetWorkspaceRequest.php | 81 + .../V1beta1/InstallNpmPackagesRequest.php | 67 + .../V1beta1/InstallNpmPackagesResponse.php | 33 + .../Dataform/V1beta1/InvocationConfig.php | 299 + .../InvocationConfig/QueryPriority.php | 65 + .../V1beta1/ListCompilationResultsRequest.php | 254 + .../ListCompilationResultsResponse.php | 139 + .../V1beta1/ListReleaseConfigsRequest.php | 178 + .../V1beta1/ListReleaseConfigsResponse.php | 139 + .../V1beta1/ListRepositoriesRequest.php | 254 + .../V1beta1/ListRepositoriesResponse.php | 139 + .../V1beta1/ListWorkflowConfigsRequest.php | 178 + .../V1beta1/ListWorkflowConfigsResponse.php | 139 + .../ListWorkflowInvocationsRequest.php | 254 + .../ListWorkflowInvocationsResponse.php | 139 + .../V1beta1/ListWorkspacesRequest.php | 254 + .../V1beta1/ListWorkspacesResponse.php | 139 + .../Dataform/V1beta1/MakeDirectoryRequest.php | 105 + .../V1beta1/MakeDirectoryResponse.php | 33 + .../Dataform/V1beta1/MoveDirectoryRequest.php | 143 + .../V1beta1/MoveDirectoryResponse.php | 33 + .../Dataform/V1beta1/MoveFileRequest.php | 143 + .../Dataform/V1beta1/MoveFileResponse.php | 33 + .../Dataform/V1beta1/MoveFolderMetadata.php | 224 + .../V1beta1/MoveFolderMetadata/State.php | 75 + .../Dataform/V1beta1/MoveFolderRequest.php | 137 + .../V1beta1/MoveRepositoryMetadata.php | 224 + .../V1beta1/MoveRepositoryMetadata/State.php | 75 + .../V1beta1/MoveRepositoryRequest.php | 142 + .../V1beta1/NotebookRuntimeOptions.php | 124 + .../V1beta1/PrivateResourceMetadata.php | 71 + .../V1beta1/PullGitCommitsRequest.php | 153 + .../V1beta1/PullGitCommitsResponse.php | 33 + .../V1beta1/PushGitCommitsRequest.php | 109 + .../V1beta1/PushGitCommitsResponse.php | 33 + .../QueryCompilationResultActionsRequest.php | 201 + .../QueryCompilationResultActionsResponse.php | 105 + .../V1beta1/QueryDirectoryContentsRequest.php | 197 + .../QueryDirectoryContentsResponse.php | 105 + .../V1beta1/QueryFolderContentsRequest.php | 282 + .../V1beta1/QueryFolderContentsResponse.php | 105 + .../FolderContentsEntry.php | 108 + ...ueryRepositoryDirectoryContentsRequest.php | 239 + ...eryRepositoryDirectoryContentsResponse.php | 105 + .../QueryTeamFolderContentsRequest.php | 282 + .../QueryTeamFolderContentsResponse.php | 105 + .../TeamFolderContentsEntry.php | 108 + .../V1beta1/QueryUserRootContentsRequest.php | 278 + .../V1beta1/QueryUserRootContentsResponse.php | 105 + .../RootContentsEntry.php | 108 + .../QueryWorkflowInvocationActionsRequest.php | 163 + ...QueryWorkflowInvocationActionsResponse.php | 105 + .../Dataform/V1beta1/ReadFileRequest.php | 143 + .../Dataform/V1beta1/ReadFileResponse.php | 67 + .../V1beta1/ReadRepositoryFileRequest.php | 139 + .../V1beta1/ReadRepositoryFileResponse.php | 67 + .../Dataform/V1beta1/RelationDescriptor.php | 135 + .../RelationDescriptor/ColumnDescriptor.php | 139 + .../Cloud/Dataform/V1beta1/ReleaseConfig.php | 435 ++ .../ReleaseConfig/ScheduledReleaseRecord.php | 162 + .../V1beta1/RemoveDirectoryRequest.php | 105 + .../V1beta1/RemoveDirectoryResponse.php | 33 + .../Dataform/V1beta1/RemoveFileRequest.php | 105 + .../Dataform/V1beta1/RemoveFileResponse.php | 33 + .../Cloud/Dataform/V1beta1/Repository.php | 671 ++ .../V1beta1/Repository/GitRemoteSettings.php | 236 + .../SshAuthenticationConfig.php | 113 + .../GitRemoteSettings/TokenStatus.php | 69 + .../WorkspaceCompilationOverrides.php | 146 + .../V1beta1/ResetWorkspaceChangesRequest.php | 139 + .../V1beta1/ResetWorkspaceChangesResponse.php | 33 + .../Dataform/V1beta1/SearchFilesRequest.php | 201 + .../Dataform/V1beta1/SearchFilesResponse.php | 105 + .../Cloud/Dataform/V1beta1/SearchResult.php | 108 + .../V1beta1/SearchTeamFoldersRequest.php | 259 + .../V1beta1/SearchTeamFoldersResponse.php | 105 + .../TeamFolderSearchResult.php | 75 + .../Google/Cloud/Dataform/V1beta1/Target.php | 136 + .../Cloud/Dataform/V1beta1/TeamFolder.php | 287 + .../Dataform/V1beta1/UpdateConfigRequest.php | 136 + .../Dataform/V1beta1/UpdateFolderRequest.php | 151 + .../V1beta1/UpdateReleaseConfigRequest.php | 141 + .../V1beta1/UpdateRepositoryRequest.php | 141 + .../V1beta1/UpdateTeamFolderRequest.php | 141 + .../V1beta1/UpdateWorkflowConfigRequest.php | 141 + .../Cloud/Dataform/V1beta1/WorkflowConfig.php | 453 ++ .../ScheduledExecutionRecord.php | 162 + .../Dataform/V1beta1/WorkflowInvocation.php | 463 ++ .../V1beta1/WorkflowInvocation/State.php | 83 + .../V1beta1/WorkflowInvocationAction.php | 421 ++ .../BigQueryAction.php | 105 + .../DataPreparationAction.php | 190 + .../ActionErrorTable.php | 116 + .../ActionIncrementalLoadMode.php | 67 + .../ActionLoadConfig.php | 180 + .../ActionSimpleLoadMode.php | 33 + .../ActionSqlDefinition.php | 159 + .../NotebookAction.php | 109 + .../WorkflowInvocationAction/State.php | 91 + .../Cloud/Dataform/V1beta1/Workspace.php | 307 + .../Dataform/V1beta1/WriteFileRequest.php | 135 + .../Dataform/V1beta1/WriteFileResponse.php | 33 + .../DataformClient/cancel_operation.php | 78 + .../cancel_workflow_invocation.php | 76 + .../commit_repository_changes.php | 91 + .../commit_workspace_changes.php | 88 + ...compute_repository_access_token_status.php | 71 + .../create_compilation_result.php | 74 + .../V1beta1/DataformClient/create_folder.php | 77 + .../DataformClient/create_release_config.php | 88 + .../DataformClient/create_repository.php | 78 + .../DataformClient/create_team_folder.php | 77 + .../DataformClient/create_workflow_config.php | 96 + .../create_workflow_invocation.php | 74 + .../DataformClient/create_workspace.php | 78 + .../V1beta1/DataformClient/delete_folder.php | 69 + .../DataformClient/delete_operation.php | 71 + .../DataformClient/delete_release_config.php | 74 + .../DataformClient/delete_repository.php | 69 + .../DataformClient/delete_team_folder.php | 69 + .../DataformClient/delete_workflow_config.php | 74 + .../delete_workflow_invocation.php | 74 + .../DataformClient/delete_workspace.php | 74 + .../DataformClient/fetch_file_diff.php | 80 + .../fetch_file_git_statuses.php | 76 + .../DataformClient/fetch_git_ahead_behind.php | 76 + .../DataformClient/fetch_remote_branches.php | 71 + .../fetch_repository_history.php | 77 + .../DataformClient/get_compilation_result.php | 76 + .../V1beta1/DataformClient/get_config.php | 71 + .../V1beta1/DataformClient/get_folder.php | 71 + .../V1beta1/DataformClient/get_iam_policy.php | 73 + .../V1beta1/DataformClient/get_location.php | 57 + .../V1beta1/DataformClient/get_operation.php | 72 + .../DataformClient/get_release_config.php | 76 + .../V1beta1/DataformClient/get_repository.php | 71 + .../DataformClient/get_team_folder.php | 71 + .../DataformClient/get_workflow_config.php | 76 + .../get_workflow_invocation.php | 76 + .../V1beta1/DataformClient/get_workspace.php | 76 + .../DataformClient/install_npm_packages.php | 76 + .../list_compilation_results.php | 77 + .../V1beta1/DataformClient/list_locations.php | 69 + .../DataformClient/list_operations.php | 79 + .../DataformClient/list_release_configs.php | 77 + .../DataformClient/list_repositories.php | 80 + .../DataformClient/list_workflow_configs.php | 77 + .../list_workflow_invocations.php | 77 + .../DataformClient/list_workspaces.php | 77 + .../V1beta1/DataformClient/make_directory.php | 80 + .../V1beta1/DataformClient/move_directory.php | 85 + .../V1beta1/DataformClient/move_file.php | 84 + .../V1beta1/DataformClient/move_folder.php | 80 + .../DataformClient/move_repository.php | 80 + .../DataformClient/pull_git_commits.php | 88 + .../DataformClient/push_git_commits.php | 76 + .../query_compilation_result_actions.php | 81 + .../query_directory_contents.php | 81 + .../DataformClient/query_folder_contents.php | 77 + .../query_repository_directory_contents.php | 77 + .../query_team_folder_contents.php | 77 + .../query_user_root_contents.php | 79 + .../query_workflow_invocation_actions.php | 81 + .../V1beta1/DataformClient/read_file.php | 80 + .../DataformClient/read_repository_file.php | 75 + .../DataformClient/remove_directory.php | 80 + .../V1beta1/DataformClient/remove_file.php | 80 + .../reset_workspace_changes.php | 76 + .../V1beta1/DataformClient/search_files.php | 81 + .../DataformClient/search_team_folders.php | 78 + .../V1beta1/DataformClient/set_iam_policy.php | 76 + .../DataformClient/test_iam_permissions.php | 84 + .../V1beta1/DataformClient/update_config.php | 64 + .../V1beta1/DataformClient/update_folder.php | 72 + .../DataformClient/update_release_config.php | 81 + .../DataformClient/update_repository.php | 64 + .../DataformClient/update_team_folder.php | 72 + .../DataformClient/update_workflow_config.php | 85 + .../V1beta1/DataformClient/write_file.php | 82 + .../src/V1beta1/Client/DataformClient.php | 2988 ++++++++ .../v1beta1/src/V1beta1/gapic_metadata.json | 403 ++ .../resources/dataform_client_config.json | 419 ++ .../resources/dataform_descriptor_config.php | 1138 ++++ .../resources/dataform_rest_client_config.php | 978 +++ .../V1beta1/Client/DataformClientTest.php | 5798 ++++++++++++++++ 530 files changed, 87903 insertions(+) create mode 100644 owl-bot-staging/Dataform/v1/proto/src/GPBMetadata/Google/Cloud/Dataform/V1/Dataform.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CancelWorkflowInvocationRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CancelWorkflowInvocationResponse.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CodeCompilationConfig.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitAuthor.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitLogEntry.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitMetadata.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitRepositoryChangesRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitRepositoryChangesRequest/FileOperation.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitRepositoryChangesRequest/FileOperation/DeleteFile.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitRepositoryChangesRequest/FileOperation/WriteFile.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitRepositoryChangesResponse.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitWorkspaceChangesRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitWorkspaceChangesResponse.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResult.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResult/CompilationError.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Assertion.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/DataPreparation.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/DataPreparation/ErrorTable.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/DataPreparation/SqlDefinition.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Declaration.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/IncrementalLoadMode.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/LoadConfig.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Notebook.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Operations.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Relation.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Relation/FileFormat.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Relation/IncrementalTableConfig.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Relation/RelationType.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Relation/TableFormat.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/SimpleLoadMode.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ComputeRepositoryAccessTokenStatusRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ComputeRepositoryAccessTokenStatusResponse.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ComputeRepositoryAccessTokenStatusResponse/TokenStatus.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Config.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateCompilationResultRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateFolderRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateReleaseConfigRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateRepositoryRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateTeamFolderRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateWorkflowConfigRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateWorkflowInvocationRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateWorkspaceRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DataEncryptionState.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteFolderRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteFolderTreeMetadata.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteFolderTreeMetadata/State.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteFolderTreeRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteReleaseConfigRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteRepositoryRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteTeamFolderRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteTeamFolderTreeRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteWorkflowConfigRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteWorkflowInvocationRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteWorkspaceRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DirectoryContentsView.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DirectoryEntry.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DirectorySearchResult.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileDiffRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileDiffResponse.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileGitStatusesRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileGitStatusesResponse.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileGitStatusesResponse/UncommittedFileChange.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileGitStatusesResponse/UncommittedFileChange/State.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchGitAheadBehindRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchGitAheadBehindResponse.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchRemoteBranchesRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchRemoteBranchesResponse.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchRepositoryHistoryRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchRepositoryHistoryResponse.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FileSearchResult.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FilesystemEntryMetadata.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Folder.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetCompilationResultRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetConfigRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetFolderRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetReleaseConfigRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetRepositoryRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetTeamFolderRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetWorkflowConfigRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetWorkflowInvocationRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetWorkspaceRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/InstallNpmPackagesRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/InstallNpmPackagesResponse.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/InvocationConfig.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/InvocationConfig/QueryPriority.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListCompilationResultsRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListCompilationResultsResponse.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListReleaseConfigsRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListReleaseConfigsResponse.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListRepositoriesRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListRepositoriesResponse.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkflowConfigsRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkflowConfigsResponse.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkflowInvocationsRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkflowInvocationsResponse.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkspacesRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkspacesResponse.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MakeDirectoryRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MakeDirectoryResponse.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveDirectoryRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveDirectoryResponse.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveFileRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveFileResponse.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveFolderMetadata.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveFolderMetadata/State.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveFolderRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveRepositoryMetadata.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveRepositoryMetadata/State.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveRepositoryRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/NotebookRuntimeOptions.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/PrivateResourceMetadata.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/PullGitCommitsRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/PullGitCommitsResponse.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/PushGitCommitsRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/PushGitCommitsResponse.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryCompilationResultActionsRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryCompilationResultActionsResponse.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryDirectoryContentsRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryDirectoryContentsResponse.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryFolderContentsRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryFolderContentsResponse.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryFolderContentsResponse/FolderContentsEntry.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryRepositoryDirectoryContentsRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryRepositoryDirectoryContentsResponse.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryTeamFolderContentsRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryTeamFolderContentsResponse.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryTeamFolderContentsResponse/TeamFolderContentsEntry.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryUserRootContentsRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryUserRootContentsResponse.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryUserRootContentsResponse/RootContentsEntry.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryWorkflowInvocationActionsRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryWorkflowInvocationActionsResponse.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReadFileRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReadFileResponse.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReadRepositoryFileRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReadRepositoryFileResponse.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RelationDescriptor.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RelationDescriptor/ColumnDescriptor.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReleaseConfig.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReleaseConfig/ScheduledReleaseRecord.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RemoveDirectoryRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RemoveDirectoryResponse.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RemoveFileRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RemoveFileResponse.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Repository.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Repository/GitRemoteSettings.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Repository/GitRemoteSettings/SshAuthenticationConfig.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Repository/GitRemoteSettings/TokenStatus.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Repository/WorkspaceCompilationOverrides.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ResetWorkspaceChangesRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ResetWorkspaceChangesResponse.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/SearchFilesRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/SearchFilesResponse.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/SearchResult.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/SearchTeamFoldersRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/SearchTeamFoldersResponse.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/SearchTeamFoldersResponse/TeamFolderSearchResult.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Target.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/TeamFolder.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/UpdateConfigRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/UpdateFolderRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/UpdateReleaseConfigRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/UpdateRepositoryRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/UpdateTeamFolderRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/UpdateWorkflowConfigRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowConfig.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowConfig/ScheduledExecutionRecord.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocation.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocation/State.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/BigQueryAction.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction/ActionErrorTable.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction/ActionIncrementalLoadMode.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction/ActionLoadConfig.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction/ActionSimpleLoadMode.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction/ActionSqlDefinition.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/NotebookAction.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/State.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Workspace.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WriteFileRequest.php create mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WriteFileResponse.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/cancel_operation.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/cancel_workflow_invocation.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/commit_repository_changes.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/commit_workspace_changes.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/compute_repository_access_token_status.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_compilation_result.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_folder.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_release_config.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_repository.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_team_folder.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_workflow_config.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_workflow_invocation.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_workspace.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_folder.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_folder_tree.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_operation.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_release_config.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_repository.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_team_folder.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_team_folder_tree.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_workflow_config.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_workflow_invocation.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_workspace.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/fetch_file_diff.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/fetch_file_git_statuses.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/fetch_git_ahead_behind.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/fetch_remote_branches.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/fetch_repository_history.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_compilation_result.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_config.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_folder.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_iam_policy.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_location.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_operation.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_release_config.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_repository.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_team_folder.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_workflow_config.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_workflow_invocation.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_workspace.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/install_npm_packages.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_compilation_results.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_locations.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_operations.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_release_configs.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_repositories.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_workflow_configs.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_workflow_invocations.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_workspaces.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/make_directory.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/move_directory.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/move_file.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/move_folder.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/move_repository.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/pull_git_commits.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/push_git_commits.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/query_compilation_result_actions.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/query_directory_contents.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/query_folder_contents.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/query_repository_directory_contents.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/query_team_folder_contents.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/query_user_root_contents.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/query_workflow_invocation_actions.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/read_file.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/read_repository_file.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/remove_directory.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/remove_file.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/reset_workspace_changes.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/search_files.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/search_team_folders.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/set_iam_policy.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/test_iam_permissions.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/update_config.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/update_folder.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/update_release_config.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/update_repository.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/update_team_folder.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/update_workflow_config.php create mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/write_file.php create mode 100644 owl-bot-staging/Dataform/v1/src/V1/Client/DataformClient.php create mode 100644 owl-bot-staging/Dataform/v1/src/V1/gapic_metadata.json create mode 100644 owl-bot-staging/Dataform/v1/src/V1/resources/dataform_client_config.json create mode 100644 owl-bot-staging/Dataform/v1/src/V1/resources/dataform_descriptor_config.php create mode 100644 owl-bot-staging/Dataform/v1/src/V1/resources/dataform_rest_client_config.php create mode 100644 owl-bot-staging/Dataform/v1/tests/Unit/V1/Client/DataformClientTest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/GPBMetadata/Google/Cloud/Dataform/V1Beta1/Dataform.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CancelWorkflowInvocationRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CancelWorkflowInvocationResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CodeCompilationConfig.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitAuthor.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitLogEntry.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitMetadata.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesRequest/FileOperation.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesRequest/FileOperation/DeleteFile.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesRequest/FileOperation/WriteFile.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitWorkspaceChangesRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitWorkspaceChangesResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResult.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResult/CompilationError.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Assertion.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/DataPreparation.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/DataPreparation/ErrorTable.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/DataPreparation/SqlDefinition.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Declaration.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/IncrementalLoadMode.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/LoadConfig.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Notebook.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Operations.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation/FileFormat.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation/IncrementalTableConfig.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation/RelationType.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation/TableFormat.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/SimpleLoadMode.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ComputeRepositoryAccessTokenStatusRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ComputeRepositoryAccessTokenStatusResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ComputeRepositoryAccessTokenStatusResponse/TokenStatus.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Config.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateCompilationResultRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateFolderRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateReleaseConfigRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateRepositoryRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateTeamFolderRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateWorkflowConfigRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateWorkflowInvocationRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateWorkspaceRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DataEncryptionState.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteFolderRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteReleaseConfigRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteRepositoryRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteTeamFolderRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteWorkflowConfigRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteWorkflowInvocationRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteWorkspaceRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DirectoryEntry.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DirectorySearchResult.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileDiffRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileDiffResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileGitStatusesRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileGitStatusesResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileGitStatusesResponse/UncommittedFileChange.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileGitStatusesResponse/UncommittedFileChange/State.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchGitAheadBehindRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchGitAheadBehindResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchRemoteBranchesRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchRemoteBranchesResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchRepositoryHistoryRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchRepositoryHistoryResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FileSearchResult.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Folder.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetCompilationResultRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetConfigRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetFolderRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetReleaseConfigRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetRepositoryRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetTeamFolderRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetWorkflowConfigRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetWorkflowInvocationRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetWorkspaceRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/InstallNpmPackagesRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/InstallNpmPackagesResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/InvocationConfig.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/InvocationConfig/QueryPriority.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListCompilationResultsRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListCompilationResultsResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListReleaseConfigsRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListReleaseConfigsResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListRepositoriesRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListRepositoriesResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkflowConfigsRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkflowConfigsResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkflowInvocationsRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkflowInvocationsResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkspacesRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkspacesResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MakeDirectoryRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MakeDirectoryResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveDirectoryRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveDirectoryResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveFileRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveFileResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveFolderMetadata.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveFolderMetadata/State.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveFolderRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveRepositoryMetadata.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveRepositoryMetadata/State.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveRepositoryRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/NotebookRuntimeOptions.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/PrivateResourceMetadata.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/PullGitCommitsRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/PullGitCommitsResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/PushGitCommitsRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/PushGitCommitsResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryCompilationResultActionsRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryCompilationResultActionsResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryDirectoryContentsRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryDirectoryContentsResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryFolderContentsRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryFolderContentsResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryFolderContentsResponse/FolderContentsEntry.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryRepositoryDirectoryContentsRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryRepositoryDirectoryContentsResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryTeamFolderContentsRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryTeamFolderContentsResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryTeamFolderContentsResponse/TeamFolderContentsEntry.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryUserRootContentsRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryUserRootContentsResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryUserRootContentsResponse/RootContentsEntry.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryWorkflowInvocationActionsRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryWorkflowInvocationActionsResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReadFileRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReadFileResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReadRepositoryFileRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReadRepositoryFileResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RelationDescriptor.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RelationDescriptor/ColumnDescriptor.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReleaseConfig.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReleaseConfig/ScheduledReleaseRecord.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RemoveDirectoryRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RemoveDirectoryResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RemoveFileRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RemoveFileResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository/GitRemoteSettings.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository/GitRemoteSettings/SshAuthenticationConfig.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository/GitRemoteSettings/TokenStatus.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository/WorkspaceCompilationOverrides.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ResetWorkspaceChangesRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ResetWorkspaceChangesResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchFilesRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchFilesResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchResult.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchTeamFoldersRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchTeamFoldersResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchTeamFoldersResponse/TeamFolderSearchResult.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Target.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/TeamFolder.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateConfigRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateFolderRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateReleaseConfigRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateRepositoryRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateTeamFolderRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateWorkflowConfigRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowConfig.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowConfig/ScheduledExecutionRecord.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocation.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocation/State.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/BigQueryAction.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionErrorTable.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionIncrementalLoadMode.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionLoadConfig.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionSimpleLoadMode.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionSqlDefinition.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/NotebookAction.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/State.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Workspace.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WriteFileRequest.php create mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WriteFileResponse.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/cancel_operation.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/cancel_workflow_invocation.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/commit_repository_changes.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/commit_workspace_changes.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/compute_repository_access_token_status.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_compilation_result.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_folder.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_release_config.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_repository.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_team_folder.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_workflow_config.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_workflow_invocation.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_workspace.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_folder.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_operation.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_release_config.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_repository.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_team_folder.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_workflow_config.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_workflow_invocation.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_workspace.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/fetch_file_diff.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/fetch_file_git_statuses.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/fetch_git_ahead_behind.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/fetch_remote_branches.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/fetch_repository_history.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_compilation_result.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_config.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_folder.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_iam_policy.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_location.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_operation.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_release_config.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_repository.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_team_folder.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_workflow_config.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_workflow_invocation.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_workspace.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/install_npm_packages.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_compilation_results.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_locations.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_operations.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_release_configs.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_repositories.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_workflow_configs.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_workflow_invocations.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_workspaces.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/make_directory.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/move_directory.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/move_file.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/move_folder.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/move_repository.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/pull_git_commits.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/push_git_commits.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_compilation_result_actions.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_directory_contents.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_folder_contents.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_repository_directory_contents.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_team_folder_contents.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_user_root_contents.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_workflow_invocation_actions.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/read_file.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/read_repository_file.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/remove_directory.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/remove_file.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/reset_workspace_changes.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/search_files.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/search_team_folders.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/set_iam_policy.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/test_iam_permissions.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_config.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_folder.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_release_config.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_repository.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_team_folder.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_workflow_config.php create mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/write_file.php create mode 100644 owl-bot-staging/Dataform/v1beta1/src/V1beta1/Client/DataformClient.php create mode 100644 owl-bot-staging/Dataform/v1beta1/src/V1beta1/gapic_metadata.json create mode 100644 owl-bot-staging/Dataform/v1beta1/src/V1beta1/resources/dataform_client_config.json create mode 100644 owl-bot-staging/Dataform/v1beta1/src/V1beta1/resources/dataform_descriptor_config.php create mode 100644 owl-bot-staging/Dataform/v1beta1/src/V1beta1/resources/dataform_rest_client_config.php create mode 100644 owl-bot-staging/Dataform/v1beta1/tests/Unit/V1beta1/Client/DataformClientTest.php diff --git a/owl-bot-staging/Dataform/v1/proto/src/GPBMetadata/Google/Cloud/Dataform/V1/Dataform.php b/owl-bot-staging/Dataform/v1/proto/src/GPBMetadata/Google/Cloud/Dataform/V1/Dataform.php new file mode 100644 index 000000000000..3ed042e5f9d3 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/GPBMetadata/Google/Cloud/Dataform/V1/Dataform.php @@ -0,0 +1,36 @@ +internalAddGeneratedFile( + "\x0A\xD0\xFA\x02\x0A'google/cloud/dataform/v1/dataform.proto\x12\x18google.cloud.dataform.v1\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\x0A\x13DataEncryptionState\x12N\x0A\x14kms_key_version_name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(cloudkms.googleapis.com/CryptoKeyVersion\"\x92\x0E\x0A\x0ARepository\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12#\x0A\x11containing_folder\x18\x10 \x01(\x09B\x03\xE0A\x01H\x00\x88\x01\x01\x12\"\x0A\x10team_folder_name\x18\x12 \x01(\x09B\x03\xE0A\x03H\x01\x88\x01\x01\x124\x0A\x0Bcreate_time\x18\x0D \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x19\x0A\x0Cdisplay_name\x18\x08 \x01(\x09B\x03\xE0A\x01\x12X\x0A\x13git_remote_settings\x18\x02 \x01(\x0B26.google.cloud.dataform.v1.Repository.GitRemoteSettingsB\x03\xE0A\x01\x12f\x0A*npmrc_environment_variables_secret_version\x18\x03 \x01(\x09B2\xE0A\x01\xFAA,\x0A*secretmanager.googleapis.com/SecretVersion\x12p\x0A\x1Fworkspace_compilation_overrides\x18\x04 \x01(\x0B2B.google.cloud.dataform.v1.Repository.WorkspaceCompilationOverridesB\x03\xE0A\x01\x12E\x0A\x06labels\x18\x05 \x03(\x0B20.google.cloud.dataform.v1.Repository.LabelsEntryB\x03\xE0A\x01\x12,\x0A\x1Cset_authenticated_user_admin\x18\x09 \x01(\x08B\x06\xE0A\x01\xE0A\x04\x12\x1C\x0A\x0Fservice_account\x18\x0A \x01(\x09B\x03\xE0A\x01\x12?\x0A\x0Ckms_key_name\x18\x0B \x01(\x09B)\xE0A\x01\xFAA#\x0A!cloudkms.googleapis.com/CryptoKey\x12Q\x0A\x15data_encryption_state\x18\x0C \x01(\x0B2-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xE0A\x03\x12#\x0A\x11internal_metadata\x18\x0F \x01(\x09B\x03\xE0A\x03H\x02\x88\x01\x01\x1A\xE7\x04\x0A\x11GitRemoteSettings\x12\x10\x0A\x03url\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x1B\x0A\x0Edefault_branch\x18\x02 \x01(\x09B\x03\xE0A\x02\x12_\x0A#authentication_token_secret_version\x18\x03 \x01(\x09B2\xE0A\x01\xFAA,\x0A*secretmanager.googleapis.com/SecretVersion\x12v\x0A\x19ssh_authentication_config\x18\x05 \x01(\x0B2N.google.cloud.dataform.v1.Repository.GitRemoteSettings.SshAuthenticationConfigB\x03\xE0A\x01\x12_\x0A\x0Ctoken_status\x18\x04 \x01(\x0E2B.google.cloud.dataform.v1.Repository.GitRemoteSettings.TokenStatusB\x05\x18\x01\xE0A\x03\x1A\x94\x01\x0A\x17SshAuthenticationConfig\x12[\x0A\x1Fuser_private_key_secret_version\x18\x01 \x01(\x09B2\xE0A\x02\xFAA,\x0A*secretmanager.googleapis.com/SecretVersion\x12\x1C\x0A\x0Fhost_public_key\x18\x02 \x01(\x09B\x03\xE0A\x02\"R\x0A\x0BTokenStatus\x12\x1C\x0A\x18TOKEN_STATUS_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09NOT_FOUND\x10\x01\x12\x0B\x0A\x07INVALID\x10\x02\x12\x09\x0A\x05VALID\x10\x03\x1Au\x0A\x1DWorkspaceCompilationOverrides\x12\x1D\x0A\x10default_database\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Dschema_suffix\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Ctable_prefix\x18\x03 \x01(\x09B\x03\xE0A\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:\x85\x01\xEAA\x81\x01\x0A\"dataform.googleapis.com/Repository\x12Aprojects/{project}/locations/{location}/repositories/{repository}*\x0Crepositories2\x0ArepositoryB\x14\x0A\x12_containing_folderB\x13\x0A\x11_team_folder_nameB\x14\x0A\x12_internal_metadata\"3\x0A\x17PrivateResourceMetadata\x12\x18\x0A\x0Buser_scoped\x18\x01 \x01(\x08B\x03\xE0A\x03\"\xB1\x01\x0A\x17ListRepositoriesRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\x84\x01\x0A\x18ListRepositoriesResponse\x12:\x0A\x0Crepositories\x18\x01 \x03(\x0B2\$.google.cloud.dataform.v1.Repository\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x13\x0A\x0Bunreachable\x18\x03 \x03(\x09\"\xA4\x01\x0A\x15MoveRepositoryRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12/\x0A\x1Ddestination_containing_folder\x18\x02 \x01(\x09B\x03\xE0A\x01H\x00\x88\x01\x01B \x0A\x1E_destination_containing_folder\"P\x0A\x14GetRepositoryRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\"\xAF\x01\x0A\x17CreateRepositoryRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12=\x0A\x0Arepository\x18\x02 \x01(\x0B2\$.google.cloud.dataform.v1.RepositoryB\x03\xE0A\x02\x12\x1A\x0A\x0Drepository_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"\x8E\x01\x0A\x17UpdateRepositoryRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12=\x0A\x0Arepository\x18\x02 \x01(\x0B2\$.google.cloud.dataform.v1.RepositoryB\x03\xE0A\x02\"g\x0A\x17DeleteRepositoryRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x12\x0A\x05force\x18\x02 \x01(\x08B\x03\xE0A\x01\"\xD2\x05\x0A\x1ECommitRepositoryChangesRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12F\x0A\x0Fcommit_metadata\x18\x02 \x01(\x0B2(.google.cloud.dataform.v1.CommitMetadataB\x03\xE0A\x02\x12%\x0A\x18required_head_commit_sha\x18\x04 \x01(\x09B\x03\xE0A\x01\x12j\x0A\x0Ffile_operations\x18\x03 \x03(\x0B2L.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperationsEntryB\x03\xE0A\x01\x1A\x9B\x02\x0A\x0DFileOperation\x12f\x0A\x0Awrite_file\x18\x01 \x01(\x0B2P.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation.WriteFileH\x00\x12h\x0A\x0Bdelete_file\x18\x02 \x01(\x0B2Q.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation.DeleteFileH\x00\x1A\x1D\x0A\x09WriteFile\x12\x10\x0A\x08contents\x18\x01 \x01(\x0C\x1A\x0C\x0A\x0ADeleteFileB\x0B\x0A\x09operation\x1A}\x0A\x13FileOperationsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12U\x0A\x05value\x18\x02 \x01(\x0B2F.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation:\x028\x01\"5\x0A\x1FCommitRepositoryChangesResponse\x12\x12\x0A\x0Acommit_sha\x18\x01 \x01(\x09\"\x81\x01\x0A\x19ReadRepositoryFileRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x17\x0A\x0Acommit_sha\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04path\x18\x03 \x01(\x09B\x03\xE0A\x02\".\x0A\x1AReadRepositoryFileResponse\x12\x10\x0A\x08contents\x18\x01 \x01(\x0C\"\xC0\x01\x0A'QueryRepositoryDirectoryContentsRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x17\x0A\x0Acommit_sha\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04path\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09page_size\x18\x04 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x05 \x01(\x09B\x03\xE0A\x01\"\x88\x01\x0A(QueryRepositoryDirectoryContentsResponse\x12C\x0A\x11directory_entries\x18\x01 \x03(\x0B2(.google.cloud.dataform.v1.DirectoryEntry\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x8A\x01\x0A\x1DFetchRepositoryHistoryRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x05 \x01(\x09B\x03\xE0A\x01\"t\x0A\x1EFetchRepositoryHistoryResponse\x129\x0A\x07commits\x18\x01 \x03(\x0B2(.google.cloud.dataform.v1.CommitLogEntry\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xA5\x01\x0A\x0ECommitLogEntry\x12/\x0A\x0Bcommit_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x12\x0A\x0Acommit_sha\x18\x02 \x01(\x09\x126\x0A\x06author\x18\x03 \x01(\x0B2&.google.cloud.dataform.v1.CommitAuthor\x12\x16\x0A\x0Ecommit_message\x18\x04 \x01(\x09\"j\x0A\x0ECommitMetadata\x12;\x0A\x06author\x18\x01 \x01(\x0B2&.google.cloud.dataform.v1.CommitAuthorB\x03\xE0A\x02\x12\x1B\x0A\x0Ecommit_message\x18\x02 \x01(\x09B\x03\xE0A\x01\"e\x0A)ComputeRepositoryAccessTokenStatusRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\"\xFF\x01\x0A*ComputeRepositoryAccessTokenStatusResponse\x12f\x0A\x0Ctoken_status\x18\x01 \x01(\x0E2P.google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus\"i\x0A\x0BTokenStatus\x12\x1C\x0A\x18TOKEN_STATUS_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09NOT_FOUND\x10\x01\x12\x0B\x0A\x07INVALID\x10\x02\x12\x09\x0A\x05VALID\x10\x03\x12\x15\x0A\x11PERMISSION_DENIED\x10\x04\"V\x0A\x1AFetchRemoteBranchesRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\"/\x0A\x1BFetchRemoteBranchesResponse\x12\x10\x0A\x08branches\x18\x01 \x03(\x09\"\x8B\x04\x0A\x09Workspace\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12Q\x0A\x15data_encryption_state\x18\x02 \x01(\x0B2-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xE0A\x03\x12#\x0A\x11internal_metadata\x18\x05 \x01(\x09B\x03\xE0A\x03H\x00\x88\x01\x01\x12\x1F\x0A\x0Ddisable_moves\x18\x06 \x01(\x08B\x03\xE0A\x01H\x01\x88\x01\x01\x12Y\x0A\x19private_resource_metadata\x18\x08 \x01(\x0B21.google.cloud.dataform.v1.PrivateResourceMetadataB\x03\xE0A\x03:\x98\x01\xEAA\x94\x01\x0A!dataform.googleapis.com/Workspace\x12Xprojects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace}*\x0Aworkspaces2\x09workspaceB\x14\x0A\x12_internal_metadataB\x10\x0A\x0E_disable_moves\"\xB0\x01\x0A\x15ListWorkspacesRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\x7F\x0A\x16ListWorkspacesResponse\x127\x0A\x0Aworkspaces\x18\x01 \x03(\x0B2#.google.cloud.dataform.v1.Workspace\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x13\x0A\x0Bunreachable\x18\x03 \x03(\x09\"N\x0A\x13GetWorkspaceRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\"\xAC\x01\x0A\x16CreateWorkspaceRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12;\x0A\x09workspace\x18\x02 \x01(\x0B2#.google.cloud.dataform.v1.WorkspaceB\x03\xE0A\x02\x12\x19\x0A\x0Cworkspace_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"Q\x0A\x16DeleteWorkspaceRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\"=\x0A\x0CCommitAuthor\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x1A\x0A\x0Demail_address\x18\x02 \x01(\x09B\x03\xE0A\x02\"\xA9\x01\x0A\x15PullGitCommitsRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x1A\x0A\x0Dremote_branch\x18\x02 \x01(\x09B\x03\xE0A\x01\x12;\x0A\x06author\x18\x03 \x01(\x0B2&.google.cloud.dataform.v1.CommitAuthorB\x03\xE0A\x02\"\x18\x0A\x16PullGitCommitsResponse\"l\x0A\x15PushGitCommitsRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x1A\x0A\x0Dremote_branch\x18\x02 \x01(\x09B\x03\xE0A\x01\"\x18\x0A\x16PushGitCommitsResponse\"V\x0A\x1BFetchFileGitStatusesRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\"\xF7\x02\x0A\x1CFetchFileGitStatusesResponse\x12n\x0A\x18uncommitted_file_changes\x18\x01 \x03(\x0B2L.google.cloud.dataform.v1.FetchFileGitStatusesResponse.UncommittedFileChange\x1A\xE6\x01\x0A\x15UncommittedFileChange\x12\x0C\x0A\x04path\x18\x01 \x01(\x09\x12f\x0A\x05state\x18\x02 \x01(\x0E2R.google.cloud.dataform.v1.FetchFileGitStatusesResponse.UncommittedFileChange.StateB\x03\xE0A\x03\"W\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05ADDED\x10\x01\x12\x0B\x0A\x07DELETED\x10\x02\x12\x0C\x0A\x08MODIFIED\x10\x03\x12\x11\x0A\x0DHAS_CONFLICTS\x10\x04\"q\x0A\x1AFetchGitAheadBehindRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x1A\x0A\x0Dremote_branch\x18\x02 \x01(\x09B\x03\xE0A\x01\"L\x0A\x1BFetchGitAheadBehindResponse\x12\x15\x0A\x0Dcommits_ahead\x18\x01 \x01(\x05\x12\x16\x0A\x0Ecommits_behind\x18\x02 \x01(\x05\"\xC6\x01\x0A\x1DCommitWorkspaceChangesRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12;\x0A\x06author\x18\x04 \x01(\x0B2&.google.cloud.dataform.v1.CommitAuthorB\x03\xE0A\x02\x12\x1B\x0A\x0Ecommit_message\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x12\x0A\x05paths\x18\x03 \x03(\x09B\x03\xE0A\x01\" \x0A\x1ECommitWorkspaceChangesResponse\"\x7F\x0A\x1CResetWorkspaceChangesRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x12\x0A\x05paths\x18\x02 \x03(\x09B\x03\xE0A\x01\x12\x12\x0A\x05clean\x18\x03 \x01(\x08B\x03\xE0A\x01\"\x1F\x0A\x1DResetWorkspaceChangesResponse\"g\x0A\x14FetchFileDiffRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\"/\x0A\x15FetchFileDiffResponse\x12\x16\x0A\x0Eformatted_diff\x18\x01 \x01(\x09\"\xE5\x01\x0A\x1DQueryDirectoryContentsRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09page_size\x18\x03 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x04 \x01(\x09B\x03\xE0A\x01\x12B\x0A\x04view\x18\x05 \x01(\x0E2/.google.cloud.dataform.v1.DirectoryContentsViewB\x03\xE0A\x01\"~\x0A\x1EQueryDirectoryContentsResponse\x12C\x0A\x11directory_entries\x18\x01 \x03(\x0B2(.google.cloud.dataform.v1.DirectoryEntry\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x83\x01\x0A\x0EDirectoryEntry\x12\x0E\x0A\x04file\x18\x01 \x01(\x09H\x00\x12\x13\x0A\x09directory\x18\x02 \x01(\x09H\x00\x12C\x0A\x08metadata\x18\x03 \x01(\x0B21.google.cloud.dataform.v1.FilesystemEntryMetadataB\x07\x0A\x05entry\"h\x0A\x17FilesystemEntryMetadata\x12\x17\x0A\x0Asize_bytes\x18\x01 \x01(\x03B\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\"\x98\x01\x0A\x12SearchFilesRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\"s\x0A\x13SearchFilesResponse\x12>\x0A\x0Esearch_results\x18\x01 \x03(\x0B2&.google.cloud.dataform.v1.SearchResult\x12\x1C\x0A\x0Fnext_page_token\x18\x02 \x01(\x09B\x03\xE0A\x01\"\x99\x01\x0A\x0CSearchResult\x12:\x0A\x04file\x18\x01 \x01(\x0B2*.google.cloud.dataform.v1.FileSearchResultH\x00\x12D\x0A\x09directory\x18\x02 \x01(\x0B2/.google.cloud.dataform.v1.DirectorySearchResultH\x00B\x07\x0A\x05entry\" \x0A\x10FileSearchResult\x12\x0C\x0A\x04path\x18\x01 \x01(\x09\"%\x0A\x15DirectorySearchResult\x12\x0C\x0A\x04path\x18\x01 \x01(\x09\"g\x0A\x14MakeDirectoryRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\"\x17\x0A\x15MakeDirectoryResponse\"i\x0A\x16RemoveDirectoryRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\"\x19\x0A\x17RemoveDirectoryResponse\"~\x0A\x14MoveDirectoryRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08new_path\x18\x03 \x01(\x09B\x03\xE0A\x02\"\x17\x0A\x15MoveDirectoryResponse\"y\x0A\x0FReadFileRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08revision\x18\x03 \x01(\x09B\x03\xE0A\x01\")\x0A\x10ReadFileResponse\x12\x15\x0A\x0Dfile_contents\x18\x01 \x01(\x0C\"d\x0A\x11RemoveFileRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\"\x14\x0A\x12RemoveFileResponse\"y\x0A\x0FMoveFileRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08new_path\x18\x03 \x01(\x09B\x03\xE0A\x02\"\x12\x0A\x10MoveFileResponse\"z\x0A\x10WriteFileRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08contents\x18\x03 \x01(\x0CB\x03\xE0A\x02\"\x13\x0A\x11WriteFileResponse\"Y\x0A\x19InstallNpmPackagesRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\"\x1C\x0A\x1AInstallNpmPackagesResponse\"\xE7\x06\x0A\x0DReleaseConfig\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x1A\x0A\x0Dgit_commitish\x18\x02 \x01(\x09B\x03\xE0A\x02\x12U\x0A\x17code_compilation_config\x18\x03 \x01(\x0B2/.google.cloud.dataform.v1.CodeCompilationConfigB\x03\xE0A\x01\x12\x1A\x0A\x0Dcron_schedule\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09time_zone\x18\x07 \x01(\x09B\x03\xE0A\x01\x12m\x0A recent_scheduled_release_records\x18\x05 \x03(\x0B2>.google.cloud.dataform.v1.ReleaseConfig.ScheduledReleaseRecordB\x03\xE0A\x03\x12U\x0A\x1Arelease_compilation_result\x18\x06 \x01(\x09B1\xE0A\x01\xFAA+\x0A)dataform.googleapis.com/CompilationResult\x12\x15\x0A\x08disabled\x18\x08 \x01(\x08B\x03\xE0A\x01\x12#\x0A\x11internal_metadata\x18\x09 \x01(\x09B\x03\xE0A\x03H\x00\x88\x01\x01\x1A\xD3\x01\x0A\x16ScheduledReleaseRecord\x12L\x0A\x12compilation_result\x18\x02 \x01(\x09B.\xFAA+\x0A)dataform.googleapis.com/CompilationResultH\x00\x12*\x0A\x0Cerror_status\x18\x03 \x01(\x0B2\x12.google.rpc.StatusH\x00\x125\x0A\x0Crelease_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03B\x08\x0A\x06result:\xAD\x01\xEAA\xA9\x01\x0A%dataform.googleapis.com/ReleaseConfig\x12aprojects/{project}/locations/{location}/repositories/{repository}/releaseConfigs/{release_config}*\x0EreleaseConfigs2\x0DreleaseConfigB\x14\x0A\x12_internal_metadata\"\x88\x01\x0A\x19ListReleaseConfigsRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"\x8C\x01\x0A\x1AListReleaseConfigsResponse\x12@\x0A\x0Frelease_configs\x18\x01 \x03(\x0B2'.google.cloud.dataform.v1.ReleaseConfig\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x13\x0A\x0Bunreachable\x18\x03 \x03(\x09\"V\x0A\x17GetReleaseConfigRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%dataform.googleapis.com/ReleaseConfig\"\xBE\x01\x0A\x1ACreateReleaseConfigRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12D\x0A\x0Erelease_config\x18\x02 \x01(\x0B2'.google.cloud.dataform.v1.ReleaseConfigB\x03\xE0A\x02\x12\x1E\x0A\x11release_config_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"\x98\x01\x0A\x1AUpdateReleaseConfigRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12D\x0A\x0Erelease_config\x18\x02 \x01(\x0B2'.google.cloud.dataform.v1.ReleaseConfigB\x03\xE0A\x02\"Y\x0A\x1ADeleteReleaseConfigRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%dataform.googleapis.com/ReleaseConfig\"\xCA\x08\x0A\x11CompilationResult\x12\x1C\x0A\x0Dgit_commitish\x18\x02 \x01(\x09B\x03\xE0A\x05H\x00\x12>\x0A\x09workspace\x18\x03 \x01(\x09B)\xE0A\x05\xFAA#\x0A!dataform.googleapis.com/WorkspaceH\x00\x12G\x0A\x0Erelease_config\x18\x07 \x01(\x09B-\xE0A\x05\xFAA'\x0A%dataform.googleapis.com/ReleaseConfigH\x00\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12U\x0A\x17code_compilation_config\x18\x04 \x01(\x0B2/.google.cloud.dataform.v1.CodeCompilationConfigB\x03\xE0A\x05\x12\$\x0A\x17resolved_git_commit_sha\x18\x08 \x01(\x09B\x03\xE0A\x03\x12\"\x0A\x15dataform_core_version\x18\x05 \x01(\x09B\x03\xE0A\x03\x12]\x0A\x12compilation_errors\x18\x06 \x03(\x0B2<.google.cloud.dataform.v1.CompilationResult.CompilationErrorB\x03\xE0A\x03\x12Q\x0A\x15data_encryption_state\x18\x09 \x01(\x0B2-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x0A \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12#\x0A\x11internal_metadata\x18\x0B \x01(\x09B\x03\xE0A\x03H\x01\x88\x01\x01\x12Y\x0A\x19private_resource_metadata\x18\x0C \x01(\x0B21.google.cloud.dataform.v1.PrivateResourceMetadataB\x03\xE0A\x03\x1A\x8D\x01\x0A\x10CompilationError\x12\x14\x0A\x07message\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x12\x0A\x05stack\x18\x02 \x01(\x09B\x03\xE0A\x03\x12\x11\x0A\x04path\x18\x03 \x01(\x09B\x03\xE0A\x03\x12<\x0A\x0Daction_target\x18\x04 \x01(\x0B2 .google.cloud.dataform.v1.TargetB\x03\xE0A\x03:\xC1\x01\xEAA\xBD\x01\x0A)dataform.googleapis.com/CompilationResult\x12iprojects/{project}/locations/{location}/repositories/{repository}/compilationResults/{compilation_result}*\x12compilationResults2\x11compilationResultB\x08\x0A\x06sourceB\x14\x0A\x12_internal_metadata\"\xEE\x03\x0A\x15CodeCompilationConfig\x12\x1D\x0A\x10default_database\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x1B\x0A\x0Edefault_schema\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x1D\x0A\x10default_location\x18\x08 \x01(\x09B\x03\xE0A\x01\x12\x1D\x0A\x10assertion_schema\x18\x03 \x01(\x09B\x03\xE0A\x01\x12L\x0A\x04vars\x18\x04 \x03(\x0B29.google.cloud.dataform.v1.CodeCompilationConfig.VarsEntryB\x03\xE0A\x01\x12\x1C\x0A\x0Fdatabase_suffix\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Dschema_suffix\x18\x06 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Ctable_prefix\x18\x07 \x01(\x09B\x03\xE0A\x01\x12*\x0A\x1Dbuiltin_assertion_name_prefix\x18\x0A \x01(\x09B\x03\xE0A\x01\x12_\x0A default_notebook_runtime_options\x18\x09 \x01(\x0B20.google.cloud.dataform.v1.NotebookRuntimeOptionsB\x03\xE0A\x01\x1A+\x0A\x09VarsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\xB6\x01\x0A\x16NotebookRuntimeOptions\x12 \x0A\x11gcs_output_bucket\x18\x01 \x01(\x09B\x03\xE0A\x01H\x00\x12h\x0A%ai_platform_notebook_runtime_template\x18\x02 \x01(\x09B9\xE0A\x01\xFAA3\x0A1aiplatform.googleapis.com/NotebookRuntimeTemplateB\x10\x0A\x0Eexecution_sink\"\xB8\x01\x0A\x1DListCompilationResultsRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\x98\x01\x0A\x1EListCompilationResultsResponse\x12H\x0A\x13compilation_results\x18\x01 \x03(\x0B2+.google.cloud.dataform.v1.CompilationResult\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x13\x0A\x0Bunreachable\x18\x03 \x03(\x09\"^\x0A\x1BGetCompilationResultRequest\x12?\x0A\x04name\x18\x01 \x01(\x09B1\xE0A\x02\xFAA+\x0A)dataform.googleapis.com/CompilationResult\"\xAA\x01\x0A\x1ECreateCompilationResultRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12L\x0A\x12compilation_result\x18\x02 \x01(\x0B2+.google.cloud.dataform.v1.CompilationResultB\x03\xE0A\x02\"G\x0A\x06Target\x12\x15\x0A\x08database\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06schema\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04name\x18\x03 \x01(\x09B\x03\xE0A\x01\"\xE0\x02\x0A\x12RelationDescriptor\x12\x13\x0A\x0Bdescription\x18\x01 \x01(\x09\x12N\x0A\x07columns\x18\x02 \x03(\x0B2=.google.cloud.dataform.v1.RelationDescriptor.ColumnDescriptor\x12Y\x0A\x0Fbigquery_labels\x18\x03 \x03(\x0B2@.google.cloud.dataform.v1.RelationDescriptor.BigqueryLabelsEntry\x1AS\x0A\x10ColumnDescriptor\x12\x0C\x0A\x04path\x18\x01 \x03(\x09\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09\x12\x1C\x0A\x14bigquery_policy_tags\x18\x03 \x03(\x09\x1A5\x0A\x13BigqueryLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\xA3\x1E\x0A\x17CompilationResultAction\x12N\x0A\x08relation\x18\x04 \x01(\x0B2:.google.cloud.dataform.v1.CompilationResultAction.RelationH\x00\x12R\x0A\x0Aoperations\x18\x05 \x01(\x0B2<.google.cloud.dataform.v1.CompilationResultAction.OperationsH\x00\x12P\x0A\x09assertion\x18\x06 \x01(\x0B2;.google.cloud.dataform.v1.CompilationResultAction.AssertionH\x00\x12T\x0A\x0Bdeclaration\x18\x07 \x01(\x0B2=.google.cloud.dataform.v1.CompilationResultAction.DeclarationH\x00\x12N\x0A\x08notebook\x18\x08 \x01(\x0B2:.google.cloud.dataform.v1.CompilationResultAction.NotebookH\x00\x12]\x0A\x10data_preparation\x18\x09 \x01(\x0B2A.google.cloud.dataform.v1.CompilationResultAction.DataPreparationH\x00\x120\x0A\x06target\x18\x01 \x01(\x0B2 .google.cloud.dataform.v1.Target\x12:\x0A\x10canonical_target\x18\x02 \x01(\x0B2 .google.cloud.dataform.v1.Target\x12\x11\x0A\x09file_path\x18\x03 \x01(\x09\x12#\x0A\x11internal_metadata\x18\x0A \x01(\x09B\x03\xE0A\x03H\x01\x88\x01\x01\x1A\xAE\x0B\x0A\x08Relation\x12<\x0A\x12dependency_targets\x18\x01 \x03(\x0B2 .google.cloud.dataform.v1.Target\x12\x10\x0A\x08disabled\x18\x02 \x01(\x08\x12\x0C\x0A\x04tags\x18\x03 \x03(\x09\x12I\x0A\x13relation_descriptor\x18\x04 \x01(\x0B2,.google.cloud.dataform.v1.RelationDescriptor\x12^\x0A\x0Drelation_type\x18\x05 \x01(\x0E2G.google.cloud.dataform.v1.CompilationResultAction.Relation.RelationType\x12\x14\x0A\x0Cselect_query\x18\x06 \x01(\x09\x12\x16\x0A\x0Epre_operations\x18\x07 \x03(\x09\x12\x17\x0A\x0Fpost_operations\x18\x08 \x03(\x09\x12s\x0A\x18incremental_table_config\x18\x09 \x01(\x0B2Q.google.cloud.dataform.v1.CompilationResultAction.Relation.IncrementalTableConfig\x12\x1C\x0A\x14partition_expression\x18\x0A \x01(\x09\x12\x1B\x0A\x13cluster_expressions\x18\x0B \x03(\x09\x12!\x0A\x19partition_expiration_days\x18\x0C \x01(\x05\x12 \x0A\x18require_partition_filter\x18\x0D \x01(\x08\x12m\x0A\x12additional_options\x18\x0E \x03(\x0B2Q.google.cloud.dataform.v1.CompilationResultAction.Relation.AdditionalOptionsEntry\x12\x17\x0A\x0Aconnection\x18\x0F \x01(\x09B\x03\xE0A\x01\x12a\x0A\x0Ctable_format\x18\x10 \x01(\x0E2F.google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormatB\x03\xE0A\x01\x12_\x0A\x0Bfile_format\x18\x11 \x01(\x0E2E.google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormatB\x03\xE0A\x01\x12\x18\x0A\x0Bstorage_uri\x18\x12 \x01(\x09B\x03\xE0A\x01\x1A\xD8\x01\x0A\x16IncrementalTableConfig\x12 \x0A\x18incremental_select_query\x18\x01 \x01(\x09\x12\x18\x0A\x10refresh_disabled\x18\x02 \x01(\x08\x12\x18\x0A\x10unique_key_parts\x18\x03 \x03(\x09\x12\x1F\x0A\x17update_partition_filter\x18\x04 \x01(\x09\x12\"\x0A\x1Aincremental_pre_operations\x18\x05 \x03(\x09\x12#\x0A\x1Bincremental_post_operations\x18\x06 \x03(\x09\x1A8\x0A\x16AdditionalOptionsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"p\x0A\x0CRelationType\x12\x1D\x0A\x19RELATION_TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05TABLE\x10\x01\x12\x08\x0A\x04VIEW\x10\x02\x12\x15\x0A\x11INCREMENTAL_TABLE\x10\x03\x12\x15\x0A\x11MATERIALIZED_VIEW\x10\x04\"8\x0A\x0BTableFormat\x12\x1C\x0A\x18TABLE_FORMAT_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07ICEBERG\x10\x01\"6\x0A\x0AFileFormat\x12\x1B\x0A\x17FILE_FORMAT_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07PARQUET\x10\x01\x1A\xDA\x01\x0A\x0AOperations\x12<\x0A\x12dependency_targets\x18\x01 \x03(\x0B2 .google.cloud.dataform.v1.Target\x12\x10\x0A\x08disabled\x18\x02 \x01(\x08\x12\x0C\x0A\x04tags\x18\x03 \x03(\x09\x12I\x0A\x13relation_descriptor\x18\x06 \x01(\x0B2,.google.cloud.dataform.v1.RelationDescriptor\x12\x0F\x0A\x07queries\x18\x04 \x03(\x09\x12\x12\x0A\x0Ahas_output\x18\x05 \x01(\x08\x1A\x83\x02\x0A\x09Assertion\x12<\x0A\x12dependency_targets\x18\x01 \x03(\x0B2 .google.cloud.dataform.v1.Target\x127\x0A\x0Dparent_action\x18\x05 \x01(\x0B2 .google.cloud.dataform.v1.Target\x12\x10\x0A\x08disabled\x18\x02 \x01(\x08\x12\x0C\x0A\x04tags\x18\x03 \x03(\x09\x12\x14\x0A\x0Cselect_query\x18\x04 \x01(\x09\x12I\x0A\x13relation_descriptor\x18\x06 \x01(\x0B2,.google.cloud.dataform.v1.RelationDescriptor\x1AX\x0A\x0BDeclaration\x12I\x0A\x13relation_descriptor\x18\x01 \x01(\x0B2,.google.cloud.dataform.v1.RelationDescriptor\x1Az\x0A\x08Notebook\x12<\x0A\x12dependency_targets\x18\x01 \x03(\x0B2 .google.cloud.dataform.v1.Target\x12\x10\x0A\x08disabled\x18\x02 \x01(\x08\x12\x10\x0A\x08contents\x18\x03 \x01(\x09\x12\x0C\x0A\x04tags\x18\x04 \x03(\x09\x1A\xA7\x04\x0A\x0FDataPreparation\x12\x17\x0A\x0Dcontents_yaml\x18\x05 \x01(\x09H\x00\x12g\x0A\x0Ccontents_sql\x18\x06 \x01(\x0B2O.google.cloud.dataform.v1.CompilationResultAction.DataPreparation.SqlDefinitionH\x00\x12<\x0A\x12dependency_targets\x18\x01 \x03(\x0B2 .google.cloud.dataform.v1.Target\x12\x10\x0A\x08disabled\x18\x02 \x01(\x08\x12\x0C\x0A\x04tags\x18\x04 \x03(\x09\x1A\xCD\x01\x0A\x0DSqlDefinition\x12\x0D\x0A\x05query\x18\x01 \x01(\x09\x12a\x0A\x0Berror_table\x18\x02 \x01(\x0B2L.google.cloud.dataform.v1.CompilationResultAction.DataPreparation.ErrorTable\x12J\x0A\x04load\x18\x03 \x01(\x0B2<.google.cloud.dataform.v1.CompilationResultAction.LoadConfig\x1AV\x0A\x0AErrorTable\x120\x0A\x06target\x18\x01 \x01(\x0B2 .google.cloud.dataform.v1.Target\x12\x16\x0A\x0Eretention_days\x18\x02 \x01(\x05B\x0C\x0A\x0Adefinition\x1A\xF0\x02\x0A\x0ALoadConfig\x12S\x0A\x07replace\x18\x01 \x01(\x0B2@.google.cloud.dataform.v1.CompilationResultAction.SimpleLoadModeH\x00\x12R\x0A\x06append\x18\x02 \x01(\x0B2@.google.cloud.dataform.v1.CompilationResultAction.SimpleLoadModeH\x00\x12X\x0A\x07maximum\x18\x03 \x01(\x0B2E.google.cloud.dataform.v1.CompilationResultAction.IncrementalLoadModeH\x00\x12W\x0A\x06unique\x18\x04 \x01(\x0B2E.google.cloud.dataform.v1.CompilationResultAction.IncrementalLoadModeH\x00B\x06\x0A\x04mode\x1A\x10\x0A\x0ESimpleLoadMode\x1A%\x0A\x13IncrementalLoadMode\x12\x0E\x0A\x06column\x18\x01 \x01(\x09B\x11\x0A\x0Fcompiled_objectB\x14\x0A\x12_internal_metadata\"\xAD\x01\x0A\$QueryCompilationResultActionsRequest\x12?\x0A\x04name\x18\x01 \x01(\x09B1\xE0A\x02\xFAA+\x0A)dataform.googleapis.com/CompilationResult\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\"\x97\x01\x0A%QueryCompilationResultActionsResponse\x12U\x0A\x1Acompilation_result_actions\x18\x01 \x03(\x0B21.google.cloud.dataform.v1.CompilationResultAction\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xAD\x07\x0A\x0EWorkflowConfig\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12E\x0A\x0Erelease_config\x18\x02 \x01(\x09B-\xE0A\x02\xFAA'\x0A%dataform.googleapis.com/ReleaseConfig\x12J\x0A\x11invocation_config\x18\x03 \x01(\x0B2*.google.cloud.dataform.v1.InvocationConfigB\x03\xE0A\x01\x12\x1A\x0A\x0Dcron_schedule\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09time_zone\x18\x07 \x01(\x09B\x03\xE0A\x01\x12r\x0A\"recent_scheduled_execution_records\x18\x05 \x03(\x0B2A.google.cloud.dataform.v1.WorkflowConfig.ScheduledExecutionRecordB\x03\xE0A\x03\x12\x15\x0A\x08disabled\x18\x08 \x01(\x08B\x03\xE0A\x01\x124\x0A\x0Bcreate_time\x18\x09 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x0A \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12#\x0A\x11internal_metadata\x18\x0B \x01(\x09B\x03\xE0A\x03H\x00\x88\x01\x01\x1A\xD9\x01\x0A\x18ScheduledExecutionRecord\x12N\x0A\x13workflow_invocation\x18\x02 \x01(\x09B/\xFAA,\x0A*dataform.googleapis.com/WorkflowInvocationH\x00\x12*\x0A\x0Cerror_status\x18\x03 \x01(\x0B2\x12.google.rpc.StatusH\x00\x127\x0A\x0Eexecution_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03B\x08\x0A\x06result:\xB2\x01\xEAA\xAE\x01\x0A&dataform.googleapis.com/WorkflowConfig\x12cprojects/{project}/locations/{location}/repositories/{repository}/workflowConfigs/{workflow_config}*\x0FworkflowConfigs2\x0EworkflowConfigB\x14\x0A\x12_internal_metadata\"\xDC\x03\x0A\x10InvocationConfig\x12?\x0A\x10included_targets\x18\x01 \x03(\x0B2 .google.cloud.dataform.v1.TargetB\x03\xE0A\x01\x12\x1A\x0A\x0Dincluded_tags\x18\x02 \x03(\x09B\x03\xE0A\x01\x12-\x0A transitive_dependencies_included\x18\x03 \x01(\x08B\x03\xE0A\x01\x12+\x0A\x1Etransitive_dependents_included\x18\x04 \x01(\x08B\x03\xE0A\x01\x125\x0A(fully_refresh_incremental_tables_enabled\x18\x05 \x01(\x08B\x03\xE0A\x01\x12\x1C\x0A\x0Fservice_account\x18\x06 \x01(\x09B\x03\xE0A\x01\x12Z\x0A\x0Equery_priority\x18\x09 \x01(\x0E28.google.cloud.dataform.v1.InvocationConfig.QueryPriorityB\x03\xE0A\x01H\x00\x88\x01\x01\"K\x0A\x0DQueryPriority\x12\x1E\x0A\x1AQUERY_PRIORITY_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BINTERACTIVE\x10\x01\x12\x09\x0A\x05BATCH\x10\x02B\x11\x0A\x0F_query_priority\"\x89\x01\x0A\x1AListWorkflowConfigsRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"\x8F\x01\x0A\x1BListWorkflowConfigsResponse\x12B\x0A\x10workflow_configs\x18\x01 \x03(\x0B2(.google.cloud.dataform.v1.WorkflowConfig\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x13\x0A\x0Bunreachable\x18\x03 \x03(\x09\"X\x0A\x18GetWorkflowConfigRequest\x12<\x0A\x04name\x18\x01 \x01(\x09B.\xE0A\x02\xFAA(\x0A&dataform.googleapis.com/WorkflowConfig\"\xC2\x01\x0A\x1BCreateWorkflowConfigRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12F\x0A\x0Fworkflow_config\x18\x02 \x01(\x0B2(.google.cloud.dataform.v1.WorkflowConfigB\x03\xE0A\x02\x12\x1F\x0A\x12workflow_config_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"\x9B\x01\x0A\x1BUpdateWorkflowConfigRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12F\x0A\x0Fworkflow_config\x18\x02 \x01(\x0B2(.google.cloud.dataform.v1.WorkflowConfigB\x03\xE0A\x02\"[\x0A\x1BDeleteWorkflowConfigRequest\x12<\x0A\x04name\x18\x01 \x01(\x09B.\xE0A\x02\xFAA(\x0A&dataform.googleapis.com/WorkflowConfig\"\x94\x08\x0A\x12WorkflowInvocation\x12O\x0A\x12compilation_result\x18\x02 \x01(\x09B1\xE0A\x05\xFAA+\x0A)dataform.googleapis.com/CompilationResultH\x00\x12I\x0A\x0Fworkflow_config\x18\x06 \x01(\x09B.\xE0A\x05\xFAA(\x0A&dataform.googleapis.com/WorkflowConfigH\x00\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12J\x0A\x11invocation_config\x18\x03 \x01(\x0B2*.google.cloud.dataform.v1.InvocationConfigB\x03\xE0A\x05\x12F\x0A\x05state\x18\x04 \x01(\x0E22.google.cloud.dataform.v1.WorkflowInvocation.StateB\x03\xE0A\x03\x125\x0A\x11invocation_timing\x18\x05 \x01(\x0B2\x15.google.type.IntervalB\x03\xE0A\x03\x12V\x0A\x1Bresolved_compilation_result\x18\x07 \x01(\x09B1\xE0A\x03\xFAA+\x0A)dataform.googleapis.com/CompilationResult\x12Q\x0A\x15data_encryption_state\x18\x08 \x01(\x0B2-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xE0A\x03\x12#\x0A\x11internal_metadata\x18\x09 \x01(\x09B\x03\xE0A\x03H\x01\x88\x01\x01\x12Y\x0A\x19private_resource_metadata\x18\x0A \x01(\x0B21.google.cloud.dataform.v1.PrivateResourceMetadataB\x03\xE0A\x03\"d\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07RUNNING\x10\x01\x12\x0D\x0A\x09SUCCEEDED\x10\x02\x12\x0D\x0A\x09CANCELLED\x10\x03\x12\x0A\x0A\x06FAILED\x10\x04\x12\x0D\x0A\x09CANCELING\x10\x05:\xC6\x01\xEAA\xC2\x01\x0A*dataform.googleapis.com/WorkflowInvocation\x12kprojects/{project}/locations/{location}/repositories/{repository}/workflowInvocations/{workflow_invocation}*\x13workflowInvocations2\x12workflowInvocationB\x14\x0A\x12compilation_sourceB\x14\x0A\x12_internal_metadata\"\xB9\x01\x0A\x1EListWorkflowInvocationsRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\x9B\x01\x0A\x1FListWorkflowInvocationsResponse\x12J\x0A\x14workflow_invocations\x18\x01 \x03(\x0B2,.google.cloud.dataform.v1.WorkflowInvocation\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x13\x0A\x0Bunreachable\x18\x03 \x03(\x09\"`\x0A\x1CGetWorkflowInvocationRequest\x12@\x0A\x04name\x18\x01 \x01(\x09B2\xE0A\x02\xFAA,\x0A*dataform.googleapis.com/WorkflowInvocation\"\xAD\x01\x0A\x1FCreateWorkflowInvocationRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12N\x0A\x13workflow_invocation\x18\x02 \x01(\x0B2,.google.cloud.dataform.v1.WorkflowInvocationB\x03\xE0A\x02\"c\x0A\x1FDeleteWorkflowInvocationRequest\x12@\x0A\x04name\x18\x01 \x01(\x09B2\xE0A\x02\xFAA,\x0A*dataform.googleapis.com/WorkflowInvocation\"c\x0A\x1FCancelWorkflowInvocationRequest\x12@\x0A\x04name\x18\x01 \x01(\x09B2\xE0A\x02\xFAA,\x0A*dataform.googleapis.com/WorkflowInvocation\"\"\x0A CancelWorkflowInvocationResponse\"\x9B\x10\x0A\x18WorkflowInvocationAction\x12a\x0A\x0Fbigquery_action\x18\x06 \x01(\x0B2A.google.cloud.dataform.v1.WorkflowInvocationAction.BigQueryActionB\x03\xE0A\x03H\x00\x12a\x0A\x0Fnotebook_action\x18\x08 \x01(\x0B2A.google.cloud.dataform.v1.WorkflowInvocationAction.NotebookActionB\x03\xE0A\x03H\x00\x12p\x0A\x17data_preparation_action\x18\x09 \x01(\x0B2H.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationActionB\x03\xE0A\x03H\x00\x125\x0A\x06target\x18\x01 \x01(\x0B2 .google.cloud.dataform.v1.TargetB\x03\xE0A\x03\x12?\x0A\x10canonical_target\x18\x02 \x01(\x0B2 .google.cloud.dataform.v1.TargetB\x03\xE0A\x03\x12L\x0A\x05state\x18\x04 \x01(\x0E28.google.cloud.dataform.v1.WorkflowInvocationAction.StateB\x03\xE0A\x03\x12\x1B\x0A\x0Efailure_reason\x18\x07 \x01(\x09B\x03\xE0A\x03\x125\x0A\x11invocation_timing\x18\x05 \x01(\x0B2\x15.google.type.IntervalB\x03\xE0A\x03\x12#\x0A\x11internal_metadata\x18\x0A \x01(\x09B\x03\xE0A\x03H\x01\x88\x01\x01\x1A>\x0A\x0EBigQueryAction\x12\x17\x0A\x0Asql_script\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x13\x0A\x06job_id\x18\x02 \x01(\x09B\x03\xE0A\x03\x1A<\x0A\x0ENotebookAction\x12\x15\x0A\x08contents\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x13\x0A\x06job_id\x18\x02 \x01(\x09B\x03\xE0A\x03\x1A\x81\x09\x0A\x15DataPreparationAction\x12\x1C\x0A\x0Dcontents_yaml\x18\x02 \x01(\x09B\x03\xE0A\x03H\x00\x12t\x0A\x0Ccontents_sql\x18\x06 \x01(\x0B2\\.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSqlDefinitionH\x00\x12\x1A\x0A\x0Dgenerated_sql\x18\x03 \x01(\x09B\x03\xE0A\x03\x12\x13\x0A\x06job_id\x18\x04 \x01(\x09B\x03\xE0A\x03\x1A\x84\x02\x0A\x13ActionSqlDefinition\x12\x0D\x0A\x05query\x18\x01 \x01(\x09\x12n\x0A\x0Berror_table\x18\x02 \x01(\x0B2Y.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionErrorTable\x12n\x0A\x0Bload_config\x18\x03 \x01(\x0B2Y.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionLoadConfig\x1A\\\x0A\x10ActionErrorTable\x120\x0A\x06target\x18\x01 \x01(\x0B2 .google.cloud.dataform.v1.Target\x12\x16\x0A\x0Eretention_days\x18\x02 \x01(\x05\x1A\xEA\x03\x0A\x10ActionLoadConfig\x12p\x0A\x07replace\x18\x01 \x01(\x0B2].google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadModeH\x00\x12o\x0A\x06append\x18\x02 \x01(\x0B2].google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadModeH\x00\x12u\x0A\x07maximum\x18\x03 \x01(\x0B2b.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadModeH\x00\x12t\x0A\x06unique\x18\x04 \x01(\x0B2b.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadModeH\x00B\x06\x0A\x04mode\x1A\x16\x0A\x14ActionSimpleLoadMode\x1A+\x0A\x19ActionIncrementalLoadMode\x12\x0E\x0A\x06column\x18\x01 \x01(\x09B\x0C\x0A\x0Adefinition\"f\x0A\x05State\x12\x0B\x0A\x07PENDING\x10\x00\x12\x0B\x0A\x07RUNNING\x10\x01\x12\x0B\x0A\x07SKIPPED\x10\x02\x12\x0C\x0A\x08DISABLED\x10\x03\x12\x0D\x0A\x09SUCCEEDED\x10\x04\x12\x0D\x0A\x09CANCELLED\x10\x05\x12\x0A\x0A\x06FAILED\x10\x06B\x08\x0A\x06actionB\x14\x0A\x12_internal_metadata\"\x9A\x01\x0A%QueryWorkflowInvocationActionsRequest\x12@\x0A\x04name\x18\x01 \x01(\x09B2\xE0A\x02\xFAA,\x0A*dataform.googleapis.com/WorkflowInvocation\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"\x9A\x01\x0A&QueryWorkflowInvocationActionsResponse\x12W\x0A\x1Bworkflow_invocation_actions\x18\x01 \x03(\x0B22.google.cloud.dataform.v1.WorkflowInvocationAction\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x85\x02\x0A\x06Config\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12G\x0A\x14default_kms_key_name\x18\x02 \x01(\x09B)\xE0A\x01\xFAA#\x0A!cloudkms.googleapis.com/CryptoKey\x12#\x0A\x11internal_metadata\x18\x07 \x01(\x09B\x03\xE0A\x03H\x00\x88\x01\x01:d\xEAAa\x0A\x1Edataform.googleapis.com/Config\x12.projects/{project}/locations/{location}/config*\x07configs2\x06configB\x14\x0A\x12_internal_metadata\"H\x0A\x10GetConfigRequest\x124\x0A\x04name\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Edataform.googleapis.com/Config\"\x82\x01\x0A\x13UpdateConfigRequest\x125\x0A\x06config\x18\x01 \x01(\x0B2 .google.cloud.dataform.v1.ConfigB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\"\xCF\x03\x0A\x06Folder\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x1E\x0A\x11containing_folder\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x1D\x0A\x10team_folder_name\x18\x04 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12#\x0A\x11internal_metadata\x18\x07 \x01(\x09B\x03\xE0A\x03H\x00\x88\x01\x01\x12'\x0A\x15creator_iam_principal\x18\x08 \x01(\x09B\x03\xE0A\x03H\x01\x88\x01\x01:n\xEAAk\x0A\x1Edataform.googleapis.com/Folder\x128projects/{project}/locations/{location}/folders/{folder}*\x07folders2\x06folderB\x14\x0A\x12_internal_metadataB\x18\x0A\x16_creator_iam_principal\"\x87\x01\x0A\x13CreateFolderRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x125\x0A\x06folder\x18\x02 \x01(\x0B2 .google.cloud.dataform.v1.FolderB\x03\xE0A\x02\"\x9C\x01\x0A\x11MoveFolderRequest\x124\x0A\x04name\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Edataform.googleapis.com/Folder\x12/\x0A\x1Ddestination_containing_folder\x18\x02 \x01(\x09B\x03\xE0A\x01H\x00\x88\x01\x01B \x0A\x1E_destination_containing_folder\"H\x0A\x10GetFolderRequest\x124\x0A\x04name\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Edataform.googleapis.com/Folder\"\x82\x01\x0A\x13UpdateFolderRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x125\x0A\x06folder\x18\x02 \x01(\x0B2 .google.cloud.dataform.v1.FolderB\x03\xE0A\x02\"K\x0A\x13DeleteFolderRequest\x124\x0A\x04name\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Edataform.googleapis.com/Folder\"c\x0A\x17DeleteFolderTreeRequest\x124\x0A\x04name\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Edataform.googleapis.com/Folder\x12\x12\x0A\x05force\x18\x02 \x01(\x08B\x03\xE0A\x01\"k\x0A\x1BDeleteTeamFolderTreeRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/TeamFolder\x12\x12\x0A\x05force\x18\x02 \x01(\x08B\x03\xE0A\x01\"\xE2\x02\x0A\x18DeleteFolderTreeMetadata\x124\x0A\x0Bcreate_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x121\x0A\x08end_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x13\x0A\x06target\x18\x03 \x01(\x09B\x03\xE0A\x03\x12L\x0A\x05state\x18\x04 \x01(\x0E28.google.cloud.dataform.v1.DeleteFolderTreeMetadata.StateB\x03\xE0A\x03\x12\x1D\x0A\x10percent_complete\x18\x05 \x01(\x05B\x03\xE0A\x03\"[\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BINITIALIZED\x10\x01\x12\x0F\x0A\x0BIN_PROGRESS\x10\x02\x12\x0D\x0A\x09SUCCEEDED\x10\x03\x12\x0A\x0A\x06FAILED\x10\x04\"\xB1\x01\x0A\x1AQueryFolderContentsRequest\x126\x0A\x06folder\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Edataform.googleapis.com/Folder\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\xA3\x02\x0A\x1BQueryFolderContentsResponse\x12Z\x0A\x07entries\x18\x01 \x03(\x0B2I.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x1A\x8E\x01\x0A\x13FolderContentsEntry\x122\x0A\x06folder\x18\x01 \x01(\x0B2 .google.cloud.dataform.v1.FolderH\x00\x12:\x0A\x0Arepository\x18\x02 \x01(\x0B2\$.google.cloud.dataform.v1.RepositoryH\x00B\x07\x0A\x05entry\"\xB8\x01\x0A\x1CQueryUserRootContentsRequest\x12;\x0A\x08location\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\xA3\x02\x0A\x1DQueryUserRootContentsResponse\x12Z\x0A\x07entries\x18\x01 \x03(\x0B2I.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x1A\x8C\x01\x0A\x11RootContentsEntry\x122\x0A\x06folder\x18\x01 \x01(\x0B2 .google.cloud.dataform.v1.FolderH\x00\x12:\x0A\x0Arepository\x18\x02 \x01(\x0B2\$.google.cloud.dataform.v1.RepositoryH\x00B\x07\x0A\x05entry\"\xAB\x03\x0A\x0ATeamFolder\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x02\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12#\x0A\x11internal_metadata\x18\x05 \x01(\x09B\x03\xE0A\x03H\x00\x88\x01\x01\x12'\x0A\x15creator_iam_principal\x18\x06 \x01(\x09B\x03\xE0A\x03H\x01\x88\x01\x01:\x84\x01\xEAA\x80\x01\x0A\"dataform.googleapis.com/TeamFolder\x12Aprojects/{project}/locations/{location}/teamFolders/{team_folder}*\x0BteamFolders2\x0AteamFolderB\x14\x0A\x12_internal_metadataB\x18\x0A\x16_creator_iam_principal\"\x94\x01\x0A\x17CreateTeamFolderRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12>\x0A\x0Bteam_folder\x18\x02 \x01(\x0B2\$.google.cloud.dataform.v1.TeamFolderB\x03\xE0A\x02\"P\x0A\x14GetTeamFolderRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/TeamFolder\"\x8F\x01\x0A\x17UpdateTeamFolderRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12>\x0A\x0Bteam_folder\x18\x02 \x01(\x0B2\$.google.cloud.dataform.v1.TeamFolderB\x03\xE0A\x02\"S\x0A\x17DeleteTeamFolderRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/TeamFolder\"\xBE\x01\x0A\x1EQueryTeamFolderContentsRequest\x12?\x0A\x0Bteam_folder\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/TeamFolder\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\xB3\x02\x0A\x1FQueryTeamFolderContentsResponse\x12b\x0A\x07entries\x18\x01 \x03(\x0B2Q.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x1A\x92\x01\x0A\x17TeamFolderContentsEntry\x122\x0A\x06folder\x18\x01 \x01(\x0B2 .google.cloud.dataform.v1.FolderH\x00\x12:\x0A\x0Arepository\x18\x02 \x01(\x0B2\$.google.cloud.dataform.v1.RepositoryH\x00B\x07\x0A\x05entry\"\xB4\x01\x0A\x18SearchTeamFoldersRequest\x12;\x0A\x08location\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\xF1\x01\x0A\x19SearchTeamFoldersResponse\x12[\x0A\x07results\x18\x01 \x03(\x0B2J.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x1A^\x0A\x16TeamFolderSearchResult\x12;\x0A\x0Bteam_folder\x18\x02 \x01(\x0B2\$.google.cloud.dataform.v1.TeamFolderH\x00B\x07\x0A\x05entry\"\xCA\x02\x0A\x12MoveFolderMetadata\x124\x0A\x0Bcreate_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x121\x0A\x08end_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x13\x0A\x06target\x18\x03 \x01(\x09B\x03\xE0A\x03\x12A\x0A\x05state\x18\x04 \x01(\x0E22.google.cloud.dataform.v1.MoveFolderMetadata.State\x12\x18\x0A\x10percent_complete\x18\x05 \x01(\x05\"Y\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BINITIALIZED\x10\x01\x12\x0F\x0A\x0BIN_PROGRESS\x10\x02\x12\x0B\x0A\x07SUCCESS\x10\x03\x12\x0A\x0A\x06FAILED\x10\x04\"\xD2\x02\x0A\x16MoveRepositoryMetadata\x124\x0A\x0Bcreate_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x121\x0A\x08end_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x13\x0A\x06target\x18\x03 \x01(\x09B\x03\xE0A\x03\x12E\x0A\x05state\x18\x04 \x01(\x0E26.google.cloud.dataform.v1.MoveRepositoryMetadata.State\x12\x18\x0A\x10percent_complete\x18\x05 \x01(\x05\"Y\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BINITIALIZED\x10\x01\x12\x0F\x0A\x0BIN_PROGRESS\x10\x02\x12\x0B\x0A\x07SUCCESS\x10\x03\x12\x0A\x0A\x06FAILED\x10\x04*\x89\x01\x0A\x15DirectoryContentsView\x12'\x0A#DIRECTORY_CONTENTS_VIEW_UNSPECIFIED\x10\x00\x12!\x0A\x1DDIRECTORY_CONTENTS_VIEW_BASIC\x10\x01\x12\$\x0A DIRECTORY_CONTENTS_VIEW_METADATA\x10\x022\xE3}\x0A\x08Dataform\x12\xA5\x01\x0A\x0DGetTeamFolder\x12..google.cloud.dataform.v1.GetTeamFolderRequest\x1A\$.google.cloud.dataform.v1.TeamFolder\">\xDAA\x04name\x82\xD3\xE4\x93\x021\x12//v1/{name=projects/*/locations/*/teamFolders/*}\x12\xC6\x01\x0A\x10CreateTeamFolder\x121.google.cloud.dataform.v1.CreateTeamFolderRequest\x1A\$.google.cloud.dataform.v1.TeamFolder\"Y\xDAA\x12parent,team_folder\x82\xD3\xE4\x93\x02>\"//v1/{parent=projects/*/locations/*}/teamFolders:\x0Bteam_folder\x12\xD7\x01\x0A\x10UpdateTeamFolder\x121.google.cloud.dataform.v1.UpdateTeamFolderRequest\x1A\$.google.cloud.dataform.v1.TeamFolder\"j\xDAA\x17team_folder,update_mask\x82\xD3\xE4\x93\x02J2;/v1/{team_folder.name=projects/*/locations/*/teamFolders/*}:\x0Bteam_folder\x12\x9D\x01\x0A\x10DeleteTeamFolder\x121.google.cloud.dataform.v1.DeleteTeamFolderRequest\x1A\x16.google.protobuf.Empty\">\xDAA\x04name\x82\xD3\xE4\x93\x021*//v1/{name=projects/*/locations/*/teamFolders/*}\x12\xF5\x01\x0A\x14DeleteTeamFolderTree\x125.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest\x1A\x1D.google.longrunning.Operation\"\x86\x01\xCAA1\x0A\x15google.protobuf.Empty\x12\x18DeleteFolderTreeMetadata\xDAA\x0Aname,force\x82\xD3\xE4\x93\x02?\":/v1/{name=projects/*/locations/*/teamFolders/*}:deleteTree:\x01*\x12\xEA\x01\x0A\x17QueryTeamFolderContents\x128.google.cloud.dataform.v1.QueryTeamFolderContentsRequest\x1A9.google.cloud.dataform.v1.QueryTeamFolderContentsResponse\"Z\xDAA\x0Bteam_folder\x82\xD3\xE4\x93\x02F\x12D/v1/{team_folder=projects/*/locations/*/teamFolders/*}:queryContents\x12\xBE\x01\x0A\x11SearchTeamFolders\x122.google.cloud.dataform.v1.SearchTeamFoldersRequest\x1A3.google.cloud.dataform.v1.SearchTeamFoldersResponse\"@\x82\xD3\xE4\x93\x02:\x128/v1/{location=projects/*/locations/*}/teamFolders:search\x12\x95\x01\x0A\x09GetFolder\x12*.google.cloud.dataform.v1.GetFolderRequest\x1A .google.cloud.dataform.v1.Folder\":\xDAA\x04name\x82\xD3\xE4\x93\x02-\x12+/v1/{name=projects/*/locations/*/folders/*}\x12\xAC\x01\x0A\x0CCreateFolder\x12-.google.cloud.dataform.v1.CreateFolderRequest\x1A .google.cloud.dataform.v1.Folder\"K\xDAA\x0Dparent,folder\x82\xD3\xE4\x93\x025\"+/v1/{parent=projects/*/locations/*}/folders:\x06folder\x12\xB8\x01\x0A\x0CUpdateFolder\x12-.google.cloud.dataform.v1.UpdateFolderRequest\x1A .google.cloud.dataform.v1.Folder\"W\xDAA\x12folder,update_mask\x82\xD3\xE4\x93\x02<22/v1/{folder.name=projects/*/locations/*/folders/*}:\x06folder\x12\x91\x01\x0A\x0CDeleteFolder\x12-.google.cloud.dataform.v1.DeleteFolderRequest\x1A\x16.google.protobuf.Empty\":\xDAA\x04name\x82\xD3\xE4\x93\x02-*+/v1/{name=projects/*/locations/*/folders/*}\x12\xE9\x01\x0A\x10DeleteFolderTree\x121.google.cloud.dataform.v1.DeleteFolderTreeRequest\x1A\x1D.google.longrunning.Operation\"\x82\x01\xCAA1\x0A\x15google.protobuf.Empty\x12\x18DeleteFolderTreeMetadata\xDAA\x0Aname,force\x82\xD3\xE4\x93\x02;\"6/v1/{name=projects/*/locations/*/folders/*}:deleteTree:\x01*\x12\xD6\x01\x0A\x13QueryFolderContents\x124.google.cloud.dataform.v1.QueryFolderContentsRequest\x1A5.google.cloud.dataform.v1.QueryFolderContentsResponse\"R\xDAA\x06folder\x82\xD3\xE4\x93\x02C\x12A/v1/{folder=projects/*/locations/*/folders/*}:queryFolderContents\x12\xD8\x01\x0A\x15QueryUserRootContents\x126.google.cloud.dataform.v1.QueryUserRootContentsRequest\x1A7.google.cloud.dataform.v1.QueryUserRootContentsResponse\"N\xDAA\x08location\x82\xD3\xE4\x93\x02=\x12;/v1/{location=projects/*/locations/*}:queryUserRootContents\x12\xE9\x01\x0A\x0AMoveFolder\x12+.google.cloud.dataform.v1.MoveFolderRequest\x1A\x1D.google.longrunning.Operation\"\x8E\x01\xCAA+\x0A\x15google.protobuf.Empty\x12\x12MoveFolderMetadata\xDAA\"name,destination_containing_folder\x82\xD3\xE4\x93\x025\"0/v1/{name=projects/*/locations/*/folders/*}:move:\x01*\x12\xBC\x01\x0A\x10ListRepositories\x121.google.cloud.dataform.v1.ListRepositoriesRequest\x1A2.google.cloud.dataform.v1.ListRepositoriesResponse\"A\xDAA\x06parent\x82\xD3\xE4\x93\x022\x120/v1/{parent=projects/*/locations/*}/repositories\x12\xA6\x01\x0A\x0DGetRepository\x12..google.cloud.dataform.v1.GetRepositoryRequest\x1A\$.google.cloud.dataform.v1.Repository\"?\xDAA\x04name\x82\xD3\xE4\x93\x022\x120/v1/{name=projects/*/locations/*/repositories/*}\x12\xD3\x01\x0A\x10CreateRepository\x121.google.cloud.dataform.v1.CreateRepositoryRequest\x1A\$.google.cloud.dataform.v1.Repository\"f\xDAA\x1Fparent,repository,repository_id\x82\xD3\xE4\x93\x02>\"0/v1/{parent=projects/*/locations/*}/repositories:\x0Arepository\x12\xD5\x01\x0A\x10UpdateRepository\x121.google.cloud.dataform.v1.UpdateRepositoryRequest\x1A\$.google.cloud.dataform.v1.Repository\"h\xDAA\x16repository,update_mask\x82\xD3\xE4\x93\x02I2;/v1/{repository.name=projects/*/locations/*/repositories/*}:\x0Arepository\x12\x9E\x01\x0A\x10DeleteRepository\x121.google.cloud.dataform.v1.DeleteRepositoryRequest\x1A\x16.google.protobuf.Empty\"?\xDAA\x04name\x82\xD3\xE4\x93\x022*0/v1/{name=projects/*/locations/*/repositories/*}\x12\xFA\x01\x0A\x0EMoveRepository\x12/.google.cloud.dataform.v1.MoveRepositoryRequest\x1A\x1D.google.longrunning.Operation\"\x97\x01\xCAA/\x0A\x15google.protobuf.Empty\x12\x16MoveRepositoryMetadata\xDAA\"name,destination_containing_folder\x82\xD3\xE4\x93\x02:\"5/v1/{name=projects/*/locations/*/repositories/*}:move:\x01*\x12\xD2\x01\x0A\x17CommitRepositoryChanges\x128.google.cloud.dataform.v1.CommitRepositoryChangesRequest\x1A9.google.cloud.dataform.v1.CommitRepositoryChangesResponse\"B\x82\xD3\xE4\x93\x02<\"7/v1/{name=projects/*/locations/*/repositories/*}:commit:\x01*\x12\xC2\x01\x0A\x12ReadRepositoryFile\x123.google.cloud.dataform.v1.ReadRepositoryFileRequest\x1A4.google.cloud.dataform.v1.ReadRepositoryFileResponse\"A\x82\xD3\xE4\x93\x02;\x129/v1/{name=projects/*/locations/*/repositories/*}:readFile\x12\xFA\x01\x0A QueryRepositoryDirectoryContents\x12A.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsRequest\x1AB.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsResponse\"O\x82\xD3\xE4\x93\x02I\x12G/v1/{name=projects/*/locations/*/repositories/*}:queryDirectoryContents\x12\xD2\x01\x0A\x16FetchRepositoryHistory\x127.google.cloud.dataform.v1.FetchRepositoryHistoryRequest\x1A8.google.cloud.dataform.v1.FetchRepositoryHistoryResponse\"E\x82\xD3\xE4\x93\x02?\x12=/v1/{name=projects/*/locations/*/repositories/*}:fetchHistory\x12\x82\x02\x0A\"ComputeRepositoryAccessTokenStatus\x12C.google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusRequest\x1AD.google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusResponse\"Q\x82\xD3\xE4\x93\x02K\x12I/v1/{name=projects/*/locations/*/repositories/*}:computeAccessTokenStatus\x12\xD0\x01\x0A\x13FetchRemoteBranches\x124.google.cloud.dataform.v1.FetchRemoteBranchesRequest\x1A5.google.cloud.dataform.v1.FetchRemoteBranchesResponse\"L\x82\xD3\xE4\x93\x02F\x12D/v1/{name=projects/*/locations/*/repositories/*}:fetchRemoteBranches\x12\xC3\x01\x0A\x0EListWorkspaces\x12/.google.cloud.dataform.v1.ListWorkspacesRequest\x1A0.google.cloud.dataform.v1.ListWorkspacesResponse\"N\xDAA\x06parent\x82\xD3\xE4\x93\x02?\x12=/v1/{parent=projects/*/locations/*/repositories/*}/workspaces\x12\xB0\x01\x0A\x0CGetWorkspace\x12-.google.cloud.dataform.v1.GetWorkspaceRequest\x1A#.google.cloud.dataform.v1.Workspace\"L\xDAA\x04name\x82\xD3\xE4\x93\x02?\x12=/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}\x12\xDA\x01\x0A\x0FCreateWorkspace\x120.google.cloud.dataform.v1.CreateWorkspaceRequest\x1A#.google.cloud.dataform.v1.Workspace\"p\xDAA\x1Dparent,workspace,workspace_id\x82\xD3\xE4\x93\x02J\"=/v1/{parent=projects/*/locations/*/repositories/*}/workspaces:\x09workspace\x12\xA9\x01\x0A\x0FDeleteWorkspace\x120.google.cloud.dataform.v1.DeleteWorkspaceRequest\x1A\x16.google.protobuf.Empty\"L\xDAA\x04name\x82\xD3\xE4\x93\x02?*=/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}\x12\xE1\x01\x0A\x12InstallNpmPackages\x123.google.cloud.dataform.v1.InstallNpmPackagesRequest\x1A4.google.cloud.dataform.v1.InstallNpmPackagesResponse\"`\x82\xD3\xE4\x93\x02Z\"U/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:installNpmPackages:\x01*\x12\xC2\x01\x0A\x0EPullGitCommits\x12/.google.cloud.dataform.v1.PullGitCommitsRequest\x1A0.google.cloud.dataform.v1.PullGitCommitsResponse\"M\x82\xD3\xE4\x93\x02G\"B/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:pull:\x01*\x12\xC2\x01\x0A\x0EPushGitCommits\x12/.google.cloud.dataform.v1.PushGitCommitsRequest\x1A0.google.cloud.dataform.v1.PushGitCommitsResponse\"M\x82\xD3\xE4\x93\x02G\"B/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:push:\x01*\x12\xE1\x01\x0A\x14FetchFileGitStatuses\x125.google.cloud.dataform.v1.FetchFileGitStatusesRequest\x1A6.google.cloud.dataform.v1.FetchFileGitStatusesResponse\"Z\x82\xD3\xE4\x93\x02T\x12R/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:fetchFileGitStatuses\x12\xDD\x01\x0A\x13FetchGitAheadBehind\x124.google.cloud.dataform.v1.FetchGitAheadBehindRequest\x1A5.google.cloud.dataform.v1.FetchGitAheadBehindResponse\"Y\x82\xD3\xE4\x93\x02S\x12Q/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:fetchGitAheadBehind\x12\xDC\x01\x0A\x16CommitWorkspaceChanges\x127.google.cloud.dataform.v1.CommitWorkspaceChangesRequest\x1A8.google.cloud.dataform.v1.CommitWorkspaceChangesResponse\"O\x82\xD3\xE4\x93\x02I\"D/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:commit:\x01*\x12\xD8\x01\x0A\x15ResetWorkspaceChanges\x126.google.cloud.dataform.v1.ResetWorkspaceChangesRequest\x1A7.google.cloud.dataform.v1.ResetWorkspaceChangesResponse\"N\x82\xD3\xE4\x93\x02H\"C/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:reset:\x01*\x12\xCA\x01\x0A\x0DFetchFileDiff\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\x0A\x16QueryDirectoryContents\x127.google.cloud.dataform.v1.QueryDirectoryContentsRequest\x1A8.google.cloud.dataform.v1.QueryDirectoryContentsResponse\"a\x82\xD3\xE4\x93\x02[\x12Y/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:queryDirectoryContents\x12\xC2\x01\x0A\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\x0A\x0DMakeDirectory\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\x0A\x0FRemoveDirectory\x120.google.cloud.dataform.v1.RemoveDirectoryRequest\x1A1.google.cloud.dataform.v1.RemoveDirectoryResponse\"]\x82\xD3\xE4\x93\x02W\"R/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:removeDirectory:\x01*\x12\xCD\x01\x0A\x0DMoveDirectory\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\x0A\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\x0A\x0ARemoveFile\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\x0A\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\x0A\x09WriteFile\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\x0A\x12ListReleaseConfigs\x123.google.cloud.dataform.v1.ListReleaseConfigsRequest\x1A4.google.cloud.dataform.v1.ListReleaseConfigsResponse\"R\xDAA\x06parent\x82\xD3\xE4\x93\x02C\x12A/v1/{parent=projects/*/locations/*/repositories/*}/releaseConfigs\x12\xC0\x01\x0A\x10GetReleaseConfig\x121.google.cloud.dataform.v1.GetReleaseConfigRequest\x1A'.google.cloud.dataform.v1.ReleaseConfig\"P\xDAA\x04name\x82\xD3\xE4\x93\x02C\x12A/v1/{name=projects/*/locations/*/repositories/*/releaseConfigs/*}\x12\xFA\x01\x0A\x13CreateReleaseConfig\x124.google.cloud.dataform.v1.CreateReleaseConfigRequest\x1A'.google.cloud.dataform.v1.ReleaseConfig\"\x83\x01\xDAA'parent,release_config,release_config_id\x82\xD3\xE4\x93\x02S\"A/v1/{parent=projects/*/locations/*/repositories/*}/releaseConfigs:\x0Erelease_config\x12\xFC\x01\x0A\x13UpdateReleaseConfig\x124.google.cloud.dataform.v1.UpdateReleaseConfigRequest\x1A'.google.cloud.dataform.v1.ReleaseConfig\"\x85\x01\xDAA\x1Arelease_config,update_mask\x82\xD3\xE4\x93\x02b2P/v1/{release_config.name=projects/*/locations/*/repositories/*/releaseConfigs/*}:\x0Erelease_config\x12\xB5\x01\x0A\x13DeleteReleaseConfig\x124.google.cloud.dataform.v1.DeleteReleaseConfigRequest\x1A\x16.google.protobuf.Empty\"P\xDAA\x04name\x82\xD3\xE4\x93\x02C*A/v1/{name=projects/*/locations/*/repositories/*/releaseConfigs/*}\x12\xE3\x01\x0A\x16ListCompilationResults\x127.google.cloud.dataform.v1.ListCompilationResultsRequest\x1A8.google.cloud.dataform.v1.ListCompilationResultsResponse\"V\xDAA\x06parent\x82\xD3\xE4\x93\x02G\x12E/v1/{parent=projects/*/locations/*/repositories/*}/compilationResults\x12\xD0\x01\x0A\x14GetCompilationResult\x125.google.cloud.dataform.v1.GetCompilationResultRequest\x1A+.google.cloud.dataform.v1.CompilationResult\"T\xDAA\x04name\x82\xD3\xE4\x93\x02G\x12E/v1/{name=projects/*/locations/*/repositories/*/compilationResults/*}\x12\xFF\x01\x0A\x17CreateCompilationResult\x128.google.cloud.dataform.v1.CreateCompilationResultRequest\x1A+.google.cloud.dataform.v1.CompilationResult\"}\xDAA\x19parent,compilation_result\x82\xD3\xE4\x93\x02[\"E/v1/{parent=projects/*/locations/*/repositories/*}/compilationResults:\x12compilation_result\x12\xF5\x01\x0A\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\x0A\x13ListWorkflowConfigs\x124.google.cloud.dataform.v1.ListWorkflowConfigsRequest\x1A5.google.cloud.dataform.v1.ListWorkflowConfigsResponse\"S\xDAA\x06parent\x82\xD3\xE4\x93\x02D\x12B/v1/{parent=projects/*/locations/*/repositories/*}/workflowConfigs\x12\xC4\x01\x0A\x11GetWorkflowConfig\x122.google.cloud.dataform.v1.GetWorkflowConfigRequest\x1A(.google.cloud.dataform.v1.WorkflowConfig\"Q\xDAA\x04name\x82\xD3\xE4\x93\x02D\x12B/v1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}\x12\x81\x02\x0A\x14CreateWorkflowConfig\x125.google.cloud.dataform.v1.CreateWorkflowConfigRequest\x1A(.google.cloud.dataform.v1.WorkflowConfig\"\x87\x01\xDAA)parent,workflow_config,workflow_config_id\x82\xD3\xE4\x93\x02U\"B/v1/{parent=projects/*/locations/*/repositories/*}/workflowConfigs:\x0Fworkflow_config\x12\x83\x02\x0A\x14UpdateWorkflowConfig\x125.google.cloud.dataform.v1.UpdateWorkflowConfigRequest\x1A(.google.cloud.dataform.v1.WorkflowConfig\"\x89\x01\xDAA\x1Bworkflow_config,update_mask\x82\xD3\xE4\x93\x02e2R/v1/{workflow_config.name=projects/*/locations/*/repositories/*/workflowConfigs/*}:\x0Fworkflow_config\x12\xB8\x01\x0A\x14DeleteWorkflowConfig\x125.google.cloud.dataform.v1.DeleteWorkflowConfigRequest\x1A\x16.google.protobuf.Empty\"Q\xDAA\x04name\x82\xD3\xE4\x93\x02D*B/v1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}\x12\xE7\x01\x0A\x17ListWorkflowInvocations\x128.google.cloud.dataform.v1.ListWorkflowInvocationsRequest\x1A9.google.cloud.dataform.v1.ListWorkflowInvocationsResponse\"W\xDAA\x06parent\x82\xD3\xE4\x93\x02H\x12F/v1/{parent=projects/*/locations/*/repositories/*}/workflowInvocations\x12\xD4\x01\x0A\x15GetWorkflowInvocation\x126.google.cloud.dataform.v1.GetWorkflowInvocationRequest\x1A,.google.cloud.dataform.v1.WorkflowInvocation\"U\xDAA\x04name\x82\xD3\xE4\x93\x02H\x12F/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}\x12\x86\x02\x0A\x18CreateWorkflowInvocation\x129.google.cloud.dataform.v1.CreateWorkflowInvocationRequest\x1A,.google.cloud.dataform.v1.WorkflowInvocation\"\x80\x01\xDAA\x1Aparent,workflow_invocation\x82\xD3\xE4\x93\x02]\"F/v1/{parent=projects/*/locations/*/repositories/*}/workflowInvocations:\x13workflow_invocation\x12\xC4\x01\x0A\x18DeleteWorkflowInvocation\x129.google.cloud.dataform.v1.DeleteWorkflowInvocationRequest\x1A\x16.google.protobuf.Empty\"U\xDAA\x04name\x82\xD3\xE4\x93\x02H*F/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}\x12\xEB\x01\x0A\x18CancelWorkflowInvocation\x129.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\x0A\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\x0A\x09GetConfig\x12*.google.cloud.dataform.v1.GetConfigRequest\x1A .google.cloud.dataform.v1.Config\"7\xDAA\x04name\x82\xD3\xE4\x93\x02*\x12(/v1/{name=projects/*/locations/*/config}\x12\xB5\x01\x0A\x0CUpdateConfig\x12-.google.cloud.dataform.v1.UpdateConfigRequest\x1A .google.cloud.dataform.v1.Config\"T\xDAA\x12config,update_mask\x82\xD3\xE4\x93\x0292//v1/{config.name=projects/*/locations/*/config}:\x06config\x12\xF7\x02\x0A\x0CGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1A\x15.google.iam.v1.Policy\"\xAB\x02\xDAA\x08resource\x82\xD3\xE4\x93\x02\x99\x02\x12A/v1/{resource=projects/*/locations/*/repositories/*}:getIamPolicyZP\x12N/v1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:getIamPolicyZ>\x12google.cloud.dataform.v1.CancelWorkflowInvocationRequest + */ +class CancelWorkflowInvocationRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workflow invocation resource's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The workflow invocation resource's name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workflow invocation resource's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The workflow invocation resource's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CancelWorkflowInvocationResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CancelWorkflowInvocationResponse.php new file mode 100644 index 000000000000..14ce7efc8dd7 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CancelWorkflowInvocationResponse.php @@ -0,0 +1,33 @@ +google.cloud.dataform.v1.CancelWorkflowInvocationResponse + */ +class CancelWorkflowInvocationResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CodeCompilationConfig.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CodeCompilationConfig.php new file mode 100644 index 000000000000..6996133b6c03 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CodeCompilationConfig.php @@ -0,0 +1,403 @@ +google.cloud.dataform.v1.CodeCompilationConfig + */ +class CodeCompilationConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The default database (Google Cloud project ID). + * + * Generated from protobuf field string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $default_database = ''; + /** + * Optional. The default schema (BigQuery dataset ID). + * + * Generated from protobuf field string default_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $default_schema = ''; + /** + * 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. + * + * Generated from protobuf field string default_location = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $default_location = ''; + /** + * Optional. The default schema (BigQuery dataset ID) for assertions. + * + * Generated from protobuf field string assertion_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $assertion_schema = ''; + /** + * Optional. User-defined variables that are made available to project code + * during compilation. + * + * Generated from protobuf field map vars = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $vars; + /** + * Optional. The suffix that should be appended to all database (Google Cloud + * project ID) names. + * + * Generated from protobuf field string database_suffix = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $database_suffix = ''; + /** + * Optional. The suffix that should be appended to all schema (BigQuery + * dataset ID) names. + * + * Generated from protobuf field string schema_suffix = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $schema_suffix = ''; + /** + * Optional. The prefix that should be prepended to all table names. + * + * Generated from protobuf field string table_prefix = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $table_prefix = ''; + /** + * Optional. The prefix to prepend to built-in assertion names. + * + * Generated from protobuf field string builtin_assertion_name_prefix = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $builtin_assertion_name_prefix = ''; + /** + * Optional. The default notebook runtime options. + * + * Generated from protobuf field .google.cloud.dataform.v1.NotebookRuntimeOptions default_notebook_runtime_options = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $default_notebook_runtime_options = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $default_database + * Optional. The default database (Google Cloud project ID). + * @type string $default_schema + * Optional. The default schema (BigQuery dataset ID). + * @type string $default_location + * 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. + * @type string $assertion_schema + * Optional. The default schema (BigQuery dataset ID) for assertions. + * @type array|\Google\Protobuf\Internal\MapField $vars + * Optional. User-defined variables that are made available to project code + * during compilation. + * @type string $database_suffix + * Optional. The suffix that should be appended to all database (Google Cloud + * project ID) names. + * @type string $schema_suffix + * Optional. The suffix that should be appended to all schema (BigQuery + * dataset ID) names. + * @type string $table_prefix + * Optional. The prefix that should be prepended to all table names. + * @type string $builtin_assertion_name_prefix + * Optional. The prefix to prepend to built-in assertion names. + * @type \Google\Cloud\Dataform\V1\NotebookRuntimeOptions $default_notebook_runtime_options + * Optional. The default notebook runtime options. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The default database (Google Cloud project ID). + * + * Generated from protobuf field string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDefaultDatabase() + { + return $this->default_database; + } + + /** + * Optional. The default database (Google Cloud project ID). + * + * Generated from protobuf field string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDefaultDatabase($var) + { + GPBUtil::checkString($var, True); + $this->default_database = $var; + + return $this; + } + + /** + * Optional. The default schema (BigQuery dataset ID). + * + * Generated from protobuf field string default_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDefaultSchema() + { + return $this->default_schema; + } + + /** + * Optional. The default schema (BigQuery dataset ID). + * + * Generated from protobuf field string default_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDefaultSchema($var) + { + GPBUtil::checkString($var, True); + $this->default_schema = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string default_location = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDefaultLocation() + { + return $this->default_location; + } + + /** + * 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. + * + * Generated from protobuf field string default_location = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDefaultLocation($var) + { + GPBUtil::checkString($var, True); + $this->default_location = $var; + + return $this; + } + + /** + * Optional. The default schema (BigQuery dataset ID) for assertions. + * + * Generated from protobuf field string assertion_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getAssertionSchema() + { + return $this->assertion_schema; + } + + /** + * Optional. The default schema (BigQuery dataset ID) for assertions. + * + * Generated from protobuf field string assertion_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setAssertionSchema($var) + { + GPBUtil::checkString($var, True); + $this->assertion_schema = $var; + + return $this; + } + + /** + * Optional. User-defined variables that are made available to project code + * during compilation. + * + * Generated from protobuf field map vars = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getVars() + { + return $this->vars; + } + + /** + * Optional. User-defined variables that are made available to project code + * during compilation. + * + * Generated from protobuf field map vars = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setVars($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->vars = $arr; + + return $this; + } + + /** + * Optional. The suffix that should be appended to all database (Google Cloud + * project ID) names. + * + * Generated from protobuf field string database_suffix = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDatabaseSuffix() + { + return $this->database_suffix; + } + + /** + * Optional. The suffix that should be appended to all database (Google Cloud + * project ID) names. + * + * Generated from protobuf field string database_suffix = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDatabaseSuffix($var) + { + GPBUtil::checkString($var, True); + $this->database_suffix = $var; + + return $this; + } + + /** + * Optional. The suffix that should be appended to all schema (BigQuery + * dataset ID) names. + * + * Generated from protobuf field string schema_suffix = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getSchemaSuffix() + { + return $this->schema_suffix; + } + + /** + * Optional. The suffix that should be appended to all schema (BigQuery + * dataset ID) names. + * + * Generated from protobuf field string schema_suffix = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setSchemaSuffix($var) + { + GPBUtil::checkString($var, True); + $this->schema_suffix = $var; + + return $this; + } + + /** + * Optional. The prefix that should be prepended to all table names. + * + * Generated from protobuf field string table_prefix = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getTablePrefix() + { + return $this->table_prefix; + } + + /** + * Optional. The prefix that should be prepended to all table names. + * + * Generated from protobuf field string table_prefix = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setTablePrefix($var) + { + GPBUtil::checkString($var, True); + $this->table_prefix = $var; + + return $this; + } + + /** + * Optional. The prefix to prepend to built-in assertion names. + * + * Generated from protobuf field string builtin_assertion_name_prefix = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getBuiltinAssertionNamePrefix() + { + return $this->builtin_assertion_name_prefix; + } + + /** + * Optional. The prefix to prepend to built-in assertion names. + * + * Generated from protobuf field string builtin_assertion_name_prefix = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setBuiltinAssertionNamePrefix($var) + { + GPBUtil::checkString($var, True); + $this->builtin_assertion_name_prefix = $var; + + return $this; + } + + /** + * Optional. The default notebook runtime options. + * + * Generated from protobuf field .google.cloud.dataform.v1.NotebookRuntimeOptions default_notebook_runtime_options = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataform\V1\NotebookRuntimeOptions|null + */ + public function getDefaultNotebookRuntimeOptions() + { + return $this->default_notebook_runtime_options; + } + + public function hasDefaultNotebookRuntimeOptions() + { + return isset($this->default_notebook_runtime_options); + } + + public function clearDefaultNotebookRuntimeOptions() + { + unset($this->default_notebook_runtime_options); + } + + /** + * Optional. The default notebook runtime options. + * + * Generated from protobuf field .google.cloud.dataform.v1.NotebookRuntimeOptions default_notebook_runtime_options = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataform\V1\NotebookRuntimeOptions $var + * @return $this + */ + public function setDefaultNotebookRuntimeOptions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\NotebookRuntimeOptions::class); + $this->default_notebook_runtime_options = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitAuthor.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitAuthor.php new file mode 100644 index 000000000000..9b82464d35ab --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitAuthor.php @@ -0,0 +1,101 @@ +google.cloud.dataform.v1.CommitAuthor + */ +class CommitAuthor extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The commit author's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + /** + * Required. The commit author's email address. + * + * Generated from protobuf field string email_address = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $email_address = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The commit author's name. + * @type string $email_address + * Required. The commit author's email address. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The commit author's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The commit author's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The commit author's email address. + * + * Generated from protobuf field string email_address = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getEmailAddress() + { + return $this->email_address; + } + + /** + * Required. The commit author's email address. + * + * Generated from protobuf field string email_address = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setEmailAddress($var) + { + GPBUtil::checkString($var, True); + $this->email_address = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitLogEntry.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitLogEntry.php new file mode 100644 index 000000000000..92c991a3ffba --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitLogEntry.php @@ -0,0 +1,189 @@ +google.cloud.dataform.v1.CommitLogEntry + */ +class CommitLogEntry extends \Google\Protobuf\Internal\Message +{ + /** + * Commit timestamp. + * + * Generated from protobuf field .google.protobuf.Timestamp commit_time = 1; + */ + protected $commit_time = null; + /** + * The commit SHA for this commit log entry. + * + * Generated from protobuf field string commit_sha = 2; + */ + protected $commit_sha = ''; + /** + * The commit author for this commit log entry. + * + * Generated from protobuf field .google.cloud.dataform.v1.CommitAuthor author = 3; + */ + protected $author = null; + /** + * The commit message for this commit log entry. + * + * Generated from protobuf field string commit_message = 4; + */ + protected $commit_message = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Timestamp $commit_time + * Commit timestamp. + * @type string $commit_sha + * The commit SHA for this commit log entry. + * @type \Google\Cloud\Dataform\V1\CommitAuthor $author + * The commit author for this commit log entry. + * @type string $commit_message + * The commit message for this commit log entry. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Commit timestamp. + * + * Generated from protobuf field .google.protobuf.Timestamp commit_time = 1; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCommitTime() + { + return $this->commit_time; + } + + public function hasCommitTime() + { + return isset($this->commit_time); + } + + public function clearCommitTime() + { + unset($this->commit_time); + } + + /** + * Commit timestamp. + * + * Generated from protobuf field .google.protobuf.Timestamp commit_time = 1; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCommitTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->commit_time = $var; + + return $this; + } + + /** + * The commit SHA for this commit log entry. + * + * Generated from protobuf field string commit_sha = 2; + * @return string + */ + public function getCommitSha() + { + return $this->commit_sha; + } + + /** + * The commit SHA for this commit log entry. + * + * Generated from protobuf field string commit_sha = 2; + * @param string $var + * @return $this + */ + public function setCommitSha($var) + { + GPBUtil::checkString($var, True); + $this->commit_sha = $var; + + return $this; + } + + /** + * The commit author for this commit log entry. + * + * Generated from protobuf field .google.cloud.dataform.v1.CommitAuthor author = 3; + * @return \Google\Cloud\Dataform\V1\CommitAuthor|null + */ + public function getAuthor() + { + return $this->author; + } + + public function hasAuthor() + { + return isset($this->author); + } + + public function clearAuthor() + { + unset($this->author); + } + + /** + * The commit author for this commit log entry. + * + * Generated from protobuf field .google.cloud.dataform.v1.CommitAuthor author = 3; + * @param \Google\Cloud\Dataform\V1\CommitAuthor $var + * @return $this + */ + public function setAuthor($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CommitAuthor::class); + $this->author = $var; + + return $this; + } + + /** + * The commit message for this commit log entry. + * + * Generated from protobuf field string commit_message = 4; + * @return string + */ + public function getCommitMessage() + { + return $this->commit_message; + } + + /** + * The commit message for this commit log entry. + * + * Generated from protobuf field string commit_message = 4; + * @param string $var + * @return $this + */ + public function setCommitMessage($var) + { + GPBUtil::checkString($var, True); + $this->commit_message = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitMetadata.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitMetadata.php new file mode 100644 index 000000000000..705e1b665eaa --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitMetadata.php @@ -0,0 +1,111 @@ +google.cloud.dataform.v1.CommitMetadata + */ +class CommitMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The commit's author. + * + * Generated from protobuf field .google.cloud.dataform.v1.CommitAuthor author = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $author = null; + /** + * Optional. The commit's message. + * + * Generated from protobuf field string commit_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $commit_message = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1\CommitAuthor $author + * Required. The commit's author. + * @type string $commit_message + * Optional. The commit's message. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The commit's author. + * + * Generated from protobuf field .google.cloud.dataform.v1.CommitAuthor author = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataform\V1\CommitAuthor|null + */ + public function getAuthor() + { + return $this->author; + } + + public function hasAuthor() + { + return isset($this->author); + } + + public function clearAuthor() + { + unset($this->author); + } + + /** + * Required. The commit's author. + * + * Generated from protobuf field .google.cloud.dataform.v1.CommitAuthor author = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataform\V1\CommitAuthor $var + * @return $this + */ + public function setAuthor($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CommitAuthor::class); + $this->author = $var; + + return $this; + } + + /** + * Optional. The commit's message. + * + * Generated from protobuf field string commit_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getCommitMessage() + { + return $this->commit_message; + } + + /** + * Optional. The commit's message. + * + * Generated from protobuf field string commit_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setCommitMessage($var) + { + GPBUtil::checkString($var, True); + $this->commit_message = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitRepositoryChangesRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitRepositoryChangesRequest.php new file mode 100644 index 000000000000..ef2a1cbe5059 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitRepositoryChangesRequest.php @@ -0,0 +1,191 @@ +google.cloud.dataform.v1.CommitRepositoryChangesRequest + */ +class CommitRepositoryChangesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. The changes to commit to the repository. + * + * Generated from protobuf field .google.cloud.dataform.v1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $commit_metadata = null; + /** + * 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. + * + * Generated from protobuf field string required_head_commit_sha = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $required_head_commit_sha = ''; + /** + * Optional. A map to the path of the file to the operation. The path is the + * full file path including filename, from repository root. + * + * Generated from protobuf field map file_operations = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $file_operations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The repository's name. + * @type \Google\Cloud\Dataform\V1\CommitMetadata $commit_metadata + * Required. The changes to commit to the repository. + * @type string $required_head_commit_sha + * 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. + * @type array|\Google\Protobuf\Internal\MapField $file_operations + * Optional. A map to the path of the file to the operation. The path is the + * full file path including filename, from repository root. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The changes to commit to the repository. + * + * Generated from protobuf field .google.cloud.dataform.v1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataform\V1\CommitMetadata|null + */ + public function getCommitMetadata() + { + return $this->commit_metadata; + } + + public function hasCommitMetadata() + { + return isset($this->commit_metadata); + } + + public function clearCommitMetadata() + { + unset($this->commit_metadata); + } + + /** + * Required. The changes to commit to the repository. + * + * Generated from protobuf field .google.cloud.dataform.v1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataform\V1\CommitMetadata $var + * @return $this + */ + public function setCommitMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CommitMetadata::class); + $this->commit_metadata = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string required_head_commit_sha = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRequiredHeadCommitSha() + { + return $this->required_head_commit_sha; + } + + /** + * 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. + * + * Generated from protobuf field string required_head_commit_sha = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRequiredHeadCommitSha($var) + { + GPBUtil::checkString($var, True); + $this->required_head_commit_sha = $var; + + return $this; + } + + /** + * Optional. A map to the path of the file to the operation. The path is the + * full file path including filename, from repository root. + * + * Generated from protobuf field map file_operations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getFileOperations() + { + return $this->file_operations; + } + + /** + * Optional. A map to the path of the file to the operation. The path is the + * full file path including filename, from repository root. + * + * Generated from protobuf field map file_operations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setFileOperations($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\CommitRepositoryChangesRequest\FileOperation::class); + $this->file_operations = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitRepositoryChangesRequest/FileOperation.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitRepositoryChangesRequest/FileOperation.php new file mode 100644 index 000000000000..de0f81f4ffad --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitRepositoryChangesRequest/FileOperation.php @@ -0,0 +1,108 @@ +google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation + */ +class FileOperation extends \Google\Protobuf\Internal\Message +{ + protected $operation; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1\CommitRepositoryChangesRequest\FileOperation\WriteFile $write_file + * Represents the write operation. + * @type \Google\Cloud\Dataform\V1\CommitRepositoryChangesRequest\FileOperation\DeleteFile $delete_file + * Represents the delete operation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Represents the write operation. + * + * Generated from protobuf field .google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation.WriteFile write_file = 1; + * @return \Google\Cloud\Dataform\V1\CommitRepositoryChangesRequest\FileOperation\WriteFile|null + */ + public function getWriteFile() + { + return $this->readOneof(1); + } + + public function hasWriteFile() + { + return $this->hasOneof(1); + } + + /** + * Represents the write operation. + * + * Generated from protobuf field .google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation.WriteFile write_file = 1; + * @param \Google\Cloud\Dataform\V1\CommitRepositoryChangesRequest\FileOperation\WriteFile $var + * @return $this + */ + public function setWriteFile($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CommitRepositoryChangesRequest\FileOperation\WriteFile::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Represents the delete operation. + * + * Generated from protobuf field .google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation.DeleteFile delete_file = 2; + * @return \Google\Cloud\Dataform\V1\CommitRepositoryChangesRequest\FileOperation\DeleteFile|null + */ + public function getDeleteFile() + { + return $this->readOneof(2); + } + + public function hasDeleteFile() + { + return $this->hasOneof(2); + } + + /** + * Represents the delete operation. + * + * Generated from protobuf field .google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation.DeleteFile delete_file = 2; + * @param \Google\Cloud\Dataform\V1\CommitRepositoryChangesRequest\FileOperation\DeleteFile $var + * @return $this + */ + public function setDeleteFile($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CommitRepositoryChangesRequest\FileOperation\DeleteFile::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getOperation() + { + return $this->whichOneof("operation"); + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitRepositoryChangesRequest/FileOperation/DeleteFile.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitRepositoryChangesRequest/FileOperation/DeleteFile.php new file mode 100644 index 000000000000..dedf41bd0efc --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitRepositoryChangesRequest/FileOperation/DeleteFile.php @@ -0,0 +1,33 @@ +google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation.DeleteFile + */ +class DeleteFile extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitRepositoryChangesRequest/FileOperation/WriteFile.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitRepositoryChangesRequest/FileOperation/WriteFile.php new file mode 100644 index 000000000000..ff5588c80307 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitRepositoryChangesRequest/FileOperation/WriteFile.php @@ -0,0 +1,67 @@ +google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation.WriteFile + */ +class WriteFile extends \Google\Protobuf\Internal\Message +{ + /** + * The file's contents. + * + * Generated from protobuf field bytes contents = 1; + */ + protected $contents = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $contents + * The file's contents. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * The file's contents. + * + * Generated from protobuf field bytes contents = 1; + * @return string + */ + public function getContents() + { + return $this->contents; + } + + /** + * The file's contents. + * + * Generated from protobuf field bytes contents = 1; + * @param string $var + * @return $this + */ + public function setContents($var) + { + GPBUtil::checkString($var, False); + $this->contents = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitRepositoryChangesResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitRepositoryChangesResponse.php new file mode 100644 index 000000000000..1e0481cf47d2 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitRepositoryChangesResponse.php @@ -0,0 +1,67 @@ +google.cloud.dataform.v1.CommitRepositoryChangesResponse + */ +class CommitRepositoryChangesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The commit SHA of the current commit. + * + * Generated from protobuf field string commit_sha = 1; + */ + protected $commit_sha = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $commit_sha + * The commit SHA of the current commit. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * The commit SHA of the current commit. + * + * Generated from protobuf field string commit_sha = 1; + * @return string + */ + public function getCommitSha() + { + return $this->commit_sha; + } + + /** + * The commit SHA of the current commit. + * + * Generated from protobuf field string commit_sha = 1; + * @param string $var + * @return $this + */ + public function setCommitSha($var) + { + GPBUtil::checkString($var, True); + $this->commit_sha = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitWorkspaceChangesRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitWorkspaceChangesRequest.php new file mode 100644 index 000000000000..852b95c4556c --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitWorkspaceChangesRequest.php @@ -0,0 +1,183 @@ +google.cloud.dataform.v1.CommitWorkspaceChangesRequest + */ +class CommitWorkspaceChangesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. The commit's author. + * + * Generated from protobuf field .google.cloud.dataform.v1.CommitAuthor author = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $author = null; + /** + * Optional. The commit's message. + * + * Generated from protobuf field string commit_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $commit_message = ''; + /** + * Optional. Full file paths to commit including filename, rooted at workspace + * root. If left empty, all files will be committed. + * + * Generated from protobuf field repeated string paths = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $paths; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The workspace's name. + * @type \Google\Cloud\Dataform\V1\CommitAuthor $author + * Required. The commit's author. + * @type string $commit_message + * Optional. The commit's message. + * @type string[] $paths + * Optional. Full file paths to commit including filename, rooted at workspace + * root. If left empty, all files will be committed. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The commit's author. + * + * Generated from protobuf field .google.cloud.dataform.v1.CommitAuthor author = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataform\V1\CommitAuthor|null + */ + public function getAuthor() + { + return $this->author; + } + + public function hasAuthor() + { + return isset($this->author); + } + + public function clearAuthor() + { + unset($this->author); + } + + /** + * Required. The commit's author. + * + * Generated from protobuf field .google.cloud.dataform.v1.CommitAuthor author = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataform\V1\CommitAuthor $var + * @return $this + */ + public function setAuthor($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CommitAuthor::class); + $this->author = $var; + + return $this; + } + + /** + * Optional. The commit's message. + * + * Generated from protobuf field string commit_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getCommitMessage() + { + return $this->commit_message; + } + + /** + * Optional. The commit's message. + * + * Generated from protobuf field string commit_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setCommitMessage($var) + { + GPBUtil::checkString($var, True); + $this->commit_message = $var; + + return $this; + } + + /** + * Optional. Full file paths to commit including filename, rooted at workspace + * root. If left empty, all files will be committed. + * + * Generated from protobuf field repeated string paths = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getPaths() + { + return $this->paths; + } + + /** + * Optional. Full file paths to commit including filename, rooted at workspace + * root. If left empty, all files will be committed. + * + * Generated from protobuf field repeated string paths = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setPaths($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->paths = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitWorkspaceChangesResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitWorkspaceChangesResponse.php new file mode 100644 index 000000000000..46ac9dea760b --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitWorkspaceChangesResponse.php @@ -0,0 +1,33 @@ +google.cloud.dataform.v1.CommitWorkspaceChangesResponse + */ +class CommitWorkspaceChangesResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResult.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResult.php new file mode 100644 index 000000000000..764e19b40e77 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResult.php @@ -0,0 +1,539 @@ +google.cloud.dataform.v1.CompilationResult + */ +class CompilationResult extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The compilation result's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Immutable. If set, fields of `code_compilation_config` override the default + * compilation settings that are specified in dataform.json. + * + * Generated from protobuf field .google.cloud.dataform.v1.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $code_compilation_config = null; + /** + * Output only. The fully resolved Git commit SHA of the code that was + * compiled. Not set for compilation results whose source is a workspace. + * + * Generated from protobuf field string resolved_git_commit_sha = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $resolved_git_commit_sha = ''; + /** + * Output only. The version of `\@dataform/core` that was used for compilation. + * + * Generated from protobuf field string dataform_core_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $dataform_core_version = ''; + /** + * Output only. Errors encountered during project compilation. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $compilation_errors; + /** + * Output only. Only set if the repository has a KMS Key. + * + * Generated from protobuf field .google.cloud.dataform.v1.DataEncryptionState data_encryption_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $data_encryption_state = null; + /** + * Output only. The timestamp of when the compilation result was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $internal_metadata = null; + /** + * Output only. Metadata indicating whether this resource is user-scoped. + * `CompilationResult` resource is `user_scoped` only if it is sourced + * from a workspace. + * + * Generated from protobuf field .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $private_resource_metadata = null; + protected $source; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $git_commitish + * 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` + * @type string $workspace + * Immutable. The name of the workspace to compile. Must be in the format + * `projects/{@*}locations/{@*}repositories/{@*}workspaces/*`. + * @type string $release_config + * Immutable. The name of the release config to compile. Must be in the + * format `projects/{@*}locations/{@*}repositories/{@*}releaseConfigs/*`. + * @type string $name + * Output only. The compilation result's name. + * @type \Google\Cloud\Dataform\V1\CodeCompilationConfig $code_compilation_config + * Immutable. If set, fields of `code_compilation_config` override the default + * compilation settings that are specified in dataform.json. + * @type string $resolved_git_commit_sha + * Output only. The fully resolved Git commit SHA of the code that was + * compiled. Not set for compilation results whose source is a workspace. + * @type string $dataform_core_version + * Output only. The version of `\@dataform/core` that was used for compilation. + * @type \Google\Cloud\Dataform\V1\CompilationResult\CompilationError[] $compilation_errors + * Output only. Errors encountered during project compilation. + * @type \Google\Cloud\Dataform\V1\DataEncryptionState $data_encryption_state + * Output only. Only set if the repository has a KMS Key. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The timestamp of when the compilation result was created. + * @type string $internal_metadata + * 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. + * @type \Google\Cloud\Dataform\V1\PrivateResourceMetadata $private_resource_metadata + * Output only. Metadata indicating whether this resource is user-scoped. + * `CompilationResult` resource is `user_scoped` only if it is sourced + * from a workspace. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * 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` + * + * Generated from protobuf field string git_commitish = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getGitCommitish() + { + return $this->readOneof(2); + } + + public function hasGitCommitish() + { + return $this->hasOneof(2); + } + + /** + * 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` + * + * Generated from protobuf field string git_commitish = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setGitCommitish($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Immutable. The name of the workspace to compile. Must be in the format + * `projects/{@*}locations/{@*}repositories/{@*}workspaces/*`. + * + * Generated from protobuf field string workspace = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + * @return string + */ + public function getWorkspace() + { + return $this->readOneof(3); + } + + public function hasWorkspace() + { + return $this->hasOneof(3); + } + + /** + * Immutable. The name of the workspace to compile. Must be in the format + * `projects/{@*}locations/{@*}repositories/{@*}workspaces/*`. + * + * Generated from protobuf field string workspace = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setWorkspace($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Immutable. The name of the release config to compile. Must be in the + * format `projects/{@*}locations/{@*}repositories/{@*}releaseConfigs/*`. + * + * Generated from protobuf field string release_config = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + * @return string + */ + public function getReleaseConfig() + { + return $this->readOneof(7); + } + + public function hasReleaseConfig() + { + return $this->hasOneof(7); + } + + /** + * Immutable. The name of the release config to compile. Must be in the + * format `projects/{@*}locations/{@*}repositories/{@*}releaseConfigs/*`. + * + * Generated from protobuf field string release_config = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setReleaseConfig($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * Output only. The compilation result's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The compilation result's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Immutable. If set, fields of `code_compilation_config` override the default + * compilation settings that are specified in dataform.json. + * + * Generated from protobuf field .google.cloud.dataform.v1.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * @return \Google\Cloud\Dataform\V1\CodeCompilationConfig|null + */ + public function getCodeCompilationConfig() + { + return $this->code_compilation_config; + } + + public function hasCodeCompilationConfig() + { + return isset($this->code_compilation_config); + } + + public function clearCodeCompilationConfig() + { + unset($this->code_compilation_config); + } + + /** + * Immutable. If set, fields of `code_compilation_config` override the default + * compilation settings that are specified in dataform.json. + * + * Generated from protobuf field .google.cloud.dataform.v1.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * @param \Google\Cloud\Dataform\V1\CodeCompilationConfig $var + * @return $this + */ + public function setCodeCompilationConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CodeCompilationConfig::class); + $this->code_compilation_config = $var; + + return $this; + } + + /** + * Output only. The fully resolved Git commit SHA of the code that was + * compiled. Not set for compilation results whose source is a workspace. + * + * Generated from protobuf field string resolved_git_commit_sha = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getResolvedGitCommitSha() + { + return $this->resolved_git_commit_sha; + } + + /** + * Output only. The fully resolved Git commit SHA of the code that was + * compiled. Not set for compilation results whose source is a workspace. + * + * Generated from protobuf field string resolved_git_commit_sha = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setResolvedGitCommitSha($var) + { + GPBUtil::checkString($var, True); + $this->resolved_git_commit_sha = $var; + + return $this; + } + + /** + * Output only. The version of `\@dataform/core` that was used for compilation. + * + * Generated from protobuf field string dataform_core_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDataformCoreVersion() + { + return $this->dataform_core_version; + } + + /** + * Output only. The version of `\@dataform/core` that was used for compilation. + * + * Generated from protobuf field string dataform_core_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDataformCoreVersion($var) + { + GPBUtil::checkString($var, True); + $this->dataform_core_version = $var; + + return $this; + } + + /** + * Output only. Errors encountered during project compilation. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\Dataform\V1\CompilationResult\CompilationError> + */ + public function getCompilationErrors() + { + return $this->compilation_errors; + } + + /** + * Output only. Errors encountered during project compilation. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataform\V1\CompilationResult\CompilationError[] $var + * @return $this + */ + public function setCompilationErrors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\CompilationResult\CompilationError::class); + $this->compilation_errors = $arr; + + return $this; + } + + /** + * Output only. Only set if the repository has a KMS Key. + * + * Generated from protobuf field .google.cloud.dataform.v1.DataEncryptionState data_encryption_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataform\V1\DataEncryptionState|null + */ + public function getDataEncryptionState() + { + return $this->data_encryption_state; + } + + public function hasDataEncryptionState() + { + return isset($this->data_encryption_state); + } + + public function clearDataEncryptionState() + { + unset($this->data_encryption_state); + } + + /** + * Output only. Only set if the repository has a KMS Key. + * + * Generated from protobuf field .google.cloud.dataform.v1.DataEncryptionState data_encryption_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataform\V1\DataEncryptionState $var + * @return $this + */ + public function setDataEncryptionState($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\DataEncryptionState::class); + $this->data_encryption_state = $var; + + return $this; + } + + /** + * Output only. The timestamp of when the compilation result was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The timestamp of when the compilation result was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getInternalMetadata() + { + return isset($this->internal_metadata) ? $this->internal_metadata : ''; + } + + public function hasInternalMetadata() + { + return isset($this->internal_metadata); + } + + public function clearInternalMetadata() + { + unset($this->internal_metadata); + } + + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setInternalMetadata($var) + { + GPBUtil::checkString($var, True); + $this->internal_metadata = $var; + + return $this; + } + + /** + * Output only. Metadata indicating whether this resource is user-scoped. + * `CompilationResult` resource is `user_scoped` only if it is sourced + * from a workspace. + * + * Generated from protobuf field .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataform\V1\PrivateResourceMetadata|null + */ + public function getPrivateResourceMetadata() + { + return $this->private_resource_metadata; + } + + public function hasPrivateResourceMetadata() + { + return isset($this->private_resource_metadata); + } + + public function clearPrivateResourceMetadata() + { + unset($this->private_resource_metadata); + } + + /** + * Output only. Metadata indicating whether this resource is user-scoped. + * `CompilationResult` resource is `user_scoped` only if it is sourced + * from a workspace. + * + * Generated from protobuf field .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataform\V1\PrivateResourceMetadata $var + * @return $this + */ + public function setPrivateResourceMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\PrivateResourceMetadata::class); + $this->private_resource_metadata = $var; + + return $this; + } + + /** + * @return string + */ + public function getSource() + { + return $this->whichOneof("source"); + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResult/CompilationError.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResult/CompilationError.php new file mode 100644 index 000000000000..c837522a1125 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResult/CompilationError.php @@ -0,0 +1,187 @@ +google.cloud.dataform.v1.CompilationResult.CompilationError + */ +class CompilationError extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The error's top level message. + * + * Generated from protobuf field string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $message = ''; + /** + * Output only. The error's full stack trace. + * + * Generated from protobuf field string stack = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $stack = ''; + /** + * Output only. The path of the file where this error occurred, if + * available, relative to the project root. + * + * Generated from protobuf field string path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $path = ''; + /** + * Output only. The identifier of the action where this error occurred, if + * available. + * + * Generated from protobuf field .google.cloud.dataform.v1.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $action_target = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $message + * Output only. The error's top level message. + * @type string $stack + * Output only. The error's full stack trace. + * @type string $path + * Output only. The path of the file where this error occurred, if + * available, relative to the project root. + * @type \Google\Cloud\Dataform\V1\Target $action_target + * Output only. The identifier of the action where this error occurred, if + * available. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The error's top level message. + * + * Generated from protobuf field string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * Output only. The error's top level message. + * + * Generated from protobuf field string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + + /** + * Output only. The error's full stack trace. + * + * Generated from protobuf field string stack = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getStack() + { + return $this->stack; + } + + /** + * Output only. The error's full stack trace. + * + * Generated from protobuf field string stack = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setStack($var) + { + GPBUtil::checkString($var, True); + $this->stack = $var; + + return $this; + } + + /** + * Output only. The path of the file where this error occurred, if + * available, relative to the project root. + * + * Generated from protobuf field string path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getPath() + { + return $this->path; + } + + /** + * Output only. The path of the file where this error occurred, if + * available, relative to the project root. + * + * Generated from protobuf field string path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setPath($var) + { + GPBUtil::checkString($var, True); + $this->path = $var; + + return $this; + } + + /** + * Output only. The identifier of the action where this error occurred, if + * available. + * + * Generated from protobuf field .google.cloud.dataform.v1.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataform\V1\Target|null + */ + public function getActionTarget() + { + return $this->action_target; + } + + public function hasActionTarget() + { + return isset($this->action_target); + } + + public function clearActionTarget() + { + unset($this->action_target); + } + + /** + * Output only. The identifier of the action where this error occurred, if + * available. + * + * Generated from protobuf field .google.cloud.dataform.v1.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataform\V1\Target $var + * @return $this + */ + public function setActionTarget($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\Target::class); + $this->action_target = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction.php new file mode 100644 index 000000000000..5325d703fba9 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction.php @@ -0,0 +1,422 @@ +google.cloud.dataform.v1.CompilationResultAction + */ +class CompilationResultAction extends \Google\Protobuf\Internal\Message +{ + /** + * This action's identifier. Unique within the compilation result. + * + * Generated from protobuf field .google.cloud.dataform.v1.Target target = 1; + */ + protected $target = null; + /** + * The action's identifier if the project had been compiled without any + * overrides configured. Unique within the compilation result. + * + * Generated from protobuf field .google.cloud.dataform.v1.Target canonical_target = 2; + */ + protected $canonical_target = null; + /** + * The full path including filename in which this action is located, relative + * to the workspace root. + * + * Generated from protobuf field string file_path = 3; + */ + protected $file_path = ''; + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $internal_metadata = null; + protected $compiled_object; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1\CompilationResultAction\Relation $relation + * The database relation created/updated by this action. + * @type \Google\Cloud\Dataform\V1\CompilationResultAction\Operations $operations + * The database operations executed by this action. + * @type \Google\Cloud\Dataform\V1\CompilationResultAction\Assertion $assertion + * The assertion executed by this action. + * @type \Google\Cloud\Dataform\V1\CompilationResultAction\Declaration $declaration + * The declaration declared by this action. + * @type \Google\Cloud\Dataform\V1\CompilationResultAction\Notebook $notebook + * The notebook executed by this action. + * @type \Google\Cloud\Dataform\V1\CompilationResultAction\DataPreparation $data_preparation + * The data preparation executed by this action. + * @type \Google\Cloud\Dataform\V1\Target $target + * This action's identifier. Unique within the compilation result. + * @type \Google\Cloud\Dataform\V1\Target $canonical_target + * The action's identifier if the project had been compiled without any + * overrides configured. Unique within the compilation result. + * @type string $file_path + * The full path including filename in which this action is located, relative + * to the workspace root. + * @type string $internal_metadata + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * The database relation created/updated by this action. + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Relation relation = 4; + * @return \Google\Cloud\Dataform\V1\CompilationResultAction\Relation|null + */ + public function getRelation() + { + return $this->readOneof(4); + } + + public function hasRelation() + { + return $this->hasOneof(4); + } + + /** + * The database relation created/updated by this action. + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Relation relation = 4; + * @param \Google\Cloud\Dataform\V1\CompilationResultAction\Relation $var + * @return $this + */ + public function setRelation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CompilationResultAction\Relation::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * The database operations executed by this action. + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Operations operations = 5; + * @return \Google\Cloud\Dataform\V1\CompilationResultAction\Operations|null + */ + public function getOperations() + { + return $this->readOneof(5); + } + + public function hasOperations() + { + return $this->hasOneof(5); + } + + /** + * The database operations executed by this action. + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Operations operations = 5; + * @param \Google\Cloud\Dataform\V1\CompilationResultAction\Operations $var + * @return $this + */ + public function setOperations($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CompilationResultAction\Operations::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * The assertion executed by this action. + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Assertion assertion = 6; + * @return \Google\Cloud\Dataform\V1\CompilationResultAction\Assertion|null + */ + public function getAssertion() + { + return $this->readOneof(6); + } + + public function hasAssertion() + { + return $this->hasOneof(6); + } + + /** + * The assertion executed by this action. + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Assertion assertion = 6; + * @param \Google\Cloud\Dataform\V1\CompilationResultAction\Assertion $var + * @return $this + */ + public function setAssertion($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CompilationResultAction\Assertion::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * The declaration declared by this action. + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Declaration declaration = 7; + * @return \Google\Cloud\Dataform\V1\CompilationResultAction\Declaration|null + */ + public function getDeclaration() + { + return $this->readOneof(7); + } + + public function hasDeclaration() + { + return $this->hasOneof(7); + } + + /** + * The declaration declared by this action. + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Declaration declaration = 7; + * @param \Google\Cloud\Dataform\V1\CompilationResultAction\Declaration $var + * @return $this + */ + public function setDeclaration($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CompilationResultAction\Declaration::class); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * The notebook executed by this action. + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Notebook notebook = 8; + * @return \Google\Cloud\Dataform\V1\CompilationResultAction\Notebook|null + */ + public function getNotebook() + { + return $this->readOneof(8); + } + + public function hasNotebook() + { + return $this->hasOneof(8); + } + + /** + * The notebook executed by this action. + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Notebook notebook = 8; + * @param \Google\Cloud\Dataform\V1\CompilationResultAction\Notebook $var + * @return $this + */ + public function setNotebook($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CompilationResultAction\Notebook::class); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * The data preparation executed by this action. + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.DataPreparation data_preparation = 9; + * @return \Google\Cloud\Dataform\V1\CompilationResultAction\DataPreparation|null + */ + public function getDataPreparation() + { + return $this->readOneof(9); + } + + public function hasDataPreparation() + { + return $this->hasOneof(9); + } + + /** + * The data preparation executed by this action. + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.DataPreparation data_preparation = 9; + * @param \Google\Cloud\Dataform\V1\CompilationResultAction\DataPreparation $var + * @return $this + */ + public function setDataPreparation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CompilationResultAction\DataPreparation::class); + $this->writeOneof(9, $var); + + return $this; + } + + /** + * This action's identifier. Unique within the compilation result. + * + * Generated from protobuf field .google.cloud.dataform.v1.Target target = 1; + * @return \Google\Cloud\Dataform\V1\Target|null + */ + public function getTarget() + { + return $this->target; + } + + public function hasTarget() + { + return isset($this->target); + } + + public function clearTarget() + { + unset($this->target); + } + + /** + * This action's identifier. Unique within the compilation result. + * + * Generated from protobuf field .google.cloud.dataform.v1.Target target = 1; + * @param \Google\Cloud\Dataform\V1\Target $var + * @return $this + */ + public function setTarget($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\Target::class); + $this->target = $var; + + return $this; + } + + /** + * The action's identifier if the project had been compiled without any + * overrides configured. Unique within the compilation result. + * + * Generated from protobuf field .google.cloud.dataform.v1.Target canonical_target = 2; + * @return \Google\Cloud\Dataform\V1\Target|null + */ + public function getCanonicalTarget() + { + return $this->canonical_target; + } + + public function hasCanonicalTarget() + { + return isset($this->canonical_target); + } + + public function clearCanonicalTarget() + { + unset($this->canonical_target); + } + + /** + * The action's identifier if the project had been compiled without any + * overrides configured. Unique within the compilation result. + * + * Generated from protobuf field .google.cloud.dataform.v1.Target canonical_target = 2; + * @param \Google\Cloud\Dataform\V1\Target $var + * @return $this + */ + public function setCanonicalTarget($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\Target::class); + $this->canonical_target = $var; + + return $this; + } + + /** + * The full path including filename in which this action is located, relative + * to the workspace root. + * + * Generated from protobuf field string file_path = 3; + * @return string + */ + public function getFilePath() + { + return $this->file_path; + } + + /** + * The full path including filename in which this action is located, relative + * to the workspace root. + * + * Generated from protobuf field string file_path = 3; + * @param string $var + * @return $this + */ + public function setFilePath($var) + { + GPBUtil::checkString($var, True); + $this->file_path = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getInternalMetadata() + { + return isset($this->internal_metadata) ? $this->internal_metadata : ''; + } + + public function hasInternalMetadata() + { + return isset($this->internal_metadata); + } + + public function clearInternalMetadata() + { + unset($this->internal_metadata); + } + + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setInternalMetadata($var) + { + GPBUtil::checkString($var, True); + $this->internal_metadata = $var; + + return $this; + } + + /** + * @return string + */ + public function getCompiledObject() + { + return $this->whichOneof("compiled_object"); + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Assertion.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Assertion.php new file mode 100644 index 000000000000..5ec52d82fa4b --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Assertion.php @@ -0,0 +1,270 @@ +google.cloud.dataform.v1.CompilationResultAction.Assertion + */ +class Assertion extends \Google\Protobuf\Internal\Message +{ + /** + * A list of actions that this action depends on. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.Target dependency_targets = 1; + */ + private $dependency_targets; + /** + * The parent action of this assertion. Only set if this assertion was + * automatically generated. + * + * Generated from protobuf field .google.cloud.dataform.v1.Target parent_action = 5; + */ + protected $parent_action = null; + /** + * Whether this action is disabled (i.e. should not be run). + * + * Generated from protobuf field bool disabled = 2; + */ + protected $disabled = false; + /** + * Arbitrary, user-defined tags on this action. + * + * Generated from protobuf field repeated string tags = 3; + */ + private $tags; + /** + * The SELECT query which must return zero rows in order for this assertion + * to succeed. + * + * Generated from protobuf field string select_query = 4; + */ + protected $select_query = ''; + /** + * Descriptor for the assertion's automatically-generated view and its + * columns. + * + * Generated from protobuf field .google.cloud.dataform.v1.RelationDescriptor relation_descriptor = 6; + */ + protected $relation_descriptor = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1\Target[] $dependency_targets + * A list of actions that this action depends on. + * @type \Google\Cloud\Dataform\V1\Target $parent_action + * The parent action of this assertion. Only set if this assertion was + * automatically generated. + * @type bool $disabled + * Whether this action is disabled (i.e. should not be run). + * @type string[] $tags + * Arbitrary, user-defined tags on this action. + * @type string $select_query + * The SELECT query which must return zero rows in order for this assertion + * to succeed. + * @type \Google\Cloud\Dataform\V1\RelationDescriptor $relation_descriptor + * Descriptor for the assertion's automatically-generated view and its + * columns. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * A list of actions that this action depends on. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.Target dependency_targets = 1; + * @return RepeatedField<\Google\Cloud\Dataform\V1\Target> + */ + public function getDependencyTargets() + { + return $this->dependency_targets; + } + + /** + * A list of actions that this action depends on. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.Target dependency_targets = 1; + * @param \Google\Cloud\Dataform\V1\Target[] $var + * @return $this + */ + public function setDependencyTargets($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\Target::class); + $this->dependency_targets = $arr; + + return $this; + } + + /** + * The parent action of this assertion. Only set if this assertion was + * automatically generated. + * + * Generated from protobuf field .google.cloud.dataform.v1.Target parent_action = 5; + * @return \Google\Cloud\Dataform\V1\Target|null + */ + public function getParentAction() + { + return $this->parent_action; + } + + public function hasParentAction() + { + return isset($this->parent_action); + } + + public function clearParentAction() + { + unset($this->parent_action); + } + + /** + * The parent action of this assertion. Only set if this assertion was + * automatically generated. + * + * Generated from protobuf field .google.cloud.dataform.v1.Target parent_action = 5; + * @param \Google\Cloud\Dataform\V1\Target $var + * @return $this + */ + public function setParentAction($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\Target::class); + $this->parent_action = $var; + + return $this; + } + + /** + * Whether this action is disabled (i.e. should not be run). + * + * Generated from protobuf field bool disabled = 2; + * @return bool + */ + public function getDisabled() + { + return $this->disabled; + } + + /** + * Whether this action is disabled (i.e. should not be run). + * + * Generated from protobuf field bool disabled = 2; + * @param bool $var + * @return $this + */ + public function setDisabled($var) + { + GPBUtil::checkBool($var); + $this->disabled = $var; + + return $this; + } + + /** + * Arbitrary, user-defined tags on this action. + * + * Generated from protobuf field repeated string tags = 3; + * @return RepeatedField + */ + public function getTags() + { + return $this->tags; + } + + /** + * Arbitrary, user-defined tags on this action. + * + * Generated from protobuf field repeated string tags = 3; + * @param string[] $var + * @return $this + */ + public function setTags($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->tags = $arr; + + return $this; + } + + /** + * The SELECT query which must return zero rows in order for this assertion + * to succeed. + * + * Generated from protobuf field string select_query = 4; + * @return string + */ + public function getSelectQuery() + { + return $this->select_query; + } + + /** + * The SELECT query which must return zero rows in order for this assertion + * to succeed. + * + * Generated from protobuf field string select_query = 4; + * @param string $var + * @return $this + */ + public function setSelectQuery($var) + { + GPBUtil::checkString($var, True); + $this->select_query = $var; + + return $this; + } + + /** + * Descriptor for the assertion's automatically-generated view and its + * columns. + * + * Generated from protobuf field .google.cloud.dataform.v1.RelationDescriptor relation_descriptor = 6; + * @return \Google\Cloud\Dataform\V1\RelationDescriptor|null + */ + public function getRelationDescriptor() + { + return $this->relation_descriptor; + } + + public function hasRelationDescriptor() + { + return isset($this->relation_descriptor); + } + + public function clearRelationDescriptor() + { + unset($this->relation_descriptor); + } + + /** + * Descriptor for the assertion's automatically-generated view and its + * columns. + * + * Generated from protobuf field .google.cloud.dataform.v1.RelationDescriptor relation_descriptor = 6; + * @param \Google\Cloud\Dataform\V1\RelationDescriptor $var + * @return $this + */ + public function setRelationDescriptor($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\RelationDescriptor::class); + $this->relation_descriptor = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/DataPreparation.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/DataPreparation.php new file mode 100644 index 000000000000..1f6a4b5cd971 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/DataPreparation.php @@ -0,0 +1,213 @@ +google.cloud.dataform.v1.CompilationResultAction.DataPreparation + */ +class DataPreparation extends \Google\Protobuf\Internal\Message +{ + /** + * A list of actions that this action depends on. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.Target dependency_targets = 1; + */ + private $dependency_targets; + /** + * Whether this action is disabled (i.e. should not be run). + * + * Generated from protobuf field bool disabled = 2; + */ + protected $disabled = false; + /** + * Arbitrary, user-defined tags on this action. + * + * Generated from protobuf field repeated string tags = 4; + */ + private $tags; + protected $definition; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $contents_yaml + * The data preparation definition, stored as a YAML string. + * @type \Google\Cloud\Dataform\V1\CompilationResultAction\DataPreparation\SqlDefinition $contents_sql + * SQL definition for a Data Preparation. Contains a SQL query and + * additional context information. + * @type \Google\Cloud\Dataform\V1\Target[] $dependency_targets + * A list of actions that this action depends on. + * @type bool $disabled + * Whether this action is disabled (i.e. should not be run). + * @type string[] $tags + * Arbitrary, user-defined tags on this action. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * The data preparation definition, stored as a YAML string. + * + * Generated from protobuf field string contents_yaml = 5; + * @return string + */ + public function getContentsYaml() + { + return $this->readOneof(5); + } + + public function hasContentsYaml() + { + return $this->hasOneof(5); + } + + /** + * The data preparation definition, stored as a YAML string. + * + * Generated from protobuf field string contents_yaml = 5; + * @param string $var + * @return $this + */ + public function setContentsYaml($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * SQL definition for a Data Preparation. Contains a SQL query and + * additional context information. + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.DataPreparation.SqlDefinition contents_sql = 6; + * @return \Google\Cloud\Dataform\V1\CompilationResultAction\DataPreparation\SqlDefinition|null + */ + public function getContentsSql() + { + return $this->readOneof(6); + } + + public function hasContentsSql() + { + return $this->hasOneof(6); + } + + /** + * SQL definition for a Data Preparation. Contains a SQL query and + * additional context information. + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.DataPreparation.SqlDefinition contents_sql = 6; + * @param \Google\Cloud\Dataform\V1\CompilationResultAction\DataPreparation\SqlDefinition $var + * @return $this + */ + public function setContentsSql($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CompilationResultAction\DataPreparation\SqlDefinition::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * A list of actions that this action depends on. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.Target dependency_targets = 1; + * @return RepeatedField<\Google\Cloud\Dataform\V1\Target> + */ + public function getDependencyTargets() + { + return $this->dependency_targets; + } + + /** + * A list of actions that this action depends on. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.Target dependency_targets = 1; + * @param \Google\Cloud\Dataform\V1\Target[] $var + * @return $this + */ + public function setDependencyTargets($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\Target::class); + $this->dependency_targets = $arr; + + return $this; + } + + /** + * Whether this action is disabled (i.e. should not be run). + * + * Generated from protobuf field bool disabled = 2; + * @return bool + */ + public function getDisabled() + { + return $this->disabled; + } + + /** + * Whether this action is disabled (i.e. should not be run). + * + * Generated from protobuf field bool disabled = 2; + * @param bool $var + * @return $this + */ + public function setDisabled($var) + { + GPBUtil::checkBool($var); + $this->disabled = $var; + + return $this; + } + + /** + * Arbitrary, user-defined tags on this action. + * + * Generated from protobuf field repeated string tags = 4; + * @return RepeatedField + */ + public function getTags() + { + return $this->tags; + } + + /** + * Arbitrary, user-defined tags on this action. + * + * Generated from protobuf field repeated string tags = 4; + * @param string[] $var + * @return $this + */ + public function setTags($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->tags = $arr; + + return $this; + } + + /** + * @return string + */ + public function getDefinition() + { + return $this->whichOneof("definition"); + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/DataPreparation/ErrorTable.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/DataPreparation/ErrorTable.php new file mode 100644 index 000000000000..bfec929c31fc --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/DataPreparation/ErrorTable.php @@ -0,0 +1,116 @@ +google.cloud.dataform.v1.CompilationResultAction.DataPreparation.ErrorTable + */ +class ErrorTable extends \Google\Protobuf\Internal\Message +{ + /** + * Error Table target. + * + * Generated from protobuf field .google.cloud.dataform.v1.Target target = 1; + */ + protected $target = null; + /** + * Error table partition expiration in days. Only positive values are + * allowed. + * + * Generated from protobuf field int32 retention_days = 2; + */ + protected $retention_days = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1\Target $target + * Error Table target. + * @type int $retention_days + * Error table partition expiration in days. Only positive values are + * allowed. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Error Table target. + * + * Generated from protobuf field .google.cloud.dataform.v1.Target target = 1; + * @return \Google\Cloud\Dataform\V1\Target|null + */ + public function getTarget() + { + return $this->target; + } + + public function hasTarget() + { + return isset($this->target); + } + + public function clearTarget() + { + unset($this->target); + } + + /** + * Error Table target. + * + * Generated from protobuf field .google.cloud.dataform.v1.Target target = 1; + * @param \Google\Cloud\Dataform\V1\Target $var + * @return $this + */ + public function setTarget($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\Target::class); + $this->target = $var; + + return $this; + } + + /** + * Error table partition expiration in days. Only positive values are + * allowed. + * + * Generated from protobuf field int32 retention_days = 2; + * @return int + */ + public function getRetentionDays() + { + return $this->retention_days; + } + + /** + * Error table partition expiration in days. Only positive values are + * allowed. + * + * Generated from protobuf field int32 retention_days = 2; + * @param int $var + * @return $this + */ + public function setRetentionDays($var) + { + GPBUtil::checkInt32($var); + $this->retention_days = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/DataPreparation/SqlDefinition.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/DataPreparation/SqlDefinition.php new file mode 100644 index 000000000000..622fb9c11830 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/DataPreparation/SqlDefinition.php @@ -0,0 +1,159 @@ +google.cloud.dataform.v1.CompilationResultAction.DataPreparation.SqlDefinition + */ +class SqlDefinition extends \Google\Protobuf\Internal\Message +{ + /** + * The SQL query representing the data preparation steps. Formatted as a + * Pipe SQL query statement. + * + * Generated from protobuf field string query = 1; + */ + protected $query = ''; + /** + * Error table configuration, + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.DataPreparation.ErrorTable error_table = 2; + */ + protected $error_table = null; + /** + * Load configuration. + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.LoadConfig load = 3; + */ + protected $load = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $query + * The SQL query representing the data preparation steps. Formatted as a + * Pipe SQL query statement. + * @type \Google\Cloud\Dataform\V1\CompilationResultAction\DataPreparation\ErrorTable $error_table + * Error table configuration, + * @type \Google\Cloud\Dataform\V1\CompilationResultAction\LoadConfig $load + * Load configuration. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * The SQL query representing the data preparation steps. Formatted as a + * Pipe SQL query statement. + * + * Generated from protobuf field string query = 1; + * @return string + */ + public function getQuery() + { + return $this->query; + } + + /** + * The SQL query representing the data preparation steps. Formatted as a + * Pipe SQL query statement. + * + * Generated from protobuf field string query = 1; + * @param string $var + * @return $this + */ + public function setQuery($var) + { + GPBUtil::checkString($var, True); + $this->query = $var; + + return $this; + } + + /** + * Error table configuration, + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.DataPreparation.ErrorTable error_table = 2; + * @return \Google\Cloud\Dataform\V1\CompilationResultAction\DataPreparation\ErrorTable|null + */ + public function getErrorTable() + { + return $this->error_table; + } + + public function hasErrorTable() + { + return isset($this->error_table); + } + + public function clearErrorTable() + { + unset($this->error_table); + } + + /** + * Error table configuration, + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.DataPreparation.ErrorTable error_table = 2; + * @param \Google\Cloud\Dataform\V1\CompilationResultAction\DataPreparation\ErrorTable $var + * @return $this + */ + public function setErrorTable($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CompilationResultAction\DataPreparation\ErrorTable::class); + $this->error_table = $var; + + return $this; + } + + /** + * Load configuration. + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.LoadConfig load = 3; + * @return \Google\Cloud\Dataform\V1\CompilationResultAction\LoadConfig|null + */ + public function getLoad() + { + return $this->load; + } + + public function hasLoad() + { + return isset($this->load); + } + + public function clearLoad() + { + unset($this->load); + } + + /** + * Load configuration. + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.LoadConfig load = 3; + * @param \Google\Cloud\Dataform\V1\CompilationResultAction\LoadConfig $var + * @return $this + */ + public function setLoad($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CompilationResultAction\LoadConfig::class); + $this->load = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Declaration.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Declaration.php new file mode 100644 index 000000000000..497cb96fa776 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Declaration.php @@ -0,0 +1,82 @@ +google.cloud.dataform.v1.CompilationResultAction.Declaration + */ +class Declaration extends \Google\Protobuf\Internal\Message +{ + /** + * 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. + * + * Generated from protobuf field .google.cloud.dataform.v1.RelationDescriptor relation_descriptor = 1; + */ + protected $relation_descriptor = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1\RelationDescriptor $relation_descriptor + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * 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. + * + * Generated from protobuf field .google.cloud.dataform.v1.RelationDescriptor relation_descriptor = 1; + * @return \Google\Cloud\Dataform\V1\RelationDescriptor|null + */ + public function getRelationDescriptor() + { + return $this->relation_descriptor; + } + + public function hasRelationDescriptor() + { + return isset($this->relation_descriptor); + } + + public function clearRelationDescriptor() + { + unset($this->relation_descriptor); + } + + /** + * 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. + * + * Generated from protobuf field .google.cloud.dataform.v1.RelationDescriptor relation_descriptor = 1; + * @param \Google\Cloud\Dataform\V1\RelationDescriptor $var + * @return $this + */ + public function setRelationDescriptor($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\RelationDescriptor::class); + $this->relation_descriptor = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/IncrementalLoadMode.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/IncrementalLoadMode.php new file mode 100644 index 000000000000..166c506f75ce --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/IncrementalLoadMode.php @@ -0,0 +1,67 @@ +google.cloud.dataform.v1.CompilationResultAction.IncrementalLoadMode + */ +class IncrementalLoadMode extends \Google\Protobuf\Internal\Message +{ + /** + * Column name for incremental load modes + * + * Generated from protobuf field string column = 1; + */ + protected $column = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $column + * Column name for incremental load modes + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Column name for incremental load modes + * + * Generated from protobuf field string column = 1; + * @return string + */ + public function getColumn() + { + return $this->column; + } + + /** + * Column name for incremental load modes + * + * Generated from protobuf field string column = 1; + * @param string $var + * @return $this + */ + public function setColumn($var) + { + GPBUtil::checkString($var, True); + $this->column = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/LoadConfig.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/LoadConfig.php new file mode 100644 index 000000000000..48f861be247a --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/LoadConfig.php @@ -0,0 +1,180 @@ +google.cloud.dataform.v1.CompilationResultAction.LoadConfig + */ +class LoadConfig extends \Google\Protobuf\Internal\Message +{ + protected $mode; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1\CompilationResultAction\SimpleLoadMode $replace + * Replace destination table + * @type \Google\Cloud\Dataform\V1\CompilationResultAction\SimpleLoadMode $append + * Append into destination table + * @type \Google\Cloud\Dataform\V1\CompilationResultAction\IncrementalLoadMode $maximum + * Insert records where the value exceeds the previous maximum value for a + * column in the destination table + * @type \Google\Cloud\Dataform\V1\CompilationResultAction\IncrementalLoadMode $unique + * Insert records where the value of a column is not already present in + * the destination table + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Replace destination table + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.SimpleLoadMode replace = 1; + * @return \Google\Cloud\Dataform\V1\CompilationResultAction\SimpleLoadMode|null + */ + public function getReplace() + { + return $this->readOneof(1); + } + + public function hasReplace() + { + return $this->hasOneof(1); + } + + /** + * Replace destination table + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.SimpleLoadMode replace = 1; + * @param \Google\Cloud\Dataform\V1\CompilationResultAction\SimpleLoadMode $var + * @return $this + */ + public function setReplace($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CompilationResultAction\SimpleLoadMode::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Append into destination table + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.SimpleLoadMode append = 2; + * @return \Google\Cloud\Dataform\V1\CompilationResultAction\SimpleLoadMode|null + */ + public function getAppend() + { + return $this->readOneof(2); + } + + public function hasAppend() + { + return $this->hasOneof(2); + } + + /** + * Append into destination table + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.SimpleLoadMode append = 2; + * @param \Google\Cloud\Dataform\V1\CompilationResultAction\SimpleLoadMode $var + * @return $this + */ + public function setAppend($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CompilationResultAction\SimpleLoadMode::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Insert records where the value exceeds the previous maximum value for a + * column in the destination table + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.IncrementalLoadMode maximum = 3; + * @return \Google\Cloud\Dataform\V1\CompilationResultAction\IncrementalLoadMode|null + */ + public function getMaximum() + { + return $this->readOneof(3); + } + + public function hasMaximum() + { + return $this->hasOneof(3); + } + + /** + * Insert records where the value exceeds the previous maximum value for a + * column in the destination table + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.IncrementalLoadMode maximum = 3; + * @param \Google\Cloud\Dataform\V1\CompilationResultAction\IncrementalLoadMode $var + * @return $this + */ + public function setMaximum($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CompilationResultAction\IncrementalLoadMode::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Insert records where the value of a column is not already present in + * the destination table + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.IncrementalLoadMode unique = 4; + * @return \Google\Cloud\Dataform\V1\CompilationResultAction\IncrementalLoadMode|null + */ + public function getUnique() + { + return $this->readOneof(4); + } + + public function hasUnique() + { + return $this->hasOneof(4); + } + + /** + * Insert records where the value of a column is not already present in + * the destination table + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.IncrementalLoadMode unique = 4; + * @param \Google\Cloud\Dataform\V1\CompilationResultAction\IncrementalLoadMode $var + * @return $this + */ + public function setUnique($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CompilationResultAction\IncrementalLoadMode::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * @return string + */ + public function getMode() + { + return $this->whichOneof("mode"); + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Notebook.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Notebook.php new file mode 100644 index 000000000000..7a2c90bffabb --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Notebook.php @@ -0,0 +1,169 @@ +google.cloud.dataform.v1.CompilationResultAction.Notebook + */ +class Notebook extends \Google\Protobuf\Internal\Message +{ + /** + * A list of actions that this action depends on. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.Target dependency_targets = 1; + */ + private $dependency_targets; + /** + * Whether this action is disabled (i.e. should not be run). + * + * Generated from protobuf field bool disabled = 2; + */ + protected $disabled = false; + /** + * The contents of the notebook. + * + * Generated from protobuf field string contents = 3; + */ + protected $contents = ''; + /** + * Arbitrary, user-defined tags on this action. + * + * Generated from protobuf field repeated string tags = 4; + */ + private $tags; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1\Target[] $dependency_targets + * A list of actions that this action depends on. + * @type bool $disabled + * Whether this action is disabled (i.e. should not be run). + * @type string $contents + * The contents of the notebook. + * @type string[] $tags + * Arbitrary, user-defined tags on this action. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * A list of actions that this action depends on. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.Target dependency_targets = 1; + * @return RepeatedField<\Google\Cloud\Dataform\V1\Target> + */ + public function getDependencyTargets() + { + return $this->dependency_targets; + } + + /** + * A list of actions that this action depends on. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.Target dependency_targets = 1; + * @param \Google\Cloud\Dataform\V1\Target[] $var + * @return $this + */ + public function setDependencyTargets($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\Target::class); + $this->dependency_targets = $arr; + + return $this; + } + + /** + * Whether this action is disabled (i.e. should not be run). + * + * Generated from protobuf field bool disabled = 2; + * @return bool + */ + public function getDisabled() + { + return $this->disabled; + } + + /** + * Whether this action is disabled (i.e. should not be run). + * + * Generated from protobuf field bool disabled = 2; + * @param bool $var + * @return $this + */ + public function setDisabled($var) + { + GPBUtil::checkBool($var); + $this->disabled = $var; + + return $this; + } + + /** + * The contents of the notebook. + * + * Generated from protobuf field string contents = 3; + * @return string + */ + public function getContents() + { + return $this->contents; + } + + /** + * The contents of the notebook. + * + * Generated from protobuf field string contents = 3; + * @param string $var + * @return $this + */ + public function setContents($var) + { + GPBUtil::checkString($var, True); + $this->contents = $var; + + return $this; + } + + /** + * Arbitrary, user-defined tags on this action. + * + * Generated from protobuf field repeated string tags = 4; + * @return RepeatedField + */ + public function getTags() + { + return $this->tags; + } + + /** + * Arbitrary, user-defined tags on this action. + * + * Generated from protobuf field repeated string tags = 4; + * @param string[] $var + * @return $this + */ + public function setTags($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->tags = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Operations.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Operations.php new file mode 100644 index 000000000000..e58c9428d87d --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Operations.php @@ -0,0 +1,255 @@ +google.cloud.dataform.v1.CompilationResultAction.Operations + */ +class Operations extends \Google\Protobuf\Internal\Message +{ + /** + * A list of actions that this action depends on. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.Target dependency_targets = 1; + */ + private $dependency_targets; + /** + * Whether this action is disabled (i.e. should not be run). + * + * Generated from protobuf field bool disabled = 2; + */ + protected $disabled = false; + /** + * Arbitrary, user-defined tags on this action. + * + * Generated from protobuf field repeated string tags = 3; + */ + private $tags; + /** + * Descriptor for any output relation and its columns. Only set if + * `has_output` is true. + * + * Generated from protobuf field .google.cloud.dataform.v1.RelationDescriptor relation_descriptor = 6; + */ + protected $relation_descriptor = null; + /** + * A list of arbitrary SQL statements that will be executed without + * alteration. + * + * Generated from protobuf field repeated string queries = 4; + */ + private $queries; + /** + * Whether these operations produce an output relation. + * + * Generated from protobuf field bool has_output = 5; + */ + protected $has_output = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1\Target[] $dependency_targets + * A list of actions that this action depends on. + * @type bool $disabled + * Whether this action is disabled (i.e. should not be run). + * @type string[] $tags + * Arbitrary, user-defined tags on this action. + * @type \Google\Cloud\Dataform\V1\RelationDescriptor $relation_descriptor + * Descriptor for any output relation and its columns. Only set if + * `has_output` is true. + * @type string[] $queries + * A list of arbitrary SQL statements that will be executed without + * alteration. + * @type bool $has_output + * Whether these operations produce an output relation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * A list of actions that this action depends on. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.Target dependency_targets = 1; + * @return RepeatedField<\Google\Cloud\Dataform\V1\Target> + */ + public function getDependencyTargets() + { + return $this->dependency_targets; + } + + /** + * A list of actions that this action depends on. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.Target dependency_targets = 1; + * @param \Google\Cloud\Dataform\V1\Target[] $var + * @return $this + */ + public function setDependencyTargets($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\Target::class); + $this->dependency_targets = $arr; + + return $this; + } + + /** + * Whether this action is disabled (i.e. should not be run). + * + * Generated from protobuf field bool disabled = 2; + * @return bool + */ + public function getDisabled() + { + return $this->disabled; + } + + /** + * Whether this action is disabled (i.e. should not be run). + * + * Generated from protobuf field bool disabled = 2; + * @param bool $var + * @return $this + */ + public function setDisabled($var) + { + GPBUtil::checkBool($var); + $this->disabled = $var; + + return $this; + } + + /** + * Arbitrary, user-defined tags on this action. + * + * Generated from protobuf field repeated string tags = 3; + * @return RepeatedField + */ + public function getTags() + { + return $this->tags; + } + + /** + * Arbitrary, user-defined tags on this action. + * + * Generated from protobuf field repeated string tags = 3; + * @param string[] $var + * @return $this + */ + public function setTags($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->tags = $arr; + + return $this; + } + + /** + * Descriptor for any output relation and its columns. Only set if + * `has_output` is true. + * + * Generated from protobuf field .google.cloud.dataform.v1.RelationDescriptor relation_descriptor = 6; + * @return \Google\Cloud\Dataform\V1\RelationDescriptor|null + */ + public function getRelationDescriptor() + { + return $this->relation_descriptor; + } + + public function hasRelationDescriptor() + { + return isset($this->relation_descriptor); + } + + public function clearRelationDescriptor() + { + unset($this->relation_descriptor); + } + + /** + * Descriptor for any output relation and its columns. Only set if + * `has_output` is true. + * + * Generated from protobuf field .google.cloud.dataform.v1.RelationDescriptor relation_descriptor = 6; + * @param \Google\Cloud\Dataform\V1\RelationDescriptor $var + * @return $this + */ + public function setRelationDescriptor($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\RelationDescriptor::class); + $this->relation_descriptor = $var; + + return $this; + } + + /** + * A list of arbitrary SQL statements that will be executed without + * alteration. + * + * Generated from protobuf field repeated string queries = 4; + * @return RepeatedField + */ + public function getQueries() + { + return $this->queries; + } + + /** + * A list of arbitrary SQL statements that will be executed without + * alteration. + * + * Generated from protobuf field repeated string queries = 4; + * @param string[] $var + * @return $this + */ + public function setQueries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->queries = $arr; + + return $this; + } + + /** + * Whether these operations produce an output relation. + * + * Generated from protobuf field bool has_output = 5; + * @return bool + */ + public function getHasOutput() + { + return $this->has_output; + } + + /** + * Whether these operations produce an output relation. + * + * Generated from protobuf field bool has_output = 5; + * @param bool $var + * @return $this + */ + public function setHasOutput($var) + { + GPBUtil::checkBool($var); + $this->has_output = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Relation.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Relation.php new file mode 100644 index 000000000000..86c8d4ccbfb9 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Relation.php @@ -0,0 +1,709 @@ +google.cloud.dataform.v1.CompilationResultAction.Relation + */ +class Relation extends \Google\Protobuf\Internal\Message +{ + /** + * A list of actions that this action depends on. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.Target dependency_targets = 1; + */ + private $dependency_targets; + /** + * Whether this action is disabled (i.e. should not be run). + * + * Generated from protobuf field bool disabled = 2; + */ + protected $disabled = false; + /** + * Arbitrary, user-defined tags on this action. + * + * Generated from protobuf field repeated string tags = 3; + */ + private $tags; + /** + * Descriptor for the relation and its columns. + * + * Generated from protobuf field .google.cloud.dataform.v1.RelationDescriptor relation_descriptor = 4; + */ + protected $relation_descriptor = null; + /** + * The type of this relation. + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Relation.RelationType relation_type = 5; + */ + protected $relation_type = 0; + /** + * The SELECT query which returns rows which this relation should contain. + * + * Generated from protobuf field string select_query = 6; + */ + protected $select_query = ''; + /** + * SQL statements to be executed before creating the relation. + * + * Generated from protobuf field repeated string pre_operations = 7; + */ + private $pre_operations; + /** + * SQL statements to be executed after creating the relation. + * + * Generated from protobuf field repeated string post_operations = 8; + */ + private $post_operations; + /** + * Configures `INCREMENTAL_TABLE` settings for this relation. Only set if + * `relation_type` is `INCREMENTAL_TABLE`. + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9; + */ + protected $incremental_table_config = null; + /** + * The SQL expression used to partition the relation. + * + * Generated from protobuf field string partition_expression = 10; + */ + protected $partition_expression = ''; + /** + * A list of columns or SQL expressions used to cluster the table. + * + * Generated from protobuf field repeated string cluster_expressions = 11; + */ + private $cluster_expressions; + /** + * Sets the partition expiration in days. + * + * Generated from protobuf field int32 partition_expiration_days = 12; + */ + protected $partition_expiration_days = 0; + /** + * Specifies whether queries on this table must include a predicate filter + * that filters on the partitioning column. + * + * Generated from protobuf field bool require_partition_filter = 13; + */ + protected $require_partition_filter = false; + /** + * 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. + * + * Generated from protobuf field map additional_options = 14; + */ + private $additional_options; + /** + * 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. + * + * Generated from protobuf field string connection = 15 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $connection = ''; + /** + * Optional. The table format for the BigQuery table. + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat table_format = 16 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $table_format = 0; + /** + * Optional. The file format for the BigQuery table. + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat file_format = 17 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $file_format = 0; + /** + * 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/`. + * + * Generated from protobuf field string storage_uri = 18 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $storage_uri = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1\Target[] $dependency_targets + * A list of actions that this action depends on. + * @type bool $disabled + * Whether this action is disabled (i.e. should not be run). + * @type string[] $tags + * Arbitrary, user-defined tags on this action. + * @type \Google\Cloud\Dataform\V1\RelationDescriptor $relation_descriptor + * Descriptor for the relation and its columns. + * @type int $relation_type + * The type of this relation. + * @type string $select_query + * The SELECT query which returns rows which this relation should contain. + * @type string[] $pre_operations + * SQL statements to be executed before creating the relation. + * @type string[] $post_operations + * SQL statements to be executed after creating the relation. + * @type \Google\Cloud\Dataform\V1\CompilationResultAction\Relation\IncrementalTableConfig $incremental_table_config + * Configures `INCREMENTAL_TABLE` settings for this relation. Only set if + * `relation_type` is `INCREMENTAL_TABLE`. + * @type string $partition_expression + * The SQL expression used to partition the relation. + * @type string[] $cluster_expressions + * A list of columns or SQL expressions used to cluster the table. + * @type int $partition_expiration_days + * Sets the partition expiration in days. + * @type bool $require_partition_filter + * Specifies whether queries on this table must include a predicate filter + * that filters on the partitioning column. + * @type array|\Google\Protobuf\Internal\MapField $additional_options + * 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. + * @type string $connection + * 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. + * @type int $table_format + * Optional. The table format for the BigQuery table. + * @type int $file_format + * Optional. The file format for the BigQuery table. + * @type string $storage_uri + * 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/`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * A list of actions that this action depends on. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.Target dependency_targets = 1; + * @return RepeatedField<\Google\Cloud\Dataform\V1\Target> + */ + public function getDependencyTargets() + { + return $this->dependency_targets; + } + + /** + * A list of actions that this action depends on. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.Target dependency_targets = 1; + * @param \Google\Cloud\Dataform\V1\Target[] $var + * @return $this + */ + public function setDependencyTargets($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\Target::class); + $this->dependency_targets = $arr; + + return $this; + } + + /** + * Whether this action is disabled (i.e. should not be run). + * + * Generated from protobuf field bool disabled = 2; + * @return bool + */ + public function getDisabled() + { + return $this->disabled; + } + + /** + * Whether this action is disabled (i.e. should not be run). + * + * Generated from protobuf field bool disabled = 2; + * @param bool $var + * @return $this + */ + public function setDisabled($var) + { + GPBUtil::checkBool($var); + $this->disabled = $var; + + return $this; + } + + /** + * Arbitrary, user-defined tags on this action. + * + * Generated from protobuf field repeated string tags = 3; + * @return RepeatedField + */ + public function getTags() + { + return $this->tags; + } + + /** + * Arbitrary, user-defined tags on this action. + * + * Generated from protobuf field repeated string tags = 3; + * @param string[] $var + * @return $this + */ + public function setTags($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->tags = $arr; + + return $this; + } + + /** + * Descriptor for the relation and its columns. + * + * Generated from protobuf field .google.cloud.dataform.v1.RelationDescriptor relation_descriptor = 4; + * @return \Google\Cloud\Dataform\V1\RelationDescriptor|null + */ + public function getRelationDescriptor() + { + return $this->relation_descriptor; + } + + public function hasRelationDescriptor() + { + return isset($this->relation_descriptor); + } + + public function clearRelationDescriptor() + { + unset($this->relation_descriptor); + } + + /** + * Descriptor for the relation and its columns. + * + * Generated from protobuf field .google.cloud.dataform.v1.RelationDescriptor relation_descriptor = 4; + * @param \Google\Cloud\Dataform\V1\RelationDescriptor $var + * @return $this + */ + public function setRelationDescriptor($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\RelationDescriptor::class); + $this->relation_descriptor = $var; + + return $this; + } + + /** + * The type of this relation. + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Relation.RelationType relation_type = 5; + * @return int + */ + public function getRelationType() + { + return $this->relation_type; + } + + /** + * The type of this relation. + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Relation.RelationType relation_type = 5; + * @param int $var + * @return $this + */ + public function setRelationType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1\CompilationResultAction\Relation\RelationType::class); + $this->relation_type = $var; + + return $this; + } + + /** + * The SELECT query which returns rows which this relation should contain. + * + * Generated from protobuf field string select_query = 6; + * @return string + */ + public function getSelectQuery() + { + return $this->select_query; + } + + /** + * The SELECT query which returns rows which this relation should contain. + * + * Generated from protobuf field string select_query = 6; + * @param string $var + * @return $this + */ + public function setSelectQuery($var) + { + GPBUtil::checkString($var, True); + $this->select_query = $var; + + return $this; + } + + /** + * SQL statements to be executed before creating the relation. + * + * Generated from protobuf field repeated string pre_operations = 7; + * @return RepeatedField + */ + public function getPreOperations() + { + return $this->pre_operations; + } + + /** + * SQL statements to be executed before creating the relation. + * + * Generated from protobuf field repeated string pre_operations = 7; + * @param string[] $var + * @return $this + */ + public function setPreOperations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->pre_operations = $arr; + + return $this; + } + + /** + * SQL statements to be executed after creating the relation. + * + * Generated from protobuf field repeated string post_operations = 8; + * @return RepeatedField + */ + public function getPostOperations() + { + return $this->post_operations; + } + + /** + * SQL statements to be executed after creating the relation. + * + * Generated from protobuf field repeated string post_operations = 8; + * @param string[] $var + * @return $this + */ + public function setPostOperations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->post_operations = $arr; + + return $this; + } + + /** + * Configures `INCREMENTAL_TABLE` settings for this relation. Only set if + * `relation_type` is `INCREMENTAL_TABLE`. + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9; + * @return \Google\Cloud\Dataform\V1\CompilationResultAction\Relation\IncrementalTableConfig|null + */ + public function getIncrementalTableConfig() + { + return $this->incremental_table_config; + } + + public function hasIncrementalTableConfig() + { + return isset($this->incremental_table_config); + } + + public function clearIncrementalTableConfig() + { + unset($this->incremental_table_config); + } + + /** + * Configures `INCREMENTAL_TABLE` settings for this relation. Only set if + * `relation_type` is `INCREMENTAL_TABLE`. + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9; + * @param \Google\Cloud\Dataform\V1\CompilationResultAction\Relation\IncrementalTableConfig $var + * @return $this + */ + public function setIncrementalTableConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CompilationResultAction\Relation\IncrementalTableConfig::class); + $this->incremental_table_config = $var; + + return $this; + } + + /** + * The SQL expression used to partition the relation. + * + * Generated from protobuf field string partition_expression = 10; + * @return string + */ + public function getPartitionExpression() + { + return $this->partition_expression; + } + + /** + * The SQL expression used to partition the relation. + * + * Generated from protobuf field string partition_expression = 10; + * @param string $var + * @return $this + */ + public function setPartitionExpression($var) + { + GPBUtil::checkString($var, True); + $this->partition_expression = $var; + + return $this; + } + + /** + * A list of columns or SQL expressions used to cluster the table. + * + * Generated from protobuf field repeated string cluster_expressions = 11; + * @return RepeatedField + */ + public function getClusterExpressions() + { + return $this->cluster_expressions; + } + + /** + * A list of columns or SQL expressions used to cluster the table. + * + * Generated from protobuf field repeated string cluster_expressions = 11; + * @param string[] $var + * @return $this + */ + public function setClusterExpressions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->cluster_expressions = $arr; + + return $this; + } + + /** + * Sets the partition expiration in days. + * + * Generated from protobuf field int32 partition_expiration_days = 12; + * @return int + */ + public function getPartitionExpirationDays() + { + return $this->partition_expiration_days; + } + + /** + * Sets the partition expiration in days. + * + * Generated from protobuf field int32 partition_expiration_days = 12; + * @param int $var + * @return $this + */ + public function setPartitionExpirationDays($var) + { + GPBUtil::checkInt32($var); + $this->partition_expiration_days = $var; + + return $this; + } + + /** + * Specifies whether queries on this table must include a predicate filter + * that filters on the partitioning column. + * + * Generated from protobuf field bool require_partition_filter = 13; + * @return bool + */ + public function getRequirePartitionFilter() + { + return $this->require_partition_filter; + } + + /** + * Specifies whether queries on this table must include a predicate filter + * that filters on the partitioning column. + * + * Generated from protobuf field bool require_partition_filter = 13; + * @param bool $var + * @return $this + */ + public function setRequirePartitionFilter($var) + { + GPBUtil::checkBool($var); + $this->require_partition_filter = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field map additional_options = 14; + * @return \Google\Protobuf\Internal\MapField + */ + public function getAdditionalOptions() + { + return $this->additional_options; + } + + /** + * 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. + * + * Generated from protobuf field map additional_options = 14; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setAdditionalOptions($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->additional_options = $arr; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string connection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getConnection() + { + return $this->connection; + } + + /** + * 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. + * + * Generated from protobuf field string connection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setConnection($var) + { + GPBUtil::checkString($var, True); + $this->connection = $var; + + return $this; + } + + /** + * Optional. The table format for the BigQuery table. + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat table_format = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getTableFormat() + { + return $this->table_format; + } + + /** + * Optional. The table format for the BigQuery table. + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat table_format = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setTableFormat($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1\CompilationResultAction\Relation\TableFormat::class); + $this->table_format = $var; + + return $this; + } + + /** + * Optional. The file format for the BigQuery table. + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat file_format = 17 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getFileFormat() + { + return $this->file_format; + } + + /** + * Optional. The file format for the BigQuery table. + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat file_format = 17 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setFileFormat($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1\CompilationResultAction\Relation\FileFormat::class); + $this->file_format = $var; + + return $this; + } + + /** + * 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/`. + * + * Generated from protobuf field string storage_uri = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getStorageUri() + { + return $this->storage_uri; + } + + /** + * 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/`. + * + * Generated from protobuf field string storage_uri = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setStorageUri($var) + { + GPBUtil::checkString($var, True); + $this->storage_uri = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Relation/FileFormat.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Relation/FileFormat.php new file mode 100644 index 000000000000..e1db409ee5b6 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Relation/FileFormat.php @@ -0,0 +1,54 @@ +google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat + */ +class FileFormat +{ + /** + * Default value. + * + * Generated from protobuf enum FILE_FORMAT_UNSPECIFIED = 0; + */ + const FILE_FORMAT_UNSPECIFIED = 0; + /** + * Apache Parquet format. + * + * Generated from protobuf enum PARQUET = 1; + */ + const PARQUET = 1; + + private static $valueToName = [ + self::FILE_FORMAT_UNSPECIFIED => 'FILE_FORMAT_UNSPECIFIED', + self::PARQUET => 'PARQUET', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Relation/IncrementalTableConfig.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Relation/IncrementalTableConfig.php new file mode 100644 index 000000000000..ddf2f0a90d7a --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Relation/IncrementalTableConfig.php @@ -0,0 +1,269 @@ +google.cloud.dataform.v1.CompilationResultAction.Relation.IncrementalTableConfig + */ +class IncrementalTableConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The SELECT query which returns rows which should be inserted into the + * relation if it already exists and is not being refreshed. + * + * Generated from protobuf field string incremental_select_query = 1; + */ + protected $incremental_select_query = ''; + /** + * Whether this table should be protected from being refreshed. + * + * Generated from protobuf field bool refresh_disabled = 2; + */ + protected $refresh_disabled = false; + /** + * 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. + * + * Generated from protobuf field repeated string unique_key_parts = 3; + */ + private $unique_key_parts; + /** + * A SQL expression conditional used to limit the set of existing rows + * considered for a merge operation (see `unique_key_parts` for more + * information). + * + * Generated from protobuf field string update_partition_filter = 4; + */ + protected $update_partition_filter = ''; + /** + * SQL statements to be executed before inserting new rows into the + * relation. + * + * Generated from protobuf field repeated string incremental_pre_operations = 5; + */ + private $incremental_pre_operations; + /** + * SQL statements to be executed after inserting new rows into the + * relation. + * + * Generated from protobuf field repeated string incremental_post_operations = 6; + */ + private $incremental_post_operations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $incremental_select_query + * The SELECT query which returns rows which should be inserted into the + * relation if it already exists and is not being refreshed. + * @type bool $refresh_disabled + * Whether this table should be protected from being refreshed. + * @type string[] $unique_key_parts + * 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. + * @type string $update_partition_filter + * A SQL expression conditional used to limit the set of existing rows + * considered for a merge operation (see `unique_key_parts` for more + * information). + * @type string[] $incremental_pre_operations + * SQL statements to be executed before inserting new rows into the + * relation. + * @type string[] $incremental_post_operations + * SQL statements to be executed after inserting new rows into the + * relation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * The SELECT query which returns rows which should be inserted into the + * relation if it already exists and is not being refreshed. + * + * Generated from protobuf field string incremental_select_query = 1; + * @return string + */ + public function getIncrementalSelectQuery() + { + return $this->incremental_select_query; + } + + /** + * The SELECT query which returns rows which should be inserted into the + * relation if it already exists and is not being refreshed. + * + * Generated from protobuf field string incremental_select_query = 1; + * @param string $var + * @return $this + */ + public function setIncrementalSelectQuery($var) + { + GPBUtil::checkString($var, True); + $this->incremental_select_query = $var; + + return $this; + } + + /** + * Whether this table should be protected from being refreshed. + * + * Generated from protobuf field bool refresh_disabled = 2; + * @return bool + */ + public function getRefreshDisabled() + { + return $this->refresh_disabled; + } + + /** + * Whether this table should be protected from being refreshed. + * + * Generated from protobuf field bool refresh_disabled = 2; + * @param bool $var + * @return $this + */ + public function setRefreshDisabled($var) + { + GPBUtil::checkBool($var); + $this->refresh_disabled = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field repeated string unique_key_parts = 3; + * @return RepeatedField + */ + public function getUniqueKeyParts() + { + return $this->unique_key_parts; + } + + /** + * 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. + * + * Generated from protobuf field repeated string unique_key_parts = 3; + * @param string[] $var + * @return $this + */ + public function setUniqueKeyParts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unique_key_parts = $arr; + + return $this; + } + + /** + * A SQL expression conditional used to limit the set of existing rows + * considered for a merge operation (see `unique_key_parts` for more + * information). + * + * Generated from protobuf field string update_partition_filter = 4; + * @return string + */ + public function getUpdatePartitionFilter() + { + return $this->update_partition_filter; + } + + /** + * A SQL expression conditional used to limit the set of existing rows + * considered for a merge operation (see `unique_key_parts` for more + * information). + * + * Generated from protobuf field string update_partition_filter = 4; + * @param string $var + * @return $this + */ + public function setUpdatePartitionFilter($var) + { + GPBUtil::checkString($var, True); + $this->update_partition_filter = $var; + + return $this; + } + + /** + * SQL statements to be executed before inserting new rows into the + * relation. + * + * Generated from protobuf field repeated string incremental_pre_operations = 5; + * @return RepeatedField + */ + public function getIncrementalPreOperations() + { + return $this->incremental_pre_operations; + } + + /** + * SQL statements to be executed before inserting new rows into the + * relation. + * + * Generated from protobuf field repeated string incremental_pre_operations = 5; + * @param string[] $var + * @return $this + */ + public function setIncrementalPreOperations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->incremental_pre_operations = $arr; + + return $this; + } + + /** + * SQL statements to be executed after inserting new rows into the + * relation. + * + * Generated from protobuf field repeated string incremental_post_operations = 6; + * @return RepeatedField + */ + public function getIncrementalPostOperations() + { + return $this->incremental_post_operations; + } + + /** + * SQL statements to be executed after inserting new rows into the + * relation. + * + * Generated from protobuf field repeated string incremental_post_operations = 6; + * @param string[] $var + * @return $this + */ + public function setIncrementalPostOperations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->incremental_post_operations = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Relation/RelationType.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Relation/RelationType.php new file mode 100644 index 000000000000..fc24e20ae67e --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Relation/RelationType.php @@ -0,0 +1,75 @@ +google.cloud.dataform.v1.CompilationResultAction.Relation.RelationType + */ +class RelationType +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum RELATION_TYPE_UNSPECIFIED = 0; + */ + const RELATION_TYPE_UNSPECIFIED = 0; + /** + * The relation is a table. + * + * Generated from protobuf enum TABLE = 1; + */ + const TABLE = 1; + /** + * The relation is a view. + * + * Generated from protobuf enum VIEW = 2; + */ + const VIEW = 2; + /** + * The relation is an incrementalized table. + * + * Generated from protobuf enum INCREMENTAL_TABLE = 3; + */ + const INCREMENTAL_TABLE = 3; + /** + * The relation is a materialized view. + * + * Generated from protobuf enum MATERIALIZED_VIEW = 4; + */ + const MATERIALIZED_VIEW = 4; + + private static $valueToName = [ + self::RELATION_TYPE_UNSPECIFIED => 'RELATION_TYPE_UNSPECIFIED', + self::TABLE => 'TABLE', + self::VIEW => 'VIEW', + self::INCREMENTAL_TABLE => 'INCREMENTAL_TABLE', + self::MATERIALIZED_VIEW => 'MATERIALIZED_VIEW', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Relation/TableFormat.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Relation/TableFormat.php new file mode 100644 index 000000000000..aa422b3a8ade --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Relation/TableFormat.php @@ -0,0 +1,54 @@ +google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat + */ +class TableFormat +{ + /** + * Default value. + * + * Generated from protobuf enum TABLE_FORMAT_UNSPECIFIED = 0; + */ + const TABLE_FORMAT_UNSPECIFIED = 0; + /** + * Apache Iceberg format. + * + * Generated from protobuf enum ICEBERG = 1; + */ + const ICEBERG = 1; + + private static $valueToName = [ + self::TABLE_FORMAT_UNSPECIFIED => 'TABLE_FORMAT_UNSPECIFIED', + self::ICEBERG => 'ICEBERG', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/SimpleLoadMode.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/SimpleLoadMode.php new file mode 100644 index 000000000000..7ebd4790a162 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/SimpleLoadMode.php @@ -0,0 +1,33 @@ +google.cloud.dataform.v1.CompilationResultAction.SimpleLoadMode + */ +class SimpleLoadMode extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ComputeRepositoryAccessTokenStatusRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ComputeRepositoryAccessTokenStatusRequest.php new file mode 100644 index 000000000000..52eacc5ac32f --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ComputeRepositoryAccessTokenStatusRequest.php @@ -0,0 +1,67 @@ +google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusRequest + */ +class ComputeRepositoryAccessTokenStatusRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The repository's name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ComputeRepositoryAccessTokenStatusResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ComputeRepositoryAccessTokenStatusResponse.php new file mode 100644 index 000000000000..257ddb7269f0 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ComputeRepositoryAccessTokenStatusResponse.php @@ -0,0 +1,67 @@ +google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusResponse + */ +class ComputeRepositoryAccessTokenStatusResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Indicates the status of the Git access token. + * + * Generated from protobuf field .google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus token_status = 1; + */ + protected $token_status = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $token_status + * Indicates the status of the Git access token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Indicates the status of the Git access token. + * + * Generated from protobuf field .google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus token_status = 1; + * @return int + */ + public function getTokenStatus() + { + return $this->token_status; + } + + /** + * Indicates the status of the Git access token. + * + * Generated from protobuf field .google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus token_status = 1; + * @param int $var + * @return $this + */ + public function setTokenStatus($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1\ComputeRepositoryAccessTokenStatusResponse\TokenStatus::class); + $this->token_status = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ComputeRepositoryAccessTokenStatusResponse/TokenStatus.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ComputeRepositoryAccessTokenStatusResponse/TokenStatus.php new file mode 100644 index 000000000000..1c7a8c0b78d4 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ComputeRepositoryAccessTokenStatusResponse/TokenStatus.php @@ -0,0 +1,76 @@ +google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus + */ +class TokenStatus +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum TOKEN_STATUS_UNSPECIFIED = 0; + */ + const 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). + * + * Generated from protobuf enum NOT_FOUND = 1; + */ + const NOT_FOUND = 1; + /** + * The token could not be used to authenticate against the Git remote. + * + * Generated from protobuf enum INVALID = 2; + */ + const INVALID = 2; + /** + * The token was used successfully to authenticate against the Git remote. + * + * Generated from protobuf enum VALID = 3; + */ + const VALID = 3; + /** + * The token is not accessible due to permission issues. + * + * Generated from protobuf enum PERMISSION_DENIED = 4; + */ + const PERMISSION_DENIED = 4; + + private static $valueToName = [ + self::TOKEN_STATUS_UNSPECIFIED => 'TOKEN_STATUS_UNSPECIFIED', + self::NOT_FOUND => 'NOT_FOUND', + self::INVALID => 'INVALID', + self::VALID => 'VALID', + self::PERMISSION_DENIED => 'PERMISSION_DENIED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Config.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Config.php new file mode 100644 index 000000000000..ac1170ec6718 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Config.php @@ -0,0 +1,157 @@ +google.cloud.dataform.v1.Config + */ +class Config extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The config name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Optional. The default KMS key that is used if no encryption key is provided + * when a repository is created. + * + * Generated from protobuf field string default_kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $default_kms_key_name = ''; + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $internal_metadata = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The config name. + * @type string $default_kms_key_name + * Optional. The default KMS key that is used if no encryption key is provided + * when a repository is created. + * @type string $internal_metadata + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The config name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The config name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. The default KMS key that is used if no encryption key is provided + * when a repository is created. + * + * Generated from protobuf field string default_kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getDefaultKmsKeyName() + { + return $this->default_kms_key_name; + } + + /** + * Optional. The default KMS key that is used if no encryption key is provided + * when a repository is created. + * + * Generated from protobuf field string default_kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setDefaultKmsKeyName($var) + { + GPBUtil::checkString($var, True); + $this->default_kms_key_name = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getInternalMetadata() + { + return isset($this->internal_metadata) ? $this->internal_metadata : ''; + } + + public function hasInternalMetadata() + { + return isset($this->internal_metadata); + } + + public function clearInternalMetadata() + { + unset($this->internal_metadata); + } + + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setInternalMetadata($var) + { + GPBUtil::checkString($var, True); + $this->internal_metadata = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateCompilationResultRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateCompilationResultRequest.php new file mode 100644 index 000000000000..06ed3f092907 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateCompilationResultRequest.php @@ -0,0 +1,132 @@ +google.cloud.dataform.v1.CreateCompilationResultRequest + */ +class CreateCompilationResultRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The repository in which to create the compilation result. Must be + * in the format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The compilation result to create. + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResult compilation_result = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $compilation_result = null; + + /** + * @param string $parent Required. The repository in which to create the compilation result. Must be + * in the format `projects/*/locations/*/repositories/*`. Please see + * {@see DataformClient::repositoryName()} for help formatting this field. + * @param \Google\Cloud\Dataform\V1\CompilationResult $compilationResult Required. The compilation result to create. + * + * @return \Google\Cloud\Dataform\V1\CreateCompilationResultRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Dataform\V1\CompilationResult $compilationResult): self + { + return (new self()) + ->setParent($parent) + ->setCompilationResult($compilationResult); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The repository in which to create the compilation result. Must be + * in the format `projects/{@*}locations/{@*}repositories/*`. + * @type \Google\Cloud\Dataform\V1\CompilationResult $compilation_result + * Required. The compilation result to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The repository in which to create the compilation result. Must be + * in the format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The repository in which to create the compilation result. Must be + * in the format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The compilation result to create. + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResult compilation_result = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataform\V1\CompilationResult|null + */ + public function getCompilationResult() + { + return $this->compilation_result; + } + + public function hasCompilationResult() + { + return isset($this->compilation_result); + } + + public function clearCompilationResult() + { + unset($this->compilation_result); + } + + /** + * Required. The compilation result to create. + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResult compilation_result = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataform\V1\CompilationResult $var + * @return $this + */ + public function setCompilationResult($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CompilationResult::class); + $this->compilation_result = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateFolderRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateFolderRequest.php new file mode 100644 index 000000000000..0ddf4cd305a7 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateFolderRequest.php @@ -0,0 +1,132 @@ +google.cloud.dataform.v1.CreateFolderRequest + */ +class CreateFolderRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The location in which to create the Folder. Must be in the format + * `projects/{@*}locations/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The Folder to create. + * + * Generated from protobuf field .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $folder = null; + + /** + * @param string $parent Required. The location in which to create the Folder. Must be in the format + * `projects/*/locations/*`. Please see + * {@see DataformClient::locationName()} for help formatting this field. + * @param \Google\Cloud\Dataform\V1\Folder $folder Required. The Folder to create. + * + * @return \Google\Cloud\Dataform\V1\CreateFolderRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Dataform\V1\Folder $folder): self + { + return (new self()) + ->setParent($parent) + ->setFolder($folder); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The location in which to create the Folder. Must be in the format + * `projects/{@*}locations/*`. + * @type \Google\Cloud\Dataform\V1\Folder $folder + * Required. The Folder to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The location in which to create the Folder. Must be in the format + * `projects/{@*}locations/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The location in which to create the Folder. Must be in the format + * `projects/{@*}locations/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The Folder to create. + * + * Generated from protobuf field .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataform\V1\Folder|null + */ + public function getFolder() + { + return $this->folder; + } + + public function hasFolder() + { + return isset($this->folder); + } + + public function clearFolder() + { + unset($this->folder); + } + + /** + * Required. The Folder to create. + * + * Generated from protobuf field .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataform\V1\Folder $var + * @return $this + */ + public function setFolder($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\Folder::class); + $this->folder = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateReleaseConfigRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateReleaseConfigRequest.php new file mode 100644 index 000000000000..7f4bd87a3704 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateReleaseConfigRequest.php @@ -0,0 +1,173 @@ +google.cloud.dataform.v1.CreateReleaseConfigRequest + */ +class CreateReleaseConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The repository in which to create the release config. Must be in + * the format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The release config to create. + * + * Generated from protobuf field .google.cloud.dataform.v1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $release_config = null; + /** + * Required. The ID to use for the release config, which will become the final + * component of the release config's resource name. + * + * Generated from protobuf field string release_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $release_config_id = ''; + + /** + * @param string $parent Required. The repository in which to create the release config. Must be in + * the format `projects/*/locations/*/repositories/*`. Please see + * {@see DataformClient::repositoryName()} for help formatting this field. + * @param \Google\Cloud\Dataform\V1\ReleaseConfig $releaseConfig Required. The release config to create. + * @param string $releaseConfigId Required. The ID to use for the release config, which will become the final + * component of the release config's resource name. + * + * @return \Google\Cloud\Dataform\V1\CreateReleaseConfigRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Dataform\V1\ReleaseConfig $releaseConfig, string $releaseConfigId): self + { + return (new self()) + ->setParent($parent) + ->setReleaseConfig($releaseConfig) + ->setReleaseConfigId($releaseConfigId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The repository in which to create the release config. Must be in + * the format `projects/{@*}locations/{@*}repositories/*`. + * @type \Google\Cloud\Dataform\V1\ReleaseConfig $release_config + * Required. The release config to create. + * @type string $release_config_id + * Required. The ID to use for the release config, which will become the final + * component of the release config's resource name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The repository in which to create the release config. Must be in + * the format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The repository in which to create the release config. Must be in + * the format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The release config to create. + * + * Generated from protobuf field .google.cloud.dataform.v1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataform\V1\ReleaseConfig|null + */ + public function getReleaseConfig() + { + return $this->release_config; + } + + public function hasReleaseConfig() + { + return isset($this->release_config); + } + + public function clearReleaseConfig() + { + unset($this->release_config); + } + + /** + * Required. The release config to create. + * + * Generated from protobuf field .google.cloud.dataform.v1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataform\V1\ReleaseConfig $var + * @return $this + */ + public function setReleaseConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\ReleaseConfig::class); + $this->release_config = $var; + + return $this; + } + + /** + * Required. The ID to use for the release config, which will become the final + * component of the release config's resource name. + * + * Generated from protobuf field string release_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getReleaseConfigId() + { + return $this->release_config_id; + } + + /** + * Required. The ID to use for the release config, which will become the final + * component of the release config's resource name. + * + * Generated from protobuf field string release_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setReleaseConfigId($var) + { + GPBUtil::checkString($var, True); + $this->release_config_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateRepositoryRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateRepositoryRequest.php new file mode 100644 index 000000000000..9cccba4d2fcf --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateRepositoryRequest.php @@ -0,0 +1,173 @@ +google.cloud.dataform.v1.CreateRepositoryRequest + */ +class CreateRepositoryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The location in which to create the repository. Must be in the + * format `projects/{@*}locations/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The repository to create. + * + * Generated from protobuf field .google.cloud.dataform.v1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $repository = null; + /** + * Required. The ID to use for the repository, which will become the final + * component of the repository's resource name. + * + * Generated from protobuf field string repository_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $repository_id = ''; + + /** + * @param string $parent Required. The location in which to create the repository. Must be in the + * format `projects/*/locations/*`. Please see + * {@see DataformClient::locationName()} for help formatting this field. + * @param \Google\Cloud\Dataform\V1\Repository $repository Required. The repository to create. + * @param string $repositoryId Required. The ID to use for the repository, which will become the final + * component of the repository's resource name. + * + * @return \Google\Cloud\Dataform\V1\CreateRepositoryRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Dataform\V1\Repository $repository, string $repositoryId): self + { + return (new self()) + ->setParent($parent) + ->setRepository($repository) + ->setRepositoryId($repositoryId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The location in which to create the repository. Must be in the + * format `projects/{@*}locations/*`. + * @type \Google\Cloud\Dataform\V1\Repository $repository + * Required. The repository to create. + * @type string $repository_id + * Required. The ID to use for the repository, which will become the final + * component of the repository's resource name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The location in which to create the repository. Must be in the + * format `projects/{@*}locations/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The location in which to create the repository. Must be in the + * format `projects/{@*}locations/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The repository to create. + * + * Generated from protobuf field .google.cloud.dataform.v1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataform\V1\Repository|null + */ + public function getRepository() + { + return $this->repository; + } + + public function hasRepository() + { + return isset($this->repository); + } + + public function clearRepository() + { + unset($this->repository); + } + + /** + * Required. The repository to create. + * + * Generated from protobuf field .google.cloud.dataform.v1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataform\V1\Repository $var + * @return $this + */ + public function setRepository($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\Repository::class); + $this->repository = $var; + + return $this; + } + + /** + * Required. The ID to use for the repository, which will become the final + * component of the repository's resource name. + * + * Generated from protobuf field string repository_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getRepositoryId() + { + return $this->repository_id; + } + + /** + * Required. The ID to use for the repository, which will become the final + * component of the repository's resource name. + * + * Generated from protobuf field string repository_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setRepositoryId($var) + { + GPBUtil::checkString($var, True); + $this->repository_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateTeamFolderRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateTeamFolderRequest.php new file mode 100644 index 000000000000..7c96464372d5 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateTeamFolderRequest.php @@ -0,0 +1,132 @@ +google.cloud.dataform.v1.CreateTeamFolderRequest + */ +class CreateTeamFolderRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The location in which to create the TeamFolder. Must be in the + * format `projects/{@*}locations/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The TeamFolder to create. + * + * Generated from protobuf field .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $team_folder = null; + + /** + * @param string $parent Required. The location in which to create the TeamFolder. Must be in the + * format `projects/*/locations/*`. Please see + * {@see DataformClient::locationName()} for help formatting this field. + * @param \Google\Cloud\Dataform\V1\TeamFolder $teamFolder Required. The TeamFolder to create. + * + * @return \Google\Cloud\Dataform\V1\CreateTeamFolderRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Dataform\V1\TeamFolder $teamFolder): self + { + return (new self()) + ->setParent($parent) + ->setTeamFolder($teamFolder); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The location in which to create the TeamFolder. Must be in the + * format `projects/{@*}locations/*`. + * @type \Google\Cloud\Dataform\V1\TeamFolder $team_folder + * Required. The TeamFolder to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The location in which to create the TeamFolder. Must be in the + * format `projects/{@*}locations/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The location in which to create the TeamFolder. Must be in the + * format `projects/{@*}locations/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The TeamFolder to create. + * + * Generated from protobuf field .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataform\V1\TeamFolder|null + */ + public function getTeamFolder() + { + return $this->team_folder; + } + + public function hasTeamFolder() + { + return isset($this->team_folder); + } + + public function clearTeamFolder() + { + unset($this->team_folder); + } + + /** + * Required. The TeamFolder to create. + * + * Generated from protobuf field .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataform\V1\TeamFolder $var + * @return $this + */ + public function setTeamFolder($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\TeamFolder::class); + $this->team_folder = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateWorkflowConfigRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateWorkflowConfigRequest.php new file mode 100644 index 000000000000..f65792017fb5 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateWorkflowConfigRequest.php @@ -0,0 +1,173 @@ +google.cloud.dataform.v1.CreateWorkflowConfigRequest + */ +class CreateWorkflowConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The repository in which to create the workflow config. Must be in + * the format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The workflow config to create. + * + * Generated from protobuf field .google.cloud.dataform.v1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $workflow_config = null; + /** + * Required. The ID to use for the workflow config, which will become the + * final component of the workflow config's resource name. + * + * Generated from protobuf field string workflow_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $workflow_config_id = ''; + + /** + * @param string $parent Required. The repository in which to create the workflow config. Must be in + * the format `projects/*/locations/*/repositories/*`. Please see + * {@see DataformClient::repositoryName()} for help formatting this field. + * @param \Google\Cloud\Dataform\V1\WorkflowConfig $workflowConfig Required. The workflow config to create. + * @param string $workflowConfigId Required. The ID to use for the workflow config, which will become the + * final component of the workflow config's resource name. + * + * @return \Google\Cloud\Dataform\V1\CreateWorkflowConfigRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Dataform\V1\WorkflowConfig $workflowConfig, string $workflowConfigId): self + { + return (new self()) + ->setParent($parent) + ->setWorkflowConfig($workflowConfig) + ->setWorkflowConfigId($workflowConfigId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The repository in which to create the workflow config. Must be in + * the format `projects/{@*}locations/{@*}repositories/*`. + * @type \Google\Cloud\Dataform\V1\WorkflowConfig $workflow_config + * Required. The workflow config to create. + * @type string $workflow_config_id + * Required. The ID to use for the workflow config, which will become the + * final component of the workflow config's resource name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The repository in which to create the workflow config. Must be in + * the format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The repository in which to create the workflow config. Must be in + * the format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The workflow config to create. + * + * Generated from protobuf field .google.cloud.dataform.v1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataform\V1\WorkflowConfig|null + */ + public function getWorkflowConfig() + { + return $this->workflow_config; + } + + public function hasWorkflowConfig() + { + return isset($this->workflow_config); + } + + public function clearWorkflowConfig() + { + unset($this->workflow_config); + } + + /** + * Required. The workflow config to create. + * + * Generated from protobuf field .google.cloud.dataform.v1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataform\V1\WorkflowConfig $var + * @return $this + */ + public function setWorkflowConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\WorkflowConfig::class); + $this->workflow_config = $var; + + return $this; + } + + /** + * Required. The ID to use for the workflow config, which will become the + * final component of the workflow config's resource name. + * + * Generated from protobuf field string workflow_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getWorkflowConfigId() + { + return $this->workflow_config_id; + } + + /** + * Required. The ID to use for the workflow config, which will become the + * final component of the workflow config's resource name. + * + * Generated from protobuf field string workflow_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setWorkflowConfigId($var) + { + GPBUtil::checkString($var, True); + $this->workflow_config_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateWorkflowInvocationRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateWorkflowInvocationRequest.php new file mode 100644 index 000000000000..c9ca480ed73c --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateWorkflowInvocationRequest.php @@ -0,0 +1,132 @@ +google.cloud.dataform.v1.CreateWorkflowInvocationRequest + */ +class CreateWorkflowInvocationRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The repository in which to create the workflow invocation. Must + * be in the format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The workflow invocation resource to create. + * + * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocation workflow_invocation = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $workflow_invocation = null; + + /** + * @param string $parent Required. The repository in which to create the workflow invocation. Must + * be in the format `projects/*/locations/*/repositories/*`. Please see + * {@see DataformClient::repositoryName()} for help formatting this field. + * @param \Google\Cloud\Dataform\V1\WorkflowInvocation $workflowInvocation Required. The workflow invocation resource to create. + * + * @return \Google\Cloud\Dataform\V1\CreateWorkflowInvocationRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Dataform\V1\WorkflowInvocation $workflowInvocation): self + { + return (new self()) + ->setParent($parent) + ->setWorkflowInvocation($workflowInvocation); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The repository in which to create the workflow invocation. Must + * be in the format `projects/{@*}locations/{@*}repositories/*`. + * @type \Google\Cloud\Dataform\V1\WorkflowInvocation $workflow_invocation + * Required. The workflow invocation resource to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The repository in which to create the workflow invocation. Must + * be in the format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The repository in which to create the workflow invocation. Must + * be in the format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The workflow invocation resource to create. + * + * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocation workflow_invocation = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataform\V1\WorkflowInvocation|null + */ + public function getWorkflowInvocation() + { + return $this->workflow_invocation; + } + + public function hasWorkflowInvocation() + { + return isset($this->workflow_invocation); + } + + public function clearWorkflowInvocation() + { + unset($this->workflow_invocation); + } + + /** + * Required. The workflow invocation resource to create. + * + * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocation workflow_invocation = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataform\V1\WorkflowInvocation $var + * @return $this + */ + public function setWorkflowInvocation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\WorkflowInvocation::class); + $this->workflow_invocation = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateWorkspaceRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateWorkspaceRequest.php new file mode 100644 index 000000000000..d4a902cbbcd8 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateWorkspaceRequest.php @@ -0,0 +1,173 @@ +google.cloud.dataform.v1.CreateWorkspaceRequest + */ +class CreateWorkspaceRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The repository in which to create the workspace. Must be in the + * format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The workspace to create. + * + * Generated from protobuf field .google.cloud.dataform.v1.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $workspace = null; + /** + * Required. The ID to use for the workspace, which will become the final + * component of the workspace's resource name. + * + * Generated from protobuf field string workspace_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $workspace_id = ''; + + /** + * @param string $parent Required. The repository in which to create the workspace. Must be in the + * format `projects/*/locations/*/repositories/*`. Please see + * {@see DataformClient::repositoryName()} for help formatting this field. + * @param \Google\Cloud\Dataform\V1\Workspace $workspace Required. The workspace to create. + * @param string $workspaceId Required. The ID to use for the workspace, which will become the final + * component of the workspace's resource name. + * + * @return \Google\Cloud\Dataform\V1\CreateWorkspaceRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Dataform\V1\Workspace $workspace, string $workspaceId): self + { + return (new self()) + ->setParent($parent) + ->setWorkspace($workspace) + ->setWorkspaceId($workspaceId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The repository in which to create the workspace. Must be in the + * format `projects/{@*}locations/{@*}repositories/*`. + * @type \Google\Cloud\Dataform\V1\Workspace $workspace + * Required. The workspace to create. + * @type string $workspace_id + * Required. The ID to use for the workspace, which will become the final + * component of the workspace's resource name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The repository in which to create the workspace. Must be in the + * format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The repository in which to create the workspace. Must be in the + * format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The workspace to create. + * + * Generated from protobuf field .google.cloud.dataform.v1.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataform\V1\Workspace|null + */ + public function getWorkspace() + { + return $this->workspace; + } + + public function hasWorkspace() + { + return isset($this->workspace); + } + + public function clearWorkspace() + { + unset($this->workspace); + } + + /** + * Required. The workspace to create. + * + * Generated from protobuf field .google.cloud.dataform.v1.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataform\V1\Workspace $var + * @return $this + */ + public function setWorkspace($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\Workspace::class); + $this->workspace = $var; + + return $this; + } + + /** + * Required. The ID to use for the workspace, which will become the final + * component of the workspace's resource name. + * + * Generated from protobuf field string workspace_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getWorkspaceId() + { + return $this->workspace_id; + } + + /** + * Required. The ID to use for the workspace, which will become the final + * component of the workspace's resource name. + * + * Generated from protobuf field string workspace_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setWorkspaceId($var) + { + GPBUtil::checkString($var, True); + $this->workspace_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DataEncryptionState.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DataEncryptionState.php new file mode 100644 index 000000000000..165ac94e093a --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DataEncryptionState.php @@ -0,0 +1,71 @@ +google.cloud.dataform.v1.DataEncryptionState + */ +class DataEncryptionState extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The KMS key version name with which data of a resource is + * encrypted. + * + * Generated from protobuf field string kms_key_version_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $kms_key_version_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $kms_key_version_name + * Required. The KMS key version name with which data of a resource is + * encrypted. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The KMS key version name with which data of a resource is + * encrypted. + * + * Generated from protobuf field string kms_key_version_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getKmsKeyVersionName() + { + return $this->kms_key_version_name; + } + + /** + * Required. The KMS key version name with which data of a resource is + * encrypted. + * + * Generated from protobuf field string kms_key_version_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setKmsKeyVersionName($var) + { + GPBUtil::checkString($var, True); + $this->kms_key_version_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteFolderRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteFolderRequest.php new file mode 100644 index 000000000000..5ac67e50550a --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteFolderRequest.php @@ -0,0 +1,81 @@ +google.cloud.dataform.v1.DeleteFolderRequest + */ +class DeleteFolderRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The Folder's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The Folder's name. Please see + * {@see DataformClient::folderName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1\DeleteFolderRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The Folder's name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The Folder's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The Folder's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteFolderTreeMetadata.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteFolderTreeMetadata.php new file mode 100644 index 000000000000..a15720bb8203 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteFolderTreeMetadata.php @@ -0,0 +1,232 @@ +google.cloud.dataform.v1.DeleteFolderTreeMetadata + */ +class DeleteFolderTreeMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The time the operation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time the operation finished running. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $end_time = null; + /** + * 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} + * + * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $target = ''; + /** + * Output only. The state of the operation. + * + * Generated from protobuf field .google.cloud.dataform.v1.DeleteFolderTreeMetadata.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. Percent complete of the operation [0, 100]. + * + * Generated from protobuf field int32 percent_complete = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $percent_complete = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time the operation was created. + * @type \Google\Protobuf\Timestamp $end_time + * Output only. The time the operation finished running. + * @type string $target + * 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} + * @type int $state + * Output only. The state of the operation. + * @type int $percent_complete + * Output only. Percent complete of the operation [0, 100]. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The time the operation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The time the operation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The time the operation finished running. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getEndTime() + { + return $this->end_time; + } + + public function hasEndTime() + { + return isset($this->end_time); + } + + public function clearEndTime() + { + unset($this->end_time); + } + + /** + * Output only. The time the operation finished running. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + + /** + * 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} + * + * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getTarget() + { + return $this->target; + } + + /** + * 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} + * + * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setTarget($var) + { + GPBUtil::checkString($var, True); + $this->target = $var; + + return $this; + } + + /** + * Output only. The state of the operation. + * + * Generated from protobuf field .google.cloud.dataform.v1.DeleteFolderTreeMetadata.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. The state of the operation. + * + * Generated from protobuf field .google.cloud.dataform.v1.DeleteFolderTreeMetadata.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1\DeleteFolderTreeMetadata\State::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. Percent complete of the operation [0, 100]. + * + * Generated from protobuf field int32 percent_complete = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getPercentComplete() + { + return $this->percent_complete; + } + + /** + * Output only. Percent complete of the operation [0, 100]. + * + * Generated from protobuf field int32 percent_complete = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setPercentComplete($var) + { + GPBUtil::checkInt32($var); + $this->percent_complete = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteFolderTreeMetadata/State.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteFolderTreeMetadata/State.php new file mode 100644 index 000000000000..5dbd201944f3 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteFolderTreeMetadata/State.php @@ -0,0 +1,76 @@ +google.cloud.dataform.v1.DeleteFolderTreeMetadata.State + */ +class State +{ + /** + * The state is unspecified. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * The operation was initialized and recorded by the server, but not yet + * started. + * + * Generated from protobuf enum INITIALIZED = 1; + */ + const INITIALIZED = 1; + /** + * The operation is in progress. + * + * Generated from protobuf enum IN_PROGRESS = 2; + */ + const IN_PROGRESS = 2; + /** + * The operation has completed successfully. + * + * Generated from protobuf enum SUCCEEDED = 3; + */ + const SUCCEEDED = 3; + /** + * The operation has failed. + * + * Generated from protobuf enum FAILED = 4; + */ + const FAILED = 4; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::INITIALIZED => 'INITIALIZED', + self::IN_PROGRESS => 'IN_PROGRESS', + self::SUCCEEDED => 'SUCCEEDED', + self::FAILED => 'FAILED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteFolderTreeRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteFolderTreeRequest.php new file mode 100644 index 000000000000..449bb44ac25d --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteFolderTreeRequest.php @@ -0,0 +1,148 @@ +google.cloud.dataform.v1.DeleteFolderTreeRequest + */ +class DeleteFolderTreeRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The Folder's name. + * Format: projects/{project}/locations/{location}/folders/{folder} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * 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. + * + * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $force = false; + + /** + * @param string $name Required. The Folder's name. + * Format: projects/{project}/locations/{location}/folders/{folder} + * Please see {@see DataformClient::folderName()} for help formatting this field. + * @param bool $force 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. + * + * @return \Google\Cloud\Dataform\V1\DeleteFolderTreeRequest + * + * @experimental + */ + public static function build(string $name, bool $force): self + { + return (new self()) + ->setName($name) + ->setForce($force); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The Folder's name. + * Format: projects/{project}/locations/{location}/folders/{folder} + * @type bool $force + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The Folder's name. + * Format: projects/{project}/locations/{location}/folders/{folder} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The Folder's name. + * Format: projects/{project}/locations/{location}/folders/{folder} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getForce() + { + return $this->force; + } + + /** + * 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. + * + * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setForce($var) + { + GPBUtil::checkBool($var); + $this->force = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteReleaseConfigRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteReleaseConfigRequest.php new file mode 100644 index 000000000000..886230cf50c2 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteReleaseConfigRequest.php @@ -0,0 +1,81 @@ +google.cloud.dataform.v1.DeleteReleaseConfigRequest + */ +class DeleteReleaseConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The release config's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The release config's name. Please see + * {@see DataformClient::releaseConfigName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1\DeleteReleaseConfigRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The release config's name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The release config's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The release config's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteRepositoryRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteRepositoryRequest.php new file mode 100644 index 000000000000..59733be1474b --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteRepositoryRequest.php @@ -0,0 +1,135 @@ +google.cloud.dataform.v1.DeleteRepositoryRequest + */ +class DeleteRepositoryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * 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.*. + * + * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $force = false; + + /** + * @param string $name Required. The repository's name. Please see + * {@see DataformClient::repositoryName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1\DeleteRepositoryRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The repository's name. + * @type bool $force + * 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.*. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * 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.*. + * + * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getForce() + { + return $this->force; + } + + /** + * 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.*. + * + * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setForce($var) + { + GPBUtil::checkBool($var); + $this->force = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteTeamFolderRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteTeamFolderRequest.php new file mode 100644 index 000000000000..616b62b04361 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteTeamFolderRequest.php @@ -0,0 +1,81 @@ +google.cloud.dataform.v1.DeleteTeamFolderRequest + */ +class DeleteTeamFolderRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The TeamFolder's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The TeamFolder's name. Please see + * {@see DataformClient::teamFolderName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1\DeleteTeamFolderRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The TeamFolder's name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The TeamFolder's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The TeamFolder's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteTeamFolderTreeRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteTeamFolderTreeRequest.php new file mode 100644 index 000000000000..27c7f20215a6 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteTeamFolderTreeRequest.php @@ -0,0 +1,148 @@ +google.cloud.dataform.v1.DeleteTeamFolderTreeRequest + */ +class DeleteTeamFolderTreeRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The TeamFolder's name. + * Format: projects/{project}/locations/{location}/teamFolders/{team_folder} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * 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. + * + * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $force = false; + + /** + * @param string $name Required. The TeamFolder's name. + * Format: projects/{project}/locations/{location}/teamFolders/{team_folder} + * Please see {@see DataformClient::teamFolderName()} for help formatting this field. + * @param bool $force 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. + * + * @return \Google\Cloud\Dataform\V1\DeleteTeamFolderTreeRequest + * + * @experimental + */ + public static function build(string $name, bool $force): self + { + return (new self()) + ->setName($name) + ->setForce($force); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The TeamFolder's name. + * Format: projects/{project}/locations/{location}/teamFolders/{team_folder} + * @type bool $force + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The TeamFolder's name. + * Format: projects/{project}/locations/{location}/teamFolders/{team_folder} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The TeamFolder's name. + * Format: projects/{project}/locations/{location}/teamFolders/{team_folder} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getForce() + { + return $this->force; + } + + /** + * 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. + * + * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setForce($var) + { + GPBUtil::checkBool($var); + $this->force = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteWorkflowConfigRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteWorkflowConfigRequest.php new file mode 100644 index 000000000000..47ac74c52e22 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteWorkflowConfigRequest.php @@ -0,0 +1,81 @@ +google.cloud.dataform.v1.DeleteWorkflowConfigRequest + */ +class DeleteWorkflowConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workflow config's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The workflow config's name. Please see + * {@see DataformClient::workflowConfigName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1\DeleteWorkflowConfigRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The workflow config's name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workflow config's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The workflow config's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteWorkflowInvocationRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteWorkflowInvocationRequest.php new file mode 100644 index 000000000000..eec3db6fa10c --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteWorkflowInvocationRequest.php @@ -0,0 +1,81 @@ +google.cloud.dataform.v1.DeleteWorkflowInvocationRequest + */ +class DeleteWorkflowInvocationRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workflow invocation resource's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The workflow invocation resource's name. Please see + * {@see DataformClient::workflowInvocationName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1\DeleteWorkflowInvocationRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The workflow invocation resource's name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workflow invocation resource's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The workflow invocation resource's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteWorkspaceRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteWorkspaceRequest.php new file mode 100644 index 000000000000..2b4000f8e8fd --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteWorkspaceRequest.php @@ -0,0 +1,81 @@ +google.cloud.dataform.v1.DeleteWorkspaceRequest + */ +class DeleteWorkspaceRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workspace resource's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The workspace resource's name. Please see + * {@see DataformClient::workspaceName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1\DeleteWorkspaceRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The workspace resource's name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workspace resource's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The workspace resource's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DirectoryContentsView.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DirectoryContentsView.php new file mode 100644 index 000000000000..d9c24b5868d0 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DirectoryContentsView.php @@ -0,0 +1,62 @@ +google.cloud.dataform.v1.DirectoryContentsView + */ +class DirectoryContentsView +{ + /** + * The default / unset value. Defaults to DIRECTORY_CONTENTS_VIEW_BASIC. + * + * Generated from protobuf enum DIRECTORY_CONTENTS_VIEW_UNSPECIFIED = 0; + */ + const DIRECTORY_CONTENTS_VIEW_UNSPECIFIED = 0; + /** + * Includes only the file or directory name. This is the default behavior. + * + * Generated from protobuf enum DIRECTORY_CONTENTS_VIEW_BASIC = 1; + */ + const DIRECTORY_CONTENTS_VIEW_BASIC = 1; + /** + * Includes all metadata for each file or directory. Currently not supported + * by CMEK-protected workspaces. + * + * Generated from protobuf enum DIRECTORY_CONTENTS_VIEW_METADATA = 2; + */ + const DIRECTORY_CONTENTS_VIEW_METADATA = 2; + + private static $valueToName = [ + self::DIRECTORY_CONTENTS_VIEW_UNSPECIFIED => 'DIRECTORY_CONTENTS_VIEW_UNSPECIFIED', + self::DIRECTORY_CONTENTS_VIEW_BASIC => 'DIRECTORY_CONTENTS_VIEW_BASIC', + self::DIRECTORY_CONTENTS_VIEW_METADATA => 'DIRECTORY_CONTENTS_VIEW_METADATA', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DirectoryEntry.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DirectoryEntry.php new file mode 100644 index 000000000000..ffbd681be53c --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DirectoryEntry.php @@ -0,0 +1,152 @@ +google.cloud.dataform.v1.DirectoryEntry + */ +class DirectoryEntry extends \Google\Protobuf\Internal\Message +{ + /** + * Entry with metadata. + * + * Generated from protobuf field .google.cloud.dataform.v1.FilesystemEntryMetadata metadata = 3; + */ + protected $metadata = null; + protected $entry; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $file + * A file in the directory. + * @type string $directory + * A child directory in the directory. + * @type \Google\Cloud\Dataform\V1\FilesystemEntryMetadata $metadata + * Entry with metadata. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * A file in the directory. + * + * Generated from protobuf field string file = 1; + * @return string + */ + public function getFile() + { + return $this->readOneof(1); + } + + public function hasFile() + { + return $this->hasOneof(1); + } + + /** + * A file in the directory. + * + * Generated from protobuf field string file = 1; + * @param string $var + * @return $this + */ + public function setFile($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * A child directory in the directory. + * + * Generated from protobuf field string directory = 2; + * @return string + */ + public function getDirectory() + { + return $this->readOneof(2); + } + + public function hasDirectory() + { + return $this->hasOneof(2); + } + + /** + * A child directory in the directory. + * + * Generated from protobuf field string directory = 2; + * @param string $var + * @return $this + */ + public function setDirectory($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Entry with metadata. + * + * Generated from protobuf field .google.cloud.dataform.v1.FilesystemEntryMetadata metadata = 3; + * @return \Google\Cloud\Dataform\V1\FilesystemEntryMetadata|null + */ + public function getMetadata() + { + return $this->metadata; + } + + public function hasMetadata() + { + return isset($this->metadata); + } + + public function clearMetadata() + { + unset($this->metadata); + } + + /** + * Entry with metadata. + * + * Generated from protobuf field .google.cloud.dataform.v1.FilesystemEntryMetadata metadata = 3; + * @param \Google\Cloud\Dataform\V1\FilesystemEntryMetadata $var + * @return $this + */ + public function setMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\FilesystemEntryMetadata::class); + $this->metadata = $var; + + return $this; + } + + /** + * @return string + */ + public function getEntry() + { + return $this->whichOneof("entry"); + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DirectorySearchResult.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DirectorySearchResult.php new file mode 100644 index 000000000000..5d88d1e45d15 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DirectorySearchResult.php @@ -0,0 +1,67 @@ +google.cloud.dataform.v1.DirectorySearchResult + */ +class DirectorySearchResult extends \Google\Protobuf\Internal\Message +{ + /** + * File system path relative to the workspace root. + * + * Generated from protobuf field string path = 1; + */ + protected $path = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $path + * File system path relative to the workspace root. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * File system path relative to the workspace root. + * + * Generated from protobuf field string path = 1; + * @return string + */ + public function getPath() + { + return $this->path; + } + + /** + * File system path relative to the workspace root. + * + * Generated from protobuf field string path = 1; + * @param string $var + * @return $this + */ + public function setPath($var) + { + GPBUtil::checkString($var, True); + $this->path = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileDiffRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileDiffRequest.php new file mode 100644 index 000000000000..438a3c9c73c0 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileDiffRequest.php @@ -0,0 +1,105 @@ +google.cloud.dataform.v1.FetchFileDiffRequest + */ +class FetchFileDiffRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $workspace = ''; + /** + * Required. The file's full path including filename, relative to the + * workspace root. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $path = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $workspace + * Required. The workspace's name. + * @type string $path + * Required. The file's full path including filename, relative to the + * workspace root. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getWorkspace() + { + return $this->workspace; + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setWorkspace($var) + { + GPBUtil::checkString($var, True); + $this->workspace = $var; + + return $this; + } + + /** + * Required. The file's full path including filename, relative to the + * workspace root. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getPath() + { + return $this->path; + } + + /** + * Required. The file's full path including filename, relative to the + * workspace root. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setPath($var) + { + GPBUtil::checkString($var, True); + $this->path = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileDiffResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileDiffResponse.php new file mode 100644 index 000000000000..00bfd68bdd8c --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileDiffResponse.php @@ -0,0 +1,67 @@ +google.cloud.dataform.v1.FetchFileDiffResponse + */ +class FetchFileDiffResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The raw formatted Git diff for the file. + * + * Generated from protobuf field string formatted_diff = 1; + */ + protected $formatted_diff = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $formatted_diff + * The raw formatted Git diff for the file. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * The raw formatted Git diff for the file. + * + * Generated from protobuf field string formatted_diff = 1; + * @return string + */ + public function getFormattedDiff() + { + return $this->formatted_diff; + } + + /** + * The raw formatted Git diff for the file. + * + * Generated from protobuf field string formatted_diff = 1; + * @param string $var + * @return $this + */ + public function setFormattedDiff($var) + { + GPBUtil::checkString($var, True); + $this->formatted_diff = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileGitStatusesRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileGitStatusesRequest.php new file mode 100644 index 000000000000..134b00be6da2 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileGitStatusesRequest.php @@ -0,0 +1,67 @@ +google.cloud.dataform.v1.FetchFileGitStatusesRequest + */ +class FetchFileGitStatusesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The workspace's name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileGitStatusesResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileGitStatusesResponse.php new file mode 100644 index 000000000000..5c44196da127 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileGitStatusesResponse.php @@ -0,0 +1,71 @@ +google.cloud.dataform.v1.FetchFileGitStatusesResponse + */ +class FetchFileGitStatusesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * A list of all files which have uncommitted Git changes. There will only be + * a single entry for any given file. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; + */ + private $uncommitted_file_changes; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1\FetchFileGitStatusesResponse\UncommittedFileChange[] $uncommitted_file_changes + * A list of all files which have uncommitted Git changes. There will only be + * a single entry for any given file. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * A list of all files which have uncommitted Git changes. There will only be + * a single entry for any given file. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; + * @return RepeatedField<\Google\Cloud\Dataform\V1\FetchFileGitStatusesResponse\UncommittedFileChange> + */ + public function getUncommittedFileChanges() + { + return $this->uncommitted_file_changes; + } + + /** + * A list of all files which have uncommitted Git changes. There will only be + * a single entry for any given file. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; + * @param \Google\Cloud\Dataform\V1\FetchFileGitStatusesResponse\UncommittedFileChange[] $var + * @return $this + */ + public function setUncommittedFileChanges($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\FetchFileGitStatusesResponse\UncommittedFileChange::class); + $this->uncommitted_file_changes = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileGitStatusesResponse/UncommittedFileChange.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileGitStatusesResponse/UncommittedFileChange.php new file mode 100644 index 000000000000..ea11b9a6f76a --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileGitStatusesResponse/UncommittedFileChange.php @@ -0,0 +1,101 @@ +google.cloud.dataform.v1.FetchFileGitStatusesResponse.UncommittedFileChange + */ +class UncommittedFileChange extends \Google\Protobuf\Internal\Message +{ + /** + * The file's full path including filename, relative to the workspace root. + * + * Generated from protobuf field string path = 1; + */ + protected $path = ''; + /** + * Output only. Indicates the status of the file. + * + * Generated from protobuf field .google.cloud.dataform.v1.FetchFileGitStatusesResponse.UncommittedFileChange.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $path + * The file's full path including filename, relative to the workspace root. + * @type int $state + * Output only. Indicates the status of the file. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * The file's full path including filename, relative to the workspace root. + * + * Generated from protobuf field string path = 1; + * @return string + */ + public function getPath() + { + return $this->path; + } + + /** + * The file's full path including filename, relative to the workspace root. + * + * Generated from protobuf field string path = 1; + * @param string $var + * @return $this + */ + public function setPath($var) + { + GPBUtil::checkString($var, True); + $this->path = $var; + + return $this; + } + + /** + * Output only. Indicates the status of the file. + * + * Generated from protobuf field .google.cloud.dataform.v1.FetchFileGitStatusesResponse.UncommittedFileChange.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. Indicates the status of the file. + * + * Generated from protobuf field .google.cloud.dataform.v1.FetchFileGitStatusesResponse.UncommittedFileChange.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1\FetchFileGitStatusesResponse\UncommittedFileChange\State::class); + $this->state = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileGitStatusesResponse/UncommittedFileChange/State.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileGitStatusesResponse/UncommittedFileChange/State.php new file mode 100644 index 000000000000..33e264f30f1f --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileGitStatusesResponse/UncommittedFileChange/State.php @@ -0,0 +1,75 @@ +google.cloud.dataform.v1.FetchFileGitStatusesResponse.UncommittedFileChange.State + */ +class State +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * The file has been newly added. + * + * Generated from protobuf enum ADDED = 1; + */ + const ADDED = 1; + /** + * The file has been deleted. + * + * Generated from protobuf enum DELETED = 2; + */ + const DELETED = 2; + /** + * The file has been modified. + * + * Generated from protobuf enum MODIFIED = 3; + */ + const MODIFIED = 3; + /** + * The file contains merge conflicts. + * + * Generated from protobuf enum HAS_CONFLICTS = 4; + */ + const HAS_CONFLICTS = 4; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::ADDED => 'ADDED', + self::DELETED => 'DELETED', + self::MODIFIED => 'MODIFIED', + self::HAS_CONFLICTS => 'HAS_CONFLICTS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchGitAheadBehindRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchGitAheadBehindRequest.php new file mode 100644 index 000000000000..3c513a1fe6d4 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchGitAheadBehindRequest.php @@ -0,0 +1,109 @@ +google.cloud.dataform.v1.FetchGitAheadBehindRequest + */ +class FetchGitAheadBehindRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * 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. + * + * Generated from protobuf field string remote_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $remote_branch = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The workspace's name. + * @type string $remote_branch + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string remote_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRemoteBranch() + { + return $this->remote_branch; + } + + /** + * 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. + * + * Generated from protobuf field string remote_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRemoteBranch($var) + { + GPBUtil::checkString($var, True); + $this->remote_branch = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchGitAheadBehindResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchGitAheadBehindResponse.php new file mode 100644 index 000000000000..d04c8cafa68d --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchGitAheadBehindResponse.php @@ -0,0 +1,101 @@ +google.cloud.dataform.v1.FetchGitAheadBehindResponse + */ +class FetchGitAheadBehindResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The number of commits in the remote branch that are not in the workspace. + * + * Generated from protobuf field int32 commits_ahead = 1; + */ + protected $commits_ahead = 0; + /** + * The number of commits in the workspace that are not in the remote branch. + * + * Generated from protobuf field int32 commits_behind = 2; + */ + protected $commits_behind = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $commits_ahead + * The number of commits in the remote branch that are not in the workspace. + * @type int $commits_behind + * The number of commits in the workspace that are not in the remote branch. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * The number of commits in the remote branch that are not in the workspace. + * + * Generated from protobuf field int32 commits_ahead = 1; + * @return int + */ + public function getCommitsAhead() + { + return $this->commits_ahead; + } + + /** + * The number of commits in the remote branch that are not in the workspace. + * + * Generated from protobuf field int32 commits_ahead = 1; + * @param int $var + * @return $this + */ + public function setCommitsAhead($var) + { + GPBUtil::checkInt32($var); + $this->commits_ahead = $var; + + return $this; + } + + /** + * The number of commits in the workspace that are not in the remote branch. + * + * Generated from protobuf field int32 commits_behind = 2; + * @return int + */ + public function getCommitsBehind() + { + return $this->commits_behind; + } + + /** + * The number of commits in the workspace that are not in the remote branch. + * + * Generated from protobuf field int32 commits_behind = 2; + * @param int $var + * @return $this + */ + public function setCommitsBehind($var) + { + GPBUtil::checkInt32($var); + $this->commits_behind = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchRemoteBranchesRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchRemoteBranchesRequest.php new file mode 100644 index 000000000000..f531fb6274e5 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchRemoteBranchesRequest.php @@ -0,0 +1,67 @@ +google.cloud.dataform.v1.FetchRemoteBranchesRequest + */ +class FetchRemoteBranchesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The repository's name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchRemoteBranchesResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchRemoteBranchesResponse.php new file mode 100644 index 000000000000..a6f147e823df --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchRemoteBranchesResponse.php @@ -0,0 +1,67 @@ +google.cloud.dataform.v1.FetchRemoteBranchesResponse + */ +class FetchRemoteBranchesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The remote repository's branch names. + * + * Generated from protobuf field repeated string branches = 1; + */ + private $branches; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string[] $branches + * The remote repository's branch names. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * The remote repository's branch names. + * + * Generated from protobuf field repeated string branches = 1; + * @return RepeatedField + */ + public function getBranches() + { + return $this->branches; + } + + /** + * The remote repository's branch names. + * + * Generated from protobuf field repeated string branches = 1; + * @param string[] $var + * @return $this + */ + public function setBranches($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->branches = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchRepositoryHistoryRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchRepositoryHistoryRequest.php new file mode 100644 index 000000000000..8a9226ee4ca6 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchRepositoryHistoryRequest.php @@ -0,0 +1,159 @@ +google.cloud.dataform.v1.FetchRepositoryHistoryRequest + */ +class FetchRepositoryHistoryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. Maximum number of commits to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * 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. + * + * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The repository's name. + * @type int $page_size + * Optional. Maximum number of commits to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * @type string $page_token + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. Maximum number of commits to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Maximum number of commits to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchRepositoryHistoryResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchRepositoryHistoryResponse.php new file mode 100644 index 000000000000..4912f9616445 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchRepositoryHistoryResponse.php @@ -0,0 +1,105 @@ +google.cloud.dataform.v1.FetchRepositoryHistoryResponse + */ +class FetchRepositoryHistoryResponse extends \Google\Protobuf\Internal\Message +{ + /** + * A list of commit logs, ordered by 'git log' default order. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.CommitLogEntry commits = 1; + */ + private $commits; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1\CommitLogEntry[] $commits + * A list of commit logs, ordered by 'git log' default order. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * A list of commit logs, ordered by 'git log' default order. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.CommitLogEntry commits = 1; + * @return RepeatedField<\Google\Cloud\Dataform\V1\CommitLogEntry> + */ + public function getCommits() + { + return $this->commits; + } + + /** + * A list of commit logs, ordered by 'git log' default order. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.CommitLogEntry commits = 1; + * @param \Google\Cloud\Dataform\V1\CommitLogEntry[] $var + * @return $this + */ + public function setCommits($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\CommitLogEntry::class); + $this->commits = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FileSearchResult.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FileSearchResult.php new file mode 100644 index 000000000000..b1918fd37f44 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FileSearchResult.php @@ -0,0 +1,67 @@ +google.cloud.dataform.v1.FileSearchResult + */ +class FileSearchResult extends \Google\Protobuf\Internal\Message +{ + /** + * File system path relative to the workspace root. + * + * Generated from protobuf field string path = 1; + */ + protected $path = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $path + * File system path relative to the workspace root. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * File system path relative to the workspace root. + * + * Generated from protobuf field string path = 1; + * @return string + */ + public function getPath() + { + return $this->path; + } + + /** + * File system path relative to the workspace root. + * + * Generated from protobuf field string path = 1; + * @param string $var + * @return $this + */ + public function setPath($var) + { + GPBUtil::checkString($var, True); + $this->path = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FilesystemEntryMetadata.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FilesystemEntryMetadata.php new file mode 100644 index 000000000000..f8e2c08a9424 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FilesystemEntryMetadata.php @@ -0,0 +1,115 @@ +google.cloud.dataform.v1.FilesystemEntryMetadata + */ +class FilesystemEntryMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Provides the size of the entry in bytes. For directories, this + * will be 0. + * + * Generated from protobuf field int64 size_bytes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $size_bytes = 0; + /** + * Output only. Represents the time of the last modification of the entry. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $size_bytes + * Output only. Provides the size of the entry in bytes. For directories, this + * will be 0. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Represents the time of the last modification of the entry. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Provides the size of the entry in bytes. For directories, this + * will be 0. + * + * Generated from protobuf field int64 size_bytes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getSizeBytes() + { + return $this->size_bytes; + } + + /** + * Output only. Provides the size of the entry in bytes. For directories, this + * will be 0. + * + * Generated from protobuf field int64 size_bytes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setSizeBytes($var) + { + GPBUtil::checkInt64($var); + $this->size_bytes = $var; + + return $this; + } + + /** + * Output only. Represents the time of the last modification of the entry. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. Represents the time of the last modification of the entry. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Folder.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Folder.php new file mode 100644 index 000000000000..b2ce61c21a3d --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Folder.php @@ -0,0 +1,386 @@ +google.cloud.dataform.v1.Folder + */ +class Folder extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The Folder's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Required. The Folder's user-friendly name. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * 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. + * + * Generated from protobuf field string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $containing_folder = ''; + /** + * 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. + * + * Generated from protobuf field string team_folder_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $team_folder_name = ''; + /** + * Output only. The timestamp of when the Folder was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The timestamp of when the Folder was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $internal_metadata = null; + /** + * Output only. The IAM principal identifier of the creator of the Folder. + * + * Generated from protobuf field optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $creator_iam_principal = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The Folder's name. + * @type string $display_name + * Required. The Folder's user-friendly name. + * @type string $containing_folder + * 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. + * @type string $team_folder_name + * 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. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The timestamp of when the Folder was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The timestamp of when the Folder was last updated. + * @type string $internal_metadata + * 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. + * @type string $creator_iam_principal + * Output only. The IAM principal identifier of the creator of the Folder. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The Folder's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The Folder's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The Folder's user-friendly name. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. The Folder's user-friendly name. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getContainingFolder() + { + return $this->containing_folder; + } + + /** + * 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. + * + * Generated from protobuf field string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setContainingFolder($var) + { + GPBUtil::checkString($var, True); + $this->containing_folder = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string team_folder_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getTeamFolderName() + { + return $this->team_folder_name; + } + + /** + * 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. + * + * Generated from protobuf field string team_folder_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setTeamFolderName($var) + { + GPBUtil::checkString($var, True); + $this->team_folder_name = $var; + + return $this; + } + + /** + * Output only. The timestamp of when the Folder was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The timestamp of when the Folder was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The timestamp of when the Folder was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The timestamp of when the Folder was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getInternalMetadata() + { + return isset($this->internal_metadata) ? $this->internal_metadata : ''; + } + + public function hasInternalMetadata() + { + return isset($this->internal_metadata); + } + + public function clearInternalMetadata() + { + unset($this->internal_metadata); + } + + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setInternalMetadata($var) + { + GPBUtil::checkString($var, True); + $this->internal_metadata = $var; + + return $this; + } + + /** + * Output only. The IAM principal identifier of the creator of the Folder. + * + * Generated from protobuf field optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getCreatorIamPrincipal() + { + return isset($this->creator_iam_principal) ? $this->creator_iam_principal : ''; + } + + public function hasCreatorIamPrincipal() + { + return isset($this->creator_iam_principal); + } + + public function clearCreatorIamPrincipal() + { + unset($this->creator_iam_principal); + } + + /** + * Output only. The IAM principal identifier of the creator of the Folder. + * + * Generated from protobuf field optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setCreatorIamPrincipal($var) + { + GPBUtil::checkString($var, True); + $this->creator_iam_principal = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetCompilationResultRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetCompilationResultRequest.php new file mode 100644 index 000000000000..97a6017676f8 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetCompilationResultRequest.php @@ -0,0 +1,81 @@ +google.cloud.dataform.v1.GetCompilationResultRequest + */ +class GetCompilationResultRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The compilation result's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The compilation result's name. Please see + * {@see DataformClient::compilationResultName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1\GetCompilationResultRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The compilation result's name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The compilation result's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The compilation result's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetConfigRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetConfigRequest.php new file mode 100644 index 000000000000..763466bbb7f5 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetConfigRequest.php @@ -0,0 +1,81 @@ +google.cloud.dataform.v1.GetConfigRequest + */ +class GetConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The config name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The config name. Please see + * {@see DataformClient::configName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1\GetConfigRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The config name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The config name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The config name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetFolderRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetFolderRequest.php new file mode 100644 index 000000000000..416137ded0a2 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetFolderRequest.php @@ -0,0 +1,81 @@ +google.cloud.dataform.v1.GetFolderRequest + */ +class GetFolderRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The Folder's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The Folder's name. Please see + * {@see DataformClient::folderName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1\GetFolderRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The Folder's name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The Folder's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The Folder's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetReleaseConfigRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetReleaseConfigRequest.php new file mode 100644 index 000000000000..603657cf0069 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetReleaseConfigRequest.php @@ -0,0 +1,81 @@ +google.cloud.dataform.v1.GetReleaseConfigRequest + */ +class GetReleaseConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The release config's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The release config's name. Please see + * {@see DataformClient::releaseConfigName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1\GetReleaseConfigRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The release config's name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The release config's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The release config's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetRepositoryRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetRepositoryRequest.php new file mode 100644 index 000000000000..a7098be02968 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetRepositoryRequest.php @@ -0,0 +1,81 @@ +google.cloud.dataform.v1.GetRepositoryRequest + */ +class GetRepositoryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The repository's name. Please see + * {@see DataformClient::repositoryName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1\GetRepositoryRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The repository's name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetTeamFolderRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetTeamFolderRequest.php new file mode 100644 index 000000000000..84ade79beeef --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetTeamFolderRequest.php @@ -0,0 +1,81 @@ +google.cloud.dataform.v1.GetTeamFolderRequest + */ +class GetTeamFolderRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The TeamFolder's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The TeamFolder's name. Please see + * {@see DataformClient::teamFolderName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1\GetTeamFolderRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The TeamFolder's name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The TeamFolder's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The TeamFolder's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetWorkflowConfigRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetWorkflowConfigRequest.php new file mode 100644 index 000000000000..9e15614377ea --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetWorkflowConfigRequest.php @@ -0,0 +1,81 @@ +google.cloud.dataform.v1.GetWorkflowConfigRequest + */ +class GetWorkflowConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workflow config's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The workflow config's name. Please see + * {@see DataformClient::workflowConfigName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1\GetWorkflowConfigRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The workflow config's name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workflow config's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The workflow config's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetWorkflowInvocationRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetWorkflowInvocationRequest.php new file mode 100644 index 000000000000..cb5c625b1270 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetWorkflowInvocationRequest.php @@ -0,0 +1,81 @@ +google.cloud.dataform.v1.GetWorkflowInvocationRequest + */ +class GetWorkflowInvocationRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workflow invocation resource's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The workflow invocation resource's name. Please see + * {@see DataformClient::workflowInvocationName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1\GetWorkflowInvocationRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The workflow invocation resource's name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workflow invocation resource's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The workflow invocation resource's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetWorkspaceRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetWorkspaceRequest.php new file mode 100644 index 000000000000..962d38895c31 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetWorkspaceRequest.php @@ -0,0 +1,81 @@ +google.cloud.dataform.v1.GetWorkspaceRequest + */ +class GetWorkspaceRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The workspace's name. Please see + * {@see DataformClient::workspaceName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1\GetWorkspaceRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The workspace's name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/InstallNpmPackagesRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/InstallNpmPackagesRequest.php new file mode 100644 index 000000000000..09773c9e28ad --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/InstallNpmPackagesRequest.php @@ -0,0 +1,67 @@ +google.cloud.dataform.v1.InstallNpmPackagesRequest + */ +class InstallNpmPackagesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $workspace = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $workspace + * Required. The workspace's name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getWorkspace() + { + return $this->workspace; + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setWorkspace($var) + { + GPBUtil::checkString($var, True); + $this->workspace = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/InstallNpmPackagesResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/InstallNpmPackagesResponse.php new file mode 100644 index 000000000000..4c8279c484cf --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/InstallNpmPackagesResponse.php @@ -0,0 +1,33 @@ +google.cloud.dataform.v1.InstallNpmPackagesResponse + */ +class InstallNpmPackagesResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/InvocationConfig.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/InvocationConfig.php new file mode 100644 index 000000000000..cf7a84b89b6d --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/InvocationConfig.php @@ -0,0 +1,299 @@ +google.cloud.dataform.v1.InvocationConfig + */ +class InvocationConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The set of action identifiers to include. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.Target included_targets = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $included_targets; + /** + * Optional. The set of tags to include. + * + * Generated from protobuf field repeated string included_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $included_tags; + /** + * Optional. When set to true, transitive dependencies of included actions + * will be executed. + * + * Generated from protobuf field bool transitive_dependencies_included = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $transitive_dependencies_included = false; + /** + * Optional. When set to true, transitive dependents of included actions will + * be executed. + * + * Generated from protobuf field bool transitive_dependents_included = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $transitive_dependents_included = false; + /** + * Optional. When set to true, any incremental tables will be fully refreshed. + * + * Generated from protobuf field bool fully_refresh_incremental_tables_enabled = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $fully_refresh_incremental_tables_enabled = false; + /** + * Optional. The service account to run workflow invocations under. + * + * Generated from protobuf field string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $service_account = ''; + /** + * Optional. Specifies the priority for query execution in BigQuery. + * More information can be found at + * https://cloud.google.com/bigquery/docs/running-queries#queries. + * + * Generated from protobuf field optional .google.cloud.dataform.v1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $query_priority = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1\Target[] $included_targets + * Optional. The set of action identifiers to include. + * @type string[] $included_tags + * Optional. The set of tags to include. + * @type bool $transitive_dependencies_included + * Optional. When set to true, transitive dependencies of included actions + * will be executed. + * @type bool $transitive_dependents_included + * Optional. When set to true, transitive dependents of included actions will + * be executed. + * @type bool $fully_refresh_incremental_tables_enabled + * Optional. When set to true, any incremental tables will be fully refreshed. + * @type string $service_account + * Optional. The service account to run workflow invocations under. + * @type int $query_priority + * Optional. Specifies the priority for query execution in BigQuery. + * More information can be found at + * https://cloud.google.com/bigquery/docs/running-queries#queries. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The set of action identifiers to include. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.Target included_targets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\Dataform\V1\Target> + */ + public function getIncludedTargets() + { + return $this->included_targets; + } + + /** + * Optional. The set of action identifiers to include. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.Target included_targets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataform\V1\Target[] $var + * @return $this + */ + public function setIncludedTargets($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\Target::class); + $this->included_targets = $arr; + + return $this; + } + + /** + * Optional. The set of tags to include. + * + * Generated from protobuf field repeated string included_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getIncludedTags() + { + return $this->included_tags; + } + + /** + * Optional. The set of tags to include. + * + * Generated from protobuf field repeated string included_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setIncludedTags($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->included_tags = $arr; + + return $this; + } + + /** + * Optional. When set to true, transitive dependencies of included actions + * will be executed. + * + * Generated from protobuf field bool transitive_dependencies_included = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getTransitiveDependenciesIncluded() + { + return $this->transitive_dependencies_included; + } + + /** + * Optional. When set to true, transitive dependencies of included actions + * will be executed. + * + * Generated from protobuf field bool transitive_dependencies_included = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setTransitiveDependenciesIncluded($var) + { + GPBUtil::checkBool($var); + $this->transitive_dependencies_included = $var; + + return $this; + } + + /** + * Optional. When set to true, transitive dependents of included actions will + * be executed. + * + * Generated from protobuf field bool transitive_dependents_included = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getTransitiveDependentsIncluded() + { + return $this->transitive_dependents_included; + } + + /** + * Optional. When set to true, transitive dependents of included actions will + * be executed. + * + * Generated from protobuf field bool transitive_dependents_included = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setTransitiveDependentsIncluded($var) + { + GPBUtil::checkBool($var); + $this->transitive_dependents_included = $var; + + return $this; + } + + /** + * Optional. When set to true, any incremental tables will be fully refreshed. + * + * Generated from protobuf field bool fully_refresh_incremental_tables_enabled = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getFullyRefreshIncrementalTablesEnabled() + { + return $this->fully_refresh_incremental_tables_enabled; + } + + /** + * Optional. When set to true, any incremental tables will be fully refreshed. + * + * Generated from protobuf field bool fully_refresh_incremental_tables_enabled = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setFullyRefreshIncrementalTablesEnabled($var) + { + GPBUtil::checkBool($var); + $this->fully_refresh_incremental_tables_enabled = $var; + + return $this; + } + + /** + * Optional. The service account to run workflow invocations under. + * + * Generated from protobuf field string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getServiceAccount() + { + return $this->service_account; + } + + /** + * Optional. The service account to run workflow invocations under. + * + * Generated from protobuf field string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setServiceAccount($var) + { + GPBUtil::checkString($var, True); + $this->service_account = $var; + + return $this; + } + + /** + * Optional. Specifies the priority for query execution in BigQuery. + * More information can be found at + * https://cloud.google.com/bigquery/docs/running-queries#queries. + * + * Generated from protobuf field optional .google.cloud.dataform.v1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getQueryPriority() + { + return isset($this->query_priority) ? $this->query_priority : 0; + } + + public function hasQueryPriority() + { + return isset($this->query_priority); + } + + public function clearQueryPriority() + { + unset($this->query_priority); + } + + /** + * Optional. Specifies the priority for query execution in BigQuery. + * More information can be found at + * https://cloud.google.com/bigquery/docs/running-queries#queries. + * + * Generated from protobuf field optional .google.cloud.dataform.v1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setQueryPriority($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1\InvocationConfig\QueryPriority::class); + $this->query_priority = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/InvocationConfig/QueryPriority.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/InvocationConfig/QueryPriority.php new file mode 100644 index 000000000000..8700ea6f2491 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/InvocationConfig/QueryPriority.php @@ -0,0 +1,65 @@ +google.cloud.dataform.v1.InvocationConfig.QueryPriority + */ +class QueryPriority +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum QUERY_PRIORITY_UNSPECIFIED = 0; + */ + const 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. + * + * Generated from protobuf enum INTERACTIVE = 1; + */ + const 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. + * + * Generated from protobuf enum BATCH = 2; + */ + const BATCH = 2; + + private static $valueToName = [ + self::QUERY_PRIORITY_UNSPECIFIED => 'QUERY_PRIORITY_UNSPECIFIED', + self::INTERACTIVE => 'INTERACTIVE', + self::BATCH => 'BATCH', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListCompilationResultsRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListCompilationResultsRequest.php new file mode 100644 index 000000000000..e7135667dfd8 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListCompilationResultsRequest.php @@ -0,0 +1,254 @@ +google.cloud.dataform.v1.ListCompilationResultsRequest + */ +class ListCompilationResultsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The repository in which to list compilation results. Must be in + * the format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * 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. + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Filter for the returned list. + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * @param string $parent Required. The repository in which to list compilation results. Must be in + * the format `projects/*/locations/*/repositories/*`. Please see + * {@see DataformClient::repositoryName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1\ListCompilationResultsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The repository in which to list compilation results. Must be in + * the format `projects/{@*}locations/{@*}repositories/*`. + * @type int $page_size + * 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. + * @type string $page_token + * 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. + * @type string $order_by + * 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. + * @type string $filter + * Optional. Filter for the returned list. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The repository in which to list compilation results. Must be in + * the format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The repository in which to list compilation results. Must be in + * the format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * 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. + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Filter for the returned list. + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filter for the returned list. + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListCompilationResultsResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListCompilationResultsResponse.php new file mode 100644 index 000000000000..1e895f200a8e --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListCompilationResultsResponse.php @@ -0,0 +1,139 @@ +google.cloud.dataform.v1.ListCompilationResultsResponse + */ +class ListCompilationResultsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of compilation results. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.CompilationResult compilation_results = 1; + */ + private $compilation_results; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Locations which could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + */ + private $unreachable; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1\CompilationResult[] $compilation_results + * List of compilation results. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type string[] $unreachable + * Locations which could not be reached. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * List of compilation results. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.CompilationResult compilation_results = 1; + * @return RepeatedField<\Google\Cloud\Dataform\V1\CompilationResult> + */ + public function getCompilationResults() + { + return $this->compilation_results; + } + + /** + * List of compilation results. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.CompilationResult compilation_results = 1; + * @param \Google\Cloud\Dataform\V1\CompilationResult[] $var + * @return $this + */ + public function setCompilationResults($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\CompilationResult::class); + $this->compilation_results = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Locations which could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @return RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Locations which could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @param string[] $var + * @return $this + */ + public function setUnreachable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListReleaseConfigsRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListReleaseConfigsRequest.php new file mode 100644 index 000000000000..2cc63060f502 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListReleaseConfigsRequest.php @@ -0,0 +1,178 @@ +google.cloud.dataform.v1.ListReleaseConfigsRequest + */ +class ListReleaseConfigsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The repository in which to list release configs. Must be in the + * format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + + /** + * @param string $parent Required. The repository in which to list release configs. Must be in the + * format `projects/*/locations/*/repositories/*`. Please see + * {@see DataformClient::repositoryName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1\ListReleaseConfigsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The repository in which to list release configs. Must be in the + * format `projects/{@*}locations/{@*}repositories/*`. + * @type int $page_size + * 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. + * @type string $page_token + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The repository in which to list release configs. Must be in the + * format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The repository in which to list release configs. Must be in the + * format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListReleaseConfigsResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListReleaseConfigsResponse.php new file mode 100644 index 000000000000..1fcd5e3476d1 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListReleaseConfigsResponse.php @@ -0,0 +1,139 @@ +google.cloud.dataform.v1.ListReleaseConfigsResponse + */ +class ListReleaseConfigsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of release configs. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.ReleaseConfig release_configs = 1; + */ + private $release_configs; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Locations which could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + */ + private $unreachable; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1\ReleaseConfig[] $release_configs + * List of release configs. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type string[] $unreachable + * Locations which could not be reached. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * List of release configs. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.ReleaseConfig release_configs = 1; + * @return RepeatedField<\Google\Cloud\Dataform\V1\ReleaseConfig> + */ + public function getReleaseConfigs() + { + return $this->release_configs; + } + + /** + * List of release configs. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.ReleaseConfig release_configs = 1; + * @param \Google\Cloud\Dataform\V1\ReleaseConfig[] $var + * @return $this + */ + public function setReleaseConfigs($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\ReleaseConfig::class); + $this->release_configs = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Locations which could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @return RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Locations which could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @param string[] $var + * @return $this + */ + public function setUnreachable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListRepositoriesRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListRepositoriesRequest.php new file mode 100644 index 000000000000..dcd4a1798b80 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListRepositoriesRequest.php @@ -0,0 +1,254 @@ +google.cloud.dataform.v1.ListRepositoriesRequest + */ +class ListRepositoriesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The location in which to list repositories. Must be in the format + * `projects/{@*}locations/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. Maximum number of repositories to return. The server may return + * fewer items than requested. If unspecified, the server will pick an + * appropriate default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * 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. + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Filter for the returned list. + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * @param string $parent Required. The location in which to list repositories. Must be in the format + * `projects/*/locations/*`. Please see + * {@see DataformClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1\ListRepositoriesRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The location in which to list repositories. Must be in the format + * `projects/{@*}locations/*`. + * @type int $page_size + * Optional. Maximum number of repositories to return. The server may return + * fewer items than requested. If unspecified, the server will pick an + * appropriate default. + * @type string $page_token + * 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. + * @type string $order_by + * 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. + * @type string $filter + * Optional. Filter for the returned list. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The location in which to list repositories. Must be in the format + * `projects/{@*}locations/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The location in which to list repositories. Must be in the format + * `projects/{@*}locations/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. Maximum number of repositories to return. The server may return + * fewer items than requested. If unspecified, the server will pick an + * appropriate default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Maximum number of repositories to return. The server may return + * fewer items than requested. If unspecified, the server will pick an + * appropriate default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * 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. + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Filter for the returned list. + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filter for the returned list. + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListRepositoriesResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListRepositoriesResponse.php new file mode 100644 index 000000000000..5ec2a4373e04 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListRepositoriesResponse.php @@ -0,0 +1,139 @@ +google.cloud.dataform.v1.ListRepositoriesResponse + */ +class ListRepositoriesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of repositories. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.Repository repositories = 1; + */ + private $repositories; + /** + * A token which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Locations which could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + */ + private $unreachable; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1\Repository[] $repositories + * List of repositories. + * @type string $next_page_token + * A token which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type string[] $unreachable + * Locations which could not be reached. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * List of repositories. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.Repository repositories = 1; + * @return RepeatedField<\Google\Cloud\Dataform\V1\Repository> + */ + public function getRepositories() + { + return $this->repositories; + } + + /** + * List of repositories. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.Repository repositories = 1; + * @param \Google\Cloud\Dataform\V1\Repository[] $var + * @return $this + */ + public function setRepositories($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\Repository::class); + $this->repositories = $arr; + + return $this; + } + + /** + * A token which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Locations which could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @return RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Locations which could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @param string[] $var + * @return $this + */ + public function setUnreachable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkflowConfigsRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkflowConfigsRequest.php new file mode 100644 index 000000000000..916ce3940644 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkflowConfigsRequest.php @@ -0,0 +1,178 @@ +google.cloud.dataform.v1.ListWorkflowConfigsRequest + */ +class ListWorkflowConfigsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The repository in which to list workflow configs. Must be in the + * format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + + /** + * @param string $parent Required. The repository in which to list workflow configs. Must be in the + * format `projects/*/locations/*/repositories/*`. Please see + * {@see DataformClient::repositoryName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1\ListWorkflowConfigsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The repository in which to list workflow configs. Must be in the + * format `projects/{@*}locations/{@*}repositories/*`. + * @type int $page_size + * 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. + * @type string $page_token + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The repository in which to list workflow configs. Must be in the + * format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The repository in which to list workflow configs. Must be in the + * format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkflowConfigsResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkflowConfigsResponse.php new file mode 100644 index 000000000000..59cdb729c6a7 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkflowConfigsResponse.php @@ -0,0 +1,139 @@ +google.cloud.dataform.v1.ListWorkflowConfigsResponse + */ +class ListWorkflowConfigsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of workflow configs. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.WorkflowConfig workflow_configs = 1; + */ + private $workflow_configs; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Locations which could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + */ + private $unreachable; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1\WorkflowConfig[] $workflow_configs + * List of workflow configs. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type string[] $unreachable + * Locations which could not be reached. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * List of workflow configs. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.WorkflowConfig workflow_configs = 1; + * @return RepeatedField<\Google\Cloud\Dataform\V1\WorkflowConfig> + */ + public function getWorkflowConfigs() + { + return $this->workflow_configs; + } + + /** + * List of workflow configs. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.WorkflowConfig workflow_configs = 1; + * @param \Google\Cloud\Dataform\V1\WorkflowConfig[] $var + * @return $this + */ + public function setWorkflowConfigs($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\WorkflowConfig::class); + $this->workflow_configs = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Locations which could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @return RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Locations which could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @param string[] $var + * @return $this + */ + public function setUnreachable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkflowInvocationsRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkflowInvocationsRequest.php new file mode 100644 index 000000000000..eccec2367029 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkflowInvocationsRequest.php @@ -0,0 +1,254 @@ +google.cloud.dataform.v1.ListWorkflowInvocationsRequest + */ +class ListWorkflowInvocationsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource of the WorkflowInvocation type. Must be in + * the format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * 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. + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Filter for the returned list. + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * @param string $parent Required. The parent resource of the WorkflowInvocation type. Must be in + * the format `projects/*/locations/*/repositories/*`. Please see + * {@see DataformClient::repositoryName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1\ListWorkflowInvocationsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource of the WorkflowInvocation type. Must be in + * the format `projects/{@*}locations/{@*}repositories/*`. + * @type int $page_size + * 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. + * @type string $page_token + * 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. + * @type string $order_by + * 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. + * @type string $filter + * Optional. Filter for the returned list. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource of the WorkflowInvocation type. Must be in + * the format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource of the WorkflowInvocation type. Must be in + * the format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * 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. + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Filter for the returned list. + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filter for the returned list. + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkflowInvocationsResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkflowInvocationsResponse.php new file mode 100644 index 000000000000..cb2678a25166 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkflowInvocationsResponse.php @@ -0,0 +1,139 @@ +google.cloud.dataform.v1.ListWorkflowInvocationsResponse + */ +class ListWorkflowInvocationsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of workflow invocations. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.WorkflowInvocation workflow_invocations = 1; + */ + private $workflow_invocations; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Locations which could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + */ + private $unreachable; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1\WorkflowInvocation[] $workflow_invocations + * List of workflow invocations. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type string[] $unreachable + * Locations which could not be reached. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * List of workflow invocations. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.WorkflowInvocation workflow_invocations = 1; + * @return RepeatedField<\Google\Cloud\Dataform\V1\WorkflowInvocation> + */ + public function getWorkflowInvocations() + { + return $this->workflow_invocations; + } + + /** + * List of workflow invocations. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.WorkflowInvocation workflow_invocations = 1; + * @param \Google\Cloud\Dataform\V1\WorkflowInvocation[] $var + * @return $this + */ + public function setWorkflowInvocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\WorkflowInvocation::class); + $this->workflow_invocations = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Locations which could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @return RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Locations which could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @param string[] $var + * @return $this + */ + public function setUnreachable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkspacesRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkspacesRequest.php new file mode 100644 index 000000000000..f36262717f76 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkspacesRequest.php @@ -0,0 +1,254 @@ +google.cloud.dataform.v1.ListWorkspacesRequest + */ +class ListWorkspacesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The repository in which to list workspaces. Must be in the + * format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. Maximum number of workspaces to return. The server may return + * fewer items than requested. If unspecified, the server will pick an + * appropriate default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * 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. + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Filter for the returned list. + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * @param string $parent Required. The repository in which to list workspaces. Must be in the + * format `projects/*/locations/*/repositories/*`. Please see + * {@see DataformClient::repositoryName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1\ListWorkspacesRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The repository in which to list workspaces. Must be in the + * format `projects/{@*}locations/{@*}repositories/*`. + * @type int $page_size + * Optional. Maximum number of workspaces to return. The server may return + * fewer items than requested. If unspecified, the server will pick an + * appropriate default. + * @type string $page_token + * 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. + * @type string $order_by + * 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. + * @type string $filter + * Optional. Filter for the returned list. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The repository in which to list workspaces. Must be in the + * format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The repository in which to list workspaces. Must be in the + * format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. Maximum number of workspaces to return. The server may return + * fewer items than requested. If unspecified, the server will pick an + * appropriate default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Maximum number of workspaces to return. The server may return + * fewer items than requested. If unspecified, the server will pick an + * appropriate default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * 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. + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Filter for the returned list. + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filter for the returned list. + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkspacesResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkspacesResponse.php new file mode 100644 index 000000000000..ca3121b20516 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkspacesResponse.php @@ -0,0 +1,139 @@ +google.cloud.dataform.v1.ListWorkspacesResponse + */ +class ListWorkspacesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of workspaces. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.Workspace workspaces = 1; + */ + private $workspaces; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Locations which could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + */ + private $unreachable; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1\Workspace[] $workspaces + * List of workspaces. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type string[] $unreachable + * Locations which could not be reached. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * List of workspaces. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.Workspace workspaces = 1; + * @return RepeatedField<\Google\Cloud\Dataform\V1\Workspace> + */ + public function getWorkspaces() + { + return $this->workspaces; + } + + /** + * List of workspaces. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.Workspace workspaces = 1; + * @param \Google\Cloud\Dataform\V1\Workspace[] $var + * @return $this + */ + public function setWorkspaces($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\Workspace::class); + $this->workspaces = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Locations which could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @return RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Locations which could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @param string[] $var + * @return $this + */ + public function setUnreachable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MakeDirectoryRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MakeDirectoryRequest.php new file mode 100644 index 000000000000..7f17114ed394 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MakeDirectoryRequest.php @@ -0,0 +1,105 @@ +google.cloud.dataform.v1.MakeDirectoryRequest + */ +class MakeDirectoryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $workspace = ''; + /** + * Required. The directory's full path including directory name, relative to + * the workspace root. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $path = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $workspace + * Required. The workspace's name. + * @type string $path + * Required. The directory's full path including directory name, relative to + * the workspace root. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getWorkspace() + { + return $this->workspace; + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setWorkspace($var) + { + GPBUtil::checkString($var, True); + $this->workspace = $var; + + return $this; + } + + /** + * Required. The directory's full path including directory name, relative to + * the workspace root. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getPath() + { + return $this->path; + } + + /** + * Required. The directory's full path including directory name, relative to + * the workspace root. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setPath($var) + { + GPBUtil::checkString($var, True); + $this->path = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MakeDirectoryResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MakeDirectoryResponse.php new file mode 100644 index 000000000000..e0daee078793 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MakeDirectoryResponse.php @@ -0,0 +1,33 @@ +google.cloud.dataform.v1.MakeDirectoryResponse + */ +class MakeDirectoryResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveDirectoryRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveDirectoryRequest.php new file mode 100644 index 000000000000..9033343adbb3 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveDirectoryRequest.php @@ -0,0 +1,143 @@ +google.cloud.dataform.v1.MoveDirectoryRequest + */ +class MoveDirectoryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $workspace = ''; + /** + * Required. The directory's full path including directory name, relative to + * the workspace root. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $path = ''; + /** + * Required. The new path for the directory including directory name, rooted + * at workspace root. + * + * Generated from protobuf field string new_path = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $new_path = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $workspace + * Required. The workspace's name. + * @type string $path + * Required. The directory's full path including directory name, relative to + * the workspace root. + * @type string $new_path + * Required. The new path for the directory including directory name, rooted + * at workspace root. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getWorkspace() + { + return $this->workspace; + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setWorkspace($var) + { + GPBUtil::checkString($var, True); + $this->workspace = $var; + + return $this; + } + + /** + * Required. The directory's full path including directory name, relative to + * the workspace root. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getPath() + { + return $this->path; + } + + /** + * Required. The directory's full path including directory name, relative to + * the workspace root. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setPath($var) + { + GPBUtil::checkString($var, True); + $this->path = $var; + + return $this; + } + + /** + * Required. The new path for the directory including directory name, rooted + * at workspace root. + * + * Generated from protobuf field string new_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getNewPath() + { + return $this->new_path; + } + + /** + * Required. The new path for the directory including directory name, rooted + * at workspace root. + * + * Generated from protobuf field string new_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setNewPath($var) + { + GPBUtil::checkString($var, True); + $this->new_path = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveDirectoryResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveDirectoryResponse.php new file mode 100644 index 000000000000..a51762eb18bc --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveDirectoryResponse.php @@ -0,0 +1,33 @@ +google.cloud.dataform.v1.MoveDirectoryResponse + */ +class MoveDirectoryResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveFileRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveFileRequest.php new file mode 100644 index 000000000000..42117ae9ed39 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveFileRequest.php @@ -0,0 +1,143 @@ +google.cloud.dataform.v1.MoveFileRequest + */ +class MoveFileRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $workspace = ''; + /** + * Required. The file's full path including filename, relative to the + * workspace root. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $path = ''; + /** + * Required. The file's new path including filename, relative to the workspace + * root. + * + * Generated from protobuf field string new_path = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $new_path = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $workspace + * Required. The workspace's name. + * @type string $path + * Required. The file's full path including filename, relative to the + * workspace root. + * @type string $new_path + * Required. The file's new path including filename, relative to the workspace + * root. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getWorkspace() + { + return $this->workspace; + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setWorkspace($var) + { + GPBUtil::checkString($var, True); + $this->workspace = $var; + + return $this; + } + + /** + * Required. The file's full path including filename, relative to the + * workspace root. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getPath() + { + return $this->path; + } + + /** + * Required. The file's full path including filename, relative to the + * workspace root. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setPath($var) + { + GPBUtil::checkString($var, True); + $this->path = $var; + + return $this; + } + + /** + * Required. The file's new path including filename, relative to the workspace + * root. + * + * Generated from protobuf field string new_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getNewPath() + { + return $this->new_path; + } + + /** + * Required. The file's new path including filename, relative to the workspace + * root. + * + * Generated from protobuf field string new_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setNewPath($var) + { + GPBUtil::checkString($var, True); + $this->new_path = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveFileResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveFileResponse.php new file mode 100644 index 000000000000..aa224bc2ea6d --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveFileResponse.php @@ -0,0 +1,33 @@ +google.cloud.dataform.v1.MoveFileResponse + */ +class MoveFileResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveFolderMetadata.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveFolderMetadata.php new file mode 100644 index 000000000000..cab19da8e0e6 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveFolderMetadata.php @@ -0,0 +1,224 @@ +google.cloud.dataform.v1.MoveFolderMetadata + */ +class MoveFolderMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The time the operation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time the operation finished running. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $end_time = null; + /** + * Output only. Server-defined resource path for the target of the operation. + * + * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $target = ''; + /** + * The state of the move. + * + * Generated from protobuf field .google.cloud.dataform.v1.MoveFolderMetadata.State state = 4; + */ + protected $state = 0; + /** + * Percent complete of the move [0, 100]. + * + * Generated from protobuf field int32 percent_complete = 5; + */ + protected $percent_complete = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time the operation was created. + * @type \Google\Protobuf\Timestamp $end_time + * Output only. The time the operation finished running. + * @type string $target + * Output only. Server-defined resource path for the target of the operation. + * @type int $state + * The state of the move. + * @type int $percent_complete + * Percent complete of the move [0, 100]. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The time the operation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The time the operation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The time the operation finished running. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getEndTime() + { + return $this->end_time; + } + + public function hasEndTime() + { + return isset($this->end_time); + } + + public function clearEndTime() + { + unset($this->end_time); + } + + /** + * Output only. The time the operation finished running. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * + * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getTarget() + { + return $this->target; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * + * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setTarget($var) + { + GPBUtil::checkString($var, True); + $this->target = $var; + + return $this; + } + + /** + * The state of the move. + * + * Generated from protobuf field .google.cloud.dataform.v1.MoveFolderMetadata.State state = 4; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * The state of the move. + * + * Generated from protobuf field .google.cloud.dataform.v1.MoveFolderMetadata.State state = 4; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1\MoveFolderMetadata\State::class); + $this->state = $var; + + return $this; + } + + /** + * Percent complete of the move [0, 100]. + * + * Generated from protobuf field int32 percent_complete = 5; + * @return int + */ + public function getPercentComplete() + { + return $this->percent_complete; + } + + /** + * Percent complete of the move [0, 100]. + * + * Generated from protobuf field int32 percent_complete = 5; + * @param int $var + * @return $this + */ + public function setPercentComplete($var) + { + GPBUtil::checkInt32($var); + $this->percent_complete = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveFolderMetadata/State.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveFolderMetadata/State.php new file mode 100644 index 000000000000..d98339bceeda --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveFolderMetadata/State.php @@ -0,0 +1,75 @@ +google.cloud.dataform.v1.MoveFolderMetadata.State + */ +class State +{ + /** + * The state is unspecified. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * The move was initialized and recorded by the server, but not yet started. + * + * Generated from protobuf enum INITIALIZED = 1; + */ + const INITIALIZED = 1; + /** + * The move is in progress. + * + * Generated from protobuf enum IN_PROGRESS = 2; + */ + const IN_PROGRESS = 2; + /** + * The move has completed successfully. + * + * Generated from protobuf enum SUCCESS = 3; + */ + const SUCCESS = 3; + /** + * The move has failed. + * + * Generated from protobuf enum FAILED = 4; + */ + const FAILED = 4; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::INITIALIZED => 'INITIALIZED', + self::IN_PROGRESS => 'IN_PROGRESS', + self::SUCCESS => 'SUCCESS', + self::FAILED => 'FAILED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveFolderRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveFolderRequest.php new file mode 100644 index 000000000000..56774a00c066 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveFolderRequest.php @@ -0,0 +1,137 @@ +google.cloud.dataform.v1.MoveFolderRequest + */ +class MoveFolderRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The full resource name of the Folder to move. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * 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/*` + * + * Generated from protobuf field optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $destination_containing_folder = null; + + /** + * @param string $name Required. The full resource name of the Folder to move. Please see + * {@see DataformClient::folderName()} for help formatting this field. + * @param string $destinationContainingFolder 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/*` + * + * @return \Google\Cloud\Dataform\V1\MoveFolderRequest + * + * @experimental + */ + public static function build(string $name, string $destinationContainingFolder): self + { + return (new self()) + ->setName($name) + ->setDestinationContainingFolder($destinationContainingFolder); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The full resource name of the Folder to move. + * @type string $destination_containing_folder + * 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/*` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The full resource name of the Folder to move. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The full resource name of the Folder to move. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * 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/*` + * + * Generated from protobuf field optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDestinationContainingFolder() + { + return isset($this->destination_containing_folder) ? $this->destination_containing_folder : ''; + } + + public function hasDestinationContainingFolder() + { + return isset($this->destination_containing_folder); + } + + public function clearDestinationContainingFolder() + { + unset($this->destination_containing_folder); + } + + /** + * 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/*` + * + * Generated from protobuf field optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDestinationContainingFolder($var) + { + GPBUtil::checkString($var, True); + $this->destination_containing_folder = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveRepositoryMetadata.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveRepositoryMetadata.php new file mode 100644 index 000000000000..01a0bee6eb8c --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveRepositoryMetadata.php @@ -0,0 +1,224 @@ +google.cloud.dataform.v1.MoveRepositoryMetadata + */ +class MoveRepositoryMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The time the operation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time the operation finished running. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $end_time = null; + /** + * Output only. Server-defined resource path for the target of the operation. + * + * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $target = ''; + /** + * The state of the move. + * + * Generated from protobuf field .google.cloud.dataform.v1.MoveRepositoryMetadata.State state = 4; + */ + protected $state = 0; + /** + * Percent complete of the move [0, 100]. + * + * Generated from protobuf field int32 percent_complete = 5; + */ + protected $percent_complete = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time the operation was created. + * @type \Google\Protobuf\Timestamp $end_time + * Output only. The time the operation finished running. + * @type string $target + * Output only. Server-defined resource path for the target of the operation. + * @type int $state + * The state of the move. + * @type int $percent_complete + * Percent complete of the move [0, 100]. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The time the operation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The time the operation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The time the operation finished running. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getEndTime() + { + return $this->end_time; + } + + public function hasEndTime() + { + return isset($this->end_time); + } + + public function clearEndTime() + { + unset($this->end_time); + } + + /** + * Output only. The time the operation finished running. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * + * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getTarget() + { + return $this->target; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * + * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setTarget($var) + { + GPBUtil::checkString($var, True); + $this->target = $var; + + return $this; + } + + /** + * The state of the move. + * + * Generated from protobuf field .google.cloud.dataform.v1.MoveRepositoryMetadata.State state = 4; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * The state of the move. + * + * Generated from protobuf field .google.cloud.dataform.v1.MoveRepositoryMetadata.State state = 4; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1\MoveRepositoryMetadata\State::class); + $this->state = $var; + + return $this; + } + + /** + * Percent complete of the move [0, 100]. + * + * Generated from protobuf field int32 percent_complete = 5; + * @return int + */ + public function getPercentComplete() + { + return $this->percent_complete; + } + + /** + * Percent complete of the move [0, 100]. + * + * Generated from protobuf field int32 percent_complete = 5; + * @param int $var + * @return $this + */ + public function setPercentComplete($var) + { + GPBUtil::checkInt32($var); + $this->percent_complete = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveRepositoryMetadata/State.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveRepositoryMetadata/State.php new file mode 100644 index 000000000000..5412853c5921 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveRepositoryMetadata/State.php @@ -0,0 +1,75 @@ +google.cloud.dataform.v1.MoveRepositoryMetadata.State + */ +class State +{ + /** + * The state is unspecified. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * The move was initialized and recorded by the server, but not yet started. + * + * Generated from protobuf enum INITIALIZED = 1; + */ + const INITIALIZED = 1; + /** + * The move is in progress. + * + * Generated from protobuf enum IN_PROGRESS = 2; + */ + const IN_PROGRESS = 2; + /** + * The move has completed successfully. + * + * Generated from protobuf enum SUCCESS = 3; + */ + const SUCCESS = 3; + /** + * The move has failed. + * + * Generated from protobuf enum FAILED = 4; + */ + const FAILED = 4; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::INITIALIZED => 'INITIALIZED', + self::IN_PROGRESS => 'IN_PROGRESS', + self::SUCCESS => 'SUCCESS', + self::FAILED => 'FAILED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveRepositoryRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveRepositoryRequest.php new file mode 100644 index 000000000000..cb9471035409 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveRepositoryRequest.php @@ -0,0 +1,142 @@ +google.cloud.dataform.v1.MoveRepositoryRequest + */ +class MoveRepositoryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The full resource name of the repository to move. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * 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/*` + * + * Generated from protobuf field optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $destination_containing_folder = null; + + /** + * @param string $name Required. The full resource name of the repository to move. Please see + * {@see DataformClient::repositoryName()} for help formatting this field. + * @param string $destinationContainingFolder 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/*` + * + * @return \Google\Cloud\Dataform\V1\MoveRepositoryRequest + * + * @experimental + */ + public static function build(string $name, string $destinationContainingFolder): self + { + return (new self()) + ->setName($name) + ->setDestinationContainingFolder($destinationContainingFolder); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The full resource name of the repository to move. + * @type string $destination_containing_folder + * 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/*` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The full resource name of the repository to move. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The full resource name of the repository to move. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * 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/*` + * + * Generated from protobuf field optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDestinationContainingFolder() + { + return isset($this->destination_containing_folder) ? $this->destination_containing_folder : ''; + } + + public function hasDestinationContainingFolder() + { + return isset($this->destination_containing_folder); + } + + public function clearDestinationContainingFolder() + { + unset($this->destination_containing_folder); + } + + /** + * 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/*` + * + * Generated from protobuf field optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDestinationContainingFolder($var) + { + GPBUtil::checkString($var, True); + $this->destination_containing_folder = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/NotebookRuntimeOptions.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/NotebookRuntimeOptions.php new file mode 100644 index 000000000000..ce55feceaa82 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/NotebookRuntimeOptions.php @@ -0,0 +1,124 @@ +google.cloud.dataform.v1.NotebookRuntimeOptions + */ +class NotebookRuntimeOptions extends \Google\Protobuf\Internal\Message +{ + /** + * 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. + * + * Generated from protobuf field string ai_platform_notebook_runtime_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $ai_platform_notebook_runtime_template = ''; + protected $execution_sink; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $gcs_output_bucket + * Optional. The Google Cloud Storage location to upload the result to. + * Format: `gs://bucket-name`. + * @type string $ai_platform_notebook_runtime_template + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The Google Cloud Storage location to upload the result to. + * Format: `gs://bucket-name`. + * + * Generated from protobuf field string gcs_output_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getGcsOutputBucket() + { + return $this->readOneof(1); + } + + public function hasGcsOutputBucket() + { + return $this->hasOneof(1); + } + + /** + * Optional. The Google Cloud Storage location to upload the result to. + * Format: `gs://bucket-name`. + * + * Generated from protobuf field string gcs_output_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setGcsOutputBucket($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string ai_platform_notebook_runtime_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getAiPlatformNotebookRuntimeTemplate() + { + return $this->ai_platform_notebook_runtime_template; + } + + /** + * 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. + * + * Generated from protobuf field string ai_platform_notebook_runtime_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setAiPlatformNotebookRuntimeTemplate($var) + { + GPBUtil::checkString($var, True); + $this->ai_platform_notebook_runtime_template = $var; + + return $this; + } + + /** + * @return string + */ + public function getExecutionSink() + { + return $this->whichOneof("execution_sink"); + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/PrivateResourceMetadata.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/PrivateResourceMetadata.php new file mode 100644 index 000000000000..057b57e4e913 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/PrivateResourceMetadata.php @@ -0,0 +1,71 @@ +google.cloud.dataform.v1.PrivateResourceMetadata + */ +class PrivateResourceMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. If true, this resource is user-scoped, meaning it is either a + * workspace or sourced from a workspace. + * + * Generated from protobuf field bool user_scoped = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $user_scoped = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $user_scoped + * Output only. If true, this resource is user-scoped, meaning it is either a + * workspace or sourced from a workspace. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Output only. If true, this resource is user-scoped, meaning it is either a + * workspace or sourced from a workspace. + * + * Generated from protobuf field bool user_scoped = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getUserScoped() + { + return $this->user_scoped; + } + + /** + * Output only. If true, this resource is user-scoped, meaning it is either a + * workspace or sourced from a workspace. + * + * Generated from protobuf field bool user_scoped = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setUserScoped($var) + { + GPBUtil::checkBool($var); + $this->user_scoped = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/PullGitCommitsRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/PullGitCommitsRequest.php new file mode 100644 index 000000000000..b5bcbfefe14d --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/PullGitCommitsRequest.php @@ -0,0 +1,153 @@ +google.cloud.dataform.v1.PullGitCommitsRequest + */ +class PullGitCommitsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * 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. + * + * Generated from protobuf field string remote_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $remote_branch = ''; + /** + * Required. The author of any merge commit which may be created as a result + * of merging fetched Git commits into this workspace. + * + * Generated from protobuf field .google.cloud.dataform.v1.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $author = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The workspace's name. + * @type string $remote_branch + * 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. + * @type \Google\Cloud\Dataform\V1\CommitAuthor $author + * Required. The author of any merge commit which may be created as a result + * of merging fetched Git commits into this workspace. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string remote_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRemoteBranch() + { + return $this->remote_branch; + } + + /** + * 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. + * + * Generated from protobuf field string remote_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRemoteBranch($var) + { + GPBUtil::checkString($var, True); + $this->remote_branch = $var; + + return $this; + } + + /** + * Required. The author of any merge commit which may be created as a result + * of merging fetched Git commits into this workspace. + * + * Generated from protobuf field .google.cloud.dataform.v1.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataform\V1\CommitAuthor|null + */ + public function getAuthor() + { + return $this->author; + } + + public function hasAuthor() + { + return isset($this->author); + } + + public function clearAuthor() + { + unset($this->author); + } + + /** + * Required. The author of any merge commit which may be created as a result + * of merging fetched Git commits into this workspace. + * + * Generated from protobuf field .google.cloud.dataform.v1.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataform\V1\CommitAuthor $var + * @return $this + */ + public function setAuthor($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CommitAuthor::class); + $this->author = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/PullGitCommitsResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/PullGitCommitsResponse.php new file mode 100644 index 000000000000..b0c696ba8835 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/PullGitCommitsResponse.php @@ -0,0 +1,33 @@ +google.cloud.dataform.v1.PullGitCommitsResponse + */ +class PullGitCommitsResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/PushGitCommitsRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/PushGitCommitsRequest.php new file mode 100644 index 000000000000..153e3a51f43e --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/PushGitCommitsRequest.php @@ -0,0 +1,109 @@ +google.cloud.dataform.v1.PushGitCommitsRequest + */ +class PushGitCommitsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * 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. + * + * Generated from protobuf field string remote_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $remote_branch = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The workspace's name. + * @type string $remote_branch + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string remote_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRemoteBranch() + { + return $this->remote_branch; + } + + /** + * 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. + * + * Generated from protobuf field string remote_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRemoteBranch($var) + { + GPBUtil::checkString($var, True); + $this->remote_branch = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/PushGitCommitsResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/PushGitCommitsResponse.php new file mode 100644 index 000000000000..0a7b56ad8609 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/PushGitCommitsResponse.php @@ -0,0 +1,33 @@ +google.cloud.dataform.v1.PushGitCommitsResponse + */ +class PushGitCommitsResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryCompilationResultActionsRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryCompilationResultActionsRequest.php new file mode 100644 index 000000000000..6f7d342d855c --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryCompilationResultActionsRequest.php @@ -0,0 +1,201 @@ +google.cloud.dataform.v1.QueryCompilationResultActionsRequest + */ +class QueryCompilationResultActionsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The compilation result's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Optional filter for the returned list. Filtering is only + * currently supported on the `file_path` field. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The compilation result's name. + * @type int $page_size + * 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. + * @type string $page_token + * 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. + * @type string $filter + * Optional. Optional filter for the returned list. Filtering is only + * currently supported on the `file_path` field. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The compilation result's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The compilation result's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Optional filter for the returned list. Filtering is only + * currently supported on the `file_path` field. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Optional filter for the returned list. Filtering is only + * currently supported on the `file_path` field. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryCompilationResultActionsResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryCompilationResultActionsResponse.php new file mode 100644 index 000000000000..e886cdd87ae4 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryCompilationResultActionsResponse.php @@ -0,0 +1,105 @@ +google.cloud.dataform.v1.QueryCompilationResultActionsResponse + */ +class QueryCompilationResultActionsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of compilation result actions. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.CompilationResultAction compilation_result_actions = 1; + */ + private $compilation_result_actions; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1\CompilationResultAction[] $compilation_result_actions + * List of compilation result actions. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * List of compilation result actions. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.CompilationResultAction compilation_result_actions = 1; + * @return RepeatedField<\Google\Cloud\Dataform\V1\CompilationResultAction> + */ + public function getCompilationResultActions() + { + return $this->compilation_result_actions; + } + + /** + * List of compilation result actions. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.CompilationResultAction compilation_result_actions = 1; + * @param \Google\Cloud\Dataform\V1\CompilationResultAction[] $var + * @return $this + */ + public function setCompilationResultActions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\CompilationResultAction::class); + $this->compilation_result_actions = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryDirectoryContentsRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryDirectoryContentsRequest.php new file mode 100644 index 000000000000..0ebc5d354cba --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryDirectoryContentsRequest.php @@ -0,0 +1,243 @@ +google.cloud.dataform.v1.QueryDirectoryContentsRequest + */ +class QueryDirectoryContentsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $workspace = ''; + /** + * Optional. The directory's full path including directory name, relative to + * the workspace root. If left unset, the workspace root is used. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $path = ''; + /** + * Optional. Maximum number of paths to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * + * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * 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. + * + * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * 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. + * + * Generated from protobuf field .google.cloud.dataform.v1.DirectoryContentsView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $view = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $workspace + * Required. The workspace's name. + * @type string $path + * Optional. The directory's full path including directory name, relative to + * the workspace root. If left unset, the workspace root is used. + * @type int $page_size + * Optional. Maximum number of paths to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * @type string $page_token + * 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. + * @type int $view + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getWorkspace() + { + return $this->workspace; + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setWorkspace($var) + { + GPBUtil::checkString($var, True); + $this->workspace = $var; + + return $this; + } + + /** + * Optional. The directory's full path including directory name, relative to + * the workspace root. If left unset, the workspace root is used. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPath() + { + return $this->path; + } + + /** + * Optional. The directory's full path including directory name, relative to + * the workspace root. If left unset, the workspace root is used. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPath($var) + { + GPBUtil::checkString($var, True); + $this->path = $var; + + return $this; + } + + /** + * Optional. Maximum number of paths to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * + * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Maximum number of paths to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * + * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field .google.cloud.dataform.v1.DirectoryContentsView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getView() + { + return $this->view; + } + + /** + * 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. + * + * Generated from protobuf field .google.cloud.dataform.v1.DirectoryContentsView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setView($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1\DirectoryContentsView::class); + $this->view = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryDirectoryContentsResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryDirectoryContentsResponse.php new file mode 100644 index 000000000000..3c46f49dbe8e --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryDirectoryContentsResponse.php @@ -0,0 +1,105 @@ +google.cloud.dataform.v1.QueryDirectoryContentsResponse + */ +class QueryDirectoryContentsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of entries in the directory. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.DirectoryEntry directory_entries = 1; + */ + private $directory_entries; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1\DirectoryEntry[] $directory_entries + * List of entries in the directory. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * List of entries in the directory. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.DirectoryEntry directory_entries = 1; + * @return RepeatedField<\Google\Cloud\Dataform\V1\DirectoryEntry> + */ + public function getDirectoryEntries() + { + return $this->directory_entries; + } + + /** + * List of entries in the directory. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.DirectoryEntry directory_entries = 1; + * @param \Google\Cloud\Dataform\V1\DirectoryEntry[] $var + * @return $this + */ + public function setDirectoryEntries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\DirectoryEntry::class); + $this->directory_entries = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryFolderContentsRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryFolderContentsRequest.php new file mode 100644 index 000000000000..e6337277c427 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryFolderContentsRequest.php @@ -0,0 +1,282 @@ +google.cloud.dataform.v1.QueryFolderContentsRequest + */ +class QueryFolderContentsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the folder whose contents to list. + * Format: projects/{@*}locations/{@*}folders/* + * + * Generated from protobuf field string folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $folder = ''; + /** + * Optional. Maximum number of paths to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * 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"` + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Optional filtering for the returned list. Filtering is currently + * only supported on the `display_name` field. + * Example: + * - `filter="display_name="MyFolder""` + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * @param string $folder Required. Name of the folder whose contents to list. + * Format: projects/*/locations/*/folders/* + * Please see {@see DataformClient::folderName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1\QueryFolderContentsRequest + * + * @experimental + */ + public static function build(string $folder): self + { + return (new self()) + ->setFolder($folder); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $folder + * Required. Name of the folder whose contents to list. + * Format: projects/{@*}locations/{@*}folders/* + * @type int $page_size + * Optional. Maximum number of paths to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * @type string $page_token + * 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. + * @type string $order_by + * 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"` + * @type string $filter + * Optional. Optional filtering for the returned list. Filtering is currently + * only supported on the `display_name` field. + * Example: + * - `filter="display_name="MyFolder""` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the folder whose contents to list. + * Format: projects/{@*}locations/{@*}folders/* + * + * Generated from protobuf field string folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getFolder() + { + return $this->folder; + } + + /** + * Required. Name of the folder whose contents to list. + * Format: projects/{@*}locations/{@*}folders/* + * + * Generated from protobuf field string folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setFolder($var) + { + GPBUtil::checkString($var, True); + $this->folder = $var; + + return $this; + } + + /** + * Optional. Maximum number of paths to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Maximum number of paths to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * 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"` + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * 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"` + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Optional filtering for the returned list. Filtering is currently + * only supported on the `display_name` field. + * Example: + * - `filter="display_name="MyFolder""` + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Optional filtering for the returned list. Filtering is currently + * only supported on the `display_name` field. + * Example: + * - `filter="display_name="MyFolder""` + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryFolderContentsResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryFolderContentsResponse.php new file mode 100644 index 000000000000..c054782f22c3 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryFolderContentsResponse.php @@ -0,0 +1,105 @@ +google.cloud.dataform.v1.QueryFolderContentsResponse + */ +class QueryFolderContentsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of entries in the folder. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + */ + private $entries; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1\QueryFolderContentsResponse\FolderContentsEntry[] $entries + * List of entries in the folder. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * List of entries in the folder. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * @return RepeatedField<\Google\Cloud\Dataform\V1\QueryFolderContentsResponse\FolderContentsEntry> + */ + public function getEntries() + { + return $this->entries; + } + + /** + * List of entries in the folder. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * @param \Google\Cloud\Dataform\V1\QueryFolderContentsResponse\FolderContentsEntry[] $var + * @return $this + */ + public function setEntries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\QueryFolderContentsResponse\FolderContentsEntry::class); + $this->entries = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryFolderContentsResponse/FolderContentsEntry.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryFolderContentsResponse/FolderContentsEntry.php new file mode 100644 index 000000000000..1173ae00905a --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryFolderContentsResponse/FolderContentsEntry.php @@ -0,0 +1,108 @@ +google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry + */ +class FolderContentsEntry extends \Google\Protobuf\Internal\Message +{ + protected $entry; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1\Folder $folder + * A subfolder. + * @type \Google\Cloud\Dataform\V1\Repository $repository + * A repository. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * A subfolder. + * + * Generated from protobuf field .google.cloud.dataform.v1.Folder folder = 1; + * @return \Google\Cloud\Dataform\V1\Folder|null + */ + public function getFolder() + { + return $this->readOneof(1); + } + + public function hasFolder() + { + return $this->hasOneof(1); + } + + /** + * A subfolder. + * + * Generated from protobuf field .google.cloud.dataform.v1.Folder folder = 1; + * @param \Google\Cloud\Dataform\V1\Folder $var + * @return $this + */ + public function setFolder($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\Folder::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * A repository. + * + * Generated from protobuf field .google.cloud.dataform.v1.Repository repository = 2; + * @return \Google\Cloud\Dataform\V1\Repository|null + */ + public function getRepository() + { + return $this->readOneof(2); + } + + public function hasRepository() + { + return $this->hasOneof(2); + } + + /** + * A repository. + * + * Generated from protobuf field .google.cloud.dataform.v1.Repository repository = 2; + * @param \Google\Cloud\Dataform\V1\Repository $var + * @return $this + */ + public function setRepository($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\Repository::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getEntry() + { + return $this->whichOneof("entry"); + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryRepositoryDirectoryContentsRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryRepositoryDirectoryContentsRequest.php new file mode 100644 index 000000000000..dca9d0cc9790 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryRepositoryDirectoryContentsRequest.php @@ -0,0 +1,239 @@ +google.cloud.dataform.v1.QueryRepositoryDirectoryContentsRequest + */ +class QueryRepositoryDirectoryContentsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. The Commit SHA for the commit to query from. If unset, the + * directory will be queried from HEAD. + * + * Generated from protobuf field string commit_sha = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $commit_sha = ''; + /** + * Optional. The directory's full path including directory name, relative to + * root. If left unset, the root is used. + * + * Generated from protobuf field string path = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $path = ''; + /** + * Optional. Maximum number of paths to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * + * Generated from protobuf field int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * 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. + * + * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The repository's name. + * @type string $commit_sha + * Optional. The Commit SHA for the commit to query from. If unset, the + * directory will be queried from HEAD. + * @type string $path + * Optional. The directory's full path including directory name, relative to + * root. If left unset, the root is used. + * @type int $page_size + * Optional. Maximum number of paths to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * @type string $page_token + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. The Commit SHA for the commit to query from. If unset, the + * directory will be queried from HEAD. + * + * Generated from protobuf field string commit_sha = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getCommitSha() + { + return $this->commit_sha; + } + + /** + * Optional. The Commit SHA for the commit to query from. If unset, the + * directory will be queried from HEAD. + * + * Generated from protobuf field string commit_sha = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setCommitSha($var) + { + GPBUtil::checkString($var, True); + $this->commit_sha = $var; + + return $this; + } + + /** + * Optional. The directory's full path including directory name, relative to + * root. If left unset, the root is used. + * + * Generated from protobuf field string path = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPath() + { + return $this->path; + } + + /** + * Optional. The directory's full path including directory name, relative to + * root. If left unset, the root is used. + * + * Generated from protobuf field string path = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPath($var) + { + GPBUtil::checkString($var, True); + $this->path = $var; + + return $this; + } + + /** + * Optional. Maximum number of paths to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * + * Generated from protobuf field int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Maximum number of paths to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * + * Generated from protobuf field int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryRepositoryDirectoryContentsResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryRepositoryDirectoryContentsResponse.php new file mode 100644 index 000000000000..b673a43f682f --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryRepositoryDirectoryContentsResponse.php @@ -0,0 +1,105 @@ +google.cloud.dataform.v1.QueryRepositoryDirectoryContentsResponse + */ +class QueryRepositoryDirectoryContentsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of entries in the directory. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.DirectoryEntry directory_entries = 1; + */ + private $directory_entries; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1\DirectoryEntry[] $directory_entries + * List of entries in the directory. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * List of entries in the directory. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.DirectoryEntry directory_entries = 1; + * @return RepeatedField<\Google\Cloud\Dataform\V1\DirectoryEntry> + */ + public function getDirectoryEntries() + { + return $this->directory_entries; + } + + /** + * List of entries in the directory. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.DirectoryEntry directory_entries = 1; + * @param \Google\Cloud\Dataform\V1\DirectoryEntry[] $var + * @return $this + */ + public function setDirectoryEntries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\DirectoryEntry::class); + $this->directory_entries = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryTeamFolderContentsRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryTeamFolderContentsRequest.php new file mode 100644 index 000000000000..513ea04b682f --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryTeamFolderContentsRequest.php @@ -0,0 +1,282 @@ +google.cloud.dataform.v1.QueryTeamFolderContentsRequest + */ +class QueryTeamFolderContentsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the team_folder whose contents to list. + * Format: `projects/{@*}locations/{@*}teamFolders/*`. + * + * Generated from protobuf field string team_folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $team_folder = ''; + /** + * Optional. Maximum number of paths to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * 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"` + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Optional filtering for the returned list. Filtering is currently + * only supported on the `display_name` field. + * Example: + * - `filter="display_name="MyFolder""` + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * @param string $teamFolder Required. Name of the team_folder whose contents to list. + * Format: `projects/*/locations/*/teamFolders/*`. Please see + * {@see DataformClient::teamFolderName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1\QueryTeamFolderContentsRequest + * + * @experimental + */ + public static function build(string $teamFolder): self + { + return (new self()) + ->setTeamFolder($teamFolder); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $team_folder + * Required. Name of the team_folder whose contents to list. + * Format: `projects/{@*}locations/{@*}teamFolders/*`. + * @type int $page_size + * Optional. Maximum number of paths to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * @type string $page_token + * 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. + * @type string $order_by + * 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"` + * @type string $filter + * Optional. Optional filtering for the returned list. Filtering is currently + * only supported on the `display_name` field. + * Example: + * - `filter="display_name="MyFolder""` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the team_folder whose contents to list. + * Format: `projects/{@*}locations/{@*}teamFolders/*`. + * + * Generated from protobuf field string team_folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getTeamFolder() + { + return $this->team_folder; + } + + /** + * Required. Name of the team_folder whose contents to list. + * Format: `projects/{@*}locations/{@*}teamFolders/*`. + * + * Generated from protobuf field string team_folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setTeamFolder($var) + { + GPBUtil::checkString($var, True); + $this->team_folder = $var; + + return $this; + } + + /** + * Optional. Maximum number of paths to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Maximum number of paths to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * 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"` + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * 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"` + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Optional filtering for the returned list. Filtering is currently + * only supported on the `display_name` field. + * Example: + * - `filter="display_name="MyFolder""` + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Optional filtering for the returned list. Filtering is currently + * only supported on the `display_name` field. + * Example: + * - `filter="display_name="MyFolder""` + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryTeamFolderContentsResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryTeamFolderContentsResponse.php new file mode 100644 index 000000000000..1f6e075ad3e1 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryTeamFolderContentsResponse.php @@ -0,0 +1,105 @@ +google.cloud.dataform.v1.QueryTeamFolderContentsResponse + */ +class QueryTeamFolderContentsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of entries in the TeamFolder. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + */ + private $entries; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1\QueryTeamFolderContentsResponse\TeamFolderContentsEntry[] $entries + * List of entries in the TeamFolder. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * List of entries in the TeamFolder. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * @return RepeatedField<\Google\Cloud\Dataform\V1\QueryTeamFolderContentsResponse\TeamFolderContentsEntry> + */ + public function getEntries() + { + return $this->entries; + } + + /** + * List of entries in the TeamFolder. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * @param \Google\Cloud\Dataform\V1\QueryTeamFolderContentsResponse\TeamFolderContentsEntry[] $var + * @return $this + */ + public function setEntries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\QueryTeamFolderContentsResponse\TeamFolderContentsEntry::class); + $this->entries = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryTeamFolderContentsResponse/TeamFolderContentsEntry.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryTeamFolderContentsResponse/TeamFolderContentsEntry.php new file mode 100644 index 000000000000..73585d7013d7 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryTeamFolderContentsResponse/TeamFolderContentsEntry.php @@ -0,0 +1,108 @@ +google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + */ +class TeamFolderContentsEntry extends \Google\Protobuf\Internal\Message +{ + protected $entry; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1\Folder $folder + * A subfolder. + * @type \Google\Cloud\Dataform\V1\Repository $repository + * A repository. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * A subfolder. + * + * Generated from protobuf field .google.cloud.dataform.v1.Folder folder = 1; + * @return \Google\Cloud\Dataform\V1\Folder|null + */ + public function getFolder() + { + return $this->readOneof(1); + } + + public function hasFolder() + { + return $this->hasOneof(1); + } + + /** + * A subfolder. + * + * Generated from protobuf field .google.cloud.dataform.v1.Folder folder = 1; + * @param \Google\Cloud\Dataform\V1\Folder $var + * @return $this + */ + public function setFolder($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\Folder::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * A repository. + * + * Generated from protobuf field .google.cloud.dataform.v1.Repository repository = 2; + * @return \Google\Cloud\Dataform\V1\Repository|null + */ + public function getRepository() + { + return $this->readOneof(2); + } + + public function hasRepository() + { + return $this->hasOneof(2); + } + + /** + * A repository. + * + * Generated from protobuf field .google.cloud.dataform.v1.Repository repository = 2; + * @param \Google\Cloud\Dataform\V1\Repository $var + * @return $this + */ + public function setRepository($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\Repository::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getEntry() + { + return $this->whichOneof("entry"); + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryUserRootContentsRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryUserRootContentsRequest.php new file mode 100644 index 000000000000..d67d77387316 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryUserRootContentsRequest.php @@ -0,0 +1,278 @@ +google.cloud.dataform.v1.QueryUserRootContentsRequest + */ +class QueryUserRootContentsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Location of the user root folder whose contents to list. + * Format: projects/{@*}locations/* + * + * Generated from protobuf field string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $location = ''; + /** + * Optional. Maximum number of paths to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * 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"` + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Optional filtering for the returned list. Filtering is currently + * only supported on the `display_name` field. + * Example: + * - `filter="display_name="MyFolder""` + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * @param string $location Required. Location of the user root folder whose contents to list. + * Format: projects/*/locations/* + * Please see {@see DataformClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1\QueryUserRootContentsRequest + * + * @experimental + */ + public static function build(string $location): self + { + return (new self()) + ->setLocation($location); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $location + * Required. Location of the user root folder whose contents to list. + * Format: projects/{@*}locations/* + * @type int $page_size + * Optional. Maximum number of paths to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * @type string $page_token + * 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. + * @type string $order_by + * 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"` + * @type string $filter + * Optional. Optional filtering for the returned list. Filtering is currently + * only supported on the `display_name` field. + * Example: + * - `filter="display_name="MyFolder""` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. Location of the user root folder whose contents to list. + * Format: projects/{@*}locations/* + * + * Generated from protobuf field string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getLocation() + { + return $this->location; + } + + /** + * Required. Location of the user root folder whose contents to list. + * Format: projects/{@*}locations/* + * + * Generated from protobuf field string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkString($var, True); + $this->location = $var; + + return $this; + } + + /** + * Optional. Maximum number of paths to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Maximum number of paths to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * 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"` + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * 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"` + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Optional filtering for the returned list. Filtering is currently + * only supported on the `display_name` field. + * Example: + * - `filter="display_name="MyFolder""` + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Optional filtering for the returned list. Filtering is currently + * only supported on the `display_name` field. + * Example: + * - `filter="display_name="MyFolder""` + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryUserRootContentsResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryUserRootContentsResponse.php new file mode 100644 index 000000000000..9b0629ce8dce --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryUserRootContentsResponse.php @@ -0,0 +1,105 @@ +google.cloud.dataform.v1.QueryUserRootContentsResponse + */ +class QueryUserRootContentsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of entries in the folder. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + */ + private $entries; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1\QueryUserRootContentsResponse\RootContentsEntry[] $entries + * List of entries in the folder. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * List of entries in the folder. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * @return RepeatedField<\Google\Cloud\Dataform\V1\QueryUserRootContentsResponse\RootContentsEntry> + */ + public function getEntries() + { + return $this->entries; + } + + /** + * List of entries in the folder. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * @param \Google\Cloud\Dataform\V1\QueryUserRootContentsResponse\RootContentsEntry[] $var + * @return $this + */ + public function setEntries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\QueryUserRootContentsResponse\RootContentsEntry::class); + $this->entries = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryUserRootContentsResponse/RootContentsEntry.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryUserRootContentsResponse/RootContentsEntry.php new file mode 100644 index 000000000000..c00b2b2018c1 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryUserRootContentsResponse/RootContentsEntry.php @@ -0,0 +1,108 @@ +google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry + */ +class RootContentsEntry extends \Google\Protobuf\Internal\Message +{ + protected $entry; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1\Folder $folder + * A subfolder. + * @type \Google\Cloud\Dataform\V1\Repository $repository + * A repository. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * A subfolder. + * + * Generated from protobuf field .google.cloud.dataform.v1.Folder folder = 1; + * @return \Google\Cloud\Dataform\V1\Folder|null + */ + public function getFolder() + { + return $this->readOneof(1); + } + + public function hasFolder() + { + return $this->hasOneof(1); + } + + /** + * A subfolder. + * + * Generated from protobuf field .google.cloud.dataform.v1.Folder folder = 1; + * @param \Google\Cloud\Dataform\V1\Folder $var + * @return $this + */ + public function setFolder($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\Folder::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * A repository. + * + * Generated from protobuf field .google.cloud.dataform.v1.Repository repository = 2; + * @return \Google\Cloud\Dataform\V1\Repository|null + */ + public function getRepository() + { + return $this->readOneof(2); + } + + public function hasRepository() + { + return $this->hasOneof(2); + } + + /** + * A repository. + * + * Generated from protobuf field .google.cloud.dataform.v1.Repository repository = 2; + * @param \Google\Cloud\Dataform\V1\Repository $var + * @return $this + */ + public function setRepository($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\Repository::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getEntry() + { + return $this->whichOneof("entry"); + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryWorkflowInvocationActionsRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryWorkflowInvocationActionsRequest.php new file mode 100644 index 000000000000..fcc2b5a9159c --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryWorkflowInvocationActionsRequest.php @@ -0,0 +1,163 @@ +google.cloud.dataform.v1.QueryWorkflowInvocationActionsRequest + */ +class QueryWorkflowInvocationActionsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workflow invocation's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The workflow invocation's name. + * @type int $page_size + * 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. + * @type string $page_token + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workflow invocation's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The workflow invocation's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryWorkflowInvocationActionsResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryWorkflowInvocationActionsResponse.php new file mode 100644 index 000000000000..3ef318f535c4 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryWorkflowInvocationActionsResponse.php @@ -0,0 +1,105 @@ +google.cloud.dataform.v1.QueryWorkflowInvocationActionsResponse + */ +class QueryWorkflowInvocationActionsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of workflow invocation actions. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.WorkflowInvocationAction workflow_invocation_actions = 1; + */ + private $workflow_invocation_actions; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1\WorkflowInvocationAction[] $workflow_invocation_actions + * List of workflow invocation actions. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * List of workflow invocation actions. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.WorkflowInvocationAction workflow_invocation_actions = 1; + * @return RepeatedField<\Google\Cloud\Dataform\V1\WorkflowInvocationAction> + */ + public function getWorkflowInvocationActions() + { + return $this->workflow_invocation_actions; + } + + /** + * List of workflow invocation actions. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.WorkflowInvocationAction workflow_invocation_actions = 1; + * @param \Google\Cloud\Dataform\V1\WorkflowInvocationAction[] $var + * @return $this + */ + public function setWorkflowInvocationActions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\WorkflowInvocationAction::class); + $this->workflow_invocation_actions = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReadFileRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReadFileRequest.php new file mode 100644 index 000000000000..5b16429cea57 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReadFileRequest.php @@ -0,0 +1,143 @@ +google.cloud.dataform.v1.ReadFileRequest + */ +class ReadFileRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $workspace = ''; + /** + * Required. The file's full path including filename, relative to the + * workspace root. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $path = ''; + /** + * Optional. The Git revision of the file to return. If left empty, the + * current contents of `path` will be returned. + * + * Generated from protobuf field string revision = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $revision = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $workspace + * Required. The workspace's name. + * @type string $path + * Required. The file's full path including filename, relative to the + * workspace root. + * @type string $revision + * Optional. The Git revision of the file to return. If left empty, the + * current contents of `path` will be returned. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getWorkspace() + { + return $this->workspace; + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setWorkspace($var) + { + GPBUtil::checkString($var, True); + $this->workspace = $var; + + return $this; + } + + /** + * Required. The file's full path including filename, relative to the + * workspace root. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getPath() + { + return $this->path; + } + + /** + * Required. The file's full path including filename, relative to the + * workspace root. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setPath($var) + { + GPBUtil::checkString($var, True); + $this->path = $var; + + return $this; + } + + /** + * Optional. The Git revision of the file to return. If left empty, the + * current contents of `path` will be returned. + * + * Generated from protobuf field string revision = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRevision() + { + return $this->revision; + } + + /** + * Optional. The Git revision of the file to return. If left empty, the + * current contents of `path` will be returned. + * + * Generated from protobuf field string revision = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRevision($var) + { + GPBUtil::checkString($var, True); + $this->revision = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReadFileResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReadFileResponse.php new file mode 100644 index 000000000000..e569c8b51b87 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReadFileResponse.php @@ -0,0 +1,67 @@ +google.cloud.dataform.v1.ReadFileResponse + */ +class ReadFileResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The file's contents. + * + * Generated from protobuf field bytes file_contents = 1; + */ + protected $file_contents = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $file_contents + * The file's contents. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * The file's contents. + * + * Generated from protobuf field bytes file_contents = 1; + * @return string + */ + public function getFileContents() + { + return $this->file_contents; + } + + /** + * The file's contents. + * + * Generated from protobuf field bytes file_contents = 1; + * @param string $var + * @return $this + */ + public function setFileContents($var) + { + GPBUtil::checkString($var, False); + $this->file_contents = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReadRepositoryFileRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReadRepositoryFileRequest.php new file mode 100644 index 000000000000..0dfb8544ebb1 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReadRepositoryFileRequest.php @@ -0,0 +1,139 @@ +google.cloud.dataform.v1.ReadRepositoryFileRequest + */ +class ReadRepositoryFileRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. The commit SHA for the commit to read from. If unset, the file + * will be read from HEAD. + * + * Generated from protobuf field string commit_sha = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $commit_sha = ''; + /** + * Required. Full file path to read including filename, from repository root. + * + * Generated from protobuf field string path = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $path = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The repository's name. + * @type string $commit_sha + * Optional. The commit SHA for the commit to read from. If unset, the file + * will be read from HEAD. + * @type string $path + * Required. Full file path to read including filename, from repository root. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. The commit SHA for the commit to read from. If unset, the file + * will be read from HEAD. + * + * Generated from protobuf field string commit_sha = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getCommitSha() + { + return $this->commit_sha; + } + + /** + * Optional. The commit SHA for the commit to read from. If unset, the file + * will be read from HEAD. + * + * Generated from protobuf field string commit_sha = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setCommitSha($var) + { + GPBUtil::checkString($var, True); + $this->commit_sha = $var; + + return $this; + } + + /** + * Required. Full file path to read including filename, from repository root. + * + * Generated from protobuf field string path = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getPath() + { + return $this->path; + } + + /** + * Required. Full file path to read including filename, from repository root. + * + * Generated from protobuf field string path = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setPath($var) + { + GPBUtil::checkString($var, True); + $this->path = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReadRepositoryFileResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReadRepositoryFileResponse.php new file mode 100644 index 000000000000..ddd4c637ae5c --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReadRepositoryFileResponse.php @@ -0,0 +1,67 @@ +google.cloud.dataform.v1.ReadRepositoryFileResponse + */ +class ReadRepositoryFileResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The file's contents. + * + * Generated from protobuf field bytes contents = 1; + */ + protected $contents = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $contents + * The file's contents. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * The file's contents. + * + * Generated from protobuf field bytes contents = 1; + * @return string + */ + public function getContents() + { + return $this->contents; + } + + /** + * The file's contents. + * + * Generated from protobuf field bytes contents = 1; + * @param string $var + * @return $this + */ + public function setContents($var) + { + GPBUtil::checkString($var, False); + $this->contents = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RelationDescriptor.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RelationDescriptor.php new file mode 100644 index 000000000000..6dcf5127b226 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RelationDescriptor.php @@ -0,0 +1,135 @@ +google.cloud.dataform.v1.RelationDescriptor + */ +class RelationDescriptor extends \Google\Protobuf\Internal\Message +{ + /** + * A text description of the relation. + * + * Generated from protobuf field string description = 1; + */ + protected $description = ''; + /** + * A list of descriptions of columns within the relation. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.RelationDescriptor.ColumnDescriptor columns = 2; + */ + private $columns; + /** + * A set of BigQuery labels that should be applied to the relation. + * + * Generated from protobuf field map bigquery_labels = 3; + */ + private $bigquery_labels; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $description + * A text description of the relation. + * @type \Google\Cloud\Dataform\V1\RelationDescriptor\ColumnDescriptor[] $columns + * A list of descriptions of columns within the relation. + * @type array|\Google\Protobuf\Internal\MapField $bigquery_labels + * A set of BigQuery labels that should be applied to the relation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * A text description of the relation. + * + * Generated from protobuf field string description = 1; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * A text description of the relation. + * + * Generated from protobuf field string description = 1; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * A list of descriptions of columns within the relation. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.RelationDescriptor.ColumnDescriptor columns = 2; + * @return RepeatedField<\Google\Cloud\Dataform\V1\RelationDescriptor\ColumnDescriptor> + */ + public function getColumns() + { + return $this->columns; + } + + /** + * A list of descriptions of columns within the relation. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.RelationDescriptor.ColumnDescriptor columns = 2; + * @param \Google\Cloud\Dataform\V1\RelationDescriptor\ColumnDescriptor[] $var + * @return $this + */ + public function setColumns($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\RelationDescriptor\ColumnDescriptor::class); + $this->columns = $arr; + + return $this; + } + + /** + * A set of BigQuery labels that should be applied to the relation. + * + * Generated from protobuf field map bigquery_labels = 3; + * @return \Google\Protobuf\Internal\MapField + */ + public function getBigqueryLabels() + { + return $this->bigquery_labels; + } + + /** + * A set of BigQuery labels that should be applied to the relation. + * + * Generated from protobuf field map bigquery_labels = 3; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setBigqueryLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->bigquery_labels = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RelationDescriptor/ColumnDescriptor.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RelationDescriptor/ColumnDescriptor.php new file mode 100644 index 000000000000..894c01ba147f --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RelationDescriptor/ColumnDescriptor.php @@ -0,0 +1,139 @@ +google.cloud.dataform.v1.RelationDescriptor.ColumnDescriptor + */ +class ColumnDescriptor extends \Google\Protobuf\Internal\Message +{ + /** + * The identifier for the column. Each entry in `path` represents one level + * of nesting. + * + * Generated from protobuf field repeated string path = 1; + */ + private $path; + /** + * A textual description of the column. + * + * Generated from protobuf field string description = 2; + */ + protected $description = ''; + /** + * A list of BigQuery policy tags that will be applied to the column. + * + * Generated from protobuf field repeated string bigquery_policy_tags = 3; + */ + private $bigquery_policy_tags; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string[] $path + * The identifier for the column. Each entry in `path` represents one level + * of nesting. + * @type string $description + * A textual description of the column. + * @type string[] $bigquery_policy_tags + * A list of BigQuery policy tags that will be applied to the column. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * The identifier for the column. Each entry in `path` represents one level + * of nesting. + * + * Generated from protobuf field repeated string path = 1; + * @return RepeatedField + */ + public function getPath() + { + return $this->path; + } + + /** + * The identifier for the column. Each entry in `path` represents one level + * of nesting. + * + * Generated from protobuf field repeated string path = 1; + * @param string[] $var + * @return $this + */ + public function setPath($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->path = $arr; + + return $this; + } + + /** + * A textual description of the column. + * + * Generated from protobuf field string description = 2; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * A textual description of the column. + * + * Generated from protobuf field string description = 2; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * A list of BigQuery policy tags that will be applied to the column. + * + * Generated from protobuf field repeated string bigquery_policy_tags = 3; + * @return RepeatedField + */ + public function getBigqueryPolicyTags() + { + return $this->bigquery_policy_tags; + } + + /** + * A list of BigQuery policy tags that will be applied to the column. + * + * Generated from protobuf field repeated string bigquery_policy_tags = 3; + * @param string[] $var + * @return $this + */ + public function setBigqueryPolicyTags($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->bigquery_policy_tags = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReleaseConfig.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReleaseConfig.php new file mode 100644 index 000000000000..4958a0b61374 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReleaseConfig.php @@ -0,0 +1,435 @@ +google.cloud.dataform.v1.ReleaseConfig + */ +class ReleaseConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The release config's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * 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` + * + * Generated from protobuf field string git_commitish = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $git_commitish = ''; + /** + * Optional. If set, fields of `code_compilation_config` override the default + * compilation settings that are specified in dataform.json. + * + * Generated from protobuf field .google.cloud.dataform.v1.CodeCompilationConfig code_compilation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $code_compilation_config = null; + /** + * Optional. Optional schedule (in cron format) for automatic creation of + * compilation results. + * + * Generated from protobuf field string cron_schedule = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $cron_schedule = ''; + /** + * 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. + * + * Generated from protobuf field string time_zone = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $time_zone = ''; + /** + * 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. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.ReleaseConfig.ScheduledReleaseRecord recent_scheduled_release_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $recent_scheduled_release_records; + /** + * 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/*`. + * + * Generated from protobuf field string release_compilation_result = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $release_compilation_result = ''; + /** + * Optional. Disables automatic creation of compilation results. + * + * Generated from protobuf field bool disabled = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $disabled = false; + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $internal_metadata = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The release config's name. + * @type string $git_commitish + * 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` + * @type \Google\Cloud\Dataform\V1\CodeCompilationConfig $code_compilation_config + * Optional. If set, fields of `code_compilation_config` override the default + * compilation settings that are specified in dataform.json. + * @type string $cron_schedule + * Optional. Optional schedule (in cron format) for automatic creation of + * compilation results. + * @type string $time_zone + * 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. + * @type \Google\Cloud\Dataform\V1\ReleaseConfig\ScheduledReleaseRecord[] $recent_scheduled_release_records + * 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. + * @type string $release_compilation_result + * 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/*`. + * @type bool $disabled + * Optional. Disables automatic creation of compilation results. + * @type string $internal_metadata + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The release config's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The release config's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * 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` + * + * Generated from protobuf field string git_commitish = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getGitCommitish() + { + return $this->git_commitish; + } + + /** + * 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` + * + * Generated from protobuf field string git_commitish = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setGitCommitish($var) + { + GPBUtil::checkString($var, True); + $this->git_commitish = $var; + + return $this; + } + + /** + * Optional. If set, fields of `code_compilation_config` override the default + * compilation settings that are specified in dataform.json. + * + * Generated from protobuf field .google.cloud.dataform.v1.CodeCompilationConfig code_compilation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataform\V1\CodeCompilationConfig|null + */ + public function getCodeCompilationConfig() + { + return $this->code_compilation_config; + } + + public function hasCodeCompilationConfig() + { + return isset($this->code_compilation_config); + } + + public function clearCodeCompilationConfig() + { + unset($this->code_compilation_config); + } + + /** + * Optional. If set, fields of `code_compilation_config` override the default + * compilation settings that are specified in dataform.json. + * + * Generated from protobuf field .google.cloud.dataform.v1.CodeCompilationConfig code_compilation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataform\V1\CodeCompilationConfig $var + * @return $this + */ + public function setCodeCompilationConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CodeCompilationConfig::class); + $this->code_compilation_config = $var; + + return $this; + } + + /** + * Optional. Optional schedule (in cron format) for automatic creation of + * compilation results. + * + * Generated from protobuf field string cron_schedule = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getCronSchedule() + { + return $this->cron_schedule; + } + + /** + * Optional. Optional schedule (in cron format) for automatic creation of + * compilation results. + * + * Generated from protobuf field string cron_schedule = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setCronSchedule($var) + { + GPBUtil::checkString($var, True); + $this->cron_schedule = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string time_zone = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getTimeZone() + { + return $this->time_zone; + } + + /** + * 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. + * + * Generated from protobuf field string time_zone = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setTimeZone($var) + { + GPBUtil::checkString($var, True); + $this->time_zone = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.ReleaseConfig.ScheduledReleaseRecord recent_scheduled_release_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\Dataform\V1\ReleaseConfig\ScheduledReleaseRecord> + */ + public function getRecentScheduledReleaseRecords() + { + return $this->recent_scheduled_release_records; + } + + /** + * 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. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.ReleaseConfig.ScheduledReleaseRecord recent_scheduled_release_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataform\V1\ReleaseConfig\ScheduledReleaseRecord[] $var + * @return $this + */ + public function setRecentScheduledReleaseRecords($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\ReleaseConfig\ScheduledReleaseRecord::class); + $this->recent_scheduled_release_records = $arr; + + return $this; + } + + /** + * 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/*`. + * + * Generated from protobuf field string release_compilation_result = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getReleaseCompilationResult() + { + return $this->release_compilation_result; + } + + /** + * 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/*`. + * + * Generated from protobuf field string release_compilation_result = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setReleaseCompilationResult($var) + { + GPBUtil::checkString($var, True); + $this->release_compilation_result = $var; + + return $this; + } + + /** + * Optional. Disables automatic creation of compilation results. + * + * Generated from protobuf field bool disabled = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getDisabled() + { + return $this->disabled; + } + + /** + * Optional. Disables automatic creation of compilation results. + * + * Generated from protobuf field bool disabled = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setDisabled($var) + { + GPBUtil::checkBool($var); + $this->disabled = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getInternalMetadata() + { + return isset($this->internal_metadata) ? $this->internal_metadata : ''; + } + + public function hasInternalMetadata() + { + return isset($this->internal_metadata); + } + + public function clearInternalMetadata() + { + unset($this->internal_metadata); + } + + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setInternalMetadata($var) + { + GPBUtil::checkString($var, True); + $this->internal_metadata = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReleaseConfig/ScheduledReleaseRecord.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReleaseConfig/ScheduledReleaseRecord.php new file mode 100644 index 000000000000..1b23181bfe82 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReleaseConfig/ScheduledReleaseRecord.php @@ -0,0 +1,162 @@ +google.cloud.dataform.v1.ReleaseConfig.ScheduledReleaseRecord + */ +class ScheduledReleaseRecord extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The timestamp of this release attempt. + * + * Generated from protobuf field .google.protobuf.Timestamp release_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $release_time = null; + protected $result; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $compilation_result + * The name of the created compilation result, if one was successfully + * created. Must be in the format + * `projects/{@*}locations/{@*}repositories/{@*}compilationResults/*`. + * @type \Google\Rpc\Status $error_status + * The error status encountered upon this attempt to create the + * compilation result, if the attempt was unsuccessful. + * @type \Google\Protobuf\Timestamp $release_time + * Output only. The timestamp of this release attempt. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * The name of the created compilation result, if one was successfully + * created. Must be in the format + * `projects/{@*}locations/{@*}repositories/{@*}compilationResults/*`. + * + * Generated from protobuf field string compilation_result = 2 [(.google.api.resource_reference) = { + * @return string + */ + public function getCompilationResult() + { + return $this->readOneof(2); + } + + public function hasCompilationResult() + { + return $this->hasOneof(2); + } + + /** + * The name of the created compilation result, if one was successfully + * created. Must be in the format + * `projects/{@*}locations/{@*}repositories/{@*}compilationResults/*`. + * + * Generated from protobuf field string compilation_result = 2 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setCompilationResult($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * The error status encountered upon this attempt to create the + * compilation result, if the attempt was unsuccessful. + * + * Generated from protobuf field .google.rpc.Status error_status = 3; + * @return \Google\Rpc\Status|null + */ + public function getErrorStatus() + { + return $this->readOneof(3); + } + + public function hasErrorStatus() + { + return $this->hasOneof(3); + } + + /** + * The error status encountered upon this attempt to create the + * compilation result, if the attempt was unsuccessful. + * + * Generated from protobuf field .google.rpc.Status error_status = 3; + * @param \Google\Rpc\Status $var + * @return $this + */ + public function setErrorStatus($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\Status::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Output only. The timestamp of this release attempt. + * + * Generated from protobuf field .google.protobuf.Timestamp release_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getReleaseTime() + { + return $this->release_time; + } + + public function hasReleaseTime() + { + return isset($this->release_time); + } + + public function clearReleaseTime() + { + unset($this->release_time); + } + + /** + * Output only. The timestamp of this release attempt. + * + * Generated from protobuf field .google.protobuf.Timestamp release_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setReleaseTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->release_time = $var; + + return $this; + } + + /** + * @return string + */ + public function getResult() + { + return $this->whichOneof("result"); + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RemoveDirectoryRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RemoveDirectoryRequest.php new file mode 100644 index 000000000000..3f757dd245c5 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RemoveDirectoryRequest.php @@ -0,0 +1,105 @@ +google.cloud.dataform.v1.RemoveDirectoryRequest + */ +class RemoveDirectoryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $workspace = ''; + /** + * Required. The directory's full path including directory name, relative to + * the workspace root. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $path = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $workspace + * Required. The workspace's name. + * @type string $path + * Required. The directory's full path including directory name, relative to + * the workspace root. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getWorkspace() + { + return $this->workspace; + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setWorkspace($var) + { + GPBUtil::checkString($var, True); + $this->workspace = $var; + + return $this; + } + + /** + * Required. The directory's full path including directory name, relative to + * the workspace root. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getPath() + { + return $this->path; + } + + /** + * Required. The directory's full path including directory name, relative to + * the workspace root. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setPath($var) + { + GPBUtil::checkString($var, True); + $this->path = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RemoveDirectoryResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RemoveDirectoryResponse.php new file mode 100644 index 000000000000..424fb70ffd7c --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RemoveDirectoryResponse.php @@ -0,0 +1,33 @@ +google.cloud.dataform.v1.RemoveDirectoryResponse + */ +class RemoveDirectoryResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RemoveFileRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RemoveFileRequest.php new file mode 100644 index 000000000000..aae40ffb15f8 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RemoveFileRequest.php @@ -0,0 +1,105 @@ +google.cloud.dataform.v1.RemoveFileRequest + */ +class RemoveFileRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $workspace = ''; + /** + * Required. The file's full path including filename, relative to the + * workspace root. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $path = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $workspace + * Required. The workspace's name. + * @type string $path + * Required. The file's full path including filename, relative to the + * workspace root. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getWorkspace() + { + return $this->workspace; + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setWorkspace($var) + { + GPBUtil::checkString($var, True); + $this->workspace = $var; + + return $this; + } + + /** + * Required. The file's full path including filename, relative to the + * workspace root. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getPath() + { + return $this->path; + } + + /** + * Required. The file's full path including filename, relative to the + * workspace root. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setPath($var) + { + GPBUtil::checkString($var, True); + $this->path = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RemoveFileResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RemoveFileResponse.php new file mode 100644 index 000000000000..843a3d6cdaad --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RemoveFileResponse.php @@ -0,0 +1,33 @@ +google.cloud.dataform.v1.RemoveFileResponse + */ +class RemoveFileResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Repository.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Repository.php new file mode 100644 index 000000000000..9ba215fd29eb --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Repository.php @@ -0,0 +1,663 @@ +google.cloud.dataform.v1.Repository + */ +class Repository extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * 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/*`. + * + * Generated from protobuf field optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $containing_folder = null; + /** + * 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. + * + * Generated from protobuf field optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $team_folder_name = null; + /** + * Output only. The timestamp of when the repository was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Optional. The repository's user-friendly name. + * + * Generated from protobuf field string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $display_name = ''; + /** + * Optional. If set, configures this repository to be linked to a Git remote. + * + * Generated from protobuf field .google.cloud.dataform.v1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $git_remote_settings = null; + /** + * 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. + * + * Generated from protobuf field string npmrc_environment_variables_secret_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $npmrc_environment_variables_secret_version = ''; + /** + * 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. + * + * Generated from protobuf field .google.cloud.dataform.v1.Repository.WorkspaceCompilationOverrides workspace_compilation_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $workspace_compilation_overrides = null; + /** + * Optional. Repository user labels. + * + * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + /** + * Optional. Input only. If set to true, the authenticated user will be + * granted the roles/dataform.admin role on the created repository. + * + * Generated from protobuf field bool set_authenticated_user_admin = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + */ + protected $set_authenticated_user_admin = false; + /** + * Optional. The service account to run workflow invocations under. + * + * Generated from protobuf field string service_account = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $service_account = ''; + /** + * 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}` + * + * Generated from protobuf field string kms_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $kms_key_name = ''; + /** + * Output only. A data encryption state of a Git repository if this Repository + * is protected by a KMS key. + * + * Generated from protobuf field .google.cloud.dataform.v1.DataEncryptionState data_encryption_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $data_encryption_state = null; + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $internal_metadata = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The repository's name. + * @type string $containing_folder + * 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/*`. + * @type string $team_folder_name + * 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. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The timestamp of when the repository was created. + * @type string $display_name + * Optional. The repository's user-friendly name. + * @type \Google\Cloud\Dataform\V1\Repository\GitRemoteSettings $git_remote_settings + * Optional. If set, configures this repository to be linked to a Git remote. + * @type string $npmrc_environment_variables_secret_version + * 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. + * @type \Google\Cloud\Dataform\V1\Repository\WorkspaceCompilationOverrides $workspace_compilation_overrides + * 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. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. Repository user labels. + * @type bool $set_authenticated_user_admin + * Optional. Input only. If set to true, the authenticated user will be + * granted the roles/dataform.admin role on the created repository. + * @type string $service_account + * Optional. The service account to run workflow invocations under. + * @type string $kms_key_name + * 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}` + * @type \Google\Cloud\Dataform\V1\DataEncryptionState $data_encryption_state + * Output only. A data encryption state of a Git repository if this Repository + * is protected by a KMS key. + * @type string $internal_metadata + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * 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/*`. + * + * Generated from protobuf field optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getContainingFolder() + { + return isset($this->containing_folder) ? $this->containing_folder : ''; + } + + public function hasContainingFolder() + { + return isset($this->containing_folder); + } + + public function clearContainingFolder() + { + unset($this->containing_folder); + } + + /** + * 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/*`. + * + * Generated from protobuf field optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setContainingFolder($var) + { + GPBUtil::checkString($var, True); + $this->containing_folder = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getTeamFolderName() + { + return isset($this->team_folder_name) ? $this->team_folder_name : ''; + } + + public function hasTeamFolderName() + { + return isset($this->team_folder_name); + } + + public function clearTeamFolderName() + { + unset($this->team_folder_name); + } + + /** + * 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. + * + * Generated from protobuf field optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setTeamFolderName($var) + { + GPBUtil::checkString($var, True); + $this->team_folder_name = $var; + + return $this; + } + + /** + * Output only. The timestamp of when the repository was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The timestamp of when the repository was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Optional. The repository's user-friendly name. + * + * Generated from protobuf field string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Optional. The repository's user-friendly name. + * + * Generated from protobuf field string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Optional. If set, configures this repository to be linked to a Git remote. + * + * Generated from protobuf field .google.cloud.dataform.v1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataform\V1\Repository\GitRemoteSettings|null + */ + public function getGitRemoteSettings() + { + return $this->git_remote_settings; + } + + public function hasGitRemoteSettings() + { + return isset($this->git_remote_settings); + } + + public function clearGitRemoteSettings() + { + unset($this->git_remote_settings); + } + + /** + * Optional. If set, configures this repository to be linked to a Git remote. + * + * Generated from protobuf field .google.cloud.dataform.v1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataform\V1\Repository\GitRemoteSettings $var + * @return $this + */ + public function setGitRemoteSettings($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\Repository\GitRemoteSettings::class); + $this->git_remote_settings = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string npmrc_environment_variables_secret_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getNpmrcEnvironmentVariablesSecretVersion() + { + return $this->npmrc_environment_variables_secret_version; + } + + /** + * 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. + * + * Generated from protobuf field string npmrc_environment_variables_secret_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setNpmrcEnvironmentVariablesSecretVersion($var) + { + GPBUtil::checkString($var, True); + $this->npmrc_environment_variables_secret_version = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field .google.cloud.dataform.v1.Repository.WorkspaceCompilationOverrides workspace_compilation_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataform\V1\Repository\WorkspaceCompilationOverrides|null + */ + public function getWorkspaceCompilationOverrides() + { + return $this->workspace_compilation_overrides; + } + + public function hasWorkspaceCompilationOverrides() + { + return isset($this->workspace_compilation_overrides); + } + + public function clearWorkspaceCompilationOverrides() + { + unset($this->workspace_compilation_overrides); + } + + /** + * 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. + * + * Generated from protobuf field .google.cloud.dataform.v1.Repository.WorkspaceCompilationOverrides workspace_compilation_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataform\V1\Repository\WorkspaceCompilationOverrides $var + * @return $this + */ + public function setWorkspaceCompilationOverrides($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\Repository\WorkspaceCompilationOverrides::class); + $this->workspace_compilation_overrides = $var; + + return $this; + } + + /** + * Optional. Repository user labels. + * + * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. Repository user labels. + * + * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Optional. Input only. If set to true, the authenticated user will be + * granted the roles/dataform.admin role on the created repository. + * + * Generated from protobuf field bool set_authenticated_user_admin = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * @return bool + */ + public function getSetAuthenticatedUserAdmin() + { + return $this->set_authenticated_user_admin; + } + + /** + * Optional. Input only. If set to true, the authenticated user will be + * granted the roles/dataform.admin role on the created repository. + * + * Generated from protobuf field bool set_authenticated_user_admin = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setSetAuthenticatedUserAdmin($var) + { + GPBUtil::checkBool($var); + $this->set_authenticated_user_admin = $var; + + return $this; + } + + /** + * Optional. The service account to run workflow invocations under. + * + * Generated from protobuf field string service_account = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getServiceAccount() + { + return $this->service_account; + } + + /** + * Optional. The service account to run workflow invocations under. + * + * Generated from protobuf field string service_account = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setServiceAccount($var) + { + GPBUtil::checkString($var, True); + $this->service_account = $var; + + return $this; + } + + /** + * 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}` + * + * Generated from protobuf field string kms_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getKmsKeyName() + { + return $this->kms_key_name; + } + + /** + * 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}` + * + * Generated from protobuf field string kms_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setKmsKeyName($var) + { + GPBUtil::checkString($var, True); + $this->kms_key_name = $var; + + return $this; + } + + /** + * Output only. A data encryption state of a Git repository if this Repository + * is protected by a KMS key. + * + * Generated from protobuf field .google.cloud.dataform.v1.DataEncryptionState data_encryption_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataform\V1\DataEncryptionState|null + */ + public function getDataEncryptionState() + { + return $this->data_encryption_state; + } + + public function hasDataEncryptionState() + { + return isset($this->data_encryption_state); + } + + public function clearDataEncryptionState() + { + unset($this->data_encryption_state); + } + + /** + * Output only. A data encryption state of a Git repository if this Repository + * is protected by a KMS key. + * + * Generated from protobuf field .google.cloud.dataform.v1.DataEncryptionState data_encryption_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataform\V1\DataEncryptionState $var + * @return $this + */ + public function setDataEncryptionState($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\DataEncryptionState::class); + $this->data_encryption_state = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getInternalMetadata() + { + return isset($this->internal_metadata) ? $this->internal_metadata : ''; + } + + public function hasInternalMetadata() + { + return isset($this->internal_metadata); + } + + public function clearInternalMetadata() + { + unset($this->internal_metadata); + } + + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setInternalMetadata($var) + { + GPBUtil::checkString($var, True); + $this->internal_metadata = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Repository/GitRemoteSettings.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Repository/GitRemoteSettings.php new file mode 100644 index 000000000000..fc4b6a05fa85 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Repository/GitRemoteSettings.php @@ -0,0 +1,232 @@ +google.cloud.dataform.v1.Repository.GitRemoteSettings + */ +class GitRemoteSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The Git remote's URL. + * + * Generated from protobuf field string url = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $url = ''; + /** + * Required. The Git remote's default branch name. + * + * Generated from protobuf field string default_branch = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $default_branch = ''; + /** + * 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/*`. + * + * Generated from protobuf field string authentication_token_secret_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $authentication_token_secret_version = ''; + /** + * Optional. Authentication fields for remote uris using SSH protocol. + * + * Generated from protobuf field .google.cloud.dataform.v1.Repository.GitRemoteSettings.SshAuthenticationConfig ssh_authentication_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $ssh_authentication_config = null; + /** + * Output only. Deprecated: The field does not contain any token status + * information. + * + * Generated from protobuf field .google.cloud.dataform.v1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * @deprecated + */ + protected $token_status = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $url + * Required. The Git remote's URL. + * @type string $default_branch + * Required. The Git remote's default branch name. + * @type string $authentication_token_secret_version + * 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/*`. + * @type \Google\Cloud\Dataform\V1\Repository\GitRemoteSettings\SshAuthenticationConfig $ssh_authentication_config + * Optional. Authentication fields for remote uris using SSH protocol. + * @type int $token_status + * Output only. Deprecated: The field does not contain any token status + * information. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The Git remote's URL. + * + * Generated from protobuf field string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getUrl() + { + return $this->url; + } + + /** + * Required. The Git remote's URL. + * + * Generated from protobuf field string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setUrl($var) + { + GPBUtil::checkString($var, True); + $this->url = $var; + + return $this; + } + + /** + * Required. The Git remote's default branch name. + * + * Generated from protobuf field string default_branch = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDefaultBranch() + { + return $this->default_branch; + } + + /** + * Required. The Git remote's default branch name. + * + * Generated from protobuf field string default_branch = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDefaultBranch($var) + { + GPBUtil::checkString($var, True); + $this->default_branch = $var; + + return $this; + } + + /** + * 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/*`. + * + * Generated from protobuf field string authentication_token_secret_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getAuthenticationTokenSecretVersion() + { + return $this->authentication_token_secret_version; + } + + /** + * 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/*`. + * + * Generated from protobuf field string authentication_token_secret_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setAuthenticationTokenSecretVersion($var) + { + GPBUtil::checkString($var, True); + $this->authentication_token_secret_version = $var; + + return $this; + } + + /** + * Optional. Authentication fields for remote uris using SSH protocol. + * + * Generated from protobuf field .google.cloud.dataform.v1.Repository.GitRemoteSettings.SshAuthenticationConfig ssh_authentication_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataform\V1\Repository\GitRemoteSettings\SshAuthenticationConfig|null + */ + public function getSshAuthenticationConfig() + { + return $this->ssh_authentication_config; + } + + public function hasSshAuthenticationConfig() + { + return isset($this->ssh_authentication_config); + } + + public function clearSshAuthenticationConfig() + { + unset($this->ssh_authentication_config); + } + + /** + * Optional. Authentication fields for remote uris using SSH protocol. + * + * Generated from protobuf field .google.cloud.dataform.v1.Repository.GitRemoteSettings.SshAuthenticationConfig ssh_authentication_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataform\V1\Repository\GitRemoteSettings\SshAuthenticationConfig $var + * @return $this + */ + public function setSshAuthenticationConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\Repository\GitRemoteSettings\SshAuthenticationConfig::class); + $this->ssh_authentication_config = $var; + + return $this; + } + + /** + * Output only. Deprecated: The field does not contain any token status + * information. + * + * Generated from protobuf field .google.cloud.dataform.v1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + * @deprecated + */ + public function getTokenStatus() + { + if ($this->token_status !== 0) { + @trigger_error('token_status is deprecated.', E_USER_DEPRECATED); + } + return $this->token_status; + } + + /** + * Output only. Deprecated: The field does not contain any token status + * information. + * + * Generated from protobuf field .google.cloud.dataform.v1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + * @deprecated + */ + public function setTokenStatus($var) + { + @trigger_error('token_status is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1\Repository\GitRemoteSettings\TokenStatus::class); + $this->token_status = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Repository/GitRemoteSettings/SshAuthenticationConfig.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Repository/GitRemoteSettings/SshAuthenticationConfig.php new file mode 100644 index 000000000000..d7f2c3f073c0 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Repository/GitRemoteSettings/SshAuthenticationConfig.php @@ -0,0 +1,113 @@ +google.cloud.dataform.v1.Repository.GitRemoteSettings.SshAuthenticationConfig + */ +class SshAuthenticationConfig extends \Google\Protobuf\Internal\Message +{ + /** + * 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/*`. + * + * Generated from protobuf field string user_private_key_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $user_private_key_secret_version = ''; + /** + * Required. Content of a public SSH key to verify an identity of a remote + * Git host. + * + * Generated from protobuf field string host_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $host_public_key = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $user_private_key_secret_version + * 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/*`. + * @type string $host_public_key + * Required. Content of a public SSH key to verify an identity of a remote + * Git host. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * 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/*`. + * + * Generated from protobuf field string user_private_key_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getUserPrivateKeySecretVersion() + { + return $this->user_private_key_secret_version; + } + + /** + * 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/*`. + * + * Generated from protobuf field string user_private_key_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setUserPrivateKeySecretVersion($var) + { + GPBUtil::checkString($var, True); + $this->user_private_key_secret_version = $var; + + return $this; + } + + /** + * Required. Content of a public SSH key to verify an identity of a remote + * Git host. + * + * Generated from protobuf field string host_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getHostPublicKey() + { + return $this->host_public_key; + } + + /** + * Required. Content of a public SSH key to verify an identity of a remote + * Git host. + * + * Generated from protobuf field string host_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setHostPublicKey($var) + { + GPBUtil::checkString($var, True); + $this->host_public_key = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Repository/GitRemoteSettings/TokenStatus.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Repository/GitRemoteSettings/TokenStatus.php new file mode 100644 index 000000000000..1ee1e1bbc4a3 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Repository/GitRemoteSettings/TokenStatus.php @@ -0,0 +1,69 @@ +google.cloud.dataform.v1.Repository.GitRemoteSettings.TokenStatus + */ +class TokenStatus +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum TOKEN_STATUS_UNSPECIFIED = 0; + */ + const 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). + * + * Generated from protobuf enum NOT_FOUND = 1; + */ + const NOT_FOUND = 1; + /** + * The token could not be used to authenticate against the Git remote. + * + * Generated from protobuf enum INVALID = 2; + */ + const INVALID = 2; + /** + * The token was used successfully to authenticate against the Git remote. + * + * Generated from protobuf enum VALID = 3; + */ + const VALID = 3; + + private static $valueToName = [ + self::TOKEN_STATUS_UNSPECIFIED => 'TOKEN_STATUS_UNSPECIFIED', + self::NOT_FOUND => 'NOT_FOUND', + self::INVALID => 'INVALID', + self::VALID => 'VALID', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Repository/WorkspaceCompilationOverrides.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Repository/WorkspaceCompilationOverrides.php new file mode 100644 index 000000000000..5f46b8275c93 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Repository/WorkspaceCompilationOverrides.php @@ -0,0 +1,139 @@ +google.cloud.dataform.v1.Repository.WorkspaceCompilationOverrides + */ +class WorkspaceCompilationOverrides extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The default database (Google Cloud project ID). + * + * Generated from protobuf field string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $default_database = ''; + /** + * Optional. The suffix that should be appended to all schema (BigQuery + * dataset ID) names. + * + * Generated from protobuf field string schema_suffix = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $schema_suffix = ''; + /** + * Optional. The prefix that should be prepended to all table names. + * + * Generated from protobuf field string table_prefix = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $table_prefix = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $default_database + * Optional. The default database (Google Cloud project ID). + * @type string $schema_suffix + * Optional. The suffix that should be appended to all schema (BigQuery + * dataset ID) names. + * @type string $table_prefix + * Optional. The prefix that should be prepended to all table names. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The default database (Google Cloud project ID). + * + * Generated from protobuf field string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDefaultDatabase() + { + return $this->default_database; + } + + /** + * Optional. The default database (Google Cloud project ID). + * + * Generated from protobuf field string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDefaultDatabase($var) + { + GPBUtil::checkString($var, True); + $this->default_database = $var; + + return $this; + } + + /** + * Optional. The suffix that should be appended to all schema (BigQuery + * dataset ID) names. + * + * Generated from protobuf field string schema_suffix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getSchemaSuffix() + { + return $this->schema_suffix; + } + + /** + * Optional. The suffix that should be appended to all schema (BigQuery + * dataset ID) names. + * + * Generated from protobuf field string schema_suffix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setSchemaSuffix($var) + { + GPBUtil::checkString($var, True); + $this->schema_suffix = $var; + + return $this; + } + + /** + * Optional. The prefix that should be prepended to all table names. + * + * Generated from protobuf field string table_prefix = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getTablePrefix() + { + return $this->table_prefix; + } + + /** + * Optional. The prefix that should be prepended to all table names. + * + * Generated from protobuf field string table_prefix = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setTablePrefix($var) + { + GPBUtil::checkString($var, True); + $this->table_prefix = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ResetWorkspaceChangesRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ResetWorkspaceChangesRequest.php new file mode 100644 index 000000000000..91eeeced96f6 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ResetWorkspaceChangesRequest.php @@ -0,0 +1,139 @@ +google.cloud.dataform.v1.ResetWorkspaceChangesRequest + */ +class ResetWorkspaceChangesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * 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. + * + * Generated from protobuf field repeated string paths = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $paths; + /** + * Optional. If set to true, untracked files will be deleted. + * + * Generated from protobuf field bool clean = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $clean = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The workspace's name. + * @type string[] $paths + * 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. + * @type bool $clean + * Optional. If set to true, untracked files will be deleted. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field repeated string paths = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getPaths() + { + return $this->paths; + } + + /** + * 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. + * + * Generated from protobuf field repeated string paths = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setPaths($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->paths = $arr; + + return $this; + } + + /** + * Optional. If set to true, untracked files will be deleted. + * + * Generated from protobuf field bool clean = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getClean() + { + return $this->clean; + } + + /** + * Optional. If set to true, untracked files will be deleted. + * + * Generated from protobuf field bool clean = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setClean($var) + { + GPBUtil::checkBool($var); + $this->clean = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ResetWorkspaceChangesResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ResetWorkspaceChangesResponse.php new file mode 100644 index 000000000000..e53fce7ad9a8 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ResetWorkspaceChangesResponse.php @@ -0,0 +1,33 @@ +google.cloud.dataform.v1.ResetWorkspaceChangesResponse + */ +class ResetWorkspaceChangesResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/SearchFilesRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/SearchFilesRequest.php new file mode 100644 index 000000000000..f2a4418af1dc --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/SearchFilesRequest.php @@ -0,0 +1,201 @@ +google.cloud.dataform.v1.SearchFilesRequest + */ +class SearchFilesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $workspace = ''; + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * 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. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $workspace + * Required. The workspace's name. + * @type int $page_size + * 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. + * @type string $page_token + * 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. + * @type string $filter + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getWorkspace() + { + return $this->workspace; + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setWorkspace($var) + { + GPBUtil::checkString($var, True); + $this->workspace = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * 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. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/SearchFilesResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/SearchFilesResponse.php new file mode 100644 index 000000000000..5ea7d2987ace --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/SearchFilesResponse.php @@ -0,0 +1,105 @@ +google.cloud.dataform.v1.SearchFilesResponse + */ +class SearchFilesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of matched results. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.SearchResult search_results = 1; + */ + private $search_results; + /** + * 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. + * + * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1\SearchResult[] $search_results + * List of matched results. + * @type string $next_page_token + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * List of matched results. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.SearchResult search_results = 1; + * @return RepeatedField<\Google\Cloud\Dataform\V1\SearchResult> + */ + public function getSearchResults() + { + return $this->search_results; + } + + /** + * List of matched results. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.SearchResult search_results = 1; + * @param \Google\Cloud\Dataform\V1\SearchResult[] $var + * @return $this + */ + public function setSearchResults($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\SearchResult::class); + $this->search_results = $arr; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * 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. + * + * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/SearchResult.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/SearchResult.php new file mode 100644 index 000000000000..fc9bc07436fa --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/SearchResult.php @@ -0,0 +1,108 @@ +google.cloud.dataform.v1.SearchResult + */ +class SearchResult extends \Google\Protobuf\Internal\Message +{ + protected $entry; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1\FileSearchResult $file + * Details when search result is a file. + * @type \Google\Cloud\Dataform\V1\DirectorySearchResult $directory + * Details when search result is a directory. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Details when search result is a file. + * + * Generated from protobuf field .google.cloud.dataform.v1.FileSearchResult file = 1; + * @return \Google\Cloud\Dataform\V1\FileSearchResult|null + */ + public function getFile() + { + return $this->readOneof(1); + } + + public function hasFile() + { + return $this->hasOneof(1); + } + + /** + * Details when search result is a file. + * + * Generated from protobuf field .google.cloud.dataform.v1.FileSearchResult file = 1; + * @param \Google\Cloud\Dataform\V1\FileSearchResult $var + * @return $this + */ + public function setFile($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\FileSearchResult::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Details when search result is a directory. + * + * Generated from protobuf field .google.cloud.dataform.v1.DirectorySearchResult directory = 2; + * @return \Google\Cloud\Dataform\V1\DirectorySearchResult|null + */ + public function getDirectory() + { + return $this->readOneof(2); + } + + public function hasDirectory() + { + return $this->hasOneof(2); + } + + /** + * Details when search result is a directory. + * + * Generated from protobuf field .google.cloud.dataform.v1.DirectorySearchResult directory = 2; + * @param \Google\Cloud\Dataform\V1\DirectorySearchResult $var + * @return $this + */ + public function setDirectory($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\DirectorySearchResult::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getEntry() + { + return $this->whichOneof("entry"); + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/SearchTeamFoldersRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/SearchTeamFoldersRequest.php new file mode 100644 index 000000000000..05db4668a6ae --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/SearchTeamFoldersRequest.php @@ -0,0 +1,259 @@ +google.cloud.dataform.v1.SearchTeamFoldersRequest + */ +class SearchTeamFoldersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Location in which to query TeamFolders. + * Format: `projects/{@*}locations/*`. + * + * Generated from protobuf field string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $location = ''; + /** + * Optional. Maximum number of TeamFolders to return. The server may return + * fewer items than requested. If unspecified, the server will pick an + * appropriate default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * 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"` + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Optional filtering for the returned list. Filtering is currently + * only supported on the `display_name` field. + * Example: + * - `filter="display_name="MyFolder""` + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $location + * Required. Location in which to query TeamFolders. + * Format: `projects/{@*}locations/*`. + * @type int $page_size + * Optional. Maximum number of TeamFolders to return. The server may return + * fewer items than requested. If unspecified, the server will pick an + * appropriate default. + * @type string $page_token + * 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. + * @type string $order_by + * 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"` + * @type string $filter + * Optional. Optional filtering for the returned list. Filtering is currently + * only supported on the `display_name` field. + * Example: + * - `filter="display_name="MyFolder""` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. Location in which to query TeamFolders. + * Format: `projects/{@*}locations/*`. + * + * Generated from protobuf field string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getLocation() + { + return $this->location; + } + + /** + * Required. Location in which to query TeamFolders. + * Format: `projects/{@*}locations/*`. + * + * Generated from protobuf field string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkString($var, True); + $this->location = $var; + + return $this; + } + + /** + * Optional. Maximum number of TeamFolders to return. The server may return + * fewer items than requested. If unspecified, the server will pick an + * appropriate default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Maximum number of TeamFolders to return. The server may return + * fewer items than requested. If unspecified, the server will pick an + * appropriate default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * 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"` + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * 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"` + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Optional filtering for the returned list. Filtering is currently + * only supported on the `display_name` field. + * Example: + * - `filter="display_name="MyFolder""` + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Optional filtering for the returned list. Filtering is currently + * only supported on the `display_name` field. + * Example: + * - `filter="display_name="MyFolder""` + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/SearchTeamFoldersResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/SearchTeamFoldersResponse.php new file mode 100644 index 000000000000..e3da62fe6078 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/SearchTeamFoldersResponse.php @@ -0,0 +1,105 @@ +google.cloud.dataform.v1.SearchTeamFoldersResponse + */ +class SearchTeamFoldersResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of TeamFolders that match the search query. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + */ + private $results; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1\SearchTeamFoldersResponse\TeamFolderSearchResult[] $results + * List of TeamFolders that match the search query. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * List of TeamFolders that match the search query. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * @return RepeatedField<\Google\Cloud\Dataform\V1\SearchTeamFoldersResponse\TeamFolderSearchResult> + */ + public function getResults() + { + return $this->results; + } + + /** + * List of TeamFolders that match the search query. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * @param \Google\Cloud\Dataform\V1\SearchTeamFoldersResponse\TeamFolderSearchResult[] $var + * @return $this + */ + public function setResults($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\SearchTeamFoldersResponse\TeamFolderSearchResult::class); + $this->results = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/SearchTeamFoldersResponse/TeamFolderSearchResult.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/SearchTeamFoldersResponse/TeamFolderSearchResult.php new file mode 100644 index 000000000000..cba7e67e139e --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/SearchTeamFoldersResponse/TeamFolderSearchResult.php @@ -0,0 +1,75 @@ +google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult + */ +class TeamFolderSearchResult extends \Google\Protobuf\Internal\Message +{ + protected $entry; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1\TeamFolder $team_folder + * A TeamFolder resource that is in the project / location. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * A TeamFolder resource that is in the project / location. + * + * Generated from protobuf field .google.cloud.dataform.v1.TeamFolder team_folder = 2; + * @return \Google\Cloud\Dataform\V1\TeamFolder|null + */ + public function getTeamFolder() + { + return $this->readOneof(2); + } + + public function hasTeamFolder() + { + return $this->hasOneof(2); + } + + /** + * A TeamFolder resource that is in the project / location. + * + * Generated from protobuf field .google.cloud.dataform.v1.TeamFolder team_folder = 2; + * @param \Google\Cloud\Dataform\V1\TeamFolder $var + * @return $this + */ + public function setTeamFolder($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\TeamFolder::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getEntry() + { + return $this->whichOneof("entry"); + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Target.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Target.php new file mode 100644 index 000000000000..b356dc43a20c --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Target.php @@ -0,0 +1,136 @@ +google.cloud.dataform.v1.Target + */ +class Target extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The action's database (Google Cloud project ID) . + * + * Generated from protobuf field string database = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $database = ''; + /** + * Optional. The action's schema (BigQuery dataset ID), within `database`. + * + * Generated from protobuf field string schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $schema = ''; + /** + * Optional. The action's name, within `database` and `schema`. + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $database + * Optional. The action's database (Google Cloud project ID) . + * @type string $schema + * Optional. The action's schema (BigQuery dataset ID), within `database`. + * @type string $name + * Optional. The action's name, within `database` and `schema`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The action's database (Google Cloud project ID) . + * + * Generated from protobuf field string database = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDatabase() + { + return $this->database; + } + + /** + * Optional. The action's database (Google Cloud project ID) . + * + * Generated from protobuf field string database = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDatabase($var) + { + GPBUtil::checkString($var, True); + $this->database = $var; + + return $this; + } + + /** + * Optional. The action's schema (BigQuery dataset ID), within `database`. + * + * Generated from protobuf field string schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getSchema() + { + return $this->schema; + } + + /** + * Optional. The action's schema (BigQuery dataset ID), within `database`. + * + * Generated from protobuf field string schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setSchema($var) + { + GPBUtil::checkString($var, True); + $this->schema = $var; + + return $this; + } + + /** + * Optional. The action's name, within `database` and `schema`. + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Optional. The action's name, within `database` and `schema`. + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/TeamFolder.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/TeamFolder.php new file mode 100644 index 000000000000..9d34ef327424 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/TeamFolder.php @@ -0,0 +1,287 @@ +google.cloud.dataform.v1.TeamFolder + */ +class TeamFolder extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The TeamFolder's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Required. The TeamFolder's user-friendly name. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * Output only. The timestamp of when the TeamFolder was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The timestamp of when the TeamFolder was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $internal_metadata = null; + /** + * Output only. The IAM principal identifier of the creator of the TeamFolder. + * + * Generated from protobuf field optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $creator_iam_principal = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The TeamFolder's name. + * @type string $display_name + * Required. The TeamFolder's user-friendly name. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The timestamp of when the TeamFolder was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The timestamp of when the TeamFolder was last updated. + * @type string $internal_metadata + * 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. + * @type string $creator_iam_principal + * Output only. The IAM principal identifier of the creator of the TeamFolder. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The TeamFolder's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The TeamFolder's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The TeamFolder's user-friendly name. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. The TeamFolder's user-friendly name. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Output only. The timestamp of when the TeamFolder was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The timestamp of when the TeamFolder was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The timestamp of when the TeamFolder was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The timestamp of when the TeamFolder was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getInternalMetadata() + { + return isset($this->internal_metadata) ? $this->internal_metadata : ''; + } + + public function hasInternalMetadata() + { + return isset($this->internal_metadata); + } + + public function clearInternalMetadata() + { + unset($this->internal_metadata); + } + + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setInternalMetadata($var) + { + GPBUtil::checkString($var, True); + $this->internal_metadata = $var; + + return $this; + } + + /** + * Output only. The IAM principal identifier of the creator of the TeamFolder. + * + * Generated from protobuf field optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getCreatorIamPrincipal() + { + return isset($this->creator_iam_principal) ? $this->creator_iam_principal : ''; + } + + public function hasCreatorIamPrincipal() + { + return isset($this->creator_iam_principal); + } + + public function clearCreatorIamPrincipal() + { + unset($this->creator_iam_principal); + } + + /** + * Output only. The IAM principal identifier of the creator of the TeamFolder. + * + * Generated from protobuf field optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setCreatorIamPrincipal($var) + { + GPBUtil::checkString($var, True); + $this->creator_iam_principal = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/UpdateConfigRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/UpdateConfigRequest.php new file mode 100644 index 000000000000..4e2911c6efc4 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/UpdateConfigRequest.php @@ -0,0 +1,136 @@ +google.cloud.dataform.v1.UpdateConfigRequest + */ +class UpdateConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The config to update. + * + * Generated from protobuf field .google.cloud.dataform.v1.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $config = null; + /** + * Optional. Specifies the fields to be updated in the config. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_mask = null; + + /** + * @param \Google\Cloud\Dataform\V1\Config $config Required. The config to update. + * @param \Google\Protobuf\FieldMask $updateMask Optional. Specifies the fields to be updated in the config. + * + * @return \Google\Cloud\Dataform\V1\UpdateConfigRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Dataform\V1\Config $config, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setConfig($config) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1\Config $config + * Required. The config to update. + * @type \Google\Protobuf\FieldMask $update_mask + * Optional. Specifies the fields to be updated in the config. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The config to update. + * + * Generated from protobuf field .google.cloud.dataform.v1.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataform\V1\Config|null + */ + public function getConfig() + { + return $this->config; + } + + public function hasConfig() + { + return isset($this->config); + } + + public function clearConfig() + { + unset($this->config); + } + + /** + * Required. The config to update. + * + * Generated from protobuf field .google.cloud.dataform.v1.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataform\V1\Config $var + * @return $this + */ + public function setConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\Config::class); + $this->config = $var; + + return $this; + } + + /** + * Optional. Specifies the fields to be updated in the config. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Optional. Specifies the fields to be updated in the config. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/UpdateFolderRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/UpdateFolderRequest.php new file mode 100644 index 000000000000..80f42ebbc6fd --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/UpdateFolderRequest.php @@ -0,0 +1,151 @@ +google.cloud.dataform.v1.UpdateFolderRequest + */ +class UpdateFolderRequest extends \Google\Protobuf\Internal\Message +{ + /** + * 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). + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_mask = null; + /** + * Required. The updated Folder. + * + * Generated from protobuf field .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $folder = null; + + /** + * @param \Google\Cloud\Dataform\V1\Folder $folder Required. The updated Folder. + * @param \Google\Protobuf\FieldMask $updateMask 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). + * + * @return \Google\Cloud\Dataform\V1\UpdateFolderRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Dataform\V1\Folder $folder, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setFolder($folder) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\FieldMask $update_mask + * 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). + * @type \Google\Cloud\Dataform\V1\Folder $folder + * Required. The updated Folder. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * 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). + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * 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). + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + + /** + * Required. The updated Folder. + * + * Generated from protobuf field .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataform\V1\Folder|null + */ + public function getFolder() + { + return $this->folder; + } + + public function hasFolder() + { + return isset($this->folder); + } + + public function clearFolder() + { + unset($this->folder); + } + + /** + * Required. The updated Folder. + * + * Generated from protobuf field .google.cloud.dataform.v1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataform\V1\Folder $var + * @return $this + */ + public function setFolder($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\Folder::class); + $this->folder = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/UpdateReleaseConfigRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/UpdateReleaseConfigRequest.php new file mode 100644 index 000000000000..f08a52eda527 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/UpdateReleaseConfigRequest.php @@ -0,0 +1,141 @@ +google.cloud.dataform.v1.UpdateReleaseConfigRequest + */ +class UpdateReleaseConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Specifies the fields to be updated in the release config. If left + * unset, all fields will be updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_mask = null; + /** + * Required. The release config to update. + * + * Generated from protobuf field .google.cloud.dataform.v1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $release_config = null; + + /** + * @param \Google\Cloud\Dataform\V1\ReleaseConfig $releaseConfig Required. The release config to update. + * @param \Google\Protobuf\FieldMask $updateMask Optional. Specifies the fields to be updated in the release config. If left + * unset, all fields will be updated. + * + * @return \Google\Cloud\Dataform\V1\UpdateReleaseConfigRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Dataform\V1\ReleaseConfig $releaseConfig, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setReleaseConfig($releaseConfig) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\FieldMask $update_mask + * Optional. Specifies the fields to be updated in the release config. If left + * unset, all fields will be updated. + * @type \Google\Cloud\Dataform\V1\ReleaseConfig $release_config + * Required. The release config to update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Specifies the fields to be updated in the release config. If left + * unset, all fields will be updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Optional. Specifies the fields to be updated in the release config. If left + * unset, all fields will be updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + + /** + * Required. The release config to update. + * + * Generated from protobuf field .google.cloud.dataform.v1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataform\V1\ReleaseConfig|null + */ + public function getReleaseConfig() + { + return $this->release_config; + } + + public function hasReleaseConfig() + { + return isset($this->release_config); + } + + public function clearReleaseConfig() + { + unset($this->release_config); + } + + /** + * Required. The release config to update. + * + * Generated from protobuf field .google.cloud.dataform.v1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataform\V1\ReleaseConfig $var + * @return $this + */ + public function setReleaseConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\ReleaseConfig::class); + $this->release_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/UpdateRepositoryRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/UpdateRepositoryRequest.php new file mode 100644 index 000000000000..7c5f36e495dc --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/UpdateRepositoryRequest.php @@ -0,0 +1,141 @@ +google.cloud.dataform.v1.UpdateRepositoryRequest + */ +class UpdateRepositoryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Specifies the fields to be updated in the repository. If left + * unset, all fields will be updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_mask = null; + /** + * Required. The repository to update. + * + * Generated from protobuf field .google.cloud.dataform.v1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $repository = null; + + /** + * @param \Google\Cloud\Dataform\V1\Repository $repository Required. The repository to update. + * @param \Google\Protobuf\FieldMask $updateMask Optional. Specifies the fields to be updated in the repository. If left + * unset, all fields will be updated. + * + * @return \Google\Cloud\Dataform\V1\UpdateRepositoryRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Dataform\V1\Repository $repository, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setRepository($repository) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\FieldMask $update_mask + * Optional. Specifies the fields to be updated in the repository. If left + * unset, all fields will be updated. + * @type \Google\Cloud\Dataform\V1\Repository $repository + * Required. The repository to update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Specifies the fields to be updated in the repository. If left + * unset, all fields will be updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Optional. Specifies the fields to be updated in the repository. If left + * unset, all fields will be updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + + /** + * Required. The repository to update. + * + * Generated from protobuf field .google.cloud.dataform.v1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataform\V1\Repository|null + */ + public function getRepository() + { + return $this->repository; + } + + public function hasRepository() + { + return isset($this->repository); + } + + public function clearRepository() + { + unset($this->repository); + } + + /** + * Required. The repository to update. + * + * Generated from protobuf field .google.cloud.dataform.v1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataform\V1\Repository $var + * @return $this + */ + public function setRepository($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\Repository::class); + $this->repository = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/UpdateTeamFolderRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/UpdateTeamFolderRequest.php new file mode 100644 index 000000000000..386d88c4b2b7 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/UpdateTeamFolderRequest.php @@ -0,0 +1,141 @@ +google.cloud.dataform.v1.UpdateTeamFolderRequest + */ +class UpdateTeamFolderRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Specifies the fields to be updated in the Folder. If left unset, + * all fields will be updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_mask = null; + /** + * Required. The updated TeamFolder. + * + * Generated from protobuf field .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $team_folder = null; + + /** + * @param \Google\Cloud\Dataform\V1\TeamFolder $teamFolder Required. The updated TeamFolder. + * @param \Google\Protobuf\FieldMask $updateMask Optional. Specifies the fields to be updated in the Folder. If left unset, + * all fields will be updated. + * + * @return \Google\Cloud\Dataform\V1\UpdateTeamFolderRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Dataform\V1\TeamFolder $teamFolder, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setTeamFolder($teamFolder) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\FieldMask $update_mask + * Optional. Specifies the fields to be updated in the Folder. If left unset, + * all fields will be updated. + * @type \Google\Cloud\Dataform\V1\TeamFolder $team_folder + * Required. The updated TeamFolder. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Specifies the fields to be updated in the Folder. If left unset, + * all fields will be updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Optional. Specifies the fields to be updated in the Folder. If left unset, + * all fields will be updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + + /** + * Required. The updated TeamFolder. + * + * Generated from protobuf field .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataform\V1\TeamFolder|null + */ + public function getTeamFolder() + { + return $this->team_folder; + } + + public function hasTeamFolder() + { + return isset($this->team_folder); + } + + public function clearTeamFolder() + { + unset($this->team_folder); + } + + /** + * Required. The updated TeamFolder. + * + * Generated from protobuf field .google.cloud.dataform.v1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataform\V1\TeamFolder $var + * @return $this + */ + public function setTeamFolder($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\TeamFolder::class); + $this->team_folder = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/UpdateWorkflowConfigRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/UpdateWorkflowConfigRequest.php new file mode 100644 index 000000000000..2bbd86b68bf6 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/UpdateWorkflowConfigRequest.php @@ -0,0 +1,141 @@ +google.cloud.dataform.v1.UpdateWorkflowConfigRequest + */ +class UpdateWorkflowConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Specifies the fields to be updated in the workflow config. If + * left unset, all fields will be updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_mask = null; + /** + * Required. The workflow config to update. + * + * Generated from protobuf field .google.cloud.dataform.v1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $workflow_config = null; + + /** + * @param \Google\Cloud\Dataform\V1\WorkflowConfig $workflowConfig Required. The workflow config to update. + * @param \Google\Protobuf\FieldMask $updateMask Optional. Specifies the fields to be updated in the workflow config. If + * left unset, all fields will be updated. + * + * @return \Google\Cloud\Dataform\V1\UpdateWorkflowConfigRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Dataform\V1\WorkflowConfig $workflowConfig, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setWorkflowConfig($workflowConfig) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\FieldMask $update_mask + * Optional. Specifies the fields to be updated in the workflow config. If + * left unset, all fields will be updated. + * @type \Google\Cloud\Dataform\V1\WorkflowConfig $workflow_config + * Required. The workflow config to update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Specifies the fields to be updated in the workflow config. If + * left unset, all fields will be updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Optional. Specifies the fields to be updated in the workflow config. If + * left unset, all fields will be updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + + /** + * Required. The workflow config to update. + * + * Generated from protobuf field .google.cloud.dataform.v1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataform\V1\WorkflowConfig|null + */ + public function getWorkflowConfig() + { + return $this->workflow_config; + } + + public function hasWorkflowConfig() + { + return isset($this->workflow_config); + } + + public function clearWorkflowConfig() + { + unset($this->workflow_config); + } + + /** + * Required. The workflow config to update. + * + * Generated from protobuf field .google.cloud.dataform.v1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataform\V1\WorkflowConfig $var + * @return $this + */ + public function setWorkflowConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\WorkflowConfig::class); + $this->workflow_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowConfig.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowConfig.php new file mode 100644 index 000000000000..b5d993191035 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowConfig.php @@ -0,0 +1,453 @@ +google.cloud.dataform.v1.WorkflowConfig + */ +class WorkflowConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The workflow config's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Required. The name of the release config whose release_compilation_result + * should be executed. Must be in the format + * `projects/{@*}locations/{@*}repositories/{@*}releaseConfigs/*`. + * + * Generated from protobuf field string release_config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $release_config = ''; + /** + * Optional. If left unset, a default InvocationConfig will be used. + * + * Generated from protobuf field .google.cloud.dataform.v1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $invocation_config = null; + /** + * Optional. Optional schedule (in cron format) for automatic execution of + * this workflow config. + * + * Generated from protobuf field string cron_schedule = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $cron_schedule = ''; + /** + * 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. + * + * Generated from protobuf field string time_zone = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $time_zone = ''; + /** + * 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. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.WorkflowConfig.ScheduledExecutionRecord recent_scheduled_execution_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $recent_scheduled_execution_records; + /** + * Optional. Disables automatic creation of workflow invocations. + * + * Generated from protobuf field bool disabled = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $disabled = false; + /** + * Output only. The timestamp of when the WorkflowConfig was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The timestamp of when the WorkflowConfig was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $internal_metadata = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The workflow config's name. + * @type string $release_config + * Required. The name of the release config whose release_compilation_result + * should be executed. Must be in the format + * `projects/{@*}locations/{@*}repositories/{@*}releaseConfigs/*`. + * @type \Google\Cloud\Dataform\V1\InvocationConfig $invocation_config + * Optional. If left unset, a default InvocationConfig will be used. + * @type string $cron_schedule + * Optional. Optional schedule (in cron format) for automatic execution of + * this workflow config. + * @type string $time_zone + * 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. + * @type \Google\Cloud\Dataform\V1\WorkflowConfig\ScheduledExecutionRecord[] $recent_scheduled_execution_records + * 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. + * @type bool $disabled + * Optional. Disables automatic creation of workflow invocations. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The timestamp of when the WorkflowConfig was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The timestamp of when the WorkflowConfig was last updated. + * @type string $internal_metadata + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The workflow config's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The workflow config's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The name of the release config whose release_compilation_result + * should be executed. Must be in the format + * `projects/{@*}locations/{@*}repositories/{@*}releaseConfigs/*`. + * + * Generated from protobuf field string release_config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getReleaseConfig() + { + return $this->release_config; + } + + /** + * Required. The name of the release config whose release_compilation_result + * should be executed. Must be in the format + * `projects/{@*}locations/{@*}repositories/{@*}releaseConfigs/*`. + * + * Generated from protobuf field string release_config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setReleaseConfig($var) + { + GPBUtil::checkString($var, True); + $this->release_config = $var; + + return $this; + } + + /** + * Optional. If left unset, a default InvocationConfig will be used. + * + * Generated from protobuf field .google.cloud.dataform.v1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataform\V1\InvocationConfig|null + */ + public function getInvocationConfig() + { + return $this->invocation_config; + } + + public function hasInvocationConfig() + { + return isset($this->invocation_config); + } + + public function clearInvocationConfig() + { + unset($this->invocation_config); + } + + /** + * Optional. If left unset, a default InvocationConfig will be used. + * + * Generated from protobuf field .google.cloud.dataform.v1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataform\V1\InvocationConfig $var + * @return $this + */ + public function setInvocationConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\InvocationConfig::class); + $this->invocation_config = $var; + + return $this; + } + + /** + * Optional. Optional schedule (in cron format) for automatic execution of + * this workflow config. + * + * Generated from protobuf field string cron_schedule = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getCronSchedule() + { + return $this->cron_schedule; + } + + /** + * Optional. Optional schedule (in cron format) for automatic execution of + * this workflow config. + * + * Generated from protobuf field string cron_schedule = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setCronSchedule($var) + { + GPBUtil::checkString($var, True); + $this->cron_schedule = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string time_zone = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getTimeZone() + { + return $this->time_zone; + } + + /** + * 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. + * + * Generated from protobuf field string time_zone = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setTimeZone($var) + { + GPBUtil::checkString($var, True); + $this->time_zone = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.WorkflowConfig.ScheduledExecutionRecord recent_scheduled_execution_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\Dataform\V1\WorkflowConfig\ScheduledExecutionRecord> + */ + public function getRecentScheduledExecutionRecords() + { + return $this->recent_scheduled_execution_records; + } + + /** + * 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. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1.WorkflowConfig.ScheduledExecutionRecord recent_scheduled_execution_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataform\V1\WorkflowConfig\ScheduledExecutionRecord[] $var + * @return $this + */ + public function setRecentScheduledExecutionRecords($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\WorkflowConfig\ScheduledExecutionRecord::class); + $this->recent_scheduled_execution_records = $arr; + + return $this; + } + + /** + * Optional. Disables automatic creation of workflow invocations. + * + * Generated from protobuf field bool disabled = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getDisabled() + { + return $this->disabled; + } + + /** + * Optional. Disables automatic creation of workflow invocations. + * + * Generated from protobuf field bool disabled = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setDisabled($var) + { + GPBUtil::checkBool($var); + $this->disabled = $var; + + return $this; + } + + /** + * Output only. The timestamp of when the WorkflowConfig was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The timestamp of when the WorkflowConfig was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The timestamp of when the WorkflowConfig was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The timestamp of when the WorkflowConfig was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getInternalMetadata() + { + return isset($this->internal_metadata) ? $this->internal_metadata : ''; + } + + public function hasInternalMetadata() + { + return isset($this->internal_metadata); + } + + public function clearInternalMetadata() + { + unset($this->internal_metadata); + } + + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setInternalMetadata($var) + { + GPBUtil::checkString($var, True); + $this->internal_metadata = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowConfig/ScheduledExecutionRecord.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowConfig/ScheduledExecutionRecord.php new file mode 100644 index 000000000000..b85f65492c9e --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowConfig/ScheduledExecutionRecord.php @@ -0,0 +1,162 @@ +google.cloud.dataform.v1.WorkflowConfig.ScheduledExecutionRecord + */ +class ScheduledExecutionRecord extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The timestamp of this execution attempt. + * + * Generated from protobuf field .google.protobuf.Timestamp execution_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $execution_time = null; + protected $result; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $workflow_invocation + * The name of the created workflow invocation, if one was successfully + * created. Must be in the format + * `projects/{@*}locations/{@*}repositories/{@*}workflowInvocations/*`. + * @type \Google\Rpc\Status $error_status + * The error status encountered upon this attempt to create the + * workflow invocation, if the attempt was unsuccessful. + * @type \Google\Protobuf\Timestamp $execution_time + * Output only. The timestamp of this execution attempt. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * The name of the created workflow invocation, if one was successfully + * created. Must be in the format + * `projects/{@*}locations/{@*}repositories/{@*}workflowInvocations/*`. + * + * Generated from protobuf field string workflow_invocation = 2 [(.google.api.resource_reference) = { + * @return string + */ + public function getWorkflowInvocation() + { + return $this->readOneof(2); + } + + public function hasWorkflowInvocation() + { + return $this->hasOneof(2); + } + + /** + * The name of the created workflow invocation, if one was successfully + * created. Must be in the format + * `projects/{@*}locations/{@*}repositories/{@*}workflowInvocations/*`. + * + * Generated from protobuf field string workflow_invocation = 2 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setWorkflowInvocation($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * The error status encountered upon this attempt to create the + * workflow invocation, if the attempt was unsuccessful. + * + * Generated from protobuf field .google.rpc.Status error_status = 3; + * @return \Google\Rpc\Status|null + */ + public function getErrorStatus() + { + return $this->readOneof(3); + } + + public function hasErrorStatus() + { + return $this->hasOneof(3); + } + + /** + * The error status encountered upon this attempt to create the + * workflow invocation, if the attempt was unsuccessful. + * + * Generated from protobuf field .google.rpc.Status error_status = 3; + * @param \Google\Rpc\Status $var + * @return $this + */ + public function setErrorStatus($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\Status::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Output only. The timestamp of this execution attempt. + * + * Generated from protobuf field .google.protobuf.Timestamp execution_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getExecutionTime() + { + return $this->execution_time; + } + + public function hasExecutionTime() + { + return isset($this->execution_time); + } + + public function clearExecutionTime() + { + unset($this->execution_time); + } + + /** + * Output only. The timestamp of this execution attempt. + * + * Generated from protobuf field .google.protobuf.Timestamp execution_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setExecutionTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->execution_time = $var; + + return $this; + } + + /** + * @return string + */ + public function getResult() + { + return $this->whichOneof("result"); + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocation.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocation.php new file mode 100644 index 000000000000..72c84712767e --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocation.php @@ -0,0 +1,463 @@ +google.cloud.dataform.v1.WorkflowInvocation + */ +class WorkflowInvocation extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The workflow invocation's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Immutable. If left unset, a default InvocationConfig will be used. + * + * Generated from protobuf field .google.cloud.dataform.v1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $invocation_config = null; + /** + * Output only. This workflow invocation's current state. + * + * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. This workflow invocation's timing details. + * + * Generated from protobuf field .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $invocation_timing = null; + /** + * Output only. The resolved compilation result that was used to create this + * invocation. Will be in the format + * `projects/{@*}locations/{@*}repositories/{@*}compilationResults/*`. + * + * Generated from protobuf field string resolved_compilation_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $resolved_compilation_result = ''; + /** + * Output only. Only set if the repository has a KMS Key. + * + * Generated from protobuf field .google.cloud.dataform.v1.DataEncryptionState data_encryption_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $data_encryption_state = null; + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $internal_metadata = null; + /** + * 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. + * + * Generated from protobuf field .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $private_resource_metadata = null; + protected $compilation_source; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $compilation_result + * Immutable. The name of the compilation result to use for this invocation. + * Must be in the format + * `projects/{@*}locations/{@*}repositories/{@*}compilationResults/*`. + * @type string $workflow_config + * Immutable. The name of the workflow config to invoke. Must be in the + * format `projects/{@*}locations/{@*}repositories/{@*}workflowConfigs/*`. + * @type string $name + * Output only. The workflow invocation's name. + * @type \Google\Cloud\Dataform\V1\InvocationConfig $invocation_config + * Immutable. If left unset, a default InvocationConfig will be used. + * @type int $state + * Output only. This workflow invocation's current state. + * @type \Google\Type\Interval $invocation_timing + * Output only. This workflow invocation's timing details. + * @type string $resolved_compilation_result + * Output only. The resolved compilation result that was used to create this + * invocation. Will be in the format + * `projects/{@*}locations/{@*}repositories/{@*}compilationResults/*`. + * @type \Google\Cloud\Dataform\V1\DataEncryptionState $data_encryption_state + * Output only. Only set if the repository has a KMS Key. + * @type string $internal_metadata + * 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. + * @type \Google\Cloud\Dataform\V1\PrivateResourceMetadata $private_resource_metadata + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Immutable. The name of the compilation result to use for this invocation. + * Must be in the format + * `projects/{@*}locations/{@*}repositories/{@*}compilationResults/*`. + * + * Generated from protobuf field string compilation_result = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + * @return string + */ + public function getCompilationResult() + { + return $this->readOneof(2); + } + + public function hasCompilationResult() + { + return $this->hasOneof(2); + } + + /** + * Immutable. The name of the compilation result to use for this invocation. + * Must be in the format + * `projects/{@*}locations/{@*}repositories/{@*}compilationResults/*`. + * + * Generated from protobuf field string compilation_result = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setCompilationResult($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Immutable. The name of the workflow config to invoke. Must be in the + * format `projects/{@*}locations/{@*}repositories/{@*}workflowConfigs/*`. + * + * Generated from protobuf field string workflow_config = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + * @return string + */ + public function getWorkflowConfig() + { + return $this->readOneof(6); + } + + public function hasWorkflowConfig() + { + return $this->hasOneof(6); + } + + /** + * Immutable. The name of the workflow config to invoke. Must be in the + * format `projects/{@*}locations/{@*}repositories/{@*}workflowConfigs/*`. + * + * Generated from protobuf field string workflow_config = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setWorkflowConfig($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * Output only. The workflow invocation's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The workflow invocation's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Immutable. If left unset, a default InvocationConfig will be used. + * + * Generated from protobuf field .google.cloud.dataform.v1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * @return \Google\Cloud\Dataform\V1\InvocationConfig|null + */ + public function getInvocationConfig() + { + return $this->invocation_config; + } + + public function hasInvocationConfig() + { + return isset($this->invocation_config); + } + + public function clearInvocationConfig() + { + unset($this->invocation_config); + } + + /** + * Immutable. If left unset, a default InvocationConfig will be used. + * + * Generated from protobuf field .google.cloud.dataform.v1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * @param \Google\Cloud\Dataform\V1\InvocationConfig $var + * @return $this + */ + public function setInvocationConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\InvocationConfig::class); + $this->invocation_config = $var; + + return $this; + } + + /** + * Output only. This workflow invocation's current state. + * + * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. This workflow invocation's current state. + * + * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1\WorkflowInvocation\State::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. This workflow invocation's timing details. + * + * Generated from protobuf field .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Type\Interval|null + */ + public function getInvocationTiming() + { + return $this->invocation_timing; + } + + public function hasInvocationTiming() + { + return isset($this->invocation_timing); + } + + public function clearInvocationTiming() + { + unset($this->invocation_timing); + } + + /** + * Output only. This workflow invocation's timing details. + * + * Generated from protobuf field .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Type\Interval $var + * @return $this + */ + public function setInvocationTiming($var) + { + GPBUtil::checkMessage($var, \Google\Type\Interval::class); + $this->invocation_timing = $var; + + return $this; + } + + /** + * Output only. The resolved compilation result that was used to create this + * invocation. Will be in the format + * `projects/{@*}locations/{@*}repositories/{@*}compilationResults/*`. + * + * Generated from protobuf field string resolved_compilation_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getResolvedCompilationResult() + { + return $this->resolved_compilation_result; + } + + /** + * Output only. The resolved compilation result that was used to create this + * invocation. Will be in the format + * `projects/{@*}locations/{@*}repositories/{@*}compilationResults/*`. + * + * Generated from protobuf field string resolved_compilation_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setResolvedCompilationResult($var) + { + GPBUtil::checkString($var, True); + $this->resolved_compilation_result = $var; + + return $this; + } + + /** + * Output only. Only set if the repository has a KMS Key. + * + * Generated from protobuf field .google.cloud.dataform.v1.DataEncryptionState data_encryption_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataform\V1\DataEncryptionState|null + */ + public function getDataEncryptionState() + { + return $this->data_encryption_state; + } + + public function hasDataEncryptionState() + { + return isset($this->data_encryption_state); + } + + public function clearDataEncryptionState() + { + unset($this->data_encryption_state); + } + + /** + * Output only. Only set if the repository has a KMS Key. + * + * Generated from protobuf field .google.cloud.dataform.v1.DataEncryptionState data_encryption_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataform\V1\DataEncryptionState $var + * @return $this + */ + public function setDataEncryptionState($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\DataEncryptionState::class); + $this->data_encryption_state = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getInternalMetadata() + { + return isset($this->internal_metadata) ? $this->internal_metadata : ''; + } + + public function hasInternalMetadata() + { + return isset($this->internal_metadata); + } + + public function clearInternalMetadata() + { + unset($this->internal_metadata); + } + + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setInternalMetadata($var) + { + GPBUtil::checkString($var, True); + $this->internal_metadata = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataform\V1\PrivateResourceMetadata|null + */ + public function getPrivateResourceMetadata() + { + return $this->private_resource_metadata; + } + + public function hasPrivateResourceMetadata() + { + return isset($this->private_resource_metadata); + } + + public function clearPrivateResourceMetadata() + { + unset($this->private_resource_metadata); + } + + /** + * 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. + * + * Generated from protobuf field .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataform\V1\PrivateResourceMetadata $var + * @return $this + */ + public function setPrivateResourceMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\PrivateResourceMetadata::class); + $this->private_resource_metadata = $var; + + return $this; + } + + /** + * @return string + */ + public function getCompilationSource() + { + return $this->whichOneof("compilation_source"); + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocation/State.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocation/State.php new file mode 100644 index 000000000000..450f8c7a548d --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocation/State.php @@ -0,0 +1,83 @@ +google.cloud.dataform.v1.WorkflowInvocation.State + */ +class State +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * The workflow invocation is currently running. + * + * Generated from protobuf enum RUNNING = 1; + */ + const RUNNING = 1; + /** + * The workflow invocation succeeded. A terminal state. + * + * Generated from protobuf enum SUCCEEDED = 2; + */ + const SUCCEEDED = 2; + /** + * The workflow invocation was cancelled. A terminal state. + * + * Generated from protobuf enum CANCELLED = 3; + */ + const CANCELLED = 3; + /** + * The workflow invocation failed. A terminal state. + * + * Generated from protobuf enum FAILED = 4; + */ + const FAILED = 4; + /** + * The workflow invocation is being cancelled, but some actions are still + * running. + * + * Generated from protobuf enum CANCELING = 5; + */ + const CANCELING = 5; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::RUNNING => 'RUNNING', + self::SUCCEEDED => 'SUCCEEDED', + self::CANCELLED => 'CANCELLED', + self::FAILED => 'FAILED', + self::CANCELING => 'CANCELING', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction.php new file mode 100644 index 000000000000..977289472baa --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction.php @@ -0,0 +1,421 @@ +google.cloud.dataform.v1.WorkflowInvocationAction + */ +class WorkflowInvocationAction extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. This action's identifier. Unique within the workflow + * invocation. + * + * Generated from protobuf field .google.cloud.dataform.v1.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $target = null; + /** + * Output only. The action's identifier if the project had been compiled + * without any overrides configured. Unique within the compilation result. + * + * Generated from protobuf field .google.cloud.dataform.v1.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $canonical_target = null; + /** + * Output only. This action's current state. + * + * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. If and only if action's state is FAILED a failure reason is + * set. + * + * Generated from protobuf field string failure_reason = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $failure_reason = ''; + /** + * 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. + * + * Generated from protobuf field .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $invocation_timing = null; + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $internal_metadata = null; + protected $action; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1\WorkflowInvocationAction\BigQueryAction $bigquery_action + * Output only. The workflow action's bigquery action details. + * @type \Google\Cloud\Dataform\V1\WorkflowInvocationAction\NotebookAction $notebook_action + * Output only. The workflow action's notebook action details. + * @type \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction $data_preparation_action + * Output only. The workflow action's data preparation action details. + * @type \Google\Cloud\Dataform\V1\Target $target + * Output only. This action's identifier. Unique within the workflow + * invocation. + * @type \Google\Cloud\Dataform\V1\Target $canonical_target + * Output only. The action's identifier if the project had been compiled + * without any overrides configured. Unique within the compilation result. + * @type int $state + * Output only. This action's current state. + * @type string $failure_reason + * Output only. If and only if action's state is FAILED a failure reason is + * set. + * @type \Google\Type\Interval $invocation_timing + * 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. + * @type string $internal_metadata + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The workflow action's bigquery action details. + * + * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataform\V1\WorkflowInvocationAction\BigQueryAction|null + */ + public function getBigqueryAction() + { + return $this->readOneof(6); + } + + public function hasBigqueryAction() + { + return $this->hasOneof(6); + } + + /** + * Output only. The workflow action's bigquery action details. + * + * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataform\V1\WorkflowInvocationAction\BigQueryAction $var + * @return $this + */ + public function setBigqueryAction($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\WorkflowInvocationAction\BigQueryAction::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * Output only. The workflow action's notebook action details. + * + * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.NotebookAction notebook_action = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataform\V1\WorkflowInvocationAction\NotebookAction|null + */ + public function getNotebookAction() + { + return $this->readOneof(8); + } + + public function hasNotebookAction() + { + return $this->hasOneof(8); + } + + /** + * Output only. The workflow action's notebook action details. + * + * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.NotebookAction notebook_action = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataform\V1\WorkflowInvocationAction\NotebookAction $var + * @return $this + */ + public function setNotebookAction($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\WorkflowInvocationAction\NotebookAction::class); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * Output only. The workflow action's data preparation action details. + * + * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction data_preparation_action = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction|null + */ + public function getDataPreparationAction() + { + return $this->readOneof(9); + } + + public function hasDataPreparationAction() + { + return $this->hasOneof(9); + } + + /** + * Output only. The workflow action's data preparation action details. + * + * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction data_preparation_action = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction $var + * @return $this + */ + public function setDataPreparationAction($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction::class); + $this->writeOneof(9, $var); + + return $this; + } + + /** + * Output only. This action's identifier. Unique within the workflow + * invocation. + * + * Generated from protobuf field .google.cloud.dataform.v1.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataform\V1\Target|null + */ + public function getTarget() + { + return $this->target; + } + + public function hasTarget() + { + return isset($this->target); + } + + public function clearTarget() + { + unset($this->target); + } + + /** + * Output only. This action's identifier. Unique within the workflow + * invocation. + * + * Generated from protobuf field .google.cloud.dataform.v1.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataform\V1\Target $var + * @return $this + */ + public function setTarget($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\Target::class); + $this->target = $var; + + return $this; + } + + /** + * Output only. The action's identifier if the project had been compiled + * without any overrides configured. Unique within the compilation result. + * + * Generated from protobuf field .google.cloud.dataform.v1.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataform\V1\Target|null + */ + public function getCanonicalTarget() + { + return $this->canonical_target; + } + + public function hasCanonicalTarget() + { + return isset($this->canonical_target); + } + + public function clearCanonicalTarget() + { + unset($this->canonical_target); + } + + /** + * Output only. The action's identifier if the project had been compiled + * without any overrides configured. Unique within the compilation result. + * + * Generated from protobuf field .google.cloud.dataform.v1.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataform\V1\Target $var + * @return $this + */ + public function setCanonicalTarget($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\Target::class); + $this->canonical_target = $var; + + return $this; + } + + /** + * Output only. This action's current state. + * + * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. This action's current state. + * + * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1\WorkflowInvocationAction\State::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. If and only if action's state is FAILED a failure reason is + * set. + * + * Generated from protobuf field string failure_reason = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getFailureReason() + { + return $this->failure_reason; + } + + /** + * Output only. If and only if action's state is FAILED a failure reason is + * set. + * + * Generated from protobuf field string failure_reason = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setFailureReason($var) + { + GPBUtil::checkString($var, True); + $this->failure_reason = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Type\Interval|null + */ + public function getInvocationTiming() + { + return $this->invocation_timing; + } + + public function hasInvocationTiming() + { + return isset($this->invocation_timing); + } + + public function clearInvocationTiming() + { + unset($this->invocation_timing); + } + + /** + * 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. + * + * Generated from protobuf field .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Type\Interval $var + * @return $this + */ + public function setInvocationTiming($var) + { + GPBUtil::checkMessage($var, \Google\Type\Interval::class); + $this->invocation_timing = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getInternalMetadata() + { + return isset($this->internal_metadata) ? $this->internal_metadata : ''; + } + + public function hasInternalMetadata() + { + return isset($this->internal_metadata); + } + + public function clearInternalMetadata() + { + unset($this->internal_metadata); + } + + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setInternalMetadata($var) + { + GPBUtil::checkString($var, True); + $this->internal_metadata = $var; + + return $this; + } + + /** + * @return string + */ + public function getAction() + { + return $this->whichOneof("action"); + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/BigQueryAction.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/BigQueryAction.php new file mode 100644 index 000000000000..d6d5a269fbad --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/BigQueryAction.php @@ -0,0 +1,105 @@ +google.cloud.dataform.v1.WorkflowInvocationAction.BigQueryAction + */ +class BigQueryAction extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The generated BigQuery SQL script that will be executed. + * + * Generated from protobuf field string sql_script = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $sql_script = ''; + /** + * Output only. The ID of the BigQuery job that executed the SQL in + * sql_script. Only set once the job has started to run. + * + * Generated from protobuf field string job_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $job_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $sql_script + * Output only. The generated BigQuery SQL script that will be executed. + * @type string $job_id + * Output only. The ID of the BigQuery job that executed the SQL in + * sql_script. Only set once the job has started to run. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The generated BigQuery SQL script that will be executed. + * + * Generated from protobuf field string sql_script = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getSqlScript() + { + return $this->sql_script; + } + + /** + * Output only. The generated BigQuery SQL script that will be executed. + * + * Generated from protobuf field string sql_script = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setSqlScript($var) + { + GPBUtil::checkString($var, True); + $this->sql_script = $var; + + return $this; + } + + /** + * Output only. The ID of the BigQuery job that executed the SQL in + * sql_script. Only set once the job has started to run. + * + * Generated from protobuf field string job_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getJobId() + { + return $this->job_id; + } + + /** + * Output only. The ID of the BigQuery job that executed the SQL in + * sql_script. Only set once the job has started to run. + * + * Generated from protobuf field string job_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setJobId($var) + { + GPBUtil::checkString($var, True); + $this->job_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction.php new file mode 100644 index 000000000000..37583a7bb6e7 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction.php @@ -0,0 +1,190 @@ +google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction + */ +class DataPreparationAction extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The generated BigQuery SQL script that will be executed. For + * reference only. + * + * Generated from protobuf field string generated_sql = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $generated_sql = ''; + /** + * Output only. The ID of the BigQuery job that executed the SQL in + * sql_script. Only set once the job has started to run. + * + * Generated from protobuf field string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $job_id = ''; + protected $definition; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $contents_yaml + * Output only. YAML representing the contents of the data preparation. + * Can be used to show the customer what the input was to their workflow. + * @type \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionSqlDefinition $contents_sql + * SQL definition for a Data Preparation. Contains a SQL query and + * additional context information. + * @type string $generated_sql + * Output only. The generated BigQuery SQL script that will be executed. For + * reference only. + * @type string $job_id + * Output only. The ID of the BigQuery job that executed the SQL in + * sql_script. Only set once the job has started to run. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Output only. YAML representing the contents of the data preparation. + * Can be used to show the customer what the input was to their workflow. + * + * Generated from protobuf field string contents_yaml = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getContentsYaml() + { + return $this->readOneof(2); + } + + public function hasContentsYaml() + { + return $this->hasOneof(2); + } + + /** + * Output only. YAML representing the contents of the data preparation. + * Can be used to show the customer what the input was to their workflow. + * + * Generated from protobuf field string contents_yaml = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setContentsYaml($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * SQL definition for a Data Preparation. Contains a SQL query and + * additional context information. + * + * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSqlDefinition contents_sql = 6; + * @return \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionSqlDefinition|null + */ + public function getContentsSql() + { + return $this->readOneof(6); + } + + public function hasContentsSql() + { + return $this->hasOneof(6); + } + + /** + * SQL definition for a Data Preparation. Contains a SQL query and + * additional context information. + * + * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSqlDefinition contents_sql = 6; + * @param \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionSqlDefinition $var + * @return $this + */ + public function setContentsSql($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionSqlDefinition::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * Output only. The generated BigQuery SQL script that will be executed. For + * reference only. + * + * Generated from protobuf field string generated_sql = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getGeneratedSql() + { + return $this->generated_sql; + } + + /** + * Output only. The generated BigQuery SQL script that will be executed. For + * reference only. + * + * Generated from protobuf field string generated_sql = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setGeneratedSql($var) + { + GPBUtil::checkString($var, True); + $this->generated_sql = $var; + + return $this; + } + + /** + * Output only. The ID of the BigQuery job that executed the SQL in + * sql_script. Only set once the job has started to run. + * + * Generated from protobuf field string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getJobId() + { + return $this->job_id; + } + + /** + * Output only. The ID of the BigQuery job that executed the SQL in + * sql_script. Only set once the job has started to run. + * + * Generated from protobuf field string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setJobId($var) + { + GPBUtil::checkString($var, True); + $this->job_id = $var; + + return $this; + } + + /** + * @return string + */ + public function getDefinition() + { + return $this->whichOneof("definition"); + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction/ActionErrorTable.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction/ActionErrorTable.php new file mode 100644 index 000000000000..5b868b2b912c --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction/ActionErrorTable.php @@ -0,0 +1,116 @@ +google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionErrorTable + */ +class ActionErrorTable extends \Google\Protobuf\Internal\Message +{ + /** + * Error Table target. + * + * Generated from protobuf field .google.cloud.dataform.v1.Target target = 1; + */ + protected $target = null; + /** + * Error table partition expiration in days. Only positive values are + * allowed. + * + * Generated from protobuf field int32 retention_days = 2; + */ + protected $retention_days = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1\Target $target + * Error Table target. + * @type int $retention_days + * Error table partition expiration in days. Only positive values are + * allowed. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Error Table target. + * + * Generated from protobuf field .google.cloud.dataform.v1.Target target = 1; + * @return \Google\Cloud\Dataform\V1\Target|null + */ + public function getTarget() + { + return $this->target; + } + + public function hasTarget() + { + return isset($this->target); + } + + public function clearTarget() + { + unset($this->target); + } + + /** + * Error Table target. + * + * Generated from protobuf field .google.cloud.dataform.v1.Target target = 1; + * @param \Google\Cloud\Dataform\V1\Target $var + * @return $this + */ + public function setTarget($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\Target::class); + $this->target = $var; + + return $this; + } + + /** + * Error table partition expiration in days. Only positive values are + * allowed. + * + * Generated from protobuf field int32 retention_days = 2; + * @return int + */ + public function getRetentionDays() + { + return $this->retention_days; + } + + /** + * Error table partition expiration in days. Only positive values are + * allowed. + * + * Generated from protobuf field int32 retention_days = 2; + * @param int $var + * @return $this + */ + public function setRetentionDays($var) + { + GPBUtil::checkInt32($var); + $this->retention_days = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction/ActionIncrementalLoadMode.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction/ActionIncrementalLoadMode.php new file mode 100644 index 000000000000..c1f6c1922ea8 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction/ActionIncrementalLoadMode.php @@ -0,0 +1,67 @@ +google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadMode + */ +class ActionIncrementalLoadMode extends \Google\Protobuf\Internal\Message +{ + /** + * Column name for incremental load modes + * + * Generated from protobuf field string column = 1; + */ + protected $column = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $column + * Column name for incremental load modes + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Column name for incremental load modes + * + * Generated from protobuf field string column = 1; + * @return string + */ + public function getColumn() + { + return $this->column; + } + + /** + * Column name for incremental load modes + * + * Generated from protobuf field string column = 1; + * @param string $var + * @return $this + */ + public function setColumn($var) + { + GPBUtil::checkString($var, True); + $this->column = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction/ActionLoadConfig.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction/ActionLoadConfig.php new file mode 100644 index 000000000000..85f723bd9ea9 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction/ActionLoadConfig.php @@ -0,0 +1,180 @@ +google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionLoadConfig + */ +class ActionLoadConfig extends \Google\Protobuf\Internal\Message +{ + protected $mode; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionSimpleLoadMode $replace + * Replace destination table + * @type \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionSimpleLoadMode $append + * Append into destination table + * @type \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionIncrementalLoadMode $maximum + * Insert records where the value exceeds the previous maximum value for + * a column in the destination table + * @type \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionIncrementalLoadMode $unique + * Insert records where the value of a column is not already present in + * the destination table + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Replace destination table + * + * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadMode replace = 1; + * @return \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionSimpleLoadMode|null + */ + public function getReplace() + { + return $this->readOneof(1); + } + + public function hasReplace() + { + return $this->hasOneof(1); + } + + /** + * Replace destination table + * + * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadMode replace = 1; + * @param \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionSimpleLoadMode $var + * @return $this + */ + public function setReplace($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionSimpleLoadMode::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Append into destination table + * + * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadMode append = 2; + * @return \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionSimpleLoadMode|null + */ + public function getAppend() + { + return $this->readOneof(2); + } + + public function hasAppend() + { + return $this->hasOneof(2); + } + + /** + * Append into destination table + * + * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadMode append = 2; + * @param \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionSimpleLoadMode $var + * @return $this + */ + public function setAppend($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionSimpleLoadMode::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Insert records where the value exceeds the previous maximum value for + * a column in the destination table + * + * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadMode maximum = 3; + * @return \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionIncrementalLoadMode|null + */ + public function getMaximum() + { + return $this->readOneof(3); + } + + public function hasMaximum() + { + return $this->hasOneof(3); + } + + /** + * Insert records where the value exceeds the previous maximum value for + * a column in the destination table + * + * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadMode maximum = 3; + * @param \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionIncrementalLoadMode $var + * @return $this + */ + public function setMaximum($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionIncrementalLoadMode::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Insert records where the value of a column is not already present in + * the destination table + * + * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadMode unique = 4; + * @return \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionIncrementalLoadMode|null + */ + public function getUnique() + { + return $this->readOneof(4); + } + + public function hasUnique() + { + return $this->hasOneof(4); + } + + /** + * Insert records where the value of a column is not already present in + * the destination table + * + * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadMode unique = 4; + * @param \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionIncrementalLoadMode $var + * @return $this + */ + public function setUnique($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionIncrementalLoadMode::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * @return string + */ + public function getMode() + { + return $this->whichOneof("mode"); + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction/ActionSimpleLoadMode.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction/ActionSimpleLoadMode.php new file mode 100644 index 000000000000..c5d57a119023 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction/ActionSimpleLoadMode.php @@ -0,0 +1,33 @@ +google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadMode + */ +class ActionSimpleLoadMode extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction/ActionSqlDefinition.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction/ActionSqlDefinition.php new file mode 100644 index 000000000000..ad5fe2cc0ddc --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction/ActionSqlDefinition.php @@ -0,0 +1,159 @@ +google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSqlDefinition + */ +class ActionSqlDefinition extends \Google\Protobuf\Internal\Message +{ + /** + * The SQL query representing the data preparation steps. Formatted as a + * Pipe SQL query statement. + * + * Generated from protobuf field string query = 1; + */ + protected $query = ''; + /** + * Error table configuration, + * + * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionErrorTable error_table = 2; + */ + protected $error_table = null; + /** + * Load configuration. + * + * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionLoadConfig load_config = 3; + */ + protected $load_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $query + * The SQL query representing the data preparation steps. Formatted as a + * Pipe SQL query statement. + * @type \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionErrorTable $error_table + * Error table configuration, + * @type \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionLoadConfig $load_config + * Load configuration. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * The SQL query representing the data preparation steps. Formatted as a + * Pipe SQL query statement. + * + * Generated from protobuf field string query = 1; + * @return string + */ + public function getQuery() + { + return $this->query; + } + + /** + * The SQL query representing the data preparation steps. Formatted as a + * Pipe SQL query statement. + * + * Generated from protobuf field string query = 1; + * @param string $var + * @return $this + */ + public function setQuery($var) + { + GPBUtil::checkString($var, True); + $this->query = $var; + + return $this; + } + + /** + * Error table configuration, + * + * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionErrorTable error_table = 2; + * @return \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionErrorTable|null + */ + public function getErrorTable() + { + return $this->error_table; + } + + public function hasErrorTable() + { + return isset($this->error_table); + } + + public function clearErrorTable() + { + unset($this->error_table); + } + + /** + * Error table configuration, + * + * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionErrorTable error_table = 2; + * @param \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionErrorTable $var + * @return $this + */ + public function setErrorTable($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionErrorTable::class); + $this->error_table = $var; + + return $this; + } + + /** + * Load configuration. + * + * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionLoadConfig load_config = 3; + * @return \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionLoadConfig|null + */ + public function getLoadConfig() + { + return $this->load_config; + } + + public function hasLoadConfig() + { + return isset($this->load_config); + } + + public function clearLoadConfig() + { + unset($this->load_config); + } + + /** + * Load configuration. + * + * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionLoadConfig load_config = 3; + * @param \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionLoadConfig $var + * @return $this + */ + public function setLoadConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionLoadConfig::class); + $this->load_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/NotebookAction.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/NotebookAction.php new file mode 100644 index 000000000000..eb2f77f3d5a3 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/NotebookAction.php @@ -0,0 +1,109 @@ +google.cloud.dataform.v1.WorkflowInvocationAction.NotebookAction + */ +class NotebookAction extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The code contents of a Notebook to be run. + * + * Generated from protobuf field string contents = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $contents = ''; + /** + * 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. + * + * Generated from protobuf field string job_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $job_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $contents + * Output only. The code contents of a Notebook to be run. + * @type string $job_id + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The code contents of a Notebook to be run. + * + * Generated from protobuf field string contents = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getContents() + { + return $this->contents; + } + + /** + * Output only. The code contents of a Notebook to be run. + * + * Generated from protobuf field string contents = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setContents($var) + { + GPBUtil::checkString($var, True); + $this->contents = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string job_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getJobId() + { + return $this->job_id; + } + + /** + * 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. + * + * Generated from protobuf field string job_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setJobId($var) + { + GPBUtil::checkString($var, True); + $this->job_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/State.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/State.php new file mode 100644 index 000000000000..5ef1a4106bd8 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/State.php @@ -0,0 +1,91 @@ +google.cloud.dataform.v1.WorkflowInvocationAction.State + */ +class State +{ + /** + * The action has not yet been considered for invocation. + * + * Generated from protobuf enum PENDING = 0; + */ + const PENDING = 0; + /** + * The action is currently running. + * + * Generated from protobuf enum RUNNING = 1; + */ + const RUNNING = 1; + /** + * Execution of the action was skipped because upstream dependencies did not + * all complete successfully. A terminal state. + * + * Generated from protobuf enum SKIPPED = 2; + */ + const SKIPPED = 2; + /** + * Execution of the action was disabled as per the configuration of the + * corresponding compilation result action. A terminal state. + * + * Generated from protobuf enum DISABLED = 3; + */ + const DISABLED = 3; + /** + * The action succeeded. A terminal state. + * + * Generated from protobuf enum SUCCEEDED = 4; + */ + const SUCCEEDED = 4; + /** + * The action was cancelled. A terminal state. + * + * Generated from protobuf enum CANCELLED = 5; + */ + const CANCELLED = 5; + /** + * The action failed. A terminal state. + * + * Generated from protobuf enum FAILED = 6; + */ + const FAILED = 6; + + private static $valueToName = [ + self::PENDING => 'PENDING', + self::RUNNING => 'RUNNING', + self::SKIPPED => 'SKIPPED', + self::DISABLED => 'DISABLED', + self::SUCCEEDED => 'SUCCEEDED', + self::CANCELLED => 'CANCELLED', + self::FAILED => 'FAILED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Workspace.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Workspace.php new file mode 100644 index 000000000000..faf340c6da16 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Workspace.php @@ -0,0 +1,307 @@ +google.cloud.dataform.v1.Workspace + */ +class Workspace extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. The timestamp of when the workspace was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. A data encryption state of a Git repository if this Workspace + * is protected by a KMS key. + * + * Generated from protobuf field .google.cloud.dataform.v1.DataEncryptionState data_encryption_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $data_encryption_state = null; + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $internal_metadata = null; + /** + * Optional. If set to true, workspaces will not be moved if its linked + * Repository is moved. Instead, it will be deleted. + * + * Generated from protobuf field optional bool disable_moves = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $disable_moves = null; + /** + * Output only. Metadata indicating whether this resource is user-scoped. For + * `Workspace` resources, the `user_scoped` field is always `true`. + * + * Generated from protobuf field .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $private_resource_metadata = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The workspace's name. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The timestamp of when the workspace was created. + * @type \Google\Cloud\Dataform\V1\DataEncryptionState $data_encryption_state + * Output only. A data encryption state of a Git repository if this Workspace + * is protected by a KMS key. + * @type string $internal_metadata + * 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. + * @type bool $disable_moves + * Optional. If set to true, workspaces will not be moved if its linked + * Repository is moved. Instead, it will be deleted. + * @type \Google\Cloud\Dataform\V1\PrivateResourceMetadata $private_resource_metadata + * Output only. Metadata indicating whether this resource is user-scoped. For + * `Workspace` resources, the `user_scoped` field is always `true`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. The timestamp of when the workspace was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The timestamp of when the workspace was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. A data encryption state of a Git repository if this Workspace + * is protected by a KMS key. + * + * Generated from protobuf field .google.cloud.dataform.v1.DataEncryptionState data_encryption_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataform\V1\DataEncryptionState|null + */ + public function getDataEncryptionState() + { + return $this->data_encryption_state; + } + + public function hasDataEncryptionState() + { + return isset($this->data_encryption_state); + } + + public function clearDataEncryptionState() + { + unset($this->data_encryption_state); + } + + /** + * Output only. A data encryption state of a Git repository if this Workspace + * is protected by a KMS key. + * + * Generated from protobuf field .google.cloud.dataform.v1.DataEncryptionState data_encryption_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataform\V1\DataEncryptionState $var + * @return $this + */ + public function setDataEncryptionState($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\DataEncryptionState::class); + $this->data_encryption_state = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getInternalMetadata() + { + return isset($this->internal_metadata) ? $this->internal_metadata : ''; + } + + public function hasInternalMetadata() + { + return isset($this->internal_metadata); + } + + public function clearInternalMetadata() + { + unset($this->internal_metadata); + } + + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setInternalMetadata($var) + { + GPBUtil::checkString($var, True); + $this->internal_metadata = $var; + + return $this; + } + + /** + * Optional. If set to true, workspaces will not be moved if its linked + * Repository is moved. Instead, it will be deleted. + * + * Generated from protobuf field optional bool disable_moves = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getDisableMoves() + { + return isset($this->disable_moves) ? $this->disable_moves : false; + } + + public function hasDisableMoves() + { + return isset($this->disable_moves); + } + + public function clearDisableMoves() + { + unset($this->disable_moves); + } + + /** + * Optional. If set to true, workspaces will not be moved if its linked + * Repository is moved. Instead, it will be deleted. + * + * Generated from protobuf field optional bool disable_moves = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setDisableMoves($var) + { + GPBUtil::checkBool($var); + $this->disable_moves = $var; + + return $this; + } + + /** + * Output only. Metadata indicating whether this resource is user-scoped. For + * `Workspace` resources, the `user_scoped` field is always `true`. + * + * Generated from protobuf field .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataform\V1\PrivateResourceMetadata|null + */ + public function getPrivateResourceMetadata() + { + return $this->private_resource_metadata; + } + + public function hasPrivateResourceMetadata() + { + return isset($this->private_resource_metadata); + } + + public function clearPrivateResourceMetadata() + { + unset($this->private_resource_metadata); + } + + /** + * Output only. Metadata indicating whether this resource is user-scoped. For + * `Workspace` resources, the `user_scoped` field is always `true`. + * + * Generated from protobuf field .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataform\V1\PrivateResourceMetadata $var + * @return $this + */ + public function setPrivateResourceMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\PrivateResourceMetadata::class); + $this->private_resource_metadata = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WriteFileRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WriteFileRequest.php new file mode 100644 index 000000000000..735b36cb635d --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WriteFileRequest.php @@ -0,0 +1,135 @@ +google.cloud.dataform.v1.WriteFileRequest + */ +class WriteFileRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $workspace = ''; + /** + * Required. The file. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $path = ''; + /** + * Required. The file's contents. + * + * Generated from protobuf field bytes contents = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $contents = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $workspace + * Required. The workspace's name. + * @type string $path + * Required. The file. + * @type string $contents + * Required. The file's contents. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getWorkspace() + { + return $this->workspace; + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setWorkspace($var) + { + GPBUtil::checkString($var, True); + $this->workspace = $var; + + return $this; + } + + /** + * Required. The file. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getPath() + { + return $this->path; + } + + /** + * Required. The file. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setPath($var) + { + GPBUtil::checkString($var, True); + $this->path = $var; + + return $this; + } + + /** + * Required. The file's contents. + * + * Generated from protobuf field bytes contents = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getContents() + { + return $this->contents; + } + + /** + * Required. The file's contents. + * + * Generated from protobuf field bytes contents = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setContents($var) + { + GPBUtil::checkString($var, False); + $this->contents = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WriteFileResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WriteFileResponse.php new file mode 100644 index 000000000000..9e490ac4c596 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WriteFileResponse.php @@ -0,0 +1,33 @@ +google.cloud.dataform.v1.WriteFileResponse + */ +class WriteFileResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/cancel_operation.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/cancel_operation.php new file mode 100644 index 000000000000..88eea448b836 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/cancel_operation.php @@ -0,0 +1,78 @@ +setName($name); + + // Call the API and handle any network failures. + try { + $dataformClient->cancelOperation($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $name = '[NAME]'; + + cancel_operation_sample($name); +} +// [END dataform_v1_generated_Dataform_CancelOperation_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/cancel_workflow_invocation.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/cancel_workflow_invocation.php new file mode 100644 index 000000000000..5eb921d19e9e --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/cancel_workflow_invocation.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var CancelWorkflowInvocationResponse $response */ + $response = $dataformClient->cancelWorkflowInvocation($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::workflowInvocationName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKFLOW_INVOCATION]' + ); + + cancel_workflow_invocation_sample($formattedName); +} +// [END dataform_v1_generated_Dataform_CancelWorkflowInvocation_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/commit_repository_changes.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/commit_repository_changes.php new file mode 100644 index 000000000000..dcd54e1108bd --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/commit_repository_changes.php @@ -0,0 +1,91 @@ +setName($commitMetadataAuthorName) + ->setEmailAddress($commitMetadataAuthorEmailAddress); + $commitMetadata = (new CommitMetadata()) + ->setAuthor($commitMetadataAuthor); + $request = (new CommitRepositoryChangesRequest()) + ->setName($formattedName) + ->setCommitMetadata($commitMetadata); + + // Call the API and handle any network failures. + try { + /** @var CommitRepositoryChangesResponse $response */ + $response = $dataformClient->commitRepositoryChanges($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $commitMetadataAuthorName = '[NAME]'; + $commitMetadataAuthorEmailAddress = '[EMAIL_ADDRESS]'; + + commit_repository_changes_sample( + $formattedName, + $commitMetadataAuthorName, + $commitMetadataAuthorEmailAddress + ); +} +// [END dataform_v1_generated_Dataform_CommitRepositoryChanges_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/commit_workspace_changes.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/commit_workspace_changes.php new file mode 100644 index 000000000000..78ce866b1961 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/commit_workspace_changes.php @@ -0,0 +1,88 @@ +setName($authorName) + ->setEmailAddress($authorEmailAddress); + $request = (new CommitWorkspaceChangesRequest()) + ->setName($formattedName) + ->setAuthor($author); + + // Call the API and handle any network failures. + try { + /** @var CommitWorkspaceChangesResponse $response */ + $response = $dataformClient->commitWorkspaceChanges($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::workspaceName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKSPACE]' + ); + $authorName = '[NAME]'; + $authorEmailAddress = '[EMAIL_ADDRESS]'; + + commit_workspace_changes_sample($formattedName, $authorName, $authorEmailAddress); +} +// [END dataform_v1_generated_Dataform_CommitWorkspaceChanges_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/compute_repository_access_token_status.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/compute_repository_access_token_status.php new file mode 100644 index 000000000000..c1bc16fa3a14 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/compute_repository_access_token_status.php @@ -0,0 +1,71 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var ComputeRepositoryAccessTokenStatusResponse $response */ + $response = $dataformClient->computeRepositoryAccessTokenStatus($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + + compute_repository_access_token_status_sample($formattedName); +} +// [END dataform_v1_generated_Dataform_ComputeRepositoryAccessTokenStatus_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_compilation_result.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_compilation_result.php new file mode 100644 index 000000000000..22b3f0fc86f6 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_compilation_result.php @@ -0,0 +1,74 @@ +setParent($formattedParent) + ->setCompilationResult($compilationResult); + + // Call the API and handle any network failures. + try { + /** @var CompilationResult $response */ + $response = $dataformClient->createCompilationResult($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + + create_compilation_result_sample($formattedParent); +} +// [END dataform_v1_generated_Dataform_CreateCompilationResult_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_folder.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_folder.php new file mode 100644 index 000000000000..93e90ff47cb6 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_folder.php @@ -0,0 +1,77 @@ +setDisplayName($folderDisplayName); + $request = (new CreateFolderRequest()) + ->setParent($formattedParent) + ->setFolder($folder); + + // Call the API and handle any network failures. + try { + /** @var Folder $response */ + $response = $dataformClient->createFolder($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataformClient::locationName('[PROJECT]', '[LOCATION]'); + $folderDisplayName = '[DISPLAY_NAME]'; + + create_folder_sample($formattedParent, $folderDisplayName); +} +// [END dataform_v1_generated_Dataform_CreateFolder_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_release_config.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_release_config.php new file mode 100644 index 000000000000..ebf84a5b980d --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_release_config.php @@ -0,0 +1,88 @@ +setGitCommitish($releaseConfigGitCommitish); + $request = (new CreateReleaseConfigRequest()) + ->setParent($formattedParent) + ->setReleaseConfig($releaseConfig) + ->setReleaseConfigId($releaseConfigId); + + // Call the API and handle any network failures. + try { + /** @var ReleaseConfig $response */ + $response = $dataformClient->createReleaseConfig($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $releaseConfigGitCommitish = '[GIT_COMMITISH]'; + $releaseConfigId = '[RELEASE_CONFIG_ID]'; + + create_release_config_sample($formattedParent, $releaseConfigGitCommitish, $releaseConfigId); +} +// [END dataform_v1_generated_Dataform_CreateReleaseConfig_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_repository.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_repository.php new file mode 100644 index 000000000000..902a53fb8902 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_repository.php @@ -0,0 +1,78 @@ +setParent($formattedParent) + ->setRepository($repository) + ->setRepositoryId($repositoryId); + + // Call the API and handle any network failures. + try { + /** @var Repository $response */ + $response = $dataformClient->createRepository($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataformClient::locationName('[PROJECT]', '[LOCATION]'); + $repositoryId = '[REPOSITORY_ID]'; + + create_repository_sample($formattedParent, $repositoryId); +} +// [END dataform_v1_generated_Dataform_CreateRepository_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_team_folder.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_team_folder.php new file mode 100644 index 000000000000..b7092eb2f014 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_team_folder.php @@ -0,0 +1,77 @@ +setDisplayName($teamFolderDisplayName); + $request = (new CreateTeamFolderRequest()) + ->setParent($formattedParent) + ->setTeamFolder($teamFolder); + + // Call the API and handle any network failures. + try { + /** @var TeamFolder $response */ + $response = $dataformClient->createTeamFolder($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataformClient::locationName('[PROJECT]', '[LOCATION]'); + $teamFolderDisplayName = '[DISPLAY_NAME]'; + + create_team_folder_sample($formattedParent, $teamFolderDisplayName); +} +// [END dataform_v1_generated_Dataform_CreateTeamFolder_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_workflow_config.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_workflow_config.php new file mode 100644 index 000000000000..28cdfdaf6df8 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_workflow_config.php @@ -0,0 +1,96 @@ +setReleaseConfig($formattedWorkflowConfigReleaseConfig); + $request = (new CreateWorkflowConfigRequest()) + ->setParent($formattedParent) + ->setWorkflowConfig($workflowConfig) + ->setWorkflowConfigId($workflowConfigId); + + // Call the API and handle any network failures. + try { + /** @var WorkflowConfig $response */ + $response = $dataformClient->createWorkflowConfig($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $formattedWorkflowConfigReleaseConfig = DataformClient::releaseConfigName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[RELEASE_CONFIG]' + ); + $workflowConfigId = '[WORKFLOW_CONFIG_ID]'; + + create_workflow_config_sample( + $formattedParent, + $formattedWorkflowConfigReleaseConfig, + $workflowConfigId + ); +} +// [END dataform_v1_generated_Dataform_CreateWorkflowConfig_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_workflow_invocation.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_workflow_invocation.php new file mode 100644 index 000000000000..1fb9a548c096 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_workflow_invocation.php @@ -0,0 +1,74 @@ +setParent($formattedParent) + ->setWorkflowInvocation($workflowInvocation); + + // Call the API and handle any network failures. + try { + /** @var WorkflowInvocation $response */ + $response = $dataformClient->createWorkflowInvocation($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + + create_workflow_invocation_sample($formattedParent); +} +// [END dataform_v1_generated_Dataform_CreateWorkflowInvocation_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_workspace.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_workspace.php new file mode 100644 index 000000000000..8700c3b88bb1 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_workspace.php @@ -0,0 +1,78 @@ +setParent($formattedParent) + ->setWorkspace($workspace) + ->setWorkspaceId($workspaceId); + + // Call the API and handle any network failures. + try { + /** @var Workspace $response */ + $response = $dataformClient->createWorkspace($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $workspaceId = '[WORKSPACE_ID]'; + + create_workspace_sample($formattedParent, $workspaceId); +} +// [END dataform_v1_generated_Dataform_CreateWorkspace_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_folder.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_folder.php new file mode 100644 index 000000000000..ac49b71a3d5f --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_folder.php @@ -0,0 +1,69 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $dataformClient->deleteFolder($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); + + delete_folder_sample($formattedName); +} +// [END dataform_v1_generated_Dataform_DeleteFolder_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_folder_tree.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_folder_tree.php new file mode 100644 index 000000000000..f2bdc981ded1 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_folder_tree.php @@ -0,0 +1,82 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataformClient->deleteFolderTree($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + printf('Operation completed successfully.' . PHP_EOL); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); + + delete_folder_tree_sample($formattedName); +} +// [END dataform_v1_generated_Dataform_DeleteFolderTree_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_operation.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_operation.php new file mode 100644 index 000000000000..ba2360391e47 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_operation.php @@ -0,0 +1,71 @@ +setName($name); + + // Call the API and handle any network failures. + try { + $dataformClient->deleteOperation($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $name = '[NAME]'; + + delete_operation_sample($name); +} +// [END dataform_v1_generated_Dataform_DeleteOperation_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_release_config.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_release_config.php new file mode 100644 index 000000000000..117a4e6b406d --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_release_config.php @@ -0,0 +1,74 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $dataformClient->deleteReleaseConfig($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::releaseConfigName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[RELEASE_CONFIG]' + ); + + delete_release_config_sample($formattedName); +} +// [END dataform_v1_generated_Dataform_DeleteReleaseConfig_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_repository.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_repository.php new file mode 100644 index 000000000000..fafab0e56c8a --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_repository.php @@ -0,0 +1,69 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $dataformClient->deleteRepository($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + + delete_repository_sample($formattedName); +} +// [END dataform_v1_generated_Dataform_DeleteRepository_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_team_folder.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_team_folder.php new file mode 100644 index 000000000000..114efeeae892 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_team_folder.php @@ -0,0 +1,69 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $dataformClient->deleteTeamFolder($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::teamFolderName('[PROJECT]', '[LOCATION]', '[TEAM_FOLDER]'); + + delete_team_folder_sample($formattedName); +} +// [END dataform_v1_generated_Dataform_DeleteTeamFolder_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_team_folder_tree.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_team_folder_tree.php new file mode 100644 index 000000000000..f013a8225a38 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_team_folder_tree.php @@ -0,0 +1,82 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataformClient->deleteTeamFolderTree($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + printf('Operation completed successfully.' . PHP_EOL); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::teamFolderName('[PROJECT]', '[LOCATION]', '[TEAM_FOLDER]'); + + delete_team_folder_tree_sample($formattedName); +} +// [END dataform_v1_generated_Dataform_DeleteTeamFolderTree_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_workflow_config.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_workflow_config.php new file mode 100644 index 000000000000..b17bbaff2082 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_workflow_config.php @@ -0,0 +1,74 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $dataformClient->deleteWorkflowConfig($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::workflowConfigName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKFLOW_CONFIG]' + ); + + delete_workflow_config_sample($formattedName); +} +// [END dataform_v1_generated_Dataform_DeleteWorkflowConfig_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_workflow_invocation.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_workflow_invocation.php new file mode 100644 index 000000000000..0006aea3376a --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_workflow_invocation.php @@ -0,0 +1,74 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $dataformClient->deleteWorkflowInvocation($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::workflowInvocationName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKFLOW_INVOCATION]' + ); + + delete_workflow_invocation_sample($formattedName); +} +// [END dataform_v1_generated_Dataform_DeleteWorkflowInvocation_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_workspace.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_workspace.php new file mode 100644 index 000000000000..3115bc710191 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_workspace.php @@ -0,0 +1,74 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $dataformClient->deleteWorkspace($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::workspaceName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKSPACE]' + ); + + delete_workspace_sample($formattedName); +} +// [END dataform_v1_generated_Dataform_DeleteWorkspace_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/fetch_file_diff.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/fetch_file_diff.php new file mode 100644 index 000000000000..7df358333d91 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/fetch_file_diff.php @@ -0,0 +1,80 @@ +setWorkspace($formattedWorkspace) + ->setPath($path); + + // Call the API and handle any network failures. + try { + /** @var FetchFileDiffResponse $response */ + $response = $dataformClient->fetchFileDiff($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedWorkspace = DataformClient::workspaceName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKSPACE]' + ); + $path = '[PATH]'; + + fetch_file_diff_sample($formattedWorkspace, $path); +} +// [END dataform_v1_generated_Dataform_FetchFileDiff_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/fetch_file_git_statuses.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/fetch_file_git_statuses.php new file mode 100644 index 000000000000..6198869fb8a0 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/fetch_file_git_statuses.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var FetchFileGitStatusesResponse $response */ + $response = $dataformClient->fetchFileGitStatuses($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::workspaceName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKSPACE]' + ); + + fetch_file_git_statuses_sample($formattedName); +} +// [END dataform_v1_generated_Dataform_FetchFileGitStatuses_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/fetch_git_ahead_behind.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/fetch_git_ahead_behind.php new file mode 100644 index 000000000000..05a2de2d4bba --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/fetch_git_ahead_behind.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var FetchGitAheadBehindResponse $response */ + $response = $dataformClient->fetchGitAheadBehind($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::workspaceName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKSPACE]' + ); + + fetch_git_ahead_behind_sample($formattedName); +} +// [END dataform_v1_generated_Dataform_FetchGitAheadBehind_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/fetch_remote_branches.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/fetch_remote_branches.php new file mode 100644 index 000000000000..b55903f690d4 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/fetch_remote_branches.php @@ -0,0 +1,71 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var FetchRemoteBranchesResponse $response */ + $response = $dataformClient->fetchRemoteBranches($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + + fetch_remote_branches_sample($formattedName); +} +// [END dataform_v1_generated_Dataform_FetchRemoteBranches_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/fetch_repository_history.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/fetch_repository_history.php new file mode 100644 index 000000000000..be2f8542545c --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/fetch_repository_history.php @@ -0,0 +1,77 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataformClient->fetchRepositoryHistory($request); + + /** @var CommitLogEntry $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + + fetch_repository_history_sample($formattedName); +} +// [END dataform_v1_generated_Dataform_FetchRepositoryHistory_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_compilation_result.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_compilation_result.php new file mode 100644 index 000000000000..cc83ce482bc0 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_compilation_result.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var CompilationResult $response */ + $response = $dataformClient->getCompilationResult($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::compilationResultName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[COMPILATION_RESULT]' + ); + + get_compilation_result_sample($formattedName); +} +// [END dataform_v1_generated_Dataform_GetCompilationResult_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_config.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_config.php new file mode 100644 index 000000000000..1ed4c70128c7 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_config.php @@ -0,0 +1,71 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Config $response */ + $response = $dataformClient->getConfig($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::configName('[PROJECT]', '[LOCATION]'); + + get_config_sample($formattedName); +} +// [END dataform_v1_generated_Dataform_GetConfig_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_folder.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_folder.php new file mode 100644 index 000000000000..f13b99a2769b --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_folder.php @@ -0,0 +1,71 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Folder $response */ + $response = $dataformClient->getFolder($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); + + get_folder_sample($formattedName); +} +// [END dataform_v1_generated_Dataform_GetFolder_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_iam_policy.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_iam_policy.php new file mode 100644 index 000000000000..ab3747a131cc --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_iam_policy.php @@ -0,0 +1,73 @@ +setResource($resource); + + // Call the API and handle any network failures. + try { + /** @var Policy $response */ + $response = $dataformClient->getIamPolicy($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $resource = '[RESOURCE]'; + + get_iam_policy_sample($resource); +} +// [END dataform_v1_generated_Dataform_GetIamPolicy_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_location.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_location.php new file mode 100644 index 000000000000..eed7c2879ba1 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_location.php @@ -0,0 +1,57 @@ +getLocation($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END dataform_v1_generated_Dataform_GetLocation_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_operation.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_operation.php new file mode 100644 index 000000000000..4c3c465c9d30 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_operation.php @@ -0,0 +1,72 @@ +setName($name); + + // Call the API and handle any network failures. + try { + /** @var Operation $response */ + $response = $dataformClient->getOperation($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $name = '[NAME]'; + + get_operation_sample($name); +} +// [END dataform_v1_generated_Dataform_GetOperation_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_release_config.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_release_config.php new file mode 100644 index 000000000000..77c6b3f2729d --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_release_config.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var ReleaseConfig $response */ + $response = $dataformClient->getReleaseConfig($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::releaseConfigName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[RELEASE_CONFIG]' + ); + + get_release_config_sample($formattedName); +} +// [END dataform_v1_generated_Dataform_GetReleaseConfig_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_repository.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_repository.php new file mode 100644 index 000000000000..cbb34eb5577d --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_repository.php @@ -0,0 +1,71 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Repository $response */ + $response = $dataformClient->getRepository($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + + get_repository_sample($formattedName); +} +// [END dataform_v1_generated_Dataform_GetRepository_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_team_folder.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_team_folder.php new file mode 100644 index 000000000000..ad99e78e1a1b --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_team_folder.php @@ -0,0 +1,71 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var TeamFolder $response */ + $response = $dataformClient->getTeamFolder($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::teamFolderName('[PROJECT]', '[LOCATION]', '[TEAM_FOLDER]'); + + get_team_folder_sample($formattedName); +} +// [END dataform_v1_generated_Dataform_GetTeamFolder_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_workflow_config.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_workflow_config.php new file mode 100644 index 000000000000..118d22a8c5a4 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_workflow_config.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var WorkflowConfig $response */ + $response = $dataformClient->getWorkflowConfig($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::workflowConfigName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKFLOW_CONFIG]' + ); + + get_workflow_config_sample($formattedName); +} +// [END dataform_v1_generated_Dataform_GetWorkflowConfig_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_workflow_invocation.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_workflow_invocation.php new file mode 100644 index 000000000000..0a6271b84947 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_workflow_invocation.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var WorkflowInvocation $response */ + $response = $dataformClient->getWorkflowInvocation($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::workflowInvocationName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKFLOW_INVOCATION]' + ); + + get_workflow_invocation_sample($formattedName); +} +// [END dataform_v1_generated_Dataform_GetWorkflowInvocation_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_workspace.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_workspace.php new file mode 100644 index 000000000000..b8eabb34a52f --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_workspace.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Workspace $response */ + $response = $dataformClient->getWorkspace($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::workspaceName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKSPACE]' + ); + + get_workspace_sample($formattedName); +} +// [END dataform_v1_generated_Dataform_GetWorkspace_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/install_npm_packages.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/install_npm_packages.php new file mode 100644 index 000000000000..53fa11862d08 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/install_npm_packages.php @@ -0,0 +1,76 @@ +setWorkspace($formattedWorkspace); + + // Call the API and handle any network failures. + try { + /** @var InstallNpmPackagesResponse $response */ + $response = $dataformClient->installNpmPackages($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedWorkspace = DataformClient::workspaceName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKSPACE]' + ); + + install_npm_packages_sample($formattedWorkspace); +} +// [END dataform_v1_generated_Dataform_InstallNpmPackages_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_compilation_results.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_compilation_results.php new file mode 100644 index 000000000000..32eee4636456 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_compilation_results.php @@ -0,0 +1,77 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataformClient->listCompilationResults($request); + + /** @var CompilationResult $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + + list_compilation_results_sample($formattedParent); +} +// [END dataform_v1_generated_Dataform_ListCompilationResults_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_locations.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_locations.php new file mode 100644 index 000000000000..f3e465156b29 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_locations.php @@ -0,0 +1,78 @@ +listLocations($request); + + /** @var Location $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END dataform_v1_generated_Dataform_ListLocations_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_operations.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_operations.php new file mode 100644 index 000000000000..c0dac88777de --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_operations.php @@ -0,0 +1,79 @@ +setName($name) + ->setFilter($filter); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataformClient->listOperations($request); + + /** @var Operation $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $name = '[NAME]'; + $filter = '[FILTER]'; + + list_operations_sample($name, $filter); +} +// [END dataform_v1_generated_Dataform_ListOperations_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_release_configs.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_release_configs.php new file mode 100644 index 000000000000..bf8e0d5b9fc2 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_release_configs.php @@ -0,0 +1,77 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataformClient->listReleaseConfigs($request); + + /** @var ReleaseConfig $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + + list_release_configs_sample($formattedParent); +} +// [END dataform_v1_generated_Dataform_ListReleaseConfigs_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_repositories.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_repositories.php new file mode 100644 index 000000000000..16d4922525f9 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_repositories.php @@ -0,0 +1,80 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataformClient->listRepositories($request); + + /** @var Repository $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataformClient::locationName('[PROJECT]', '[LOCATION]'); + + list_repositories_sample($formattedParent); +} +// [END dataform_v1_generated_Dataform_ListRepositories_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_workflow_configs.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_workflow_configs.php new file mode 100644 index 000000000000..eaf551c5503f --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_workflow_configs.php @@ -0,0 +1,77 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataformClient->listWorkflowConfigs($request); + + /** @var WorkflowConfig $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + + list_workflow_configs_sample($formattedParent); +} +// [END dataform_v1_generated_Dataform_ListWorkflowConfigs_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_workflow_invocations.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_workflow_invocations.php new file mode 100644 index 000000000000..a0cbdbe29316 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_workflow_invocations.php @@ -0,0 +1,77 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataformClient->listWorkflowInvocations($request); + + /** @var WorkflowInvocation $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + + list_workflow_invocations_sample($formattedParent); +} +// [END dataform_v1_generated_Dataform_ListWorkflowInvocations_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_workspaces.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_workspaces.php new file mode 100644 index 000000000000..78990f5296b9 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_workspaces.php @@ -0,0 +1,77 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataformClient->listWorkspaces($request); + + /** @var Workspace $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + + list_workspaces_sample($formattedParent); +} +// [END dataform_v1_generated_Dataform_ListWorkspaces_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/make_directory.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/make_directory.php new file mode 100644 index 000000000000..7b09efbea033 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/make_directory.php @@ -0,0 +1,80 @@ +setWorkspace($formattedWorkspace) + ->setPath($path); + + // Call the API and handle any network failures. + try { + /** @var MakeDirectoryResponse $response */ + $response = $dataformClient->makeDirectory($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedWorkspace = DataformClient::workspaceName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKSPACE]' + ); + $path = '[PATH]'; + + make_directory_sample($formattedWorkspace, $path); +} +// [END dataform_v1_generated_Dataform_MakeDirectory_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/move_directory.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/move_directory.php new file mode 100644 index 000000000000..cd7f5c698be4 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/move_directory.php @@ -0,0 +1,85 @@ +setWorkspace($formattedWorkspace) + ->setPath($path) + ->setNewPath($newPath); + + // Call the API and handle any network failures. + try { + /** @var MoveDirectoryResponse $response */ + $response = $dataformClient->moveDirectory($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedWorkspace = DataformClient::workspaceName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKSPACE]' + ); + $path = '[PATH]'; + $newPath = '[NEW_PATH]'; + + move_directory_sample($formattedWorkspace, $path, $newPath); +} +// [END dataform_v1_generated_Dataform_MoveDirectory_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/move_file.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/move_file.php new file mode 100644 index 000000000000..48667b7bd5ea --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/move_file.php @@ -0,0 +1,84 @@ +setWorkspace($formattedWorkspace) + ->setPath($path) + ->setNewPath($newPath); + + // Call the API and handle any network failures. + try { + /** @var MoveFileResponse $response */ + $response = $dataformClient->moveFile($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedWorkspace = DataformClient::workspaceName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKSPACE]' + ); + $path = '[PATH]'; + $newPath = '[NEW_PATH]'; + + move_file_sample($formattedWorkspace, $path, $newPath); +} +// [END dataform_v1_generated_Dataform_MoveFile_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/move_folder.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/move_folder.php new file mode 100644 index 000000000000..41e9c97a9d6c --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/move_folder.php @@ -0,0 +1,80 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataformClient->moveFolder($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + printf('Operation completed successfully.' . PHP_EOL); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); + + move_folder_sample($formattedName); +} +// [END dataform_v1_generated_Dataform_MoveFolder_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/move_repository.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/move_repository.php new file mode 100644 index 000000000000..f5335db69c30 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/move_repository.php @@ -0,0 +1,80 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataformClient->moveRepository($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + printf('Operation completed successfully.' . PHP_EOL); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + + move_repository_sample($formattedName); +} +// [END dataform_v1_generated_Dataform_MoveRepository_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/pull_git_commits.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/pull_git_commits.php new file mode 100644 index 000000000000..141673f39e39 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/pull_git_commits.php @@ -0,0 +1,88 @@ +setName($authorName) + ->setEmailAddress($authorEmailAddress); + $request = (new PullGitCommitsRequest()) + ->setName($formattedName) + ->setAuthor($author); + + // Call the API and handle any network failures. + try { + /** @var PullGitCommitsResponse $response */ + $response = $dataformClient->pullGitCommits($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::workspaceName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKSPACE]' + ); + $authorName = '[NAME]'; + $authorEmailAddress = '[EMAIL_ADDRESS]'; + + pull_git_commits_sample($formattedName, $authorName, $authorEmailAddress); +} +// [END dataform_v1_generated_Dataform_PullGitCommits_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/push_git_commits.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/push_git_commits.php new file mode 100644 index 000000000000..f8254b7c89f4 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/push_git_commits.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var PushGitCommitsResponse $response */ + $response = $dataformClient->pushGitCommits($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::workspaceName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKSPACE]' + ); + + push_git_commits_sample($formattedName); +} +// [END dataform_v1_generated_Dataform_PushGitCommits_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/query_compilation_result_actions.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/query_compilation_result_actions.php new file mode 100644 index 000000000000..ce52cd095fb2 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/query_compilation_result_actions.php @@ -0,0 +1,81 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataformClient->queryCompilationResultActions($request); + + /** @var CompilationResultAction $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::compilationResultName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[COMPILATION_RESULT]' + ); + + query_compilation_result_actions_sample($formattedName); +} +// [END dataform_v1_generated_Dataform_QueryCompilationResultActions_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/query_directory_contents.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/query_directory_contents.php new file mode 100644 index 000000000000..2ade9301f074 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/query_directory_contents.php @@ -0,0 +1,81 @@ +setWorkspace($formattedWorkspace); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataformClient->queryDirectoryContents($request); + + /** @var DirectoryEntry $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedWorkspace = DataformClient::workspaceName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKSPACE]' + ); + + query_directory_contents_sample($formattedWorkspace); +} +// [END dataform_v1_generated_Dataform_QueryDirectoryContents_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/query_folder_contents.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/query_folder_contents.php new file mode 100644 index 000000000000..9b10da65c540 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/query_folder_contents.php @@ -0,0 +1,77 @@ +setFolder($formattedFolder); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataformClient->queryFolderContents($request); + + /** @var FolderContentsEntry $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedFolder = DataformClient::folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); + + query_folder_contents_sample($formattedFolder); +} +// [END dataform_v1_generated_Dataform_QueryFolderContents_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/query_repository_directory_contents.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/query_repository_directory_contents.php new file mode 100644 index 000000000000..22cc0f0a94d8 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/query_repository_directory_contents.php @@ -0,0 +1,77 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataformClient->queryRepositoryDirectoryContents($request); + + /** @var DirectoryEntry $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + + query_repository_directory_contents_sample($formattedName); +} +// [END dataform_v1_generated_Dataform_QueryRepositoryDirectoryContents_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/query_team_folder_contents.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/query_team_folder_contents.php new file mode 100644 index 000000000000..184da10ce1ea --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/query_team_folder_contents.php @@ -0,0 +1,77 @@ +setTeamFolder($formattedTeamFolder); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataformClient->queryTeamFolderContents($request); + + /** @var TeamFolderContentsEntry $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedTeamFolder = DataformClient::teamFolderName('[PROJECT]', '[LOCATION]', '[TEAM_FOLDER]'); + + query_team_folder_contents_sample($formattedTeamFolder); +} +// [END dataform_v1_generated_Dataform_QueryTeamFolderContents_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/query_user_root_contents.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/query_user_root_contents.php new file mode 100644 index 000000000000..d6480fc8b1d8 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/query_user_root_contents.php @@ -0,0 +1,79 @@ +setLocation($formattedLocation); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataformClient->queryUserRootContents($request); + + /** @var RootContentsEntry $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedLocation = DataformClient::locationName('[PROJECT]', '[LOCATION]'); + + query_user_root_contents_sample($formattedLocation); +} +// [END dataform_v1_generated_Dataform_QueryUserRootContents_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/query_workflow_invocation_actions.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/query_workflow_invocation_actions.php new file mode 100644 index 000000000000..169c41da1d2c --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/query_workflow_invocation_actions.php @@ -0,0 +1,81 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataformClient->queryWorkflowInvocationActions($request); + + /** @var WorkflowInvocationAction $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::workflowInvocationName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKFLOW_INVOCATION]' + ); + + query_workflow_invocation_actions_sample($formattedName); +} +// [END dataform_v1_generated_Dataform_QueryWorkflowInvocationActions_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/read_file.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/read_file.php new file mode 100644 index 000000000000..6780bf4c0111 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/read_file.php @@ -0,0 +1,80 @@ +setWorkspace($formattedWorkspace) + ->setPath($path); + + // Call the API and handle any network failures. + try { + /** @var ReadFileResponse $response */ + $response = $dataformClient->readFile($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedWorkspace = DataformClient::workspaceName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKSPACE]' + ); + $path = '[PATH]'; + + read_file_sample($formattedWorkspace, $path); +} +// [END dataform_v1_generated_Dataform_ReadFile_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/read_repository_file.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/read_repository_file.php new file mode 100644 index 000000000000..a02a1ff02403 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/read_repository_file.php @@ -0,0 +1,75 @@ +setName($formattedName) + ->setPath($path); + + // Call the API and handle any network failures. + try { + /** @var ReadRepositoryFileResponse $response */ + $response = $dataformClient->readRepositoryFile($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $path = '[PATH]'; + + read_repository_file_sample($formattedName, $path); +} +// [END dataform_v1_generated_Dataform_ReadRepositoryFile_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/remove_directory.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/remove_directory.php new file mode 100644 index 000000000000..bba00abc3a8b --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/remove_directory.php @@ -0,0 +1,80 @@ +setWorkspace($formattedWorkspace) + ->setPath($path); + + // Call the API and handle any network failures. + try { + /** @var RemoveDirectoryResponse $response */ + $response = $dataformClient->removeDirectory($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedWorkspace = DataformClient::workspaceName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKSPACE]' + ); + $path = '[PATH]'; + + remove_directory_sample($formattedWorkspace, $path); +} +// [END dataform_v1_generated_Dataform_RemoveDirectory_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/remove_file.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/remove_file.php new file mode 100644 index 000000000000..54b8dd61ef07 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/remove_file.php @@ -0,0 +1,80 @@ +setWorkspace($formattedWorkspace) + ->setPath($path); + + // Call the API and handle any network failures. + try { + /** @var RemoveFileResponse $response */ + $response = $dataformClient->removeFile($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedWorkspace = DataformClient::workspaceName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKSPACE]' + ); + $path = '[PATH]'; + + remove_file_sample($formattedWorkspace, $path); +} +// [END dataform_v1_generated_Dataform_RemoveFile_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/reset_workspace_changes.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/reset_workspace_changes.php new file mode 100644 index 000000000000..e33d2a25a96e --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/reset_workspace_changes.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var ResetWorkspaceChangesResponse $response */ + $response = $dataformClient->resetWorkspaceChanges($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::workspaceName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKSPACE]' + ); + + reset_workspace_changes_sample($formattedName); +} +// [END dataform_v1_generated_Dataform_ResetWorkspaceChanges_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/search_files.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/search_files.php new file mode 100644 index 000000000000..02b2e5323c54 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/search_files.php @@ -0,0 +1,81 @@ +setWorkspace($formattedWorkspace); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataformClient->searchFiles($request); + + /** @var SearchResult $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedWorkspace = DataformClient::workspaceName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKSPACE]' + ); + + search_files_sample($formattedWorkspace); +} +// [END dataform_v1_generated_Dataform_SearchFiles_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/search_team_folders.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/search_team_folders.php new file mode 100644 index 000000000000..69d005e5a311 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/search_team_folders.php @@ -0,0 +1,78 @@ +setLocation($formattedLocation); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataformClient->searchTeamFolders($request); + + /** @var TeamFolderSearchResult $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedLocation = DataformClient::locationName('[PROJECT]', '[LOCATION]'); + + search_team_folders_sample($formattedLocation); +} +// [END dataform_v1_generated_Dataform_SearchTeamFolders_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/set_iam_policy.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/set_iam_policy.php new file mode 100644 index 000000000000..d15fc259ddac --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/set_iam_policy.php @@ -0,0 +1,76 @@ +setResource($resource) + ->setPolicy($policy); + + // Call the API and handle any network failures. + try { + /** @var Policy $response */ + $response = $dataformClient->setIamPolicy($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $resource = '[RESOURCE]'; + + set_iam_policy_sample($resource); +} +// [END dataform_v1_generated_Dataform_SetIamPolicy_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/test_iam_permissions.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/test_iam_permissions.php new file mode 100644 index 000000000000..5a934e730ba9 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/test_iam_permissions.php @@ -0,0 +1,84 @@ +setResource($resource) + ->setPermissions($permissions); + + // Call the API and handle any network failures. + try { + /** @var TestIamPermissionsResponse $response */ + $response = $dataformClient->testIamPermissions($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $resource = '[RESOURCE]'; + $permissionsElement = '[PERMISSIONS]'; + + test_iam_permissions_sample($resource, $permissionsElement); +} +// [END dataform_v1_generated_Dataform_TestIamPermissions_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/update_config.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/update_config.php new file mode 100644 index 000000000000..006deabe6bdf --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/update_config.php @@ -0,0 +1,64 @@ +setConfig($config); + + // Call the API and handle any network failures. + try { + /** @var Config $response */ + $response = $dataformClient->updateConfig($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END dataform_v1_generated_Dataform_UpdateConfig_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/update_folder.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/update_folder.php new file mode 100644 index 000000000000..f4404fc4d507 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/update_folder.php @@ -0,0 +1,72 @@ +setDisplayName($folderDisplayName); + $request = (new UpdateFolderRequest()) + ->setFolder($folder); + + // Call the API and handle any network failures. + try { + /** @var Folder $response */ + $response = $dataformClient->updateFolder($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $folderDisplayName = '[DISPLAY_NAME]'; + + update_folder_sample($folderDisplayName); +} +// [END dataform_v1_generated_Dataform_UpdateFolder_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/update_release_config.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/update_release_config.php new file mode 100644 index 000000000000..1c69de344a6b --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/update_release_config.php @@ -0,0 +1,81 @@ +setGitCommitish($releaseConfigGitCommitish); + $request = (new UpdateReleaseConfigRequest()) + ->setReleaseConfig($releaseConfig); + + // Call the API and handle any network failures. + try { + /** @var ReleaseConfig $response */ + $response = $dataformClient->updateReleaseConfig($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $releaseConfigGitCommitish = '[GIT_COMMITISH]'; + + update_release_config_sample($releaseConfigGitCommitish); +} +// [END dataform_v1_generated_Dataform_UpdateReleaseConfig_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/update_repository.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/update_repository.php new file mode 100644 index 000000000000..68e6fa0df22d --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/update_repository.php @@ -0,0 +1,64 @@ +setRepository($repository); + + // Call the API and handle any network failures. + try { + /** @var Repository $response */ + $response = $dataformClient->updateRepository($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END dataform_v1_generated_Dataform_UpdateRepository_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/update_team_folder.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/update_team_folder.php new file mode 100644 index 000000000000..f4a7e9af6a0f --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/update_team_folder.php @@ -0,0 +1,72 @@ +setDisplayName($teamFolderDisplayName); + $request = (new UpdateTeamFolderRequest()) + ->setTeamFolder($teamFolder); + + // Call the API and handle any network failures. + try { + /** @var TeamFolder $response */ + $response = $dataformClient->updateTeamFolder($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $teamFolderDisplayName = '[DISPLAY_NAME]'; + + update_team_folder_sample($teamFolderDisplayName); +} +// [END dataform_v1_generated_Dataform_UpdateTeamFolder_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/update_workflow_config.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/update_workflow_config.php new file mode 100644 index 000000000000..3ac400f7a3f3 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/update_workflow_config.php @@ -0,0 +1,85 @@ +setReleaseConfig($formattedWorkflowConfigReleaseConfig); + $request = (new UpdateWorkflowConfigRequest()) + ->setWorkflowConfig($workflowConfig); + + // Call the API and handle any network failures. + try { + /** @var WorkflowConfig $response */ + $response = $dataformClient->updateWorkflowConfig($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedWorkflowConfigReleaseConfig = DataformClient::releaseConfigName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[RELEASE_CONFIG]' + ); + + update_workflow_config_sample($formattedWorkflowConfigReleaseConfig); +} +// [END dataform_v1_generated_Dataform_UpdateWorkflowConfig_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/write_file.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/write_file.php new file mode 100644 index 000000000000..a0f1f1b95ccc --- /dev/null +++ b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/write_file.php @@ -0,0 +1,82 @@ +setWorkspace($formattedWorkspace) + ->setPath($path) + ->setContents($contents); + + // Call the API and handle any network failures. + try { + /** @var WriteFileResponse $response */ + $response = $dataformClient->writeFile($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedWorkspace = DataformClient::workspaceName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKSPACE]' + ); + $path = '[PATH]'; + $contents = '...'; + + write_file_sample($formattedWorkspace, $path, $contents); +} +// [END dataform_v1_generated_Dataform_WriteFile_sync] diff --git a/owl-bot-staging/Dataform/v1/src/V1/Client/DataformClient.php b/owl-bot-staging/Dataform/v1/src/V1/Client/DataformClient.php new file mode 100644 index 000000000000..c809c39a62b0 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/src/V1/Client/DataformClient.php @@ -0,0 +1,2861 @@ + cancelWorkflowInvocationAsync(CancelWorkflowInvocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface commitRepositoryChangesAsync(CommitRepositoryChangesRequest $request, array $optionalArgs = []) + * @method PromiseInterface commitWorkspaceChangesAsync(CommitWorkspaceChangesRequest $request, array $optionalArgs = []) + * @method PromiseInterface computeRepositoryAccessTokenStatusAsync(ComputeRepositoryAccessTokenStatusRequest $request, array $optionalArgs = []) + * @method PromiseInterface createCompilationResultAsync(CreateCompilationResultRequest $request, array $optionalArgs = []) + * @method PromiseInterface createFolderAsync(CreateFolderRequest $request, array $optionalArgs = []) + * @method PromiseInterface createReleaseConfigAsync(CreateReleaseConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface createRepositoryAsync(CreateRepositoryRequest $request, array $optionalArgs = []) + * @method PromiseInterface createTeamFolderAsync(CreateTeamFolderRequest $request, array $optionalArgs = []) + * @method PromiseInterface createWorkflowConfigAsync(CreateWorkflowConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface createWorkflowInvocationAsync(CreateWorkflowInvocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface createWorkspaceAsync(CreateWorkspaceRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteFolderAsync(DeleteFolderRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteFolderTreeAsync(DeleteFolderTreeRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteReleaseConfigAsync(DeleteReleaseConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteRepositoryAsync(DeleteRepositoryRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteTeamFolderAsync(DeleteTeamFolderRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteTeamFolderTreeAsync(DeleteTeamFolderTreeRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteWorkflowConfigAsync(DeleteWorkflowConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteWorkflowInvocationAsync(DeleteWorkflowInvocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteWorkspaceAsync(DeleteWorkspaceRequest $request, array $optionalArgs = []) + * @method PromiseInterface fetchFileDiffAsync(FetchFileDiffRequest $request, array $optionalArgs = []) + * @method PromiseInterface fetchFileGitStatusesAsync(FetchFileGitStatusesRequest $request, array $optionalArgs = []) + * @method PromiseInterface fetchGitAheadBehindAsync(FetchGitAheadBehindRequest $request, array $optionalArgs = []) + * @method PromiseInterface fetchRemoteBranchesAsync(FetchRemoteBranchesRequest $request, array $optionalArgs = []) + * @method PromiseInterface fetchRepositoryHistoryAsync(FetchRepositoryHistoryRequest $request, array $optionalArgs = []) + * @method PromiseInterface getCompilationResultAsync(GetCompilationResultRequest $request, array $optionalArgs = []) + * @method PromiseInterface getConfigAsync(GetConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface getFolderAsync(GetFolderRequest $request, array $optionalArgs = []) + * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface getReleaseConfigAsync(GetReleaseConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface getRepositoryAsync(GetRepositoryRequest $request, array $optionalArgs = []) + * @method PromiseInterface getTeamFolderAsync(GetTeamFolderRequest $request, array $optionalArgs = []) + * @method PromiseInterface getWorkflowConfigAsync(GetWorkflowConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface getWorkflowInvocationAsync(GetWorkflowInvocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface getWorkspaceAsync(GetWorkspaceRequest $request, array $optionalArgs = []) + * @method PromiseInterface installNpmPackagesAsync(InstallNpmPackagesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listCompilationResultsAsync(ListCompilationResultsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listReleaseConfigsAsync(ListReleaseConfigsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listRepositoriesAsync(ListRepositoriesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listWorkflowConfigsAsync(ListWorkflowConfigsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listWorkflowInvocationsAsync(ListWorkflowInvocationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listWorkspacesAsync(ListWorkspacesRequest $request, array $optionalArgs = []) + * @method PromiseInterface makeDirectoryAsync(MakeDirectoryRequest $request, array $optionalArgs = []) + * @method PromiseInterface moveDirectoryAsync(MoveDirectoryRequest $request, array $optionalArgs = []) + * @method PromiseInterface moveFileAsync(MoveFileRequest $request, array $optionalArgs = []) + * @method PromiseInterface moveFolderAsync(MoveFolderRequest $request, array $optionalArgs = []) + * @method PromiseInterface moveRepositoryAsync(MoveRepositoryRequest $request, array $optionalArgs = []) + * @method PromiseInterface pullGitCommitsAsync(PullGitCommitsRequest $request, array $optionalArgs = []) + * @method PromiseInterface pushGitCommitsAsync(PushGitCommitsRequest $request, array $optionalArgs = []) + * @method PromiseInterface queryCompilationResultActionsAsync(QueryCompilationResultActionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface queryDirectoryContentsAsync(QueryDirectoryContentsRequest $request, array $optionalArgs = []) + * @method PromiseInterface queryFolderContentsAsync(QueryFolderContentsRequest $request, array $optionalArgs = []) + * @method PromiseInterface queryRepositoryDirectoryContentsAsync(QueryRepositoryDirectoryContentsRequest $request, array $optionalArgs = []) + * @method PromiseInterface queryTeamFolderContentsAsync(QueryTeamFolderContentsRequest $request, array $optionalArgs = []) + * @method PromiseInterface queryUserRootContentsAsync(QueryUserRootContentsRequest $request, array $optionalArgs = []) + * @method PromiseInterface queryWorkflowInvocationActionsAsync(QueryWorkflowInvocationActionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface readFileAsync(ReadFileRequest $request, array $optionalArgs = []) + * @method PromiseInterface readRepositoryFileAsync(ReadRepositoryFileRequest $request, array $optionalArgs = []) + * @method PromiseInterface removeDirectoryAsync(RemoveDirectoryRequest $request, array $optionalArgs = []) + * @method PromiseInterface removeFileAsync(RemoveFileRequest $request, array $optionalArgs = []) + * @method PromiseInterface resetWorkspaceChangesAsync(ResetWorkspaceChangesRequest $request, array $optionalArgs = []) + * @method PromiseInterface searchFilesAsync(SearchFilesRequest $request, array $optionalArgs = []) + * @method PromiseInterface searchTeamFoldersAsync(SearchTeamFoldersRequest $request, array $optionalArgs = []) + * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateConfigAsync(UpdateConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateFolderAsync(UpdateFolderRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateReleaseConfigAsync(UpdateReleaseConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateRepositoryAsync(UpdateRepositoryRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateTeamFolderAsync(UpdateTeamFolderRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateWorkflowConfigAsync(UpdateWorkflowConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface writeFileAsync(WriteFileRequest $request, array $optionalArgs = []) + * @method PromiseInterface cancelOperationAsync(CancelOperationRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteOperationAsync(DeleteOperationRequest $request, array $optionalArgs = []) + * @method PromiseInterface getOperationAsync(GetOperationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listOperationsAsync(ListOperationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) + */ +final class DataformClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.dataform.v1.Dataform'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'dataform.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'dataform.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/bigquery', + 'https://www.googleapis.com/auth/cloud-platform', + ]; + + private $operationsClient; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/dataform_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/dataform_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/dataform_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/dataform_rest_client_config.php', + ], + ], + ]; + } + + /** + * Return an OperationsClient object with the same endpoint as $this. + * + * @return OperationsClient + */ + public function getOperationsClient() + { + return $this->operationsClient; + } + + /** + * Resume an existing long running operation that was previously started by a long + * running API method. If $methodName is not provided, or does not match a long + * running API method, then the operation can still be resumed, but the + * OperationResponse object will not deserialize the final response. + * + * @param string $operationName The name of the long running operation + * @param string $methodName The name of the method used to start the operation + * + * @return OperationResponse + */ + public function resumeOperation($operationName, $methodName = null) + { + $options = $this->descriptors[$methodName]['longRunning'] ?? []; + $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); + $operation->reload(); + return $operation; + } + + /** + * Create the default operation client for the service. + * + * @param array $options ClientOptions for the client. + * + * @return OperationsClient + */ + private function createOperationsClient(array $options) + { + // Unset client-specific configuration options + unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); + + if (isset($options['operationsClient'])) { + return $options['operationsClient']; + } + + return new OperationsClient($options); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * compilation_result resource. + * + * @param string $project + * @param string $location + * @param string $repository + * @param string $compilationResult + * + * @return string The formatted compilation_result resource. + */ + public static function compilationResultName(string $project, string $location, string $repository, string $compilationResult): string + { + return self::getPathTemplate('compilationResult')->render([ + 'project' => $project, + 'location' => $location, + 'repository' => $repository, + 'compilation_result' => $compilationResult, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a config + * resource. + * + * @param string $project + * @param string $location + * + * @return string The formatted config resource. + */ + public static function configName(string $project, string $location): string + { + return self::getPathTemplate('config')->render([ + 'project' => $project, + 'location' => $location, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a crypto_key + * resource. + * + * @param string $project + * @param string $location + * @param string $keyRing + * @param string $cryptoKey + * + * @return string The formatted crypto_key resource. + */ + public static function cryptoKeyName(string $project, string $location, string $keyRing, string $cryptoKey): string + { + return self::getPathTemplate('cryptoKey')->render([ + 'project' => $project, + 'location' => $location, + 'key_ring' => $keyRing, + 'crypto_key' => $cryptoKey, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * crypto_key_version resource. + * + * @param string $project + * @param string $location + * @param string $keyRing + * @param string $cryptoKey + * @param string $cryptoKeyVersion + * + * @return string The formatted crypto_key_version resource. + */ + public static function cryptoKeyVersionName(string $project, string $location, string $keyRing, string $cryptoKey, string $cryptoKeyVersion): string + { + return self::getPathTemplate('cryptoKeyVersion')->render([ + 'project' => $project, + 'location' => $location, + 'key_ring' => $keyRing, + 'crypto_key' => $cryptoKey, + 'crypto_key_version' => $cryptoKeyVersion, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a folder + * resource. + * + * @param string $project + * @param string $location + * @param string $folder + * + * @return string The formatted folder resource. + */ + public static function folderName(string $project, string $location, string $folder): string + { + return self::getPathTemplate('folder')->render([ + 'project' => $project, + 'location' => $location, + 'folder' => $folder, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a location + * resource. + * + * @param string $project + * @param string $location + * + * @return string The formatted location resource. + */ + public static function locationName(string $project, string $location): string + { + return self::getPathTemplate('location')->render([ + 'project' => $project, + 'location' => $location, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * notebook_runtime_template resource. + * + * @param string $project + * @param string $location + * @param string $notebookRuntimeTemplate + * + * @return string The formatted notebook_runtime_template resource. + */ + public static function notebookRuntimeTemplateName(string $project, string $location, string $notebookRuntimeTemplate): string + { + return self::getPathTemplate('notebookRuntimeTemplate')->render([ + 'project' => $project, + 'location' => $location, + 'notebook_runtime_template' => $notebookRuntimeTemplate, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * release_config resource. + * + * @param string $project + * @param string $location + * @param string $repository + * @param string $releaseConfig + * + * @return string The formatted release_config resource. + */ + public static function releaseConfigName(string $project, string $location, string $repository, string $releaseConfig): string + { + return self::getPathTemplate('releaseConfig')->render([ + 'project' => $project, + 'location' => $location, + 'repository' => $repository, + 'release_config' => $releaseConfig, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a repository + * resource. + * + * @param string $project + * @param string $location + * @param string $repository + * + * @return string The formatted repository resource. + */ + public static function repositoryName(string $project, string $location, string $repository): string + { + return self::getPathTemplate('repository')->render([ + 'project' => $project, + 'location' => $location, + 'repository' => $repository, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * secret_version resource. + * + * @param string $project + * @param string $secret + * @param string $version + * + * @return string The formatted secret_version resource. + */ + public static function secretVersionName(string $project, string $secret, string $version): string + { + return self::getPathTemplate('secretVersion')->render([ + 'project' => $project, + 'secret' => $secret, + 'version' => $version, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a team_folder + * resource. + * + * @param string $project + * @param string $location + * @param string $teamFolder + * + * @return string The formatted team_folder resource. + */ + public static function teamFolderName(string $project, string $location, string $teamFolder): string + { + return self::getPathTemplate('teamFolder')->render([ + 'project' => $project, + 'location' => $location, + 'team_folder' => $teamFolder, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * workflow_config resource. + * + * @param string $project + * @param string $location + * @param string $repository + * @param string $workflowConfig + * + * @return string The formatted workflow_config resource. + */ + public static function workflowConfigName(string $project, string $location, string $repository, string $workflowConfig): string + { + return self::getPathTemplate('workflowConfig')->render([ + 'project' => $project, + 'location' => $location, + 'repository' => $repository, + 'workflow_config' => $workflowConfig, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * workflow_invocation resource. + * + * @param string $project + * @param string $location + * @param string $repository + * @param string $workflowInvocation + * + * @return string The formatted workflow_invocation resource. + */ + public static function workflowInvocationName(string $project, string $location, string $repository, string $workflowInvocation): string + { + return self::getPathTemplate('workflowInvocation')->render([ + 'project' => $project, + 'location' => $location, + 'repository' => $repository, + 'workflow_invocation' => $workflowInvocation, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a workspace + * resource. + * + * @param string $project + * @param string $location + * @param string $repository + * @param string $workspace + * + * @return string The formatted workspace resource. + */ + public static function workspaceName(string $project, string $location, string $repository, string $workspace): string + { + return self::getPathTemplate('workspace')->render([ + 'project' => $project, + 'location' => $location, + 'repository' => $repository, + 'workspace' => $workspace, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - compilationResult: projects/{project}/locations/{location}/repositories/{repository}/compilationResults/{compilation_result} + * - config: projects/{project}/locations/{location}/config + * - cryptoKey: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key} + * - cryptoKeyVersion: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version} + * - folder: projects/{project}/locations/{location}/folders/{folder} + * - location: projects/{project}/locations/{location} + * - notebookRuntimeTemplate: projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template} + * - releaseConfig: projects/{project}/locations/{location}/repositories/{repository}/releaseConfigs/{release_config} + * - repository: projects/{project}/locations/{location}/repositories/{repository} + * - secretVersion: projects/{project}/secrets/{secret}/versions/{version} + * - teamFolder: projects/{project}/locations/{location}/teamFolders/{team_folder} + * - workflowConfig: projects/{project}/locations/{location}/repositories/{repository}/workflowConfigs/{workflow_config} + * - workflowInvocation: projects/{project}/locations/{location}/repositories/{repository}/workflowInvocations/{workflow_invocation} + * - workspace: projects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'dataform.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Cloud\Dataform\V1\DataformClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new DataformClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + $this->operationsClient = $this->createOperationsClient($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Requests cancellation of a running WorkflowInvocation. + * + * The async variant is {@see DataformClient::cancelWorkflowInvocationAsync()} . + * + * @example samples/V1/DataformClient/cancel_workflow_invocation.php + * + * @param CancelWorkflowInvocationRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return CancelWorkflowInvocationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function cancelWorkflowInvocation(CancelWorkflowInvocationRequest $request, array $callOptions = []): CancelWorkflowInvocationResponse + { + return $this->startApiCall('CancelWorkflowInvocation', $request, $callOptions)->wait(); + } + + /** + * Applies a Git commit to a Repository. The Repository must not have a value + * for `git_remote_settings.url`. + * + * The async variant is {@see DataformClient::commitRepositoryChangesAsync()} . + * + * @example samples/V1/DataformClient/commit_repository_changes.php + * + * @param CommitRepositoryChangesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return CommitRepositoryChangesResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function commitRepositoryChanges(CommitRepositoryChangesRequest $request, array $callOptions = []): CommitRepositoryChangesResponse + { + return $this->startApiCall('CommitRepositoryChanges', $request, $callOptions)->wait(); + } + + /** + * Applies a Git commit for uncommitted files in a Workspace. + * + * The async variant is {@see DataformClient::commitWorkspaceChangesAsync()} . + * + * @example samples/V1/DataformClient/commit_workspace_changes.php + * + * @param CommitWorkspaceChangesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return CommitWorkspaceChangesResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function commitWorkspaceChanges(CommitWorkspaceChangesRequest $request, array $callOptions = []): CommitWorkspaceChangesResponse + { + return $this->startApiCall('CommitWorkspaceChanges', $request, $callOptions)->wait(); + } + + /** + * Computes a Repository's Git access token status. + * + * The async variant is + * {@see DataformClient::computeRepositoryAccessTokenStatusAsync()} . + * + * @example samples/V1/DataformClient/compute_repository_access_token_status.php + * + * @param ComputeRepositoryAccessTokenStatusRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ComputeRepositoryAccessTokenStatusResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function computeRepositoryAccessTokenStatus(ComputeRepositoryAccessTokenStatusRequest $request, array $callOptions = []): ComputeRepositoryAccessTokenStatusResponse + { + return $this->startApiCall('ComputeRepositoryAccessTokenStatus', $request, $callOptions)->wait(); + } + + /** + * Creates a new CompilationResult in a given project and location. + * + * The async variant is {@see DataformClient::createCompilationResultAsync()} . + * + * @example samples/V1/DataformClient/create_compilation_result.php + * + * @param CreateCompilationResultRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return CompilationResult + * + * @throws ApiException Thrown if the API call fails. + */ + public function createCompilationResult(CreateCompilationResultRequest $request, array $callOptions = []): CompilationResult + { + return $this->startApiCall('CreateCompilationResult', $request, $callOptions)->wait(); + } + + /** + * Creates a new Folder in a given project and location. + * + * The async variant is {@see DataformClient::createFolderAsync()} . + * + * @example samples/V1/DataformClient/create_folder.php + * + * @param CreateFolderRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Folder + * + * @throws ApiException Thrown if the API call fails. + */ + public function createFolder(CreateFolderRequest $request, array $callOptions = []): Folder + { + return $this->startApiCall('CreateFolder', $request, $callOptions)->wait(); + } + + /** + * Creates a new ReleaseConfig in a given Repository. + * + * The async variant is {@see DataformClient::createReleaseConfigAsync()} . + * + * @example samples/V1/DataformClient/create_release_config.php + * + * @param CreateReleaseConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ReleaseConfig + * + * @throws ApiException Thrown if the API call fails. + */ + public function createReleaseConfig(CreateReleaseConfigRequest $request, array $callOptions = []): ReleaseConfig + { + return $this->startApiCall('CreateReleaseConfig', $request, $callOptions)->wait(); + } + + /** + * Creates a new Repository in a given project and location. + * + * The async variant is {@see DataformClient::createRepositoryAsync()} . + * + * @example samples/V1/DataformClient/create_repository.php + * + * @param CreateRepositoryRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Repository + * + * @throws ApiException Thrown if the API call fails. + */ + public function createRepository(CreateRepositoryRequest $request, array $callOptions = []): Repository + { + return $this->startApiCall('CreateRepository', $request, $callOptions)->wait(); + } + + /** + * Creates a new TeamFolder in a given project and location. + * + * The async variant is {@see DataformClient::createTeamFolderAsync()} . + * + * @example samples/V1/DataformClient/create_team_folder.php + * + * @param CreateTeamFolderRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return TeamFolder + * + * @throws ApiException Thrown if the API call fails. + */ + public function createTeamFolder(CreateTeamFolderRequest $request, array $callOptions = []): TeamFolder + { + return $this->startApiCall('CreateTeamFolder', $request, $callOptions)->wait(); + } + + /** + * Creates a new WorkflowConfig in a given Repository. + * + * The async variant is {@see DataformClient::createWorkflowConfigAsync()} . + * + * @example samples/V1/DataformClient/create_workflow_config.php + * + * @param CreateWorkflowConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return WorkflowConfig + * + * @throws ApiException Thrown if the API call fails. + */ + public function createWorkflowConfig(CreateWorkflowConfigRequest $request, array $callOptions = []): WorkflowConfig + { + return $this->startApiCall('CreateWorkflowConfig', $request, $callOptions)->wait(); + } + + /** + * Creates a new WorkflowInvocation in a given Repository. + * + * The async variant is {@see DataformClient::createWorkflowInvocationAsync()} . + * + * @example samples/V1/DataformClient/create_workflow_invocation.php + * + * @param CreateWorkflowInvocationRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return WorkflowInvocation + * + * @throws ApiException Thrown if the API call fails. + */ + public function createWorkflowInvocation(CreateWorkflowInvocationRequest $request, array $callOptions = []): WorkflowInvocation + { + return $this->startApiCall('CreateWorkflowInvocation', $request, $callOptions)->wait(); + } + + /** + * Creates a new Workspace in a given Repository. + * + * The async variant is {@see DataformClient::createWorkspaceAsync()} . + * + * @example samples/V1/DataformClient/create_workspace.php + * + * @param CreateWorkspaceRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Workspace + * + * @throws ApiException Thrown if the API call fails. + */ + public function createWorkspace(CreateWorkspaceRequest $request, array $callOptions = []): Workspace + { + return $this->startApiCall('CreateWorkspace', $request, $callOptions)->wait(); + } + + /** + * Deletes a single Folder. + * + * The async variant is {@see DataformClient::deleteFolderAsync()} . + * + * @example samples/V1/DataformClient/delete_folder.php + * + * @param DeleteFolderRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteFolder(DeleteFolderRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteFolder', $request, $callOptions)->wait(); + } + + /** + * Deletes a Folder with its contents (Folders, Repositories, Workspaces, + * ReleaseConfigs, and WorkflowConfigs). + * + * The async variant is {@see DataformClient::deleteFolderTreeAsync()} . + * + * @example samples/V1/DataformClient/delete_folder_tree.php + * + * @param DeleteFolderTreeRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteFolderTree(DeleteFolderTreeRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('DeleteFolderTree', $request, $callOptions)->wait(); + } + + /** + * Deletes a single ReleaseConfig. + * + * The async variant is {@see DataformClient::deleteReleaseConfigAsync()} . + * + * @example samples/V1/DataformClient/delete_release_config.php + * + * @param DeleteReleaseConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteReleaseConfig(DeleteReleaseConfigRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteReleaseConfig', $request, $callOptions)->wait(); + } + + /** + * Deletes a single Repository. + * + * The async variant is {@see DataformClient::deleteRepositoryAsync()} . + * + * @example samples/V1/DataformClient/delete_repository.php + * + * @param DeleteRepositoryRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteRepository(DeleteRepositoryRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteRepository', $request, $callOptions)->wait(); + } + + /** + * Deletes a single TeamFolder. + * + * The async variant is {@see DataformClient::deleteTeamFolderAsync()} . + * + * @example samples/V1/DataformClient/delete_team_folder.php + * + * @param DeleteTeamFolderRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteTeamFolder(DeleteTeamFolderRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteTeamFolder', $request, $callOptions)->wait(); + } + + /** + * Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces, + * ReleaseConfigs, and WorkflowConfigs). + * + * The async variant is {@see DataformClient::deleteTeamFolderTreeAsync()} . + * + * @example samples/V1/DataformClient/delete_team_folder_tree.php + * + * @param DeleteTeamFolderTreeRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteTeamFolderTree(DeleteTeamFolderTreeRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('DeleteTeamFolderTree', $request, $callOptions)->wait(); + } + + /** + * Deletes a single WorkflowConfig. + * + * The async variant is {@see DataformClient::deleteWorkflowConfigAsync()} . + * + * @example samples/V1/DataformClient/delete_workflow_config.php + * + * @param DeleteWorkflowConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteWorkflowConfig(DeleteWorkflowConfigRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteWorkflowConfig', $request, $callOptions)->wait(); + } + + /** + * Deletes a single WorkflowInvocation. + * + * The async variant is {@see DataformClient::deleteWorkflowInvocationAsync()} . + * + * @example samples/V1/DataformClient/delete_workflow_invocation.php + * + * @param DeleteWorkflowInvocationRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteWorkflowInvocation(DeleteWorkflowInvocationRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteWorkflowInvocation', $request, $callOptions)->wait(); + } + + /** + * Deletes a single Workspace. + * + * The async variant is {@see DataformClient::deleteWorkspaceAsync()} . + * + * @example samples/V1/DataformClient/delete_workspace.php + * + * @param DeleteWorkspaceRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteWorkspace(DeleteWorkspaceRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteWorkspace', $request, $callOptions)->wait(); + } + + /** + * Fetches Git diff for an uncommitted file in a Workspace. + * + * The async variant is {@see DataformClient::fetchFileDiffAsync()} . + * + * @example samples/V1/DataformClient/fetch_file_diff.php + * + * @param FetchFileDiffRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return FetchFileDiffResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function fetchFileDiff(FetchFileDiffRequest $request, array $callOptions = []): FetchFileDiffResponse + { + return $this->startApiCall('FetchFileDiff', $request, $callOptions)->wait(); + } + + /** + * Fetches Git statuses for the files in a Workspace. + * + * The async variant is {@see DataformClient::fetchFileGitStatusesAsync()} . + * + * @example samples/V1/DataformClient/fetch_file_git_statuses.php + * + * @param FetchFileGitStatusesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return FetchFileGitStatusesResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function fetchFileGitStatuses(FetchFileGitStatusesRequest $request, array $callOptions = []): FetchFileGitStatusesResponse + { + return $this->startApiCall('FetchFileGitStatuses', $request, $callOptions)->wait(); + } + + /** + * Fetches Git ahead/behind against a remote branch. + * + * The async variant is {@see DataformClient::fetchGitAheadBehindAsync()} . + * + * @example samples/V1/DataformClient/fetch_git_ahead_behind.php + * + * @param FetchGitAheadBehindRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return FetchGitAheadBehindResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function fetchGitAheadBehind(FetchGitAheadBehindRequest $request, array $callOptions = []): FetchGitAheadBehindResponse + { + return $this->startApiCall('FetchGitAheadBehind', $request, $callOptions)->wait(); + } + + /** + * Fetches a Repository's remote branches. + * + * The async variant is {@see DataformClient::fetchRemoteBranchesAsync()} . + * + * @example samples/V1/DataformClient/fetch_remote_branches.php + * + * @param FetchRemoteBranchesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return FetchRemoteBranchesResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function fetchRemoteBranches(FetchRemoteBranchesRequest $request, array $callOptions = []): FetchRemoteBranchesResponse + { + return $this->startApiCall('FetchRemoteBranches', $request, $callOptions)->wait(); + } + + /** + * Fetches a Repository's history of commits. The Repository must not have a + * value for `git_remote_settings.url`. + * + * The async variant is {@see DataformClient::fetchRepositoryHistoryAsync()} . + * + * @example samples/V1/DataformClient/fetch_repository_history.php + * + * @param FetchRepositoryHistoryRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function fetchRepositoryHistory(FetchRepositoryHistoryRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('FetchRepositoryHistory', $request, $callOptions); + } + + /** + * Fetches a single CompilationResult. + * + * The async variant is {@see DataformClient::getCompilationResultAsync()} . + * + * @example samples/V1/DataformClient/get_compilation_result.php + * + * @param GetCompilationResultRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return CompilationResult + * + * @throws ApiException Thrown if the API call fails. + */ + public function getCompilationResult(GetCompilationResultRequest $request, array $callOptions = []): CompilationResult + { + return $this->startApiCall('GetCompilationResult', $request, $callOptions)->wait(); + } + + /** + * Get default config for a given project and location. + * + * The async variant is {@see DataformClient::getConfigAsync()} . + * + * @example samples/V1/DataformClient/get_config.php + * + * @param GetConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Config + * + * @throws ApiException Thrown if the API call fails. + */ + public function getConfig(GetConfigRequest $request, array $callOptions = []): Config + { + return $this->startApiCall('GetConfig', $request, $callOptions)->wait(); + } + + /** + * Fetches a single Folder. + * + * The async variant is {@see DataformClient::getFolderAsync()} . + * + * @example samples/V1/DataformClient/get_folder.php + * + * @param GetFolderRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Folder + * + * @throws ApiException Thrown if the API call fails. + */ + public function getFolder(GetFolderRequest $request, array $callOptions = []): Folder + { + return $this->startApiCall('GetFolder', $request, $callOptions)->wait(); + } + + /** + * Gets the access control policy for a resource. + * Returns an empty policy if the resource exists and does not have a policy + * set. + * + * The async variant is {@see DataformClient::getIamPolicyAsync()} . + * + * @example samples/V1/DataformClient/get_iam_policy.php + * + * @param GetIamPolicyRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Policy + * + * @throws ApiException Thrown if the API call fails. + */ + public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy + { + return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait(); + } + + /** + * Fetches a single ReleaseConfig. + * + * The async variant is {@see DataformClient::getReleaseConfigAsync()} . + * + * @example samples/V1/DataformClient/get_release_config.php + * + * @param GetReleaseConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ReleaseConfig + * + * @throws ApiException Thrown if the API call fails. + */ + public function getReleaseConfig(GetReleaseConfigRequest $request, array $callOptions = []): ReleaseConfig + { + return $this->startApiCall('GetReleaseConfig', $request, $callOptions)->wait(); + } + + /** + * Fetches a single Repository. + * + * The async variant is {@see DataformClient::getRepositoryAsync()} . + * + * @example samples/V1/DataformClient/get_repository.php + * + * @param GetRepositoryRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Repository + * + * @throws ApiException Thrown if the API call fails. + */ + public function getRepository(GetRepositoryRequest $request, array $callOptions = []): Repository + { + return $this->startApiCall('GetRepository', $request, $callOptions)->wait(); + } + + /** + * Fetches a single TeamFolder. + * + * The async variant is {@see DataformClient::getTeamFolderAsync()} . + * + * @example samples/V1/DataformClient/get_team_folder.php + * + * @param GetTeamFolderRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return TeamFolder + * + * @throws ApiException Thrown if the API call fails. + */ + public function getTeamFolder(GetTeamFolderRequest $request, array $callOptions = []): TeamFolder + { + return $this->startApiCall('GetTeamFolder', $request, $callOptions)->wait(); + } + + /** + * Fetches a single WorkflowConfig. + * + * The async variant is {@see DataformClient::getWorkflowConfigAsync()} . + * + * @example samples/V1/DataformClient/get_workflow_config.php + * + * @param GetWorkflowConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return WorkflowConfig + * + * @throws ApiException Thrown if the API call fails. + */ + public function getWorkflowConfig(GetWorkflowConfigRequest $request, array $callOptions = []): WorkflowConfig + { + return $this->startApiCall('GetWorkflowConfig', $request, $callOptions)->wait(); + } + + /** + * Fetches a single WorkflowInvocation. + * + * The async variant is {@see DataformClient::getWorkflowInvocationAsync()} . + * + * @example samples/V1/DataformClient/get_workflow_invocation.php + * + * @param GetWorkflowInvocationRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return WorkflowInvocation + * + * @throws ApiException Thrown if the API call fails. + */ + public function getWorkflowInvocation(GetWorkflowInvocationRequest $request, array $callOptions = []): WorkflowInvocation + { + return $this->startApiCall('GetWorkflowInvocation', $request, $callOptions)->wait(); + } + + /** + * Fetches a single Workspace. + * + * The async variant is {@see DataformClient::getWorkspaceAsync()} . + * + * @example samples/V1/DataformClient/get_workspace.php + * + * @param GetWorkspaceRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Workspace + * + * @throws ApiException Thrown if the API call fails. + */ + public function getWorkspace(GetWorkspaceRequest $request, array $callOptions = []): Workspace + { + return $this->startApiCall('GetWorkspace', $request, $callOptions)->wait(); + } + + /** + * Installs dependency NPM packages (inside a Workspace). + * + * The async variant is {@see DataformClient::installNpmPackagesAsync()} . + * + * @example samples/V1/DataformClient/install_npm_packages.php + * + * @param InstallNpmPackagesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return InstallNpmPackagesResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function installNpmPackages(InstallNpmPackagesRequest $request, array $callOptions = []): InstallNpmPackagesResponse + { + return $this->startApiCall('InstallNpmPackages', $request, $callOptions)->wait(); + } + + /** + * Lists CompilationResults in a given Repository. + * + * The async variant is {@see DataformClient::listCompilationResultsAsync()} . + * + * @example samples/V1/DataformClient/list_compilation_results.php + * + * @param ListCompilationResultsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listCompilationResults(ListCompilationResultsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListCompilationResults', $request, $callOptions); + } + + /** + * Lists ReleaseConfigs in a given Repository. + * + * The async variant is {@see DataformClient::listReleaseConfigsAsync()} . + * + * @example samples/V1/DataformClient/list_release_configs.php + * + * @param ListReleaseConfigsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listReleaseConfigs(ListReleaseConfigsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListReleaseConfigs', $request, $callOptions); + } + + /** + * 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)*. + * + * The async variant is {@see DataformClient::listRepositoriesAsync()} . + * + * @example samples/V1/DataformClient/list_repositories.php + * + * @param ListRepositoriesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listRepositories(ListRepositoriesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListRepositories', $request, $callOptions); + } + + /** + * Lists WorkflowConfigs in a given Repository. + * + * The async variant is {@see DataformClient::listWorkflowConfigsAsync()} . + * + * @example samples/V1/DataformClient/list_workflow_configs.php + * + * @param ListWorkflowConfigsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listWorkflowConfigs(ListWorkflowConfigsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListWorkflowConfigs', $request, $callOptions); + } + + /** + * Lists WorkflowInvocations in a given Repository. + * + * The async variant is {@see DataformClient::listWorkflowInvocationsAsync()} . + * + * @example samples/V1/DataformClient/list_workflow_invocations.php + * + * @param ListWorkflowInvocationsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listWorkflowInvocations(ListWorkflowInvocationsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListWorkflowInvocations', $request, $callOptions); + } + + /** + * Lists Workspaces in a given Repository. + * + * The async variant is {@see DataformClient::listWorkspacesAsync()} . + * + * @example samples/V1/DataformClient/list_workspaces.php + * + * @param ListWorkspacesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listWorkspaces(ListWorkspacesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListWorkspaces', $request, $callOptions); + } + + /** + * Creates a directory inside a Workspace. + * + * The async variant is {@see DataformClient::makeDirectoryAsync()} . + * + * @example samples/V1/DataformClient/make_directory.php + * + * @param MakeDirectoryRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return MakeDirectoryResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function makeDirectory(MakeDirectoryRequest $request, array $callOptions = []): MakeDirectoryResponse + { + return $this->startApiCall('MakeDirectory', $request, $callOptions)->wait(); + } + + /** + * Moves a directory (inside a Workspace), and all of its contents, to a new + * location. + * + * The async variant is {@see DataformClient::moveDirectoryAsync()} . + * + * @example samples/V1/DataformClient/move_directory.php + * + * @param MoveDirectoryRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return MoveDirectoryResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function moveDirectory(MoveDirectoryRequest $request, array $callOptions = []): MoveDirectoryResponse + { + return $this->startApiCall('MoveDirectory', $request, $callOptions)->wait(); + } + + /** + * Moves a file (inside a Workspace) to a new location. + * + * The async variant is {@see DataformClient::moveFileAsync()} . + * + * @example samples/V1/DataformClient/move_file.php + * + * @param MoveFileRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return MoveFileResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function moveFile(MoveFileRequest $request, array $callOptions = []): MoveFileResponse + { + return $this->startApiCall('MoveFile', $request, $callOptions)->wait(); + } + + /** + * Moves a Folder to a new Folder, TeamFolder, or the root location. + * + * The async variant is {@see DataformClient::moveFolderAsync()} . + * + * @example samples/V1/DataformClient/move_folder.php + * + * @param MoveFolderRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function moveFolder(MoveFolderRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('MoveFolder', $request, $callOptions)->wait(); + } + + /** + * Moves a Repository to a new location. + * + * The async variant is {@see DataformClient::moveRepositoryAsync()} . + * + * @example samples/V1/DataformClient/move_repository.php + * + * @param MoveRepositoryRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function moveRepository(MoveRepositoryRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('MoveRepository', $request, $callOptions)->wait(); + } + + /** + * Pulls Git commits from the Repository's remote into a Workspace. + * + * The async variant is {@see DataformClient::pullGitCommitsAsync()} . + * + * @example samples/V1/DataformClient/pull_git_commits.php + * + * @param PullGitCommitsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PullGitCommitsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function pullGitCommits(PullGitCommitsRequest $request, array $callOptions = []): PullGitCommitsResponse + { + return $this->startApiCall('PullGitCommits', $request, $callOptions)->wait(); + } + + /** + * Pushes Git commits from a Workspace to the Repository's remote. + * + * The async variant is {@see DataformClient::pushGitCommitsAsync()} . + * + * @example samples/V1/DataformClient/push_git_commits.php + * + * @param PushGitCommitsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PushGitCommitsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function pushGitCommits(PushGitCommitsRequest $request, array $callOptions = []): PushGitCommitsResponse + { + return $this->startApiCall('PushGitCommits', $request, $callOptions)->wait(); + } + + /** + * Returns CompilationResultActions in a given CompilationResult. + * + * The async variant is {@see DataformClient::queryCompilationResultActionsAsync()} + * . + * + * @example samples/V1/DataformClient/query_compilation_result_actions.php + * + * @param QueryCompilationResultActionsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function queryCompilationResultActions(QueryCompilationResultActionsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('QueryCompilationResultActions', $request, $callOptions); + } + + /** + * Returns the contents of a given Workspace directory. + * + * The async variant is {@see DataformClient::queryDirectoryContentsAsync()} . + * + * @example samples/V1/DataformClient/query_directory_contents.php + * + * @param QueryDirectoryContentsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function queryDirectoryContents(QueryDirectoryContentsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('QueryDirectoryContents', $request, $callOptions); + } + + /** + * Returns the contents of a given Folder. + * + * The async variant is {@see DataformClient::queryFolderContentsAsync()} . + * + * @example samples/V1/DataformClient/query_folder_contents.php + * + * @param QueryFolderContentsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function queryFolderContents(QueryFolderContentsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('QueryFolderContents', $request, $callOptions); + } + + /** + * Returns the contents of a given Repository directory. The Repository must + * not have a value for `git_remote_settings.url`. + * + * The async variant is + * {@see DataformClient::queryRepositoryDirectoryContentsAsync()} . + * + * @example samples/V1/DataformClient/query_repository_directory_contents.php + * + * @param QueryRepositoryDirectoryContentsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function queryRepositoryDirectoryContents(QueryRepositoryDirectoryContentsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('QueryRepositoryDirectoryContents', $request, $callOptions); + } + + /** + * Returns the contents of a given TeamFolder. + * + * The async variant is {@see DataformClient::queryTeamFolderContentsAsync()} . + * + * @example samples/V1/DataformClient/query_team_folder_contents.php + * + * @param QueryTeamFolderContentsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function queryTeamFolderContents(QueryTeamFolderContentsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('QueryTeamFolderContents', $request, $callOptions); + } + + /** + * 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. + * + * The async variant is {@see DataformClient::queryUserRootContentsAsync()} . + * + * @example samples/V1/DataformClient/query_user_root_contents.php + * + * @param QueryUserRootContentsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function queryUserRootContents(QueryUserRootContentsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('QueryUserRootContents', $request, $callOptions); + } + + /** + * Returns WorkflowInvocationActions in a given WorkflowInvocation. + * + * The async variant is + * {@see DataformClient::queryWorkflowInvocationActionsAsync()} . + * + * @example samples/V1/DataformClient/query_workflow_invocation_actions.php + * + * @param QueryWorkflowInvocationActionsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function queryWorkflowInvocationActions(QueryWorkflowInvocationActionsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('QueryWorkflowInvocationActions', $request, $callOptions); + } + + /** + * Returns the contents of a file (inside a Workspace). + * + * The async variant is {@see DataformClient::readFileAsync()} . + * + * @example samples/V1/DataformClient/read_file.php + * + * @param ReadFileRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ReadFileResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function readFile(ReadFileRequest $request, array $callOptions = []): ReadFileResponse + { + return $this->startApiCall('ReadFile', $request, $callOptions)->wait(); + } + + /** + * Returns the contents of a file (inside a Repository). The Repository + * must not have a value for `git_remote_settings.url`. + * + * The async variant is {@see DataformClient::readRepositoryFileAsync()} . + * + * @example samples/V1/DataformClient/read_repository_file.php + * + * @param ReadRepositoryFileRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ReadRepositoryFileResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function readRepositoryFile(ReadRepositoryFileRequest $request, array $callOptions = []): ReadRepositoryFileResponse + { + return $this->startApiCall('ReadRepositoryFile', $request, $callOptions)->wait(); + } + + /** + * Deletes a directory (inside a Workspace) and all of its contents. + * + * The async variant is {@see DataformClient::removeDirectoryAsync()} . + * + * @example samples/V1/DataformClient/remove_directory.php + * + * @param RemoveDirectoryRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return RemoveDirectoryResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function removeDirectory(RemoveDirectoryRequest $request, array $callOptions = []): RemoveDirectoryResponse + { + return $this->startApiCall('RemoveDirectory', $request, $callOptions)->wait(); + } + + /** + * Deletes a file (inside a Workspace). + * + * The async variant is {@see DataformClient::removeFileAsync()} . + * + * @example samples/V1/DataformClient/remove_file.php + * + * @param RemoveFileRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return RemoveFileResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function removeFile(RemoveFileRequest $request, array $callOptions = []): RemoveFileResponse + { + return $this->startApiCall('RemoveFile', $request, $callOptions)->wait(); + } + + /** + * Performs a Git reset for uncommitted files in a Workspace. + * + * The async variant is {@see DataformClient::resetWorkspaceChangesAsync()} . + * + * @example samples/V1/DataformClient/reset_workspace_changes.php + * + * @param ResetWorkspaceChangesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ResetWorkspaceChangesResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function resetWorkspaceChanges(ResetWorkspaceChangesRequest $request, array $callOptions = []): ResetWorkspaceChangesResponse + { + return $this->startApiCall('ResetWorkspaceChanges', $request, $callOptions)->wait(); + } + + /** + * Finds the contents of a given Workspace directory by filter. + * + * The async variant is {@see DataformClient::searchFilesAsync()} . + * + * @example samples/V1/DataformClient/search_files.php + * + * @param SearchFilesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function searchFiles(SearchFilesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('SearchFiles', $request, $callOptions); + } + + /** + * Returns all TeamFolders in a given location that the caller has access to + * and match the provided filter. + * + * The async variant is {@see DataformClient::searchTeamFoldersAsync()} . + * + * @example samples/V1/DataformClient/search_team_folders.php + * + * @param SearchTeamFoldersRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function searchTeamFolders(SearchTeamFoldersRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('SearchTeamFolders', $request, $callOptions); + } + + /** + * Sets the access control policy on the specified resource. Replaces any + * existing policy. + * + * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * + * The async variant is {@see DataformClient::setIamPolicyAsync()} . + * + * @example samples/V1/DataformClient/set_iam_policy.php + * + * @param SetIamPolicyRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Policy + * + * @throws ApiException Thrown if the API call fails. + */ + public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy + { + return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait(); + } + + /** + * 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. + * + * The async variant is {@see DataformClient::testIamPermissionsAsync()} . + * + * @example samples/V1/DataformClient/test_iam_permissions.php + * + * @param TestIamPermissionsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return TestIamPermissionsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse + { + return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); + } + + /** + * 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.* + * + * The async variant is {@see DataformClient::updateConfigAsync()} . + * + * @example samples/V1/DataformClient/update_config.php + * + * @param UpdateConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Config + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateConfig(UpdateConfigRequest $request, array $callOptions = []): Config + { + return $this->startApiCall('UpdateConfig', $request, $callOptions)->wait(); + } + + /** + * Updates a single Folder. + * + * The async variant is {@see DataformClient::updateFolderAsync()} . + * + * @example samples/V1/DataformClient/update_folder.php + * + * @param UpdateFolderRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Folder + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateFolder(UpdateFolderRequest $request, array $callOptions = []): Folder + { + return $this->startApiCall('UpdateFolder', $request, $callOptions)->wait(); + } + + /** + * 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.* + * + * The async variant is {@see DataformClient::updateReleaseConfigAsync()} . + * + * @example samples/V1/DataformClient/update_release_config.php + * + * @param UpdateReleaseConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ReleaseConfig + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateReleaseConfig(UpdateReleaseConfigRequest $request, array $callOptions = []): ReleaseConfig + { + return $this->startApiCall('UpdateReleaseConfig', $request, $callOptions)->wait(); + } + + /** + * 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.* + * + * The async variant is {@see DataformClient::updateRepositoryAsync()} . + * + * @example samples/V1/DataformClient/update_repository.php + * + * @param UpdateRepositoryRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Repository + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateRepository(UpdateRepositoryRequest $request, array $callOptions = []): Repository + { + return $this->startApiCall('UpdateRepository', $request, $callOptions)->wait(); + } + + /** + * Updates a single TeamFolder. + * + * The async variant is {@see DataformClient::updateTeamFolderAsync()} . + * + * @example samples/V1/DataformClient/update_team_folder.php + * + * @param UpdateTeamFolderRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return TeamFolder + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateTeamFolder(UpdateTeamFolderRequest $request, array $callOptions = []): TeamFolder + { + return $this->startApiCall('UpdateTeamFolder', $request, $callOptions)->wait(); + } + + /** + * 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.* + * + * The async variant is {@see DataformClient::updateWorkflowConfigAsync()} . + * + * @example samples/V1/DataformClient/update_workflow_config.php + * + * @param UpdateWorkflowConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return WorkflowConfig + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateWorkflowConfig(UpdateWorkflowConfigRequest $request, array $callOptions = []): WorkflowConfig + { + return $this->startApiCall('UpdateWorkflowConfig', $request, $callOptions)->wait(); + } + + /** + * Writes to a file (inside a Workspace). + * + * The async variant is {@see DataformClient::writeFileAsync()} . + * + * @example samples/V1/DataformClient/write_file.php + * + * @param WriteFileRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return WriteFileResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function writeFile(WriteFileRequest $request, array $callOptions = []): WriteFileResponse + { + return $this->startApiCall('WriteFile', $request, $callOptions)->wait(); + } + + /** + * 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][google.longrunning.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 [Operation.error][google.longrunning.Operation.error] value with a + * [google.rpc.Status.code][google.rpc.Status.code] of `1`, corresponding to + * `Code.CANCELLED`. + * + * The async variant is {@see DataformClient::cancelOperationAsync()} . + * + * @example samples/V1/DataformClient/cancel_operation.php + * + * @param CancelOperationRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function cancelOperation(CancelOperationRequest $request, array $callOptions = []): void + { + $this->startApiCall('CancelOperation', $request, $callOptions)->wait(); + } + + /** + * 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`. + * + * The async variant is {@see DataformClient::deleteOperationAsync()} . + * + * @example samples/V1/DataformClient/delete_operation.php + * + * @param DeleteOperationRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteOperation(DeleteOperationRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteOperation', $request, $callOptions)->wait(); + } + + /** + * 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. + * + * The async variant is {@see DataformClient::getOperationAsync()} . + * + * @example samples/V1/DataformClient/get_operation.php + * + * @param GetOperationRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Operation + * + * @throws ApiException Thrown if the API call fails. + */ + public function getOperation(GetOperationRequest $request, array $callOptions = []): Operation + { + return $this->startApiCall('GetOperation', $request, $callOptions)->wait(); + } + + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. + * + * The async variant is {@see DataformClient::listOperationsAsync()} . + * + * @example samples/V1/DataformClient/list_operations.php + * + * @param ListOperationsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listOperations(ListOperationsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListOperations', $request, $callOptions); + } + + /** + * Gets information about a location. + * + * The async variant is {@see DataformClient::getLocationAsync()} . + * + * @example samples/V1/DataformClient/get_location.php + * + * @param GetLocationRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Location + * + * @throws ApiException Thrown if the API call fails. + */ + public function getLocation(GetLocationRequest $request, array $callOptions = []): Location + { + return $this->startApiCall('GetLocation', $request, $callOptions)->wait(); + } + + /** + * Lists information about the supported locations for this service. + + This method lists locations based on the resource scope provided in + the [ListLocationsRequest.name] field: + + * **Global locations**: If `name` is empty, the method lists the + public locations available to all projects. * **Project-specific + locations**: If `name` follows the format + `projects/{project}`, the method lists locations visible to that + specific project. This includes public, private, or other + project-specific locations enabled for the project. + + For gRPC and client library implementations, the resource name is + passed as the `name` field. For direct service calls, the resource + name is + incorporated into the request path based on the specific service + implementation and version. + * + * The async variant is {@see DataformClient::listLocationsAsync()} . + * + * @example samples/V1/DataformClient/list_locations.php + * + * @param ListLocationsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListLocations', $request, $callOptions); + } +} diff --git a/owl-bot-staging/Dataform/v1/src/V1/gapic_metadata.json b/owl-bot-staging/Dataform/v1/src/V1/gapic_metadata.json new file mode 100644 index 000000000000..eef79e941f70 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/src/V1/gapic_metadata.json @@ -0,0 +1,413 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", + "language": "php", + "protoPackage": "google.cloud.dataform.v1", + "libraryPackage": "Google\\Cloud\\Dataform\\V1", + "services": { + "Dataform": { + "clients": { + "grpc": { + "libraryClient": "DataformGapicClient", + "rpcs": { + "CancelWorkflowInvocation": { + "methods": [ + "cancelWorkflowInvocation" + ] + }, + "CommitRepositoryChanges": { + "methods": [ + "commitRepositoryChanges" + ] + }, + "CommitWorkspaceChanges": { + "methods": [ + "commitWorkspaceChanges" + ] + }, + "ComputeRepositoryAccessTokenStatus": { + "methods": [ + "computeRepositoryAccessTokenStatus" + ] + }, + "CreateCompilationResult": { + "methods": [ + "createCompilationResult" + ] + }, + "CreateFolder": { + "methods": [ + "createFolder" + ] + }, + "CreateReleaseConfig": { + "methods": [ + "createReleaseConfig" + ] + }, + "CreateRepository": { + "methods": [ + "createRepository" + ] + }, + "CreateTeamFolder": { + "methods": [ + "createTeamFolder" + ] + }, + "CreateWorkflowConfig": { + "methods": [ + "createWorkflowConfig" + ] + }, + "CreateWorkflowInvocation": { + "methods": [ + "createWorkflowInvocation" + ] + }, + "CreateWorkspace": { + "methods": [ + "createWorkspace" + ] + }, + "DeleteFolder": { + "methods": [ + "deleteFolder" + ] + }, + "DeleteFolderTree": { + "methods": [ + "deleteFolderTree" + ] + }, + "DeleteReleaseConfig": { + "methods": [ + "deleteReleaseConfig" + ] + }, + "DeleteRepository": { + "methods": [ + "deleteRepository" + ] + }, + "DeleteTeamFolder": { + "methods": [ + "deleteTeamFolder" + ] + }, + "DeleteTeamFolderTree": { + "methods": [ + "deleteTeamFolderTree" + ] + }, + "DeleteWorkflowConfig": { + "methods": [ + "deleteWorkflowConfig" + ] + }, + "DeleteWorkflowInvocation": { + "methods": [ + "deleteWorkflowInvocation" + ] + }, + "DeleteWorkspace": { + "methods": [ + "deleteWorkspace" + ] + }, + "FetchFileDiff": { + "methods": [ + "fetchFileDiff" + ] + }, + "FetchFileGitStatuses": { + "methods": [ + "fetchFileGitStatuses" + ] + }, + "FetchGitAheadBehind": { + "methods": [ + "fetchGitAheadBehind" + ] + }, + "FetchRemoteBranches": { + "methods": [ + "fetchRemoteBranches" + ] + }, + "FetchRepositoryHistory": { + "methods": [ + "fetchRepositoryHistory" + ] + }, + "GetCompilationResult": { + "methods": [ + "getCompilationResult" + ] + }, + "GetConfig": { + "methods": [ + "getConfig" + ] + }, + "GetFolder": { + "methods": [ + "getFolder" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "GetReleaseConfig": { + "methods": [ + "getReleaseConfig" + ] + }, + "GetRepository": { + "methods": [ + "getRepository" + ] + }, + "GetTeamFolder": { + "methods": [ + "getTeamFolder" + ] + }, + "GetWorkflowConfig": { + "methods": [ + "getWorkflowConfig" + ] + }, + "GetWorkflowInvocation": { + "methods": [ + "getWorkflowInvocation" + ] + }, + "GetWorkspace": { + "methods": [ + "getWorkspace" + ] + }, + "InstallNpmPackages": { + "methods": [ + "installNpmPackages" + ] + }, + "ListCompilationResults": { + "methods": [ + "listCompilationResults" + ] + }, + "ListReleaseConfigs": { + "methods": [ + "listReleaseConfigs" + ] + }, + "ListRepositories": { + "methods": [ + "listRepositories" + ] + }, + "ListWorkflowConfigs": { + "methods": [ + "listWorkflowConfigs" + ] + }, + "ListWorkflowInvocations": { + "methods": [ + "listWorkflowInvocations" + ] + }, + "ListWorkspaces": { + "methods": [ + "listWorkspaces" + ] + }, + "MakeDirectory": { + "methods": [ + "makeDirectory" + ] + }, + "MoveDirectory": { + "methods": [ + "moveDirectory" + ] + }, + "MoveFile": { + "methods": [ + "moveFile" + ] + }, + "MoveFolder": { + "methods": [ + "moveFolder" + ] + }, + "MoveRepository": { + "methods": [ + "moveRepository" + ] + }, + "PullGitCommits": { + "methods": [ + "pullGitCommits" + ] + }, + "PushGitCommits": { + "methods": [ + "pushGitCommits" + ] + }, + "QueryCompilationResultActions": { + "methods": [ + "queryCompilationResultActions" + ] + }, + "QueryDirectoryContents": { + "methods": [ + "queryDirectoryContents" + ] + }, + "QueryFolderContents": { + "methods": [ + "queryFolderContents" + ] + }, + "QueryRepositoryDirectoryContents": { + "methods": [ + "queryRepositoryDirectoryContents" + ] + }, + "QueryTeamFolderContents": { + "methods": [ + "queryTeamFolderContents" + ] + }, + "QueryUserRootContents": { + "methods": [ + "queryUserRootContents" + ] + }, + "QueryWorkflowInvocationActions": { + "methods": [ + "queryWorkflowInvocationActions" + ] + }, + "ReadFile": { + "methods": [ + "readFile" + ] + }, + "ReadRepositoryFile": { + "methods": [ + "readRepositoryFile" + ] + }, + "RemoveDirectory": { + "methods": [ + "removeDirectory" + ] + }, + "RemoveFile": { + "methods": [ + "removeFile" + ] + }, + "ResetWorkspaceChanges": { + "methods": [ + "resetWorkspaceChanges" + ] + }, + "SearchFiles": { + "methods": [ + "searchFiles" + ] + }, + "SearchTeamFolders": { + "methods": [ + "searchTeamFolders" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + }, + "UpdateConfig": { + "methods": [ + "updateConfig" + ] + }, + "UpdateFolder": { + "methods": [ + "updateFolder" + ] + }, + "UpdateReleaseConfig": { + "methods": [ + "updateReleaseConfig" + ] + }, + "UpdateRepository": { + "methods": [ + "updateRepository" + ] + }, + "UpdateTeamFolder": { + "methods": [ + "updateTeamFolder" + ] + }, + "UpdateWorkflowConfig": { + "methods": [ + "updateWorkflowConfig" + ] + }, + "WriteFile": { + "methods": [ + "writeFile" + ] + }, + "CancelOperation": { + "methods": [ + "cancelOperation" + ] + }, + "DeleteOperation": { + "methods": [ + "deleteOperation" + ] + }, + "GetOperation": { + "methods": [ + "getOperation" + ] + }, + "ListOperations": { + "methods": [ + "listOperations" + ] + }, + "GetLocation": { + "methods": [ + "getLocation" + ] + }, + "ListLocations": { + "methods": [ + "listLocations" + ] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/Dataform/v1/src/V1/resources/dataform_client_config.json b/owl-bot-staging/Dataform/v1/src/V1/resources/dataform_client_config.json new file mode 100644 index 000000000000..49882f361ea1 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/src/V1/resources/dataform_client_config.json @@ -0,0 +1,429 @@ +{ + "interfaces": { + "google.cloud.dataform.v1.Dataform": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "UNAVAILABLE" + ] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + }, + "retry_policy_1_params": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 10000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + } + }, + "methods": { + "CancelWorkflowInvocation": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CommitRepositoryChanges": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CommitWorkspaceChanges": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ComputeRepositoryAccessTokenStatus": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CreateCompilationResult": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CreateFolder": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CreateReleaseConfig": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CreateRepository": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CreateTeamFolder": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CreateWorkflowConfig": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CreateWorkflowInvocation": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CreateWorkspace": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "DeleteFolder": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "DeleteFolderTree": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "DeleteReleaseConfig": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "DeleteRepository": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "DeleteTeamFolder": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "DeleteTeamFolderTree": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "DeleteWorkflowConfig": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "DeleteWorkflowInvocation": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "DeleteWorkspace": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "FetchFileDiff": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "FetchFileGitStatuses": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "FetchGitAheadBehind": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "FetchRemoteBranches": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "FetchRepositoryHistory": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetCompilationResult": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetConfig": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetFolder": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetIamPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetReleaseConfig": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetRepository": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetTeamFolder": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetWorkflowConfig": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetWorkflowInvocation": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetWorkspace": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "InstallNpmPackages": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListCompilationResults": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListReleaseConfigs": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListRepositories": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListWorkflowConfigs": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListWorkflowInvocations": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListWorkspaces": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "MakeDirectory": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "MoveDirectory": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "MoveFile": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "MoveFolder": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "MoveRepository": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "PullGitCommits": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "PushGitCommits": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "QueryCompilationResultActions": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "QueryDirectoryContents": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "QueryFolderContents": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "QueryRepositoryDirectoryContents": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "QueryTeamFolderContents": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "QueryUserRootContents": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "QueryWorkflowInvocationActions": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ReadFile": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ReadRepositoryFile": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "RemoveDirectory": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "RemoveFile": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ResetWorkspaceChanges": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "SearchFiles": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "SearchTeamFolders": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "SetIamPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "TestIamPermissions": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "UpdateConfig": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "UpdateFolder": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "UpdateReleaseConfig": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "UpdateRepository": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "UpdateTeamFolder": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "UpdateWorkflowConfig": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "WriteFile": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CancelOperation": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "DeleteOperation": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetOperation": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListOperations": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetLocation": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListLocations": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/Dataform/v1/src/V1/resources/dataform_descriptor_config.php b/owl-bot-staging/Dataform/v1/src/V1/resources/dataform_descriptor_config.php new file mode 100644 index 000000000000..591fde63294a --- /dev/null +++ b/owl-bot-staging/Dataform/v1/src/V1/resources/dataform_descriptor_config.php @@ -0,0 +1,1176 @@ + [ + 'google.cloud.dataform.v1.Dataform' => [ + 'DeleteFolderTree' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\Dataform\V1\DeleteFolderTreeMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteTeamFolderTree' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\Dataform\V1\DeleteFolderTreeMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'MoveFolder' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\Dataform\V1\MoveFolderMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'MoveRepository' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\Dataform\V1\MoveRepositoryMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'CancelWorkflowInvocation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\CancelWorkflowInvocationResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'CommitRepositoryChanges' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\CommitRepositoryChangesResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'CommitWorkspaceChanges' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\CommitWorkspaceChangesResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ComputeRepositoryAccessTokenStatus' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\ComputeRepositoryAccessTokenStatusResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'CreateCompilationResult' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\CompilationResult', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateFolder' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\Folder', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateReleaseConfig' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\ReleaseConfig', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateRepository' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\Repository', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateTeamFolder' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\TeamFolder', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateWorkflowConfig' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\WorkflowConfig', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateWorkflowInvocation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\WorkflowInvocation', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateWorkspace' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\Workspace', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteFolder' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteReleaseConfig' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteRepository' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteTeamFolder' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteWorkflowConfig' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteWorkflowInvocation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteWorkspace' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'FetchFileDiff' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\FetchFileDiffResponse', + 'headerParams' => [ + [ + 'keyName' => 'workspace', + 'fieldAccessors' => [ + 'getWorkspace', + ], + ], + ], + ], + 'FetchFileGitStatuses' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\FetchFileGitStatusesResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'FetchGitAheadBehind' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\FetchGitAheadBehindResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'FetchRemoteBranches' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\FetchRemoteBranchesResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'FetchRepositoryHistory' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getCommits', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\FetchRepositoryHistoryResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetCompilationResult' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\CompilationResult', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetConfig' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\Config', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetFolder' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\Folder', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + ], + 'GetReleaseConfig' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\ReleaseConfig', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetRepository' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\Repository', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetTeamFolder' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\TeamFolder', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetWorkflowConfig' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\WorkflowConfig', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetWorkflowInvocation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\WorkflowInvocation', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetWorkspace' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\Workspace', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'InstallNpmPackages' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\InstallNpmPackagesResponse', + 'headerParams' => [ + [ + 'keyName' => 'workspace', + 'fieldAccessors' => [ + 'getWorkspace', + ], + ], + ], + ], + 'ListCompilationResults' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getCompilationResults', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\ListCompilationResultsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListReleaseConfigs' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getReleaseConfigs', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\ListReleaseConfigsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListRepositories' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getRepositories', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\ListRepositoriesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListWorkflowConfigs' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getWorkflowConfigs', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\ListWorkflowConfigsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListWorkflowInvocations' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getWorkflowInvocations', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\ListWorkflowInvocationsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListWorkspaces' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getWorkspaces', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\ListWorkspacesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'MakeDirectory' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\MakeDirectoryResponse', + 'headerParams' => [ + [ + 'keyName' => 'workspace', + 'fieldAccessors' => [ + 'getWorkspace', + ], + ], + ], + ], + 'MoveDirectory' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\MoveDirectoryResponse', + 'headerParams' => [ + [ + 'keyName' => 'workspace', + 'fieldAccessors' => [ + 'getWorkspace', + ], + ], + ], + ], + 'MoveFile' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\MoveFileResponse', + 'headerParams' => [ + [ + 'keyName' => 'workspace', + 'fieldAccessors' => [ + 'getWorkspace', + ], + ], + ], + ], + 'PullGitCommits' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\PullGitCommitsResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'PushGitCommits' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\PushGitCommitsResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'QueryCompilationResultActions' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getCompilationResultActions', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\QueryCompilationResultActionsResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'QueryDirectoryContents' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getDirectoryEntries', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\QueryDirectoryContentsResponse', + 'headerParams' => [ + [ + 'keyName' => 'workspace', + 'fieldAccessors' => [ + 'getWorkspace', + ], + ], + ], + ], + 'QueryFolderContents' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getEntries', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\QueryFolderContentsResponse', + 'headerParams' => [ + [ + 'keyName' => 'folder', + 'fieldAccessors' => [ + 'getFolder', + ], + ], + ], + ], + 'QueryRepositoryDirectoryContents' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getDirectoryEntries', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\QueryRepositoryDirectoryContentsResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'QueryTeamFolderContents' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getEntries', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\QueryTeamFolderContentsResponse', + 'headerParams' => [ + [ + 'keyName' => 'team_folder', + 'fieldAccessors' => [ + 'getTeamFolder', + ], + ], + ], + ], + 'QueryUserRootContents' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getEntries', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\QueryUserRootContentsResponse', + 'headerParams' => [ + [ + 'keyName' => 'location', + 'fieldAccessors' => [ + 'getLocation', + ], + ], + ], + ], + 'QueryWorkflowInvocationActions' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getWorkflowInvocationActions', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\QueryWorkflowInvocationActionsResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ReadFile' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\ReadFileResponse', + 'headerParams' => [ + [ + 'keyName' => 'workspace', + 'fieldAccessors' => [ + 'getWorkspace', + ], + ], + ], + ], + 'ReadRepositoryFile' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\ReadRepositoryFileResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'RemoveDirectory' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\RemoveDirectoryResponse', + 'headerParams' => [ + [ + 'keyName' => 'workspace', + 'fieldAccessors' => [ + 'getWorkspace', + ], + ], + ], + ], + 'RemoveFile' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\RemoveFileResponse', + 'headerParams' => [ + [ + 'keyName' => 'workspace', + 'fieldAccessors' => [ + 'getWorkspace', + ], + ], + ], + ], + 'ResetWorkspaceChanges' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\ResetWorkspaceChangesResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'SearchFiles' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getSearchResults', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\SearchFilesResponse', + 'headerParams' => [ + [ + 'keyName' => 'workspace', + 'fieldAccessors' => [ + 'getWorkspace', + ], + ], + ], + ], + 'SearchTeamFolders' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getResults', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\SearchTeamFoldersResponse', + 'headerParams' => [ + [ + 'keyName' => 'location', + 'fieldAccessors' => [ + 'getLocation', + ], + ], + ], + ], + 'SetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + ], + 'TestIamPermissions' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + ], + 'UpdateConfig' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\Config', + 'headerParams' => [ + [ + 'keyName' => 'config.name', + 'fieldAccessors' => [ + 'getConfig', + 'getName', + ], + ], + ], + ], + 'UpdateFolder' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\Folder', + 'headerParams' => [ + [ + 'keyName' => 'folder.name', + 'fieldAccessors' => [ + 'getFolder', + 'getName', + ], + ], + ], + ], + 'UpdateReleaseConfig' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\ReleaseConfig', + 'headerParams' => [ + [ + 'keyName' => 'release_config.name', + 'fieldAccessors' => [ + 'getReleaseConfig', + 'getName', + ], + ], + ], + ], + 'UpdateRepository' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\Repository', + 'headerParams' => [ + [ + 'keyName' => 'repository.name', + 'fieldAccessors' => [ + 'getRepository', + 'getName', + ], + ], + ], + ], + 'UpdateTeamFolder' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\TeamFolder', + 'headerParams' => [ + [ + 'keyName' => 'team_folder.name', + 'fieldAccessors' => [ + 'getTeamFolder', + 'getName', + ], + ], + ], + ], + 'UpdateWorkflowConfig' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\WorkflowConfig', + 'headerParams' => [ + [ + 'keyName' => 'workflow_config.name', + 'fieldAccessors' => [ + 'getWorkflowConfig', + 'getName', + ], + ], + ], + ], + 'WriteFile' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\WriteFileResponse', + 'headerParams' => [ + [ + 'keyName' => 'workspace', + 'fieldAccessors' => [ + 'getWorkspace', + ], + ], + ], + ], + 'CancelOperation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + 'interfaceOverride' => 'google.longrunning.Operations', + ], + 'DeleteOperation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + 'interfaceOverride' => 'google.longrunning.Operations', + ], + 'GetOperation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\LongRunning\Operation', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + 'interfaceOverride' => 'google.longrunning.Operations', + ], + 'ListOperations' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getOperations', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\LongRunning\ListOperationsResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + 'interfaceOverride' => 'google.longrunning.Operations', + ], + 'GetLocation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Location\Location', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'ListLocations' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getLocations', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'templateMap' => [ + 'compilationResult' => 'projects/{project}/locations/{location}/repositories/{repository}/compilationResults/{compilation_result}', + 'config' => 'projects/{project}/locations/{location}/config', + 'cryptoKey' => 'projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}', + 'cryptoKeyVersion' => 'projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}', + 'folder' => 'projects/{project}/locations/{location}/folders/{folder}', + 'location' => 'projects/{project}/locations/{location}', + 'notebookRuntimeTemplate' => 'projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}', + 'releaseConfig' => 'projects/{project}/locations/{location}/repositories/{repository}/releaseConfigs/{release_config}', + 'repository' => 'projects/{project}/locations/{location}/repositories/{repository}', + 'secretVersion' => 'projects/{project}/secrets/{secret}/versions/{version}', + 'teamFolder' => 'projects/{project}/locations/{location}/teamFolders/{team_folder}', + 'workflowConfig' => 'projects/{project}/locations/{location}/repositories/{repository}/workflowConfigs/{workflow_config}', + 'workflowInvocation' => 'projects/{project}/locations/{location}/repositories/{repository}/workflowInvocations/{workflow_invocation}', + 'workspace' => 'projects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace}', + ], + ], + ], +]; diff --git a/owl-bot-staging/Dataform/v1/src/V1/resources/dataform_rest_client_config.php b/owl-bot-staging/Dataform/v1/src/V1/resources/dataform_rest_client_config.php new file mode 100644 index 000000000000..88f6b9b415c8 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/src/V1/resources/dataform_rest_client_config.php @@ -0,0 +1,1002 @@ + [ + 'google.cloud.dataform.v1.Dataform' => [ + 'CancelWorkflowInvocation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'CommitRepositoryChanges' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*}:commit', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'CommitWorkspaceChanges' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:commit', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ComputeRepositoryAccessTokenStatus' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*}:computeAccessTokenStatus', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'CreateCompilationResult' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/repositories/*}/compilationResults', + 'body' => 'compilation_result', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateFolder' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/folders', + 'body' => 'folder', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateReleaseConfig' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/repositories/*}/releaseConfigs', + 'body' => 'release_config', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'release_config_id', + ], + ], + 'CreateRepository' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/repositories', + 'body' => 'repository', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'repository_id', + ], + ], + 'CreateTeamFolder' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/teamFolders', + 'body' => 'team_folder', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateWorkflowConfig' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/repositories/*}/workflowConfigs', + 'body' => 'workflow_config', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'workflow_config_id', + ], + ], + 'CreateWorkflowInvocation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/repositories/*}/workflowInvocations', + 'body' => 'workflow_invocation', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateWorkspace' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/repositories/*}/workspaces', + 'body' => 'workspace', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'workspace_id', + ], + ], + 'DeleteFolder' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/folders/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteFolderTree' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/folders/*}:deleteTree', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteReleaseConfig' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/releaseConfigs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteRepository' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteTeamFolder' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/teamFolders/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteTeamFolderTree' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/teamFolders/*}:deleteTree', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteWorkflowConfig' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteWorkflowInvocation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteWorkspace' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'FetchFileDiff' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:fetchFileDiff', + 'placeholders' => [ + 'workspace' => [ + 'getters' => [ + 'getWorkspace', + ], + ], + ], + ], + 'FetchFileGitStatuses' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:fetchFileGitStatuses', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'FetchGitAheadBehind' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:fetchGitAheadBehind', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'FetchRemoteBranches' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*}:fetchRemoteBranches', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'FetchRepositoryHistory' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*}:fetchHistory', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetCompilationResult' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/compilationResults/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetConfig' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/config}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetFolder' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/folders/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetIamPolicy' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/repositories/*}:getIamPolicy', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/folders/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/teamFolders/*}:getIamPolicy', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'GetReleaseConfig' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/releaseConfigs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetRepository' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetTeamFolder' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/teamFolders/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetWorkflowConfig' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetWorkflowInvocation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetWorkspace' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'InstallNpmPackages' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:installNpmPackages', + 'body' => '*', + 'placeholders' => [ + 'workspace' => [ + 'getters' => [ + 'getWorkspace', + ], + ], + ], + ], + 'ListCompilationResults' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/repositories/*}/compilationResults', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListReleaseConfigs' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/repositories/*}/releaseConfigs', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListRepositories' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/repositories', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListWorkflowConfigs' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/repositories/*}/workflowConfigs', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListWorkflowInvocations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/repositories/*}/workflowInvocations', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListWorkspaces' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/repositories/*}/workspaces', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'MakeDirectory' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:makeDirectory', + 'body' => '*', + 'placeholders' => [ + 'workspace' => [ + 'getters' => [ + 'getWorkspace', + ], + ], + ], + ], + 'MoveDirectory' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:moveDirectory', + 'body' => '*', + 'placeholders' => [ + 'workspace' => [ + 'getters' => [ + 'getWorkspace', + ], + ], + ], + ], + 'MoveFile' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:moveFile', + 'body' => '*', + 'placeholders' => [ + 'workspace' => [ + 'getters' => [ + 'getWorkspace', + ], + ], + ], + ], + 'MoveFolder' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/folders/*}:move', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'MoveRepository' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*}:move', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'PullGitCommits' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:pull', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'PushGitCommits' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:push', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'QueryCompilationResultActions' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/compilationResults/*}:query', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'QueryDirectoryContents' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:queryDirectoryContents', + 'placeholders' => [ + 'workspace' => [ + 'getters' => [ + 'getWorkspace', + ], + ], + ], + ], + 'QueryFolderContents' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{folder=projects/*/locations/*/folders/*}:queryFolderContents', + 'placeholders' => [ + 'folder' => [ + 'getters' => [ + 'getFolder', + ], + ], + ], + ], + 'QueryRepositoryDirectoryContents' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*}:queryDirectoryContents', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'QueryTeamFolderContents' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{team_folder=projects/*/locations/*/teamFolders/*}:queryContents', + 'placeholders' => [ + 'team_folder' => [ + 'getters' => [ + 'getTeamFolder', + ], + ], + ], + ], + 'QueryUserRootContents' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{location=projects/*/locations/*}:queryUserRootContents', + 'placeholders' => [ + 'location' => [ + 'getters' => [ + 'getLocation', + ], + ], + ], + ], + 'QueryWorkflowInvocationActions' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}:query', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ReadFile' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:readFile', + 'placeholders' => [ + 'workspace' => [ + 'getters' => [ + 'getWorkspace', + ], + ], + ], + ], + 'ReadRepositoryFile' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*}:readFile', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'RemoveDirectory' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:removeDirectory', + 'body' => '*', + 'placeholders' => [ + 'workspace' => [ + 'getters' => [ + 'getWorkspace', + ], + ], + ], + ], + 'RemoveFile' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:removeFile', + 'body' => '*', + 'placeholders' => [ + 'workspace' => [ + 'getters' => [ + 'getWorkspace', + ], + ], + ], + ], + 'ResetWorkspaceChanges' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:reset', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'SearchFiles' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:searchFiles', + 'placeholders' => [ + 'workspace' => [ + 'getters' => [ + 'getWorkspace', + ], + ], + ], + ], + 'SearchTeamFolders' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{location=projects/*/locations/*}/teamFolders:search', + 'placeholders' => [ + 'location' => [ + 'getters' => [ + 'getLocation', + ], + ], + ], + ], + 'SetIamPolicy' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/repositories/*}:setIamPolicy', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/folders/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/teamFolders/*}:setIamPolicy', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'TestIamPermissions' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/repositories/*}:testIamPermissions', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/folders/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/teamFolders/*}:testIamPermissions', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'UpdateConfig' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{config.name=projects/*/locations/*/config}', + 'body' => 'config', + 'placeholders' => [ + 'config.name' => [ + 'getters' => [ + 'getConfig', + 'getName', + ], + ], + ], + ], + 'UpdateFolder' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{folder.name=projects/*/locations/*/folders/*}', + 'body' => 'folder', + 'placeholders' => [ + 'folder.name' => [ + 'getters' => [ + 'getFolder', + 'getName', + ], + ], + ], + ], + 'UpdateReleaseConfig' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{release_config.name=projects/*/locations/*/repositories/*/releaseConfigs/*}', + 'body' => 'release_config', + 'placeholders' => [ + 'release_config.name' => [ + 'getters' => [ + 'getReleaseConfig', + 'getName', + ], + ], + ], + ], + 'UpdateRepository' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{repository.name=projects/*/locations/*/repositories/*}', + 'body' => 'repository', + 'placeholders' => [ + 'repository.name' => [ + 'getters' => [ + 'getRepository', + 'getName', + ], + ], + ], + ], + 'UpdateTeamFolder' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{team_folder.name=projects/*/locations/*/teamFolders/*}', + 'body' => 'team_folder', + 'placeholders' => [ + 'team_folder.name' => [ + 'getters' => [ + 'getTeamFolder', + 'getName', + ], + ], + ], + ], + 'UpdateWorkflowConfig' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{workflow_config.name=projects/*/locations/*/repositories/*/workflowConfigs/*}', + 'body' => 'workflow_config', + 'placeholders' => [ + 'workflow_config.name' => [ + 'getters' => [ + 'getWorkflowConfig', + 'getName', + ], + ], + ], + ], + 'WriteFile' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:writeFile', + 'body' => '*', + 'placeholders' => [ + 'workspace' => [ + 'getters' => [ + 'getWorkspace', + ], + ], + ], + ], + ], + 'google.cloud.location.Locations' => [ + 'GetLocation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListLocations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*}/locations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/Dataform/v1/tests/Unit/V1/Client/DataformClientTest.php b/owl-bot-staging/Dataform/v1/tests/Unit/V1/Client/DataformClientTest.php new file mode 100644 index 000000000000..7a6f6ce09db6 --- /dev/null +++ b/owl-bot-staging/Dataform/v1/tests/Unit/V1/Client/DataformClientTest.php @@ -0,0 +1,6042 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return DataformClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new DataformClient($options); + } + + /** @test */ + public function cancelWorkflowInvocationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new CancelWorkflowInvocationResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->workflowInvocationName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_INVOCATION]'); + $request = (new CancelWorkflowInvocationRequest()) + ->setName($formattedName); + $response = $gapicClient->cancelWorkflowInvocation($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/CancelWorkflowInvocation', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function cancelWorkflowInvocationExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->workflowInvocationName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_INVOCATION]'); + $request = (new CancelWorkflowInvocationRequest()) + ->setName($formattedName); + try { + $gapicClient->cancelWorkflowInvocation($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function commitRepositoryChangesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $commitSha = 'commitSha1018601892'; + $expectedResponse = new CommitRepositoryChangesResponse(); + $expectedResponse->setCommitSha($commitSha); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $commitMetadata = new CommitMetadata(); + $commitMetadataAuthor = new CommitAuthor(); + $authorName = 'authorName-1501539658'; + $commitMetadataAuthor->setName($authorName); + $authorEmailAddress = 'authorEmailAddress-6398493'; + $commitMetadataAuthor->setEmailAddress($authorEmailAddress); + $commitMetadata->setAuthor($commitMetadataAuthor); + $request = (new CommitRepositoryChangesRequest()) + ->setName($formattedName) + ->setCommitMetadata($commitMetadata); + $response = $gapicClient->commitRepositoryChanges($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/CommitRepositoryChanges', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualRequestObject->getCommitMetadata(); + $this->assertProtobufEquals($commitMetadata, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function commitRepositoryChangesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $commitMetadata = new CommitMetadata(); + $commitMetadataAuthor = new CommitAuthor(); + $authorName = 'authorName-1501539658'; + $commitMetadataAuthor->setName($authorName); + $authorEmailAddress = 'authorEmailAddress-6398493'; + $commitMetadataAuthor->setEmailAddress($authorEmailAddress); + $commitMetadata->setAuthor($commitMetadataAuthor); + $request = (new CommitRepositoryChangesRequest()) + ->setName($formattedName) + ->setCommitMetadata($commitMetadata); + try { + $gapicClient->commitRepositoryChanges($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function commitWorkspaceChangesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new CommitWorkspaceChangesResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $author = new CommitAuthor(); + $authorName = 'authorName-1501539658'; + $author->setName($authorName); + $authorEmailAddress = 'authorEmailAddress-6398493'; + $author->setEmailAddress($authorEmailAddress); + $request = (new CommitWorkspaceChangesRequest()) + ->setName($formattedName) + ->setAuthor($author); + $response = $gapicClient->commitWorkspaceChanges($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/CommitWorkspaceChanges', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualRequestObject->getAuthor(); + $this->assertProtobufEquals($author, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function commitWorkspaceChangesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $author = new CommitAuthor(); + $authorName = 'authorName-1501539658'; + $author->setName($authorName); + $authorEmailAddress = 'authorEmailAddress-6398493'; + $author->setEmailAddress($authorEmailAddress); + $request = (new CommitWorkspaceChangesRequest()) + ->setName($formattedName) + ->setAuthor($author); + try { + $gapicClient->commitWorkspaceChanges($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function computeRepositoryAccessTokenStatusTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new ComputeRepositoryAccessTokenStatusResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new ComputeRepositoryAccessTokenStatusRequest()) + ->setName($formattedName); + $response = $gapicClient->computeRepositoryAccessTokenStatus($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/ComputeRepositoryAccessTokenStatus', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function computeRepositoryAccessTokenStatusExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new ComputeRepositoryAccessTokenStatusRequest()) + ->setName($formattedName); + try { + $gapicClient->computeRepositoryAccessTokenStatus($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createCompilationResultTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $gitCommitish = 'gitCommitish-459981894'; + $name = 'name3373707'; + $resolvedGitCommitSha = 'resolvedGitCommitSha-1974209704'; + $dataformCoreVersion = 'dataformCoreVersion1918089577'; + $internalMetadata = 'internalMetadata-1087755663'; + $expectedResponse = new CompilationResult(); + $expectedResponse->setGitCommitish($gitCommitish); + $expectedResponse->setName($name); + $expectedResponse->setResolvedGitCommitSha($resolvedGitCommitSha); + $expectedResponse->setDataformCoreVersion($dataformCoreVersion); + $expectedResponse->setInternalMetadata($internalMetadata); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $compilationResult = new CompilationResult(); + $request = (new CreateCompilationResultRequest()) + ->setParent($formattedParent) + ->setCompilationResult($compilationResult); + $response = $gapicClient->createCompilationResult($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/CreateCompilationResult', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getCompilationResult(); + $this->assertProtobufEquals($compilationResult, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createCompilationResultExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $compilationResult = new CompilationResult(); + $request = (new CreateCompilationResultRequest()) + ->setParent($formattedParent) + ->setCompilationResult($compilationResult); + try { + $gapicClient->createCompilationResult($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createFolderTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $containingFolder = 'containingFolder2137746239'; + $teamFolderName = 'teamFolderName-1375688486'; + $internalMetadata = 'internalMetadata-1087755663'; + $creatorIamPrincipal = 'creatorIamPrincipal866086897'; + $expectedResponse = new Folder(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setContainingFolder($containingFolder); + $expectedResponse->setTeamFolderName($teamFolderName); + $expectedResponse->setInternalMetadata($internalMetadata); + $expectedResponse->setCreatorIamPrincipal($creatorIamPrincipal); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $folder = new Folder(); + $folderDisplayName = 'folderDisplayName1703145759'; + $folder->setDisplayName($folderDisplayName); + $request = (new CreateFolderRequest()) + ->setParent($formattedParent) + ->setFolder($folder); + $response = $gapicClient->createFolder($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/CreateFolder', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getFolder(); + $this->assertProtobufEquals($folder, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createFolderExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $folder = new Folder(); + $folderDisplayName = 'folderDisplayName1703145759'; + $folder->setDisplayName($folderDisplayName); + $request = (new CreateFolderRequest()) + ->setParent($formattedParent) + ->setFolder($folder); + try { + $gapicClient->createFolder($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createReleaseConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $gitCommitish = 'gitCommitish-459981894'; + $cronSchedule = 'cronSchedule206244136'; + $timeZone = 'timeZone36848094'; + $releaseCompilationResult = 'releaseCompilationResult1831489873'; + $disabled = true; + $internalMetadata = 'internalMetadata-1087755663'; + $expectedResponse = new ReleaseConfig(); + $expectedResponse->setName($name); + $expectedResponse->setGitCommitish($gitCommitish); + $expectedResponse->setCronSchedule($cronSchedule); + $expectedResponse->setTimeZone($timeZone); + $expectedResponse->setReleaseCompilationResult($releaseCompilationResult); + $expectedResponse->setDisabled($disabled); + $expectedResponse->setInternalMetadata($internalMetadata); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $releaseConfig = new ReleaseConfig(); + $releaseConfigGitCommitish = 'releaseConfigGitCommitish1714987262'; + $releaseConfig->setGitCommitish($releaseConfigGitCommitish); + $releaseConfigId = 'releaseConfigId-113371904'; + $request = (new CreateReleaseConfigRequest()) + ->setParent($formattedParent) + ->setReleaseConfig($releaseConfig) + ->setReleaseConfigId($releaseConfigId); + $response = $gapicClient->createReleaseConfig($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/CreateReleaseConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getReleaseConfig(); + $this->assertProtobufEquals($releaseConfig, $actualValue); + $actualValue = $actualRequestObject->getReleaseConfigId(); + $this->assertProtobufEquals($releaseConfigId, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createReleaseConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $releaseConfig = new ReleaseConfig(); + $releaseConfigGitCommitish = 'releaseConfigGitCommitish1714987262'; + $releaseConfig->setGitCommitish($releaseConfigGitCommitish); + $releaseConfigId = 'releaseConfigId-113371904'; + $request = (new CreateReleaseConfigRequest()) + ->setParent($formattedParent) + ->setReleaseConfig($releaseConfig) + ->setReleaseConfigId($releaseConfigId); + try { + $gapicClient->createReleaseConfig($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createRepositoryTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $containingFolder = 'containingFolder2137746239'; + $teamFolderName = 'teamFolderName-1375688486'; + $displayName = 'displayName1615086568'; + $npmrcEnvironmentVariablesSecretVersion = 'npmrcEnvironmentVariablesSecretVersion-2118517056'; + $setAuthenticatedUserAdmin = true; + $serviceAccount = 'serviceAccount-1948028253'; + $kmsKeyName = 'kmsKeyName2094986649'; + $internalMetadata = 'internalMetadata-1087755663'; + $expectedResponse = new Repository(); + $expectedResponse->setName($name); + $expectedResponse->setContainingFolder($containingFolder); + $expectedResponse->setTeamFolderName($teamFolderName); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setNpmrcEnvironmentVariablesSecretVersion($npmrcEnvironmentVariablesSecretVersion); + $expectedResponse->setSetAuthenticatedUserAdmin($setAuthenticatedUserAdmin); + $expectedResponse->setServiceAccount($serviceAccount); + $expectedResponse->setKmsKeyName($kmsKeyName); + $expectedResponse->setInternalMetadata($internalMetadata); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $repository = new Repository(); + $repositoryId = 'repositoryId1101683248'; + $request = (new CreateRepositoryRequest()) + ->setParent($formattedParent) + ->setRepository($repository) + ->setRepositoryId($repositoryId); + $response = $gapicClient->createRepository($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/CreateRepository', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRepository(); + $this->assertProtobufEquals($repository, $actualValue); + $actualValue = $actualRequestObject->getRepositoryId(); + $this->assertProtobufEquals($repositoryId, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createRepositoryExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $repository = new Repository(); + $repositoryId = 'repositoryId1101683248'; + $request = (new CreateRepositoryRequest()) + ->setParent($formattedParent) + ->setRepository($repository) + ->setRepositoryId($repositoryId); + try { + $gapicClient->createRepository($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createTeamFolderTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $internalMetadata = 'internalMetadata-1087755663'; + $creatorIamPrincipal = 'creatorIamPrincipal866086897'; + $expectedResponse = new TeamFolder(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setInternalMetadata($internalMetadata); + $expectedResponse->setCreatorIamPrincipal($creatorIamPrincipal); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $teamFolder = new TeamFolder(); + $teamFolderDisplayName = 'teamFolderDisplayName136139842'; + $teamFolder->setDisplayName($teamFolderDisplayName); + $request = (new CreateTeamFolderRequest()) + ->setParent($formattedParent) + ->setTeamFolder($teamFolder); + $response = $gapicClient->createTeamFolder($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/CreateTeamFolder', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getTeamFolder(); + $this->assertProtobufEquals($teamFolder, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createTeamFolderExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $teamFolder = new TeamFolder(); + $teamFolderDisplayName = 'teamFolderDisplayName136139842'; + $teamFolder->setDisplayName($teamFolderDisplayName); + $request = (new CreateTeamFolderRequest()) + ->setParent($formattedParent) + ->setTeamFolder($teamFolder); + try { + $gapicClient->createTeamFolder($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createWorkflowConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $releaseConfig = 'releaseConfig582587002'; + $cronSchedule = 'cronSchedule206244136'; + $timeZone = 'timeZone36848094'; + $disabled = true; + $internalMetadata = 'internalMetadata-1087755663'; + $expectedResponse = new WorkflowConfig(); + $expectedResponse->setName($name); + $expectedResponse->setReleaseConfig($releaseConfig); + $expectedResponse->setCronSchedule($cronSchedule); + $expectedResponse->setTimeZone($timeZone); + $expectedResponse->setDisabled($disabled); + $expectedResponse->setInternalMetadata($internalMetadata); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $workflowConfig = new WorkflowConfig(); + $workflowConfigReleaseConfig = $gapicClient->releaseConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[RELEASE_CONFIG]'); + $workflowConfig->setReleaseConfig($workflowConfigReleaseConfig); + $workflowConfigId = 'workflowConfigId-60129608'; + $request = (new CreateWorkflowConfigRequest()) + ->setParent($formattedParent) + ->setWorkflowConfig($workflowConfig) + ->setWorkflowConfigId($workflowConfigId); + $response = $gapicClient->createWorkflowConfig($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/CreateWorkflowConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getWorkflowConfig(); + $this->assertProtobufEquals($workflowConfig, $actualValue); + $actualValue = $actualRequestObject->getWorkflowConfigId(); + $this->assertProtobufEquals($workflowConfigId, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createWorkflowConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $workflowConfig = new WorkflowConfig(); + $workflowConfigReleaseConfig = $gapicClient->releaseConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[RELEASE_CONFIG]'); + $workflowConfig->setReleaseConfig($workflowConfigReleaseConfig); + $workflowConfigId = 'workflowConfigId-60129608'; + $request = (new CreateWorkflowConfigRequest()) + ->setParent($formattedParent) + ->setWorkflowConfig($workflowConfig) + ->setWorkflowConfigId($workflowConfigId); + try { + $gapicClient->createWorkflowConfig($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createWorkflowInvocationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $compilationResult = 'compilationResult-2035984871'; + $name = 'name3373707'; + $resolvedCompilationResult = 'resolvedCompilationResult-2110280256'; + $internalMetadata = 'internalMetadata-1087755663'; + $expectedResponse = new WorkflowInvocation(); + $expectedResponse->setCompilationResult($compilationResult); + $expectedResponse->setName($name); + $expectedResponse->setResolvedCompilationResult($resolvedCompilationResult); + $expectedResponse->setInternalMetadata($internalMetadata); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $workflowInvocation = new WorkflowInvocation(); + $request = (new CreateWorkflowInvocationRequest()) + ->setParent($formattedParent) + ->setWorkflowInvocation($workflowInvocation); + $response = $gapicClient->createWorkflowInvocation($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/CreateWorkflowInvocation', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getWorkflowInvocation(); + $this->assertProtobufEquals($workflowInvocation, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createWorkflowInvocationExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $workflowInvocation = new WorkflowInvocation(); + $request = (new CreateWorkflowInvocationRequest()) + ->setParent($formattedParent) + ->setWorkflowInvocation($workflowInvocation); + try { + $gapicClient->createWorkflowInvocation($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createWorkspaceTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $internalMetadata = 'internalMetadata-1087755663'; + $disableMoves = false; + $expectedResponse = new Workspace(); + $expectedResponse->setName($name); + $expectedResponse->setInternalMetadata($internalMetadata); + $expectedResponse->setDisableMoves($disableMoves); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $workspace = new Workspace(); + $workspaceId = 'workspaceId1578483973'; + $request = (new CreateWorkspaceRequest()) + ->setParent($formattedParent) + ->setWorkspace($workspace) + ->setWorkspaceId($workspaceId); + $response = $gapicClient->createWorkspace($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/CreateWorkspace', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getWorkspace(); + $this->assertProtobufEquals($workspace, $actualValue); + $actualValue = $actualRequestObject->getWorkspaceId(); + $this->assertProtobufEquals($workspaceId, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createWorkspaceExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $workspace = new Workspace(); + $workspaceId = 'workspaceId1578483973'; + $request = (new CreateWorkspaceRequest()) + ->setParent($formattedParent) + ->setWorkspace($workspace) + ->setWorkspaceId($workspaceId); + try { + $gapicClient->createWorkspace($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteFolderTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); + $request = (new DeleteFolderRequest()) + ->setName($formattedName); + $gapicClient->deleteFolder($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/DeleteFolder', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteFolderExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); + $request = (new DeleteFolderRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteFolder($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteFolderTreeTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/deleteFolderTreeTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteFolderTreeTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); + $request = (new DeleteFolderTreeRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteFolderTree($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/DeleteFolderTree', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteFolderTreeTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function deleteFolderTreeExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/deleteFolderTreeTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); + $request = (new DeleteFolderTreeRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteFolderTree($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteFolderTreeTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function deleteReleaseConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->releaseConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[RELEASE_CONFIG]'); + $request = (new DeleteReleaseConfigRequest()) + ->setName($formattedName); + $gapicClient->deleteReleaseConfig($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/DeleteReleaseConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteReleaseConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->releaseConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[RELEASE_CONFIG]'); + $request = (new DeleteReleaseConfigRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteReleaseConfig($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteRepositoryTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new DeleteRepositoryRequest()) + ->setName($formattedName); + $gapicClient->deleteRepository($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/DeleteRepository', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteRepositoryExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new DeleteRepositoryRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteRepository($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteTeamFolderTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->teamFolderName('[PROJECT]', '[LOCATION]', '[TEAM_FOLDER]'); + $request = (new DeleteTeamFolderRequest()) + ->setName($formattedName); + $gapicClient->deleteTeamFolder($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/DeleteTeamFolder', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteTeamFolderExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->teamFolderName('[PROJECT]', '[LOCATION]', '[TEAM_FOLDER]'); + $request = (new DeleteTeamFolderRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteTeamFolder($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteTeamFolderTreeTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/deleteTeamFolderTreeTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteTeamFolderTreeTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->teamFolderName('[PROJECT]', '[LOCATION]', '[TEAM_FOLDER]'); + $request = (new DeleteTeamFolderTreeRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteTeamFolderTree($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/DeleteTeamFolderTree', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteTeamFolderTreeTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function deleteTeamFolderTreeExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/deleteTeamFolderTreeTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->teamFolderName('[PROJECT]', '[LOCATION]', '[TEAM_FOLDER]'); + $request = (new DeleteTeamFolderTreeRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteTeamFolderTree($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteTeamFolderTreeTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function deleteWorkflowConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->workflowConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_CONFIG]'); + $request = (new DeleteWorkflowConfigRequest()) + ->setName($formattedName); + $gapicClient->deleteWorkflowConfig($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/DeleteWorkflowConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteWorkflowConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->workflowConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_CONFIG]'); + $request = (new DeleteWorkflowConfigRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteWorkflowConfig($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteWorkflowInvocationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->workflowInvocationName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_INVOCATION]'); + $request = (new DeleteWorkflowInvocationRequest()) + ->setName($formattedName); + $gapicClient->deleteWorkflowInvocation($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/DeleteWorkflowInvocation', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteWorkflowInvocationExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->workflowInvocationName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_INVOCATION]'); + $request = (new DeleteWorkflowInvocationRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteWorkflowInvocation($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteWorkspaceTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new DeleteWorkspaceRequest()) + ->setName($formattedName); + $gapicClient->deleteWorkspace($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/DeleteWorkspace', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteWorkspaceExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new DeleteWorkspaceRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteWorkspace($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function fetchFileDiffTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $formattedDiff = 'formattedDiff-1687410264'; + $expectedResponse = new FetchFileDiffResponse(); + $expectedResponse->setFormattedDiff($formattedDiff); + $transport->addResponse($expectedResponse); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $path = 'path3433509'; + $request = (new FetchFileDiffRequest()) + ->setWorkspace($formattedWorkspace) + ->setPath($path); + $response = $gapicClient->fetchFileDiff($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/FetchFileDiff', $actualFuncCall); + $actualValue = $actualRequestObject->getWorkspace(); + $this->assertProtobufEquals($formattedWorkspace, $actualValue); + $actualValue = $actualRequestObject->getPath(); + $this->assertProtobufEquals($path, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function fetchFileDiffExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $path = 'path3433509'; + $request = (new FetchFileDiffRequest()) + ->setWorkspace($formattedWorkspace) + ->setPath($path); + try { + $gapicClient->fetchFileDiff($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function fetchFileGitStatusesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new FetchFileGitStatusesResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new FetchFileGitStatusesRequest()) + ->setName($formattedName); + $response = $gapicClient->fetchFileGitStatuses($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/FetchFileGitStatuses', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function fetchFileGitStatusesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new FetchFileGitStatusesRequest()) + ->setName($formattedName); + try { + $gapicClient->fetchFileGitStatuses($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function fetchGitAheadBehindTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $commitsAhead = 1216483806; + $commitsBehind = 917751619; + $expectedResponse = new FetchGitAheadBehindResponse(); + $expectedResponse->setCommitsAhead($commitsAhead); + $expectedResponse->setCommitsBehind($commitsBehind); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new FetchGitAheadBehindRequest()) + ->setName($formattedName); + $response = $gapicClient->fetchGitAheadBehind($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/FetchGitAheadBehind', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function fetchGitAheadBehindExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new FetchGitAheadBehindRequest()) + ->setName($formattedName); + try { + $gapicClient->fetchGitAheadBehind($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function fetchRemoteBranchesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new FetchRemoteBranchesResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new FetchRemoteBranchesRequest()) + ->setName($formattedName); + $response = $gapicClient->fetchRemoteBranches($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/FetchRemoteBranches', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function fetchRemoteBranchesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new FetchRemoteBranchesRequest()) + ->setName($formattedName); + try { + $gapicClient->fetchRemoteBranches($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function fetchRepositoryHistoryTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $commitsElement = new CommitLogEntry(); + $commits = [ + $commitsElement, + ]; + $expectedResponse = new FetchRepositoryHistoryResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setCommits($commits); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new FetchRepositoryHistoryRequest()) + ->setName($formattedName); + $response = $gapicClient->fetchRepositoryHistory($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getCommits()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/FetchRepositoryHistory', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function fetchRepositoryHistoryExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new FetchRepositoryHistoryRequest()) + ->setName($formattedName); + try { + $gapicClient->fetchRepositoryHistory($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCompilationResultTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $gitCommitish = 'gitCommitish-459981894'; + $name2 = 'name2-1052831874'; + $resolvedGitCommitSha = 'resolvedGitCommitSha-1974209704'; + $dataformCoreVersion = 'dataformCoreVersion1918089577'; + $internalMetadata = 'internalMetadata-1087755663'; + $expectedResponse = new CompilationResult(); + $expectedResponse->setGitCommitish($gitCommitish); + $expectedResponse->setName($name2); + $expectedResponse->setResolvedGitCommitSha($resolvedGitCommitSha); + $expectedResponse->setDataformCoreVersion($dataformCoreVersion); + $expectedResponse->setInternalMetadata($internalMetadata); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->compilationResultName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[COMPILATION_RESULT]'); + $request = (new GetCompilationResultRequest()) + ->setName($formattedName); + $response = $gapicClient->getCompilationResult($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/GetCompilationResult', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCompilationResultExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->compilationResultName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[COMPILATION_RESULT]'); + $request = (new GetCompilationResultRequest()) + ->setName($formattedName); + try { + $gapicClient->getCompilationResult($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $defaultKmsKeyName = 'defaultKmsKeyName-635012393'; + $internalMetadata = 'internalMetadata-1087755663'; + $expectedResponse = new Config(); + $expectedResponse->setName($name2); + $expectedResponse->setDefaultKmsKeyName($defaultKmsKeyName); + $expectedResponse->setInternalMetadata($internalMetadata); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->configName('[PROJECT]', '[LOCATION]'); + $request = (new GetConfigRequest()) + ->setName($formattedName); + $response = $gapicClient->getConfig($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/GetConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->configName('[PROJECT]', '[LOCATION]'); + $request = (new GetConfigRequest()) + ->setName($formattedName); + try { + $gapicClient->getConfig($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getFolderTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $containingFolder = 'containingFolder2137746239'; + $teamFolderName = 'teamFolderName-1375688486'; + $internalMetadata = 'internalMetadata-1087755663'; + $creatorIamPrincipal = 'creatorIamPrincipal866086897'; + $expectedResponse = new Folder(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setContainingFolder($containingFolder); + $expectedResponse->setTeamFolderName($teamFolderName); + $expectedResponse->setInternalMetadata($internalMetadata); + $expectedResponse->setCreatorIamPrincipal($creatorIamPrincipal); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); + $request = (new GetFolderRequest()) + ->setName($formattedName); + $response = $gapicClient->getFolder($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/GetFolder', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getFolderExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); + $request = (new GetFolderRequest()) + ->setName($formattedName); + try { + $gapicClient->getFolder($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getIamPolicyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $version = 351608024; + $etag = '21'; + $expectedResponse = new Policy(); + $expectedResponse->setVersion($version); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $request = (new GetIamPolicyRequest()) + ->setResource($resource); + $response = $gapicClient->getIamPolicy($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/GetIamPolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getIamPolicyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $resource = 'resource-341064690'; + $request = (new GetIamPolicyRequest()) + ->setResource($resource); + try { + $gapicClient->getIamPolicy($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getReleaseConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $gitCommitish = 'gitCommitish-459981894'; + $cronSchedule = 'cronSchedule206244136'; + $timeZone = 'timeZone36848094'; + $releaseCompilationResult = 'releaseCompilationResult1831489873'; + $disabled = true; + $internalMetadata = 'internalMetadata-1087755663'; + $expectedResponse = new ReleaseConfig(); + $expectedResponse->setName($name2); + $expectedResponse->setGitCommitish($gitCommitish); + $expectedResponse->setCronSchedule($cronSchedule); + $expectedResponse->setTimeZone($timeZone); + $expectedResponse->setReleaseCompilationResult($releaseCompilationResult); + $expectedResponse->setDisabled($disabled); + $expectedResponse->setInternalMetadata($internalMetadata); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->releaseConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[RELEASE_CONFIG]'); + $request = (new GetReleaseConfigRequest()) + ->setName($formattedName); + $response = $gapicClient->getReleaseConfig($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/GetReleaseConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getReleaseConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->releaseConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[RELEASE_CONFIG]'); + $request = (new GetReleaseConfigRequest()) + ->setName($formattedName); + try { + $gapicClient->getReleaseConfig($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getRepositoryTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $containingFolder = 'containingFolder2137746239'; + $teamFolderName = 'teamFolderName-1375688486'; + $displayName = 'displayName1615086568'; + $npmrcEnvironmentVariablesSecretVersion = 'npmrcEnvironmentVariablesSecretVersion-2118517056'; + $setAuthenticatedUserAdmin = true; + $serviceAccount = 'serviceAccount-1948028253'; + $kmsKeyName = 'kmsKeyName2094986649'; + $internalMetadata = 'internalMetadata-1087755663'; + $expectedResponse = new Repository(); + $expectedResponse->setName($name2); + $expectedResponse->setContainingFolder($containingFolder); + $expectedResponse->setTeamFolderName($teamFolderName); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setNpmrcEnvironmentVariablesSecretVersion($npmrcEnvironmentVariablesSecretVersion); + $expectedResponse->setSetAuthenticatedUserAdmin($setAuthenticatedUserAdmin); + $expectedResponse->setServiceAccount($serviceAccount); + $expectedResponse->setKmsKeyName($kmsKeyName); + $expectedResponse->setInternalMetadata($internalMetadata); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new GetRepositoryRequest()) + ->setName($formattedName); + $response = $gapicClient->getRepository($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/GetRepository', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getRepositoryExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new GetRepositoryRequest()) + ->setName($formattedName); + try { + $gapicClient->getRepository($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getTeamFolderTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $internalMetadata = 'internalMetadata-1087755663'; + $creatorIamPrincipal = 'creatorIamPrincipal866086897'; + $expectedResponse = new TeamFolder(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setInternalMetadata($internalMetadata); + $expectedResponse->setCreatorIamPrincipal($creatorIamPrincipal); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->teamFolderName('[PROJECT]', '[LOCATION]', '[TEAM_FOLDER]'); + $request = (new GetTeamFolderRequest()) + ->setName($formattedName); + $response = $gapicClient->getTeamFolder($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/GetTeamFolder', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getTeamFolderExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->teamFolderName('[PROJECT]', '[LOCATION]', '[TEAM_FOLDER]'); + $request = (new GetTeamFolderRequest()) + ->setName($formattedName); + try { + $gapicClient->getTeamFolder($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getWorkflowConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $releaseConfig = 'releaseConfig582587002'; + $cronSchedule = 'cronSchedule206244136'; + $timeZone = 'timeZone36848094'; + $disabled = true; + $internalMetadata = 'internalMetadata-1087755663'; + $expectedResponse = new WorkflowConfig(); + $expectedResponse->setName($name2); + $expectedResponse->setReleaseConfig($releaseConfig); + $expectedResponse->setCronSchedule($cronSchedule); + $expectedResponse->setTimeZone($timeZone); + $expectedResponse->setDisabled($disabled); + $expectedResponse->setInternalMetadata($internalMetadata); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->workflowConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_CONFIG]'); + $request = (new GetWorkflowConfigRequest()) + ->setName($formattedName); + $response = $gapicClient->getWorkflowConfig($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/GetWorkflowConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getWorkflowConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->workflowConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_CONFIG]'); + $request = (new GetWorkflowConfigRequest()) + ->setName($formattedName); + try { + $gapicClient->getWorkflowConfig($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getWorkflowInvocationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $compilationResult = 'compilationResult-2035984871'; + $name2 = 'name2-1052831874'; + $resolvedCompilationResult = 'resolvedCompilationResult-2110280256'; + $internalMetadata = 'internalMetadata-1087755663'; + $expectedResponse = new WorkflowInvocation(); + $expectedResponse->setCompilationResult($compilationResult); + $expectedResponse->setName($name2); + $expectedResponse->setResolvedCompilationResult($resolvedCompilationResult); + $expectedResponse->setInternalMetadata($internalMetadata); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->workflowInvocationName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_INVOCATION]'); + $request = (new GetWorkflowInvocationRequest()) + ->setName($formattedName); + $response = $gapicClient->getWorkflowInvocation($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/GetWorkflowInvocation', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getWorkflowInvocationExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->workflowInvocationName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_INVOCATION]'); + $request = (new GetWorkflowInvocationRequest()) + ->setName($formattedName); + try { + $gapicClient->getWorkflowInvocation($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getWorkspaceTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $internalMetadata = 'internalMetadata-1087755663'; + $disableMoves = false; + $expectedResponse = new Workspace(); + $expectedResponse->setName($name2); + $expectedResponse->setInternalMetadata($internalMetadata); + $expectedResponse->setDisableMoves($disableMoves); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new GetWorkspaceRequest()) + ->setName($formattedName); + $response = $gapicClient->getWorkspace($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/GetWorkspace', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getWorkspaceExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new GetWorkspaceRequest()) + ->setName($formattedName); + try { + $gapicClient->getWorkspace($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function installNpmPackagesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new InstallNpmPackagesResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new InstallNpmPackagesRequest()) + ->setWorkspace($formattedWorkspace); + $response = $gapicClient->installNpmPackages($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/InstallNpmPackages', $actualFuncCall); + $actualValue = $actualRequestObject->getWorkspace(); + $this->assertProtobufEquals($formattedWorkspace, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function installNpmPackagesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new InstallNpmPackagesRequest()) + ->setWorkspace($formattedWorkspace); + try { + $gapicClient->installNpmPackages($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCompilationResultsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $compilationResultsElement = new CompilationResult(); + $compilationResults = [ + $compilationResultsElement, + ]; + $expectedResponse = new ListCompilationResultsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setCompilationResults($compilationResults); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new ListCompilationResultsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listCompilationResults($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getCompilationResults()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/ListCompilationResults', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCompilationResultsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new ListCompilationResultsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listCompilationResults($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listReleaseConfigsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $releaseConfigsElement = new ReleaseConfig(); + $releaseConfigs = [ + $releaseConfigsElement, + ]; + $expectedResponse = new ListReleaseConfigsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setReleaseConfigs($releaseConfigs); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new ListReleaseConfigsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listReleaseConfigs($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getReleaseConfigs()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/ListReleaseConfigs', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listReleaseConfigsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new ListReleaseConfigsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listReleaseConfigs($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listRepositoriesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $repositoriesElement = new Repository(); + $repositories = [ + $repositoriesElement, + ]; + $expectedResponse = new ListRepositoriesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setRepositories($repositories); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListRepositoriesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listRepositories($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getRepositories()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/ListRepositories', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listRepositoriesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListRepositoriesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listRepositories($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listWorkflowConfigsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $workflowConfigsElement = new WorkflowConfig(); + $workflowConfigs = [ + $workflowConfigsElement, + ]; + $expectedResponse = new ListWorkflowConfigsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setWorkflowConfigs($workflowConfigs); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new ListWorkflowConfigsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listWorkflowConfigs($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getWorkflowConfigs()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/ListWorkflowConfigs', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listWorkflowConfigsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new ListWorkflowConfigsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listWorkflowConfigs($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listWorkflowInvocationsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $workflowInvocationsElement = new WorkflowInvocation(); + $workflowInvocations = [ + $workflowInvocationsElement, + ]; + $expectedResponse = new ListWorkflowInvocationsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setWorkflowInvocations($workflowInvocations); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new ListWorkflowInvocationsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listWorkflowInvocations($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getWorkflowInvocations()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/ListWorkflowInvocations', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listWorkflowInvocationsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new ListWorkflowInvocationsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listWorkflowInvocations($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listWorkspacesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $workspacesElement = new Workspace(); + $workspaces = [ + $workspacesElement, + ]; + $expectedResponse = new ListWorkspacesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setWorkspaces($workspaces); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new ListWorkspacesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listWorkspaces($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getWorkspaces()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/ListWorkspaces', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listWorkspacesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new ListWorkspacesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listWorkspaces($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function makeDirectoryTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new MakeDirectoryResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $path = 'path3433509'; + $request = (new MakeDirectoryRequest()) + ->setWorkspace($formattedWorkspace) + ->setPath($path); + $response = $gapicClient->makeDirectory($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/MakeDirectory', $actualFuncCall); + $actualValue = $actualRequestObject->getWorkspace(); + $this->assertProtobufEquals($formattedWorkspace, $actualValue); + $actualValue = $actualRequestObject->getPath(); + $this->assertProtobufEquals($path, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function makeDirectoryExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $path = 'path3433509'; + $request = (new MakeDirectoryRequest()) + ->setWorkspace($formattedWorkspace) + ->setPath($path); + try { + $gapicClient->makeDirectory($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function moveDirectoryTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new MoveDirectoryResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $path = 'path3433509'; + $newPath = 'newPath1377204068'; + $request = (new MoveDirectoryRequest()) + ->setWorkspace($formattedWorkspace) + ->setPath($path) + ->setNewPath($newPath); + $response = $gapicClient->moveDirectory($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/MoveDirectory', $actualFuncCall); + $actualValue = $actualRequestObject->getWorkspace(); + $this->assertProtobufEquals($formattedWorkspace, $actualValue); + $actualValue = $actualRequestObject->getPath(); + $this->assertProtobufEquals($path, $actualValue); + $actualValue = $actualRequestObject->getNewPath(); + $this->assertProtobufEquals($newPath, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function moveDirectoryExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $path = 'path3433509'; + $newPath = 'newPath1377204068'; + $request = (new MoveDirectoryRequest()) + ->setWorkspace($formattedWorkspace) + ->setPath($path) + ->setNewPath($newPath); + try { + $gapicClient->moveDirectory($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function moveFileTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new MoveFileResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $path = 'path3433509'; + $newPath = 'newPath1377204068'; + $request = (new MoveFileRequest()) + ->setWorkspace($formattedWorkspace) + ->setPath($path) + ->setNewPath($newPath); + $response = $gapicClient->moveFile($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/MoveFile', $actualFuncCall); + $actualValue = $actualRequestObject->getWorkspace(); + $this->assertProtobufEquals($formattedWorkspace, $actualValue); + $actualValue = $actualRequestObject->getPath(); + $this->assertProtobufEquals($path, $actualValue); + $actualValue = $actualRequestObject->getNewPath(); + $this->assertProtobufEquals($newPath, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function moveFileExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $path = 'path3433509'; + $newPath = 'newPath1377204068'; + $request = (new MoveFileRequest()) + ->setWorkspace($formattedWorkspace) + ->setPath($path) + ->setNewPath($newPath); + try { + $gapicClient->moveFile($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function moveFolderTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/moveFolderTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/moveFolderTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); + $request = (new MoveFolderRequest()) + ->setName($formattedName); + $response = $gapicClient->moveFolder($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/MoveFolder', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/moveFolderTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function moveFolderExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/moveFolderTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); + $request = (new MoveFolderRequest()) + ->setName($formattedName); + $response = $gapicClient->moveFolder($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/moveFolderTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function moveRepositoryTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/moveRepositoryTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/moveRepositoryTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new MoveRepositoryRequest()) + ->setName($formattedName); + $response = $gapicClient->moveRepository($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/MoveRepository', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/moveRepositoryTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function moveRepositoryExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/moveRepositoryTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new MoveRepositoryRequest()) + ->setName($formattedName); + $response = $gapicClient->moveRepository($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/moveRepositoryTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function pullGitCommitsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new PullGitCommitsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $author = new CommitAuthor(); + $authorName = 'authorName-1501539658'; + $author->setName($authorName); + $authorEmailAddress = 'authorEmailAddress-6398493'; + $author->setEmailAddress($authorEmailAddress); + $request = (new PullGitCommitsRequest()) + ->setName($formattedName) + ->setAuthor($author); + $response = $gapicClient->pullGitCommits($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/PullGitCommits', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualRequestObject->getAuthor(); + $this->assertProtobufEquals($author, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function pullGitCommitsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $author = new CommitAuthor(); + $authorName = 'authorName-1501539658'; + $author->setName($authorName); + $authorEmailAddress = 'authorEmailAddress-6398493'; + $author->setEmailAddress($authorEmailAddress); + $request = (new PullGitCommitsRequest()) + ->setName($formattedName) + ->setAuthor($author); + try { + $gapicClient->pullGitCommits($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function pushGitCommitsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new PushGitCommitsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new PushGitCommitsRequest()) + ->setName($formattedName); + $response = $gapicClient->pushGitCommits($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/PushGitCommits', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function pushGitCommitsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new PushGitCommitsRequest()) + ->setName($formattedName); + try { + $gapicClient->pushGitCommits($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function queryCompilationResultActionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $compilationResultActionsElement = new CompilationResultAction(); + $compilationResultActions = [ + $compilationResultActionsElement, + ]; + $expectedResponse = new QueryCompilationResultActionsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setCompilationResultActions($compilationResultActions); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->compilationResultName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[COMPILATION_RESULT]'); + $request = (new QueryCompilationResultActionsRequest()) + ->setName($formattedName); + $response = $gapicClient->queryCompilationResultActions($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getCompilationResultActions()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/QueryCompilationResultActions', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function queryCompilationResultActionsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->compilationResultName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[COMPILATION_RESULT]'); + $request = (new QueryCompilationResultActionsRequest()) + ->setName($formattedName); + try { + $gapicClient->queryCompilationResultActions($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function queryDirectoryContentsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $directoryEntriesElement = new DirectoryEntry(); + $directoryEntries = [ + $directoryEntriesElement, + ]; + $expectedResponse = new QueryDirectoryContentsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setDirectoryEntries($directoryEntries); + $transport->addResponse($expectedResponse); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new QueryDirectoryContentsRequest()) + ->setWorkspace($formattedWorkspace); + $response = $gapicClient->queryDirectoryContents($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getDirectoryEntries()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/QueryDirectoryContents', $actualFuncCall); + $actualValue = $actualRequestObject->getWorkspace(); + $this->assertProtobufEquals($formattedWorkspace, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function queryDirectoryContentsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new QueryDirectoryContentsRequest()) + ->setWorkspace($formattedWorkspace); + try { + $gapicClient->queryDirectoryContents($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function queryFolderContentsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $entriesElement = new FolderContentsEntry(); + $entries = [ + $entriesElement, + ]; + $expectedResponse = new QueryFolderContentsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setEntries($entries); + $transport->addResponse($expectedResponse); + // Mock request + $formattedFolder = $gapicClient->folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); + $request = (new QueryFolderContentsRequest()) + ->setFolder($formattedFolder); + $response = $gapicClient->queryFolderContents($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getEntries()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/QueryFolderContents', $actualFuncCall); + $actualValue = $actualRequestObject->getFolder(); + $this->assertProtobufEquals($formattedFolder, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function queryFolderContentsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedFolder = $gapicClient->folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); + $request = (new QueryFolderContentsRequest()) + ->setFolder($formattedFolder); + try { + $gapicClient->queryFolderContents($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function queryRepositoryDirectoryContentsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $directoryEntriesElement = new DirectoryEntry(); + $directoryEntries = [ + $directoryEntriesElement, + ]; + $expectedResponse = new QueryRepositoryDirectoryContentsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setDirectoryEntries($directoryEntries); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new QueryRepositoryDirectoryContentsRequest()) + ->setName($formattedName); + $response = $gapicClient->queryRepositoryDirectoryContents($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getDirectoryEntries()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/QueryRepositoryDirectoryContents', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function queryRepositoryDirectoryContentsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new QueryRepositoryDirectoryContentsRequest()) + ->setName($formattedName); + try { + $gapicClient->queryRepositoryDirectoryContents($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function queryTeamFolderContentsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $entriesElement = new TeamFolderContentsEntry(); + $entries = [ + $entriesElement, + ]; + $expectedResponse = new QueryTeamFolderContentsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setEntries($entries); + $transport->addResponse($expectedResponse); + // Mock request + $formattedTeamFolder = $gapicClient->teamFolderName('[PROJECT]', '[LOCATION]', '[TEAM_FOLDER]'); + $request = (new QueryTeamFolderContentsRequest()) + ->setTeamFolder($formattedTeamFolder); + $response = $gapicClient->queryTeamFolderContents($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getEntries()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/QueryTeamFolderContents', $actualFuncCall); + $actualValue = $actualRequestObject->getTeamFolder(); + $this->assertProtobufEquals($formattedTeamFolder, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function queryTeamFolderContentsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedTeamFolder = $gapicClient->teamFolderName('[PROJECT]', '[LOCATION]', '[TEAM_FOLDER]'); + $request = (new QueryTeamFolderContentsRequest()) + ->setTeamFolder($formattedTeamFolder); + try { + $gapicClient->queryTeamFolderContents($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function queryUserRootContentsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $entriesElement = new RootContentsEntry(); + $entries = [ + $entriesElement, + ]; + $expectedResponse = new QueryUserRootContentsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setEntries($entries); + $transport->addResponse($expectedResponse); + // Mock request + $formattedLocation = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new QueryUserRootContentsRequest()) + ->setLocation($formattedLocation); + $response = $gapicClient->queryUserRootContents($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getEntries()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/QueryUserRootContents', $actualFuncCall); + $actualValue = $actualRequestObject->getLocation(); + $this->assertProtobufEquals($formattedLocation, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function queryUserRootContentsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedLocation = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new QueryUserRootContentsRequest()) + ->setLocation($formattedLocation); + try { + $gapicClient->queryUserRootContents($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function queryWorkflowInvocationActionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $workflowInvocationActionsElement = new WorkflowInvocationAction(); + $workflowInvocationActions = [ + $workflowInvocationActionsElement, + ]; + $expectedResponse = new QueryWorkflowInvocationActionsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setWorkflowInvocationActions($workflowInvocationActions); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->workflowInvocationName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_INVOCATION]'); + $request = (new QueryWorkflowInvocationActionsRequest()) + ->setName($formattedName); + $response = $gapicClient->queryWorkflowInvocationActions($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getWorkflowInvocationActions()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/QueryWorkflowInvocationActions', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function queryWorkflowInvocationActionsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->workflowInvocationName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_INVOCATION]'); + $request = (new QueryWorkflowInvocationActionsRequest()) + ->setName($formattedName); + try { + $gapicClient->queryWorkflowInvocationActions($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function readFileTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $fileContents = '125'; + $expectedResponse = new ReadFileResponse(); + $expectedResponse->setFileContents($fileContents); + $transport->addResponse($expectedResponse); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $path = 'path3433509'; + $request = (new ReadFileRequest()) + ->setWorkspace($formattedWorkspace) + ->setPath($path); + $response = $gapicClient->readFile($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/ReadFile', $actualFuncCall); + $actualValue = $actualRequestObject->getWorkspace(); + $this->assertProtobufEquals($formattedWorkspace, $actualValue); + $actualValue = $actualRequestObject->getPath(); + $this->assertProtobufEquals($path, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function readFileExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $path = 'path3433509'; + $request = (new ReadFileRequest()) + ->setWorkspace($formattedWorkspace) + ->setPath($path); + try { + $gapicClient->readFile($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function readRepositoryFileTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $contents = '26'; + $expectedResponse = new ReadRepositoryFileResponse(); + $expectedResponse->setContents($contents); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $path = 'path3433509'; + $request = (new ReadRepositoryFileRequest()) + ->setName($formattedName) + ->setPath($path); + $response = $gapicClient->readRepositoryFile($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/ReadRepositoryFile', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualRequestObject->getPath(); + $this->assertProtobufEquals($path, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function readRepositoryFileExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $path = 'path3433509'; + $request = (new ReadRepositoryFileRequest()) + ->setName($formattedName) + ->setPath($path); + try { + $gapicClient->readRepositoryFile($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function removeDirectoryTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new RemoveDirectoryResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $path = 'path3433509'; + $request = (new RemoveDirectoryRequest()) + ->setWorkspace($formattedWorkspace) + ->setPath($path); + $response = $gapicClient->removeDirectory($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/RemoveDirectory', $actualFuncCall); + $actualValue = $actualRequestObject->getWorkspace(); + $this->assertProtobufEquals($formattedWorkspace, $actualValue); + $actualValue = $actualRequestObject->getPath(); + $this->assertProtobufEquals($path, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function removeDirectoryExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $path = 'path3433509'; + $request = (new RemoveDirectoryRequest()) + ->setWorkspace($formattedWorkspace) + ->setPath($path); + try { + $gapicClient->removeDirectory($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function removeFileTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new RemoveFileResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $path = 'path3433509'; + $request = (new RemoveFileRequest()) + ->setWorkspace($formattedWorkspace) + ->setPath($path); + $response = $gapicClient->removeFile($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/RemoveFile', $actualFuncCall); + $actualValue = $actualRequestObject->getWorkspace(); + $this->assertProtobufEquals($formattedWorkspace, $actualValue); + $actualValue = $actualRequestObject->getPath(); + $this->assertProtobufEquals($path, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function removeFileExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $path = 'path3433509'; + $request = (new RemoveFileRequest()) + ->setWorkspace($formattedWorkspace) + ->setPath($path); + try { + $gapicClient->removeFile($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function resetWorkspaceChangesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new ResetWorkspaceChangesResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new ResetWorkspaceChangesRequest()) + ->setName($formattedName); + $response = $gapicClient->resetWorkspaceChanges($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/ResetWorkspaceChanges', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function resetWorkspaceChangesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new ResetWorkspaceChangesRequest()) + ->setName($formattedName); + try { + $gapicClient->resetWorkspaceChanges($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function searchFilesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $searchResultsElement = new SearchResult(); + $searchResults = [ + $searchResultsElement, + ]; + $expectedResponse = new SearchFilesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setSearchResults($searchResults); + $transport->addResponse($expectedResponse); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new SearchFilesRequest()) + ->setWorkspace($formattedWorkspace); + $response = $gapicClient->searchFiles($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getSearchResults()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/SearchFiles', $actualFuncCall); + $actualValue = $actualRequestObject->getWorkspace(); + $this->assertProtobufEquals($formattedWorkspace, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function searchFilesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new SearchFilesRequest()) + ->setWorkspace($formattedWorkspace); + try { + $gapicClient->searchFiles($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function searchTeamFoldersTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $resultsElement = new TeamFolderSearchResult(); + $results = [ + $resultsElement, + ]; + $expectedResponse = new SearchTeamFoldersResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setResults($results); + $transport->addResponse($expectedResponse); + // Mock request + $formattedLocation = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new SearchTeamFoldersRequest()) + ->setLocation($formattedLocation); + $response = $gapicClient->searchTeamFolders($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getResults()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/SearchTeamFolders', $actualFuncCall); + $actualValue = $actualRequestObject->getLocation(); + $this->assertProtobufEquals($formattedLocation, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function searchTeamFoldersExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedLocation = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new SearchTeamFoldersRequest()) + ->setLocation($formattedLocation); + try { + $gapicClient->searchTeamFolders($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setIamPolicyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $version = 351608024; + $etag = '21'; + $expectedResponse = new Policy(); + $expectedResponse->setVersion($version); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $policy = new Policy(); + $request = (new SetIamPolicyRequest()) + ->setResource($resource) + ->setPolicy($policy); + $response = $gapicClient->setIamPolicy($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/SetIamPolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $actualValue = $actualRequestObject->getPolicy(); + $this->assertProtobufEquals($policy, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setIamPolicyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $resource = 'resource-341064690'; + $policy = new Policy(); + $request = (new SetIamPolicyRequest()) + ->setResource($resource) + ->setPolicy($policy); + try { + $gapicClient->setIamPolicy($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function testIamPermissionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new TestIamPermissionsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $permissions = []; + $request = (new TestIamPermissionsRequest()) + ->setResource($resource) + ->setPermissions($permissions); + $response = $gapicClient->testIamPermissions($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/TestIamPermissions', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $actualValue = $actualRequestObject->getPermissions(); + $this->assertProtobufEquals($permissions, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function testIamPermissionsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $resource = 'resource-341064690'; + $permissions = []; + $request = (new TestIamPermissionsRequest()) + ->setResource($resource) + ->setPermissions($permissions); + try { + $gapicClient->testIamPermissions($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $defaultKmsKeyName = 'defaultKmsKeyName-635012393'; + $internalMetadata = 'internalMetadata-1087755663'; + $expectedResponse = new Config(); + $expectedResponse->setName($name); + $expectedResponse->setDefaultKmsKeyName($defaultKmsKeyName); + $expectedResponse->setInternalMetadata($internalMetadata); + $transport->addResponse($expectedResponse); + // Mock request + $config = new Config(); + $request = (new UpdateConfigRequest()) + ->setConfig($config); + $response = $gapicClient->updateConfig($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/UpdateConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getConfig(); + $this->assertProtobufEquals($config, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $config = new Config(); + $request = (new UpdateConfigRequest()) + ->setConfig($config); + try { + $gapicClient->updateConfig($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateFolderTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $containingFolder = 'containingFolder2137746239'; + $teamFolderName = 'teamFolderName-1375688486'; + $internalMetadata = 'internalMetadata-1087755663'; + $creatorIamPrincipal = 'creatorIamPrincipal866086897'; + $expectedResponse = new Folder(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setContainingFolder($containingFolder); + $expectedResponse->setTeamFolderName($teamFolderName); + $expectedResponse->setInternalMetadata($internalMetadata); + $expectedResponse->setCreatorIamPrincipal($creatorIamPrincipal); + $transport->addResponse($expectedResponse); + // Mock request + $folder = new Folder(); + $folderDisplayName = 'folderDisplayName1703145759'; + $folder->setDisplayName($folderDisplayName); + $request = (new UpdateFolderRequest()) + ->setFolder($folder); + $response = $gapicClient->updateFolder($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/UpdateFolder', $actualFuncCall); + $actualValue = $actualRequestObject->getFolder(); + $this->assertProtobufEquals($folder, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateFolderExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $folder = new Folder(); + $folderDisplayName = 'folderDisplayName1703145759'; + $folder->setDisplayName($folderDisplayName); + $request = (new UpdateFolderRequest()) + ->setFolder($folder); + try { + $gapicClient->updateFolder($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateReleaseConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $gitCommitish = 'gitCommitish-459981894'; + $cronSchedule = 'cronSchedule206244136'; + $timeZone = 'timeZone36848094'; + $releaseCompilationResult = 'releaseCompilationResult1831489873'; + $disabled = true; + $internalMetadata = 'internalMetadata-1087755663'; + $expectedResponse = new ReleaseConfig(); + $expectedResponse->setName($name); + $expectedResponse->setGitCommitish($gitCommitish); + $expectedResponse->setCronSchedule($cronSchedule); + $expectedResponse->setTimeZone($timeZone); + $expectedResponse->setReleaseCompilationResult($releaseCompilationResult); + $expectedResponse->setDisabled($disabled); + $expectedResponse->setInternalMetadata($internalMetadata); + $transport->addResponse($expectedResponse); + // Mock request + $releaseConfig = new ReleaseConfig(); + $releaseConfigGitCommitish = 'releaseConfigGitCommitish1714987262'; + $releaseConfig->setGitCommitish($releaseConfigGitCommitish); + $request = (new UpdateReleaseConfigRequest()) + ->setReleaseConfig($releaseConfig); + $response = $gapicClient->updateReleaseConfig($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/UpdateReleaseConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getReleaseConfig(); + $this->assertProtobufEquals($releaseConfig, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateReleaseConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $releaseConfig = new ReleaseConfig(); + $releaseConfigGitCommitish = 'releaseConfigGitCommitish1714987262'; + $releaseConfig->setGitCommitish($releaseConfigGitCommitish); + $request = (new UpdateReleaseConfigRequest()) + ->setReleaseConfig($releaseConfig); + try { + $gapicClient->updateReleaseConfig($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateRepositoryTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $containingFolder = 'containingFolder2137746239'; + $teamFolderName = 'teamFolderName-1375688486'; + $displayName = 'displayName1615086568'; + $npmrcEnvironmentVariablesSecretVersion = 'npmrcEnvironmentVariablesSecretVersion-2118517056'; + $setAuthenticatedUserAdmin = true; + $serviceAccount = 'serviceAccount-1948028253'; + $kmsKeyName = 'kmsKeyName2094986649'; + $internalMetadata = 'internalMetadata-1087755663'; + $expectedResponse = new Repository(); + $expectedResponse->setName($name); + $expectedResponse->setContainingFolder($containingFolder); + $expectedResponse->setTeamFolderName($teamFolderName); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setNpmrcEnvironmentVariablesSecretVersion($npmrcEnvironmentVariablesSecretVersion); + $expectedResponse->setSetAuthenticatedUserAdmin($setAuthenticatedUserAdmin); + $expectedResponse->setServiceAccount($serviceAccount); + $expectedResponse->setKmsKeyName($kmsKeyName); + $expectedResponse->setInternalMetadata($internalMetadata); + $transport->addResponse($expectedResponse); + // Mock request + $repository = new Repository(); + $request = (new UpdateRepositoryRequest()) + ->setRepository($repository); + $response = $gapicClient->updateRepository($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/UpdateRepository', $actualFuncCall); + $actualValue = $actualRequestObject->getRepository(); + $this->assertProtobufEquals($repository, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateRepositoryExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $repository = new Repository(); + $request = (new UpdateRepositoryRequest()) + ->setRepository($repository); + try { + $gapicClient->updateRepository($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateTeamFolderTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $internalMetadata = 'internalMetadata-1087755663'; + $creatorIamPrincipal = 'creatorIamPrincipal866086897'; + $expectedResponse = new TeamFolder(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setInternalMetadata($internalMetadata); + $expectedResponse->setCreatorIamPrincipal($creatorIamPrincipal); + $transport->addResponse($expectedResponse); + // Mock request + $teamFolder = new TeamFolder(); + $teamFolderDisplayName = 'teamFolderDisplayName136139842'; + $teamFolder->setDisplayName($teamFolderDisplayName); + $request = (new UpdateTeamFolderRequest()) + ->setTeamFolder($teamFolder); + $response = $gapicClient->updateTeamFolder($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/UpdateTeamFolder', $actualFuncCall); + $actualValue = $actualRequestObject->getTeamFolder(); + $this->assertProtobufEquals($teamFolder, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateTeamFolderExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $teamFolder = new TeamFolder(); + $teamFolderDisplayName = 'teamFolderDisplayName136139842'; + $teamFolder->setDisplayName($teamFolderDisplayName); + $request = (new UpdateTeamFolderRequest()) + ->setTeamFolder($teamFolder); + try { + $gapicClient->updateTeamFolder($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateWorkflowConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $releaseConfig = 'releaseConfig582587002'; + $cronSchedule = 'cronSchedule206244136'; + $timeZone = 'timeZone36848094'; + $disabled = true; + $internalMetadata = 'internalMetadata-1087755663'; + $expectedResponse = new WorkflowConfig(); + $expectedResponse->setName($name); + $expectedResponse->setReleaseConfig($releaseConfig); + $expectedResponse->setCronSchedule($cronSchedule); + $expectedResponse->setTimeZone($timeZone); + $expectedResponse->setDisabled($disabled); + $expectedResponse->setInternalMetadata($internalMetadata); + $transport->addResponse($expectedResponse); + // Mock request + $workflowConfig = new WorkflowConfig(); + $workflowConfigReleaseConfig = $gapicClient->releaseConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[RELEASE_CONFIG]'); + $workflowConfig->setReleaseConfig($workflowConfigReleaseConfig); + $request = (new UpdateWorkflowConfigRequest()) + ->setWorkflowConfig($workflowConfig); + $response = $gapicClient->updateWorkflowConfig($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/UpdateWorkflowConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getWorkflowConfig(); + $this->assertProtobufEquals($workflowConfig, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateWorkflowConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $workflowConfig = new WorkflowConfig(); + $workflowConfigReleaseConfig = $gapicClient->releaseConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[RELEASE_CONFIG]'); + $workflowConfig->setReleaseConfig($workflowConfigReleaseConfig); + $request = (new UpdateWorkflowConfigRequest()) + ->setWorkflowConfig($workflowConfig); + try { + $gapicClient->updateWorkflowConfig($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function writeFileTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new WriteFileResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $path = 'path3433509'; + $contents = '26'; + $request = (new WriteFileRequest()) + ->setWorkspace($formattedWorkspace) + ->setPath($path) + ->setContents($contents); + $response = $gapicClient->writeFile($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/WriteFile', $actualFuncCall); + $actualValue = $actualRequestObject->getWorkspace(); + $this->assertProtobufEquals($formattedWorkspace, $actualValue); + $actualValue = $actualRequestObject->getPath(); + $this->assertProtobufEquals($path, $actualValue); + $actualValue = $actualRequestObject->getContents(); + $this->assertProtobufEquals($contents, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function writeFileExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $path = 'path3433509'; + $contents = '26'; + $request = (new WriteFileRequest()) + ->setWorkspace($formattedWorkspace) + ->setPath($path) + ->setContents($contents); + try { + $gapicClient->writeFile($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function cancelOperationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $name = 'name3373707'; + $request = (new CancelOperationRequest()) + ->setName($name); + $gapicClient->cancelOperation($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/CancelOperation', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($name, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function cancelOperationExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $name = 'name3373707'; + $request = (new CancelOperationRequest()) + ->setName($name); + try { + $gapicClient->cancelOperation($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteOperationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $name = 'name3373707'; + $request = (new DeleteOperationRequest()) + ->setName($name); + $gapicClient->deleteOperation($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/DeleteOperation', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($name, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteOperationExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $name = 'name3373707'; + $request = (new DeleteOperationRequest()) + ->setName($name); + try { + $gapicClient->deleteOperation($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getOperationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $done = true; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setDone($done); + $transport->addResponse($expectedResponse); + // Mock request + $name = 'name3373707'; + $request = (new GetOperationRequest()) + ->setName($name); + $response = $gapicClient->getOperation($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($name, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getOperationExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $name = 'name3373707'; + $request = (new GetOperationRequest()) + ->setName($name); + try { + $gapicClient->getOperation($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listOperationsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $operationsElement = new Operation(); + $operations = [ + $operationsElement, + ]; + $expectedResponse = new ListOperationsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setOperations($operations); + $transport->addResponse($expectedResponse); + // Mock request + $name = 'name3373707'; + $filter = 'filter-1274492040'; + $request = (new ListOperationsRequest()) + ->setName($name) + ->setFilter($filter); + $response = $gapicClient->listOperations($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getOperations()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/ListOperations', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($name, $actualValue); + $actualValue = $actualRequestObject->getFilter(); + $this->assertProtobufEquals($filter, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listOperationsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $name = 'name3373707'; + $filter = 'filter-1274492040'; + $request = (new ListOperationsRequest()) + ->setName($name) + ->setFilter($filter); + try { + $gapicClient->listOperations($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getLocationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $locationId = 'locationId552319461'; + $displayName = 'displayName1615086568'; + $expectedResponse = new Location(); + $expectedResponse->setName($name2); + $expectedResponse->setLocationId($locationId); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + $request = new GetLocationRequest(); + $response = $gapicClient->getLocation($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.location.Locations/GetLocation', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getLocationExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new GetLocationRequest(); + try { + $gapicClient->getLocation($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listLocationsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $locationsElement = new Location(); + $locations = [ + $locationsElement, + ]; + $expectedResponse = new ListLocationsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setLocations($locations); + $transport->addResponse($expectedResponse); + $request = new ListLocationsRequest(); + $response = $gapicClient->listLocations($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listLocationsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new ListLocationsRequest(); + try { + $gapicClient->listLocations($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function cancelWorkflowInvocationAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new CancelWorkflowInvocationResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->workflowInvocationName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_INVOCATION]'); + $request = (new CancelWorkflowInvocationRequest()) + ->setName($formattedName); + $response = $gapicClient->cancelWorkflowInvocationAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/CancelWorkflowInvocation', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/GPBMetadata/Google/Cloud/Dataform/V1Beta1/Dataform.php b/owl-bot-staging/Dataform/v1beta1/proto/src/GPBMetadata/Google/Cloud/Dataform/V1Beta1/Dataform.php new file mode 100644 index 000000000000..7cf6d0bfc40e --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/GPBMetadata/Google/Cloud/Dataform/V1Beta1/Dataform.php @@ -0,0 +1,36 @@ +internalAddGeneratedFile( + "\x0A\xED\xFC\x02\x0A,google/cloud/dataform/v1beta1/dataform.proto\x12\x1Dgoogle.cloud.dataform.v1beta1\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\x0A\x13DataEncryptionState\x12N\x0A\x14kms_key_version_name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(cloudkms.googleapis.com/CryptoKeyVersion\"\xB0\x0E\x0A\x0ARepository\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12#\x0A\x11containing_folder\x18\x10 \x01(\x09B\x03\xE0A\x01H\x00\x88\x01\x01\x12\"\x0A\x10team_folder_name\x18\x12 \x01(\x09B\x03\xE0A\x03H\x01\x88\x01\x01\x124\x0A\x0Bcreate_time\x18\x0D \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x19\x0A\x0Cdisplay_name\x18\x08 \x01(\x09B\x03\xE0A\x01\x12]\x0A\x13git_remote_settings\x18\x02 \x01(\x0B2;.google.cloud.dataform.v1beta1.Repository.GitRemoteSettingsB\x03\xE0A\x01\x12f\x0A*npmrc_environment_variables_secret_version\x18\x03 \x01(\x09B2\xE0A\x01\xFAA,\x0A*secretmanager.googleapis.com/SecretVersion\x12u\x0A\x1Fworkspace_compilation_overrides\x18\x04 \x01(\x0B2G.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverridesB\x03\xE0A\x01\x12J\x0A\x06labels\x18\x05 \x03(\x0B25.google.cloud.dataform.v1beta1.Repository.LabelsEntryB\x03\xE0A\x01\x12,\x0A\x1Cset_authenticated_user_admin\x18\x09 \x01(\x08B\x06\xE0A\x01\xE0A\x04\x12\x1C\x0A\x0Fservice_account\x18\x0A \x01(\x09B\x03\xE0A\x01\x12?\x0A\x0Ckms_key_name\x18\x0B \x01(\x09B)\xE0A\x01\xFAA#\x0A!cloudkms.googleapis.com/CryptoKey\x12V\x0A\x15data_encryption_state\x18\x0C \x01(\x0B22.google.cloud.dataform.v1beta1.DataEncryptionStateB\x03\xE0A\x03\x12#\x0A\x11internal_metadata\x18\x0F \x01(\x09B\x03\xE0A\x03H\x02\x88\x01\x01\x1A\xF1\x04\x0A\x11GitRemoteSettings\x12\x10\x0A\x03url\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x1B\x0A\x0Edefault_branch\x18\x02 \x01(\x09B\x03\xE0A\x02\x12_\x0A#authentication_token_secret_version\x18\x03 \x01(\x09B2\xE0A\x01\xFAA,\x0A*secretmanager.googleapis.com/SecretVersion\x12{\x0A\x19ssh_authentication_config\x18\x05 \x01(\x0B2S.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfigB\x03\xE0A\x01\x12d\x0A\x0Ctoken_status\x18\x04 \x01(\x0E2G.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatusB\x05\x18\x01\xE0A\x03\x1A\x94\x01\x0A\x17SshAuthenticationConfig\x12[\x0A\x1Fuser_private_key_secret_version\x18\x01 \x01(\x09B2\xE0A\x02\xFAA,\x0A*secretmanager.googleapis.com/SecretVersion\x12\x1C\x0A\x0Fhost_public_key\x18\x02 \x01(\x09B\x03\xE0A\x02\"R\x0A\x0BTokenStatus\x12\x1C\x0A\x18TOKEN_STATUS_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09NOT_FOUND\x10\x01\x12\x0B\x0A\x07INVALID\x10\x02\x12\x09\x0A\x05VALID\x10\x03\x1Au\x0A\x1DWorkspaceCompilationOverrides\x12\x1D\x0A\x10default_database\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Dschema_suffix\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Ctable_prefix\x18\x03 \x01(\x09B\x03\xE0A\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:\x85\x01\xEAA\x81\x01\x0A\"dataform.googleapis.com/Repository\x12Aprojects/{project}/locations/{location}/repositories/{repository}*\x0Crepositories2\x0ArepositoryB\x14\x0A\x12_containing_folderB\x13\x0A\x11_team_folder_nameB\x14\x0A\x12_internal_metadata\"3\x0A\x17PrivateResourceMetadata\x12\x18\x0A\x0Buser_scoped\x18\x01 \x01(\x08B\x03\xE0A\x03\"\xB1\x01\x0A\x17ListRepositoriesRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\x89\x01\x0A\x18ListRepositoriesResponse\x12?\x0A\x0Crepositories\x18\x01 \x03(\x0B2).google.cloud.dataform.v1beta1.Repository\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x13\x0A\x0Bunreachable\x18\x03 \x03(\x09\"\xA4\x01\x0A\x15MoveRepositoryRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12/\x0A\x1Ddestination_containing_folder\x18\x02 \x01(\x09B\x03\xE0A\x01H\x00\x88\x01\x01B \x0A\x1E_destination_containing_folder\"P\x0A\x14GetRepositoryRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\"\xB4\x01\x0A\x17CreateRepositoryRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12B\x0A\x0Arepository\x18\x02 \x01(\x0B2).google.cloud.dataform.v1beta1.RepositoryB\x03\xE0A\x02\x12\x1A\x0A\x0Drepository_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"\x93\x01\x0A\x17UpdateRepositoryRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12B\x0A\x0Arepository\x18\x02 \x01(\x0B2).google.cloud.dataform.v1beta1.RepositoryB\x03\xE0A\x02\"g\x0A\x17DeleteRepositoryRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x12\x0A\x05force\x18\x02 \x01(\x08B\x03\xE0A\x01\"\xEC\x05\x0A\x1ECommitRepositoryChangesRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12K\x0A\x0Fcommit_metadata\x18\x02 \x01(\x0B2-.google.cloud.dataform.v1beta1.CommitMetadataB\x03\xE0A\x02\x12%\x0A\x18required_head_commit_sha\x18\x04 \x01(\x09B\x03\xE0A\x01\x12o\x0A\x0Ffile_operations\x18\x03 \x03(\x0B2Q.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperationsEntryB\x03\xE0A\x01\x1A\xA5\x02\x0A\x0DFileOperation\x12k\x0A\x0Awrite_file\x18\x01 \x01(\x0B2U.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFileH\x00\x12m\x0A\x0Bdelete_file\x18\x02 \x01(\x0B2V.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFileH\x00\x1A\x1D\x0A\x09WriteFile\x12\x10\x0A\x08contents\x18\x01 \x01(\x0C\x1A\x0C\x0A\x0ADeleteFileB\x0B\x0A\x09operation\x1A\x82\x01\x0A\x13FileOperationsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12Z\x0A\x05value\x18\x02 \x01(\x0B2K.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation:\x028\x01\"5\x0A\x1FCommitRepositoryChangesResponse\x12\x12\x0A\x0Acommit_sha\x18\x01 \x01(\x09\"\x81\x01\x0A\x19ReadRepositoryFileRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x17\x0A\x0Acommit_sha\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04path\x18\x03 \x01(\x09B\x03\xE0A\x02\".\x0A\x1AReadRepositoryFileResponse\x12\x10\x0A\x08contents\x18\x01 \x01(\x0C\"\xC0\x01\x0A'QueryRepositoryDirectoryContentsRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x17\x0A\x0Acommit_sha\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04path\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09page_size\x18\x04 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x05 \x01(\x09B\x03\xE0A\x01\"\x8D\x01\x0A(QueryRepositoryDirectoryContentsResponse\x12H\x0A\x11directory_entries\x18\x01 \x03(\x0B2-.google.cloud.dataform.v1beta1.DirectoryEntry\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x8A\x01\x0A\x1DFetchRepositoryHistoryRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x05 \x01(\x09B\x03\xE0A\x01\"y\x0A\x1EFetchRepositoryHistoryResponse\x12>\x0A\x07commits\x18\x01 \x03(\x0B2-.google.cloud.dataform.v1beta1.CommitLogEntry\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xAA\x01\x0A\x0ECommitLogEntry\x12/\x0A\x0Bcommit_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x12\x0A\x0Acommit_sha\x18\x02 \x01(\x09\x12;\x0A\x06author\x18\x03 \x01(\x0B2+.google.cloud.dataform.v1beta1.CommitAuthor\x12\x16\x0A\x0Ecommit_message\x18\x04 \x01(\x09\"o\x0A\x0ECommitMetadata\x12@\x0A\x06author\x18\x01 \x01(\x0B2+.google.cloud.dataform.v1beta1.CommitAuthorB\x03\xE0A\x02\x12\x1B\x0A\x0Ecommit_message\x18\x02 \x01(\x09B\x03\xE0A\x01\"e\x0A)ComputeRepositoryAccessTokenStatusRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\"\xED\x01\x0A*ComputeRepositoryAccessTokenStatusResponse\x12k\x0A\x0Ctoken_status\x18\x01 \x01(\x0E2U.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus\"R\x0A\x0BTokenStatus\x12\x1C\x0A\x18TOKEN_STATUS_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09NOT_FOUND\x10\x01\x12\x0B\x0A\x07INVALID\x10\x02\x12\x09\x0A\x05VALID\x10\x03\"V\x0A\x1AFetchRemoteBranchesRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\"/\x0A\x1BFetchRemoteBranchesResponse\x12\x10\x0A\x08branches\x18\x01 \x03(\x09\"\x95\x04\x0A\x09Workspace\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12V\x0A\x15data_encryption_state\x18\x02 \x01(\x0B22.google.cloud.dataform.v1beta1.DataEncryptionStateB\x03\xE0A\x03\x12#\x0A\x11internal_metadata\x18\x05 \x01(\x09B\x03\xE0A\x03H\x00\x88\x01\x01\x12\x1F\x0A\x0Ddisable_moves\x18\x06 \x01(\x08B\x03\xE0A\x01H\x01\x88\x01\x01\x12^\x0A\x19private_resource_metadata\x18\x08 \x01(\x0B26.google.cloud.dataform.v1beta1.PrivateResourceMetadataB\x03\xE0A\x03:\x98\x01\xEAA\x94\x01\x0A!dataform.googleapis.com/Workspace\x12Xprojects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace}*\x0Aworkspaces2\x09workspaceB\x14\x0A\x12_internal_metadataB\x10\x0A\x0E_disable_moves\"\xB0\x01\x0A\x15ListWorkspacesRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\x84\x01\x0A\x16ListWorkspacesResponse\x12<\x0A\x0Aworkspaces\x18\x01 \x03(\x0B2(.google.cloud.dataform.v1beta1.Workspace\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x13\x0A\x0Bunreachable\x18\x03 \x03(\x09\"N\x0A\x13GetWorkspaceRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\"\xB1\x01\x0A\x16CreateWorkspaceRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12@\x0A\x09workspace\x18\x02 \x01(\x0B2(.google.cloud.dataform.v1beta1.WorkspaceB\x03\xE0A\x02\x12\x19\x0A\x0Cworkspace_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"Q\x0A\x16DeleteWorkspaceRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\"=\x0A\x0CCommitAuthor\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x1A\x0A\x0Demail_address\x18\x02 \x01(\x09B\x03\xE0A\x02\"\xAE\x01\x0A\x15PullGitCommitsRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x1A\x0A\x0Dremote_branch\x18\x02 \x01(\x09B\x03\xE0A\x01\x12@\x0A\x06author\x18\x03 \x01(\x0B2+.google.cloud.dataform.v1beta1.CommitAuthorB\x03\xE0A\x02\"\x18\x0A\x16PullGitCommitsResponse\"l\x0A\x15PushGitCommitsRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x1A\x0A\x0Dremote_branch\x18\x02 \x01(\x09B\x03\xE0A\x01\"\x18\x0A\x16PushGitCommitsResponse\"V\x0A\x1BFetchFileGitStatusesRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\"\x81\x03\x0A\x1CFetchFileGitStatusesResponse\x12s\x0A\x18uncommitted_file_changes\x18\x01 \x03(\x0B2Q.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange\x1A\xEB\x01\x0A\x15UncommittedFileChange\x12\x0C\x0A\x04path\x18\x01 \x01(\x09\x12k\x0A\x05state\x18\x02 \x01(\x0E2W.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.StateB\x03\xE0A\x03\"W\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05ADDED\x10\x01\x12\x0B\x0A\x07DELETED\x10\x02\x12\x0C\x0A\x08MODIFIED\x10\x03\x12\x11\x0A\x0DHAS_CONFLICTS\x10\x04\"q\x0A\x1AFetchGitAheadBehindRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x1A\x0A\x0Dremote_branch\x18\x02 \x01(\x09B\x03\xE0A\x01\"L\x0A\x1BFetchGitAheadBehindResponse\x12\x15\x0A\x0Dcommits_ahead\x18\x01 \x01(\x05\x12\x16\x0A\x0Ecommits_behind\x18\x02 \x01(\x05\"\xCB\x01\x0A\x1DCommitWorkspaceChangesRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12@\x0A\x06author\x18\x04 \x01(\x0B2+.google.cloud.dataform.v1beta1.CommitAuthorB\x03\xE0A\x02\x12\x1B\x0A\x0Ecommit_message\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x12\x0A\x05paths\x18\x03 \x03(\x09B\x03\xE0A\x01\" \x0A\x1ECommitWorkspaceChangesResponse\"\x7F\x0A\x1CResetWorkspaceChangesRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x12\x0A\x05paths\x18\x02 \x03(\x09B\x03\xE0A\x01\x12\x12\x0A\x05clean\x18\x03 \x01(\x08B\x03\xE0A\x01\"\x1F\x0A\x1DResetWorkspaceChangesResponse\"g\x0A\x14FetchFileDiffRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\"/\x0A\x15FetchFileDiffResponse\x12\x16\x0A\x0Eformatted_diff\x18\x01 \x01(\x09\"\xA1\x01\x0A\x1DQueryDirectoryContentsRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09page_size\x18\x03 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x04 \x01(\x09B\x03\xE0A\x01\"\x83\x01\x0A\x1EQueryDirectoryContentsResponse\x12H\x0A\x11directory_entries\x18\x01 \x03(\x0B2-.google.cloud.dataform.v1beta1.DirectoryEntry\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\">\x0A\x0EDirectoryEntry\x12\x0E\x0A\x04file\x18\x01 \x01(\x09H\x00\x12\x13\x0A\x09directory\x18\x02 \x01(\x09H\x00B\x07\x0A\x05entry\"\x98\x01\x0A\x12SearchFilesRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\"x\x0A\x13SearchFilesResponse\x12C\x0A\x0Esearch_results\x18\x01 \x03(\x0B2+.google.cloud.dataform.v1beta1.SearchResult\x12\x1C\x0A\x0Fnext_page_token\x18\x02 \x01(\x09B\x03\xE0A\x01\"\xA3\x01\x0A\x0CSearchResult\x12?\x0A\x04file\x18\x01 \x01(\x0B2/.google.cloud.dataform.v1beta1.FileSearchResultH\x00\x12I\x0A\x09directory\x18\x02 \x01(\x0B24.google.cloud.dataform.v1beta1.DirectorySearchResultH\x00B\x07\x0A\x05entry\" \x0A\x10FileSearchResult\x12\x0C\x0A\x04path\x18\x01 \x01(\x09\"%\x0A\x15DirectorySearchResult\x12\x0C\x0A\x04path\x18\x01 \x01(\x09\"g\x0A\x14MakeDirectoryRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\"\x17\x0A\x15MakeDirectoryResponse\"i\x0A\x16RemoveDirectoryRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\"\x19\x0A\x17RemoveDirectoryResponse\"~\x0A\x14MoveDirectoryRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08new_path\x18\x03 \x01(\x09B\x03\xE0A\x02\"\x17\x0A\x15MoveDirectoryResponse\"y\x0A\x0FReadFileRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08revision\x18\x03 \x01(\x09B\x03\xE0A\x01\")\x0A\x10ReadFileResponse\x12\x15\x0A\x0Dfile_contents\x18\x01 \x01(\x0C\"d\x0A\x11RemoveFileRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\"\x14\x0A\x12RemoveFileResponse\"y\x0A\x0FMoveFileRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08new_path\x18\x03 \x01(\x09B\x03\xE0A\x02\"\x12\x0A\x10MoveFileResponse\"z\x0A\x10WriteFileRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08contents\x18\x03 \x01(\x0CB\x03\xE0A\x02\"\x13\x0A\x11WriteFileResponse\"Y\x0A\x19InstallNpmPackagesRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\"\x1C\x0A\x1AInstallNpmPackagesResponse\"\xF1\x06\x0A\x0DReleaseConfig\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x1A\x0A\x0Dgit_commitish\x18\x02 \x01(\x09B\x03\xE0A\x02\x12Z\x0A\x17code_compilation_config\x18\x03 \x01(\x0B24.google.cloud.dataform.v1beta1.CodeCompilationConfigB\x03\xE0A\x01\x12\x1A\x0A\x0Dcron_schedule\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09time_zone\x18\x07 \x01(\x09B\x03\xE0A\x01\x12r\x0A recent_scheduled_release_records\x18\x05 \x03(\x0B2C.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecordB\x03\xE0A\x03\x12U\x0A\x1Arelease_compilation_result\x18\x06 \x01(\x09B1\xE0A\x01\xFAA+\x0A)dataform.googleapis.com/CompilationResult\x12\x15\x0A\x08disabled\x18\x08 \x01(\x08B\x03\xE0A\x01\x12#\x0A\x11internal_metadata\x18\x09 \x01(\x09B\x03\xE0A\x03H\x00\x88\x01\x01\x1A\xD3\x01\x0A\x16ScheduledReleaseRecord\x12L\x0A\x12compilation_result\x18\x02 \x01(\x09B.\xFAA+\x0A)dataform.googleapis.com/CompilationResultH\x00\x12*\x0A\x0Cerror_status\x18\x03 \x01(\x0B2\x12.google.rpc.StatusH\x00\x125\x0A\x0Crelease_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03B\x08\x0A\x06result:\xAD\x01\xEAA\xA9\x01\x0A%dataform.googleapis.com/ReleaseConfig\x12aprojects/{project}/locations/{location}/repositories/{repository}/releaseConfigs/{release_config}*\x0EreleaseConfigs2\x0DreleaseConfigB\x14\x0A\x12_internal_metadata\"\x88\x01\x0A\x19ListReleaseConfigsRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"\x91\x01\x0A\x1AListReleaseConfigsResponse\x12E\x0A\x0Frelease_configs\x18\x01 \x03(\x0B2,.google.cloud.dataform.v1beta1.ReleaseConfig\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x13\x0A\x0Bunreachable\x18\x03 \x03(\x09\"V\x0A\x17GetReleaseConfigRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%dataform.googleapis.com/ReleaseConfig\"\xC3\x01\x0A\x1ACreateReleaseConfigRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12I\x0A\x0Erelease_config\x18\x02 \x01(\x0B2,.google.cloud.dataform.v1beta1.ReleaseConfigB\x03\xE0A\x02\x12\x1E\x0A\x11release_config_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"\x9D\x01\x0A\x1AUpdateReleaseConfigRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12I\x0A\x0Erelease_config\x18\x02 \x01(\x0B2,.google.cloud.dataform.v1beta1.ReleaseConfigB\x03\xE0A\x02\"Y\x0A\x1ADeleteReleaseConfigRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%dataform.googleapis.com/ReleaseConfig\"\xE3\x08\x0A\x11CompilationResult\x12\x1C\x0A\x0Dgit_commitish\x18\x02 \x01(\x09B\x03\xE0A\x05H\x00\x12>\x0A\x09workspace\x18\x03 \x01(\x09B)\xE0A\x05\xFAA#\x0A!dataform.googleapis.com/WorkspaceH\x00\x12G\x0A\x0Erelease_config\x18\x07 \x01(\x09B-\xE0A\x05\xFAA'\x0A%dataform.googleapis.com/ReleaseConfigH\x00\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12Z\x0A\x17code_compilation_config\x18\x04 \x01(\x0B24.google.cloud.dataform.v1beta1.CodeCompilationConfigB\x03\xE0A\x05\x12\$\x0A\x17resolved_git_commit_sha\x18\x08 \x01(\x09B\x03\xE0A\x03\x12\"\x0A\x15dataform_core_version\x18\x05 \x01(\x09B\x03\xE0A\x03\x12b\x0A\x12compilation_errors\x18\x06 \x03(\x0B2A.google.cloud.dataform.v1beta1.CompilationResult.CompilationErrorB\x03\xE0A\x03\x12V\x0A\x15data_encryption_state\x18\x09 \x01(\x0B22.google.cloud.dataform.v1beta1.DataEncryptionStateB\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x0A \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12#\x0A\x11internal_metadata\x18\x0B \x01(\x09B\x03\xE0A\x03H\x01\x88\x01\x01\x12^\x0A\x19private_resource_metadata\x18\x0C \x01(\x0B26.google.cloud.dataform.v1beta1.PrivateResourceMetadataB\x03\xE0A\x03\x1A\x92\x01\x0A\x10CompilationError\x12\x14\x0A\x07message\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x12\x0A\x05stack\x18\x02 \x01(\x09B\x03\xE0A\x03\x12\x11\x0A\x04path\x18\x03 \x01(\x09B\x03\xE0A\x03\x12A\x0A\x0Daction_target\x18\x04 \x01(\x0B2%.google.cloud.dataform.v1beta1.TargetB\x03\xE0A\x03:\xC1\x01\xEAA\xBD\x01\x0A)dataform.googleapis.com/CompilationResult\x12iprojects/{project}/locations/{location}/repositories/{repository}/compilationResults/{compilation_result}*\x12compilationResults2\x11compilationResultB\x08\x0A\x06sourceB\x14\x0A\x12_internal_metadata\"\xF8\x03\x0A\x15CodeCompilationConfig\x12\x1D\x0A\x10default_database\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x1B\x0A\x0Edefault_schema\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x1D\x0A\x10default_location\x18\x08 \x01(\x09B\x03\xE0A\x01\x12\x1D\x0A\x10assertion_schema\x18\x03 \x01(\x09B\x03\xE0A\x01\x12Q\x0A\x04vars\x18\x04 \x03(\x0B2>.google.cloud.dataform.v1beta1.CodeCompilationConfig.VarsEntryB\x03\xE0A\x01\x12\x1C\x0A\x0Fdatabase_suffix\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Dschema_suffix\x18\x06 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Ctable_prefix\x18\x07 \x01(\x09B\x03\xE0A\x01\x12*\x0A\x1Dbuiltin_assertion_name_prefix\x18\x0A \x01(\x09B\x03\xE0A\x01\x12d\x0A default_notebook_runtime_options\x18\x09 \x01(\x0B25.google.cloud.dataform.v1beta1.NotebookRuntimeOptionsB\x03\xE0A\x01\x1A+\x0A\x09VarsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\xB6\x01\x0A\x16NotebookRuntimeOptions\x12 \x0A\x11gcs_output_bucket\x18\x01 \x01(\x09B\x03\xE0A\x01H\x00\x12h\x0A%ai_platform_notebook_runtime_template\x18\x02 \x01(\x09B9\xE0A\x01\xFAA3\x0A1aiplatform.googleapis.com/NotebookRuntimeTemplateB\x10\x0A\x0Eexecution_sink\"\xB8\x01\x0A\x1DListCompilationResultsRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\x9D\x01\x0A\x1EListCompilationResultsResponse\x12M\x0A\x13compilation_results\x18\x01 \x03(\x0B20.google.cloud.dataform.v1beta1.CompilationResult\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x13\x0A\x0Bunreachable\x18\x03 \x03(\x09\"^\x0A\x1BGetCompilationResultRequest\x12?\x0A\x04name\x18\x01 \x01(\x09B1\xE0A\x02\xFAA+\x0A)dataform.googleapis.com/CompilationResult\"\xAF\x01\x0A\x1ECreateCompilationResultRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12Q\x0A\x12compilation_result\x18\x02 \x01(\x0B20.google.cloud.dataform.v1beta1.CompilationResultB\x03\xE0A\x02\"G\x0A\x06Target\x12\x15\x0A\x08database\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06schema\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04name\x18\x03 \x01(\x09B\x03\xE0A\x01\"\xEA\x02\x0A\x12RelationDescriptor\x12\x13\x0A\x0Bdescription\x18\x01 \x01(\x09\x12S\x0A\x07columns\x18\x02 \x03(\x0B2B.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor\x12^\x0A\x0Fbigquery_labels\x18\x03 \x03(\x0B2E.google.cloud.dataform.v1beta1.RelationDescriptor.BigqueryLabelsEntry\x1AS\x0A\x10ColumnDescriptor\x12\x0C\x0A\x04path\x18\x01 \x03(\x09\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09\x12\x1C\x0A\x14bigquery_policy_tags\x18\x03 \x03(\x09\x1A5\x0A\x13BigqueryLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\xBE\x1F\x0A\x17CompilationResultAction\x12S\x0A\x08relation\x18\x04 \x01(\x0B2?.google.cloud.dataform.v1beta1.CompilationResultAction.RelationH\x00\x12W\x0A\x0Aoperations\x18\x05 \x01(\x0B2A.google.cloud.dataform.v1beta1.CompilationResultAction.OperationsH\x00\x12U\x0A\x09assertion\x18\x06 \x01(\x0B2@.google.cloud.dataform.v1beta1.CompilationResultAction.AssertionH\x00\x12Y\x0A\x0Bdeclaration\x18\x07 \x01(\x0B2B.google.cloud.dataform.v1beta1.CompilationResultAction.DeclarationH\x00\x12S\x0A\x08notebook\x18\x08 \x01(\x0B2?.google.cloud.dataform.v1beta1.CompilationResultAction.NotebookH\x00\x12b\x0A\x10data_preparation\x18\x09 \x01(\x0B2F.google.cloud.dataform.v1beta1.CompilationResultAction.DataPreparationH\x00\x125\x0A\x06target\x18\x01 \x01(\x0B2%.google.cloud.dataform.v1beta1.Target\x12?\x0A\x10canonical_target\x18\x02 \x01(\x0B2%.google.cloud.dataform.v1beta1.Target\x12\x11\x0A\x09file_path\x18\x03 \x01(\x09\x12#\x0A\x11internal_metadata\x18\x0A \x01(\x09B\x03\xE0A\x03H\x01\x88\x01\x01\x1A\xD1\x0B\x0A\x08Relation\x12A\x0A\x12dependency_targets\x18\x01 \x03(\x0B2%.google.cloud.dataform.v1beta1.Target\x12\x10\x0A\x08disabled\x18\x02 \x01(\x08\x12\x0C\x0A\x04tags\x18\x03 \x03(\x09\x12N\x0A\x13relation_descriptor\x18\x04 \x01(\x0B21.google.cloud.dataform.v1beta1.RelationDescriptor\x12c\x0A\x0Drelation_type\x18\x05 \x01(\x0E2L.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType\x12\x14\x0A\x0Cselect_query\x18\x06 \x01(\x09\x12\x16\x0A\x0Epre_operations\x18\x07 \x03(\x09\x12\x17\x0A\x0Fpost_operations\x18\x08 \x03(\x09\x12x\x0A\x18incremental_table_config\x18\x09 \x01(\x0B2V.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig\x12\x1C\x0A\x14partition_expression\x18\x0A \x01(\x09\x12\x1B\x0A\x13cluster_expressions\x18\x0B \x03(\x09\x12!\x0A\x19partition_expiration_days\x18\x0C \x01(\x05\x12 \x0A\x18require_partition_filter\x18\x0D \x01(\x08\x12r\x0A\x12additional_options\x18\x0E \x03(\x0B2V.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.AdditionalOptionsEntry\x12\x17\x0A\x0Aconnection\x18\x0F \x01(\x09B\x03\xE0A\x01\x12f\x0A\x0Ctable_format\x18\x10 \x01(\x0E2K.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.TableFormatB\x03\xE0A\x01\x12d\x0A\x0Bfile_format\x18\x11 \x01(\x0E2J.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.FileFormatB\x03\xE0A\x01\x12\x18\x0A\x0Bstorage_uri\x18\x12 \x01(\x09B\x03\xE0A\x01\x1A\xD8\x01\x0A\x16IncrementalTableConfig\x12 \x0A\x18incremental_select_query\x18\x01 \x01(\x09\x12\x18\x0A\x10refresh_disabled\x18\x02 \x01(\x08\x12\x18\x0A\x10unique_key_parts\x18\x03 \x03(\x09\x12\x1F\x0A\x17update_partition_filter\x18\x04 \x01(\x09\x12\"\x0A\x1Aincremental_pre_operations\x18\x05 \x03(\x09\x12#\x0A\x1Bincremental_post_operations\x18\x06 \x03(\x09\x1A8\x0A\x16AdditionalOptionsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"p\x0A\x0CRelationType\x12\x1D\x0A\x19RELATION_TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05TABLE\x10\x01\x12\x08\x0A\x04VIEW\x10\x02\x12\x15\x0A\x11INCREMENTAL_TABLE\x10\x03\x12\x15\x0A\x11MATERIALIZED_VIEW\x10\x04\"8\x0A\x0BTableFormat\x12\x1C\x0A\x18TABLE_FORMAT_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07ICEBERG\x10\x01\"6\x0A\x0AFileFormat\x12\x1B\x0A\x17FILE_FORMAT_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07PARQUET\x10\x01\x1A\xE4\x01\x0A\x0AOperations\x12A\x0A\x12dependency_targets\x18\x01 \x03(\x0B2%.google.cloud.dataform.v1beta1.Target\x12\x10\x0A\x08disabled\x18\x02 \x01(\x08\x12\x0C\x0A\x04tags\x18\x03 \x03(\x09\x12N\x0A\x13relation_descriptor\x18\x06 \x01(\x0B21.google.cloud.dataform.v1beta1.RelationDescriptor\x12\x0F\x0A\x07queries\x18\x04 \x03(\x09\x12\x12\x0A\x0Ahas_output\x18\x05 \x01(\x08\x1A\x92\x02\x0A\x09Assertion\x12A\x0A\x12dependency_targets\x18\x01 \x03(\x0B2%.google.cloud.dataform.v1beta1.Target\x12<\x0A\x0Dparent_action\x18\x05 \x01(\x0B2%.google.cloud.dataform.v1beta1.Target\x12\x10\x0A\x08disabled\x18\x02 \x01(\x08\x12\x0C\x0A\x04tags\x18\x03 \x03(\x09\x12\x14\x0A\x0Cselect_query\x18\x04 \x01(\x09\x12N\x0A\x13relation_descriptor\x18\x06 \x01(\x0B21.google.cloud.dataform.v1beta1.RelationDescriptor\x1A]\x0A\x0BDeclaration\x12N\x0A\x13relation_descriptor\x18\x01 \x01(\x0B21.google.cloud.dataform.v1beta1.RelationDescriptor\x1A\x7F\x0A\x08Notebook\x12A\x0A\x12dependency_targets\x18\x01 \x03(\x0B2%.google.cloud.dataform.v1beta1.Target\x12\x10\x0A\x08disabled\x18\x02 \x01(\x08\x12\x10\x0A\x08contents\x18\x03 \x01(\x09\x12\x0C\x0A\x04tags\x18\x04 \x03(\x09\x1A\xC0\x04\x0A\x0FDataPreparation\x12\x17\x0A\x0Dcontents_yaml\x18\x05 \x01(\x09H\x00\x12l\x0A\x0Ccontents_sql\x18\x06 \x01(\x0B2T.google.cloud.dataform.v1beta1.CompilationResultAction.DataPreparation.SqlDefinitionH\x00\x12A\x0A\x12dependency_targets\x18\x01 \x03(\x0B2%.google.cloud.dataform.v1beta1.Target\x12\x10\x0A\x08disabled\x18\x02 \x01(\x08\x12\x0C\x0A\x04tags\x18\x04 \x03(\x09\x1A\xD7\x01\x0A\x0DSqlDefinition\x12\x0D\x0A\x05query\x18\x01 \x01(\x09\x12f\x0A\x0Berror_table\x18\x02 \x01(\x0B2Q.google.cloud.dataform.v1beta1.CompilationResultAction.DataPreparation.ErrorTable\x12O\x0A\x04load\x18\x03 \x01(\x0B2A.google.cloud.dataform.v1beta1.CompilationResultAction.LoadConfig\x1A[\x0A\x0AErrorTable\x125\x0A\x06target\x18\x01 \x01(\x0B2%.google.cloud.dataform.v1beta1.Target\x12\x16\x0A\x0Eretention_days\x18\x02 \x01(\x05B\x0C\x0A\x0Adefinition\x1A\x84\x03\x0A\x0ALoadConfig\x12X\x0A\x07replace\x18\x01 \x01(\x0B2E.google.cloud.dataform.v1beta1.CompilationResultAction.SimpleLoadModeH\x00\x12W\x0A\x06append\x18\x02 \x01(\x0B2E.google.cloud.dataform.v1beta1.CompilationResultAction.SimpleLoadModeH\x00\x12]\x0A\x07maximum\x18\x03 \x01(\x0B2J.google.cloud.dataform.v1beta1.CompilationResultAction.IncrementalLoadModeH\x00\x12\\\x0A\x06unique\x18\x04 \x01(\x0B2J.google.cloud.dataform.v1beta1.CompilationResultAction.IncrementalLoadModeH\x00B\x06\x0A\x04mode\x1A\x10\x0A\x0ESimpleLoadMode\x1A%\x0A\x13IncrementalLoadMode\x12\x0E\x0A\x06column\x18\x01 \x01(\x09B\x11\x0A\x0Fcompiled_objectB\x14\x0A\x12_internal_metadata\"\xAD\x01\x0A\$QueryCompilationResultActionsRequest\x12?\x0A\x04name\x18\x01 \x01(\x09B1\xE0A\x02\xFAA+\x0A)dataform.googleapis.com/CompilationResult\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\"\x9C\x01\x0A%QueryCompilationResultActionsResponse\x12Z\x0A\x1Acompilation_result_actions\x18\x01 \x03(\x0B26.google.cloud.dataform.v1beta1.CompilationResultAction\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xB7\x07\x0A\x0EWorkflowConfig\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12E\x0A\x0Erelease_config\x18\x02 \x01(\x09B-\xE0A\x02\xFAA'\x0A%dataform.googleapis.com/ReleaseConfig\x12O\x0A\x11invocation_config\x18\x03 \x01(\x0B2/.google.cloud.dataform.v1beta1.InvocationConfigB\x03\xE0A\x01\x12\x1A\x0A\x0Dcron_schedule\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09time_zone\x18\x07 \x01(\x09B\x03\xE0A\x01\x12w\x0A\"recent_scheduled_execution_records\x18\x05 \x03(\x0B2F.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecordB\x03\xE0A\x03\x12\x15\x0A\x08disabled\x18\x08 \x01(\x08B\x03\xE0A\x01\x124\x0A\x0Bcreate_time\x18\x09 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x0A \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12#\x0A\x11internal_metadata\x18\x0B \x01(\x09B\x03\xE0A\x03H\x00\x88\x01\x01\x1A\xD9\x01\x0A\x18ScheduledExecutionRecord\x12N\x0A\x13workflow_invocation\x18\x02 \x01(\x09B/\xFAA,\x0A*dataform.googleapis.com/WorkflowInvocationH\x00\x12*\x0A\x0Cerror_status\x18\x03 \x01(\x0B2\x12.google.rpc.StatusH\x00\x127\x0A\x0Eexecution_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03B\x08\x0A\x06result:\xB2\x01\xEAA\xAE\x01\x0A&dataform.googleapis.com/WorkflowConfig\x12cprojects/{project}/locations/{location}/repositories/{repository}/workflowConfigs/{workflow_config}*\x0FworkflowConfigs2\x0EworkflowConfigB\x14\x0A\x12_internal_metadata\"\xE6\x03\x0A\x10InvocationConfig\x12D\x0A\x10included_targets\x18\x01 \x03(\x0B2%.google.cloud.dataform.v1beta1.TargetB\x03\xE0A\x01\x12\x1A\x0A\x0Dincluded_tags\x18\x02 \x03(\x09B\x03\xE0A\x01\x12-\x0A transitive_dependencies_included\x18\x03 \x01(\x08B\x03\xE0A\x01\x12+\x0A\x1Etransitive_dependents_included\x18\x04 \x01(\x08B\x03\xE0A\x01\x125\x0A(fully_refresh_incremental_tables_enabled\x18\x05 \x01(\x08B\x03\xE0A\x01\x12\x1C\x0A\x0Fservice_account\x18\x06 \x01(\x09B\x03\xE0A\x01\x12_\x0A\x0Equery_priority\x18\x09 \x01(\x0E2=.google.cloud.dataform.v1beta1.InvocationConfig.QueryPriorityB\x03\xE0A\x01H\x00\x88\x01\x01\"K\x0A\x0DQueryPriority\x12\x1E\x0A\x1AQUERY_PRIORITY_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BINTERACTIVE\x10\x01\x12\x09\x0A\x05BATCH\x10\x02B\x11\x0A\x0F_query_priority\"\x89\x01\x0A\x1AListWorkflowConfigsRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"\x94\x01\x0A\x1BListWorkflowConfigsResponse\x12G\x0A\x10workflow_configs\x18\x01 \x03(\x0B2-.google.cloud.dataform.v1beta1.WorkflowConfig\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x13\x0A\x0Bunreachable\x18\x03 \x03(\x09\"X\x0A\x18GetWorkflowConfigRequest\x12<\x0A\x04name\x18\x01 \x01(\x09B.\xE0A\x02\xFAA(\x0A&dataform.googleapis.com/WorkflowConfig\"\xC7\x01\x0A\x1BCreateWorkflowConfigRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12K\x0A\x0Fworkflow_config\x18\x02 \x01(\x0B2-.google.cloud.dataform.v1beta1.WorkflowConfigB\x03\xE0A\x02\x12\x1F\x0A\x12workflow_config_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"\xA0\x01\x0A\x1BUpdateWorkflowConfigRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12K\x0A\x0Fworkflow_config\x18\x02 \x01(\x0B2-.google.cloud.dataform.v1beta1.WorkflowConfigB\x03\xE0A\x02\"[\x0A\x1BDeleteWorkflowConfigRequest\x12<\x0A\x04name\x18\x01 \x01(\x09B.\xE0A\x02\xFAA(\x0A&dataform.googleapis.com/WorkflowConfig\"\xA8\x08\x0A\x12WorkflowInvocation\x12O\x0A\x12compilation_result\x18\x02 \x01(\x09B1\xE0A\x05\xFAA+\x0A)dataform.googleapis.com/CompilationResultH\x00\x12I\x0A\x0Fworkflow_config\x18\x06 \x01(\x09B.\xE0A\x05\xFAA(\x0A&dataform.googleapis.com/WorkflowConfigH\x00\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12O\x0A\x11invocation_config\x18\x03 \x01(\x0B2/.google.cloud.dataform.v1beta1.InvocationConfigB\x03\xE0A\x05\x12K\x0A\x05state\x18\x04 \x01(\x0E27.google.cloud.dataform.v1beta1.WorkflowInvocation.StateB\x03\xE0A\x03\x125\x0A\x11invocation_timing\x18\x05 \x01(\x0B2\x15.google.type.IntervalB\x03\xE0A\x03\x12V\x0A\x1Bresolved_compilation_result\x18\x07 \x01(\x09B1\xE0A\x03\xFAA+\x0A)dataform.googleapis.com/CompilationResult\x12V\x0A\x15data_encryption_state\x18\x08 \x01(\x0B22.google.cloud.dataform.v1beta1.DataEncryptionStateB\x03\xE0A\x03\x12#\x0A\x11internal_metadata\x18\x09 \x01(\x09B\x03\xE0A\x03H\x01\x88\x01\x01\x12^\x0A\x19private_resource_metadata\x18\x0A \x01(\x0B26.google.cloud.dataform.v1beta1.PrivateResourceMetadataB\x03\xE0A\x03\"d\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07RUNNING\x10\x01\x12\x0D\x0A\x09SUCCEEDED\x10\x02\x12\x0D\x0A\x09CANCELLED\x10\x03\x12\x0A\x0A\x06FAILED\x10\x04\x12\x0D\x0A\x09CANCELING\x10\x05:\xC6\x01\xEAA\xC2\x01\x0A*dataform.googleapis.com/WorkflowInvocation\x12kprojects/{project}/locations/{location}/repositories/{repository}/workflowInvocations/{workflow_invocation}*\x13workflowInvocations2\x12workflowInvocationB\x14\x0A\x12compilation_sourceB\x14\x0A\x12_internal_metadata\"\xB9\x01\x0A\x1EListWorkflowInvocationsRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\xA0\x01\x0A\x1FListWorkflowInvocationsResponse\x12O\x0A\x14workflow_invocations\x18\x01 \x03(\x0B21.google.cloud.dataform.v1beta1.WorkflowInvocation\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x13\x0A\x0Bunreachable\x18\x03 \x03(\x09\"`\x0A\x1CGetWorkflowInvocationRequest\x12@\x0A\x04name\x18\x01 \x01(\x09B2\xE0A\x02\xFAA,\x0A*dataform.googleapis.com/WorkflowInvocation\"\xB2\x01\x0A\x1FCreateWorkflowInvocationRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12S\x0A\x13workflow_invocation\x18\x02 \x01(\x0B21.google.cloud.dataform.v1beta1.WorkflowInvocationB\x03\xE0A\x02\"c\x0A\x1FDeleteWorkflowInvocationRequest\x12@\x0A\x04name\x18\x01 \x01(\x09B2\xE0A\x02\xFAA,\x0A*dataform.googleapis.com/WorkflowInvocation\"c\x0A\x1FCancelWorkflowInvocationRequest\x12@\x0A\x04name\x18\x01 \x01(\x09B2\xE0A\x02\xFAA,\x0A*dataform.googleapis.com/WorkflowInvocation\"\"\x0A CancelWorkflowInvocationResponse\"\xE1\x10\x0A\x18WorkflowInvocationAction\x12f\x0A\x0Fbigquery_action\x18\x06 \x01(\x0B2F.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryActionB\x03\xE0A\x03H\x00\x12f\x0A\x0Fnotebook_action\x18\x08 \x01(\x0B2F.google.cloud.dataform.v1beta1.WorkflowInvocationAction.NotebookActionB\x03\xE0A\x03H\x00\x12u\x0A\x17data_preparation_action\x18\x09 \x01(\x0B2M.google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationActionB\x03\xE0A\x03H\x00\x12:\x0A\x06target\x18\x01 \x01(\x0B2%.google.cloud.dataform.v1beta1.TargetB\x03\xE0A\x03\x12D\x0A\x10canonical_target\x18\x02 \x01(\x0B2%.google.cloud.dataform.v1beta1.TargetB\x03\xE0A\x03\x12Q\x0A\x05state\x18\x04 \x01(\x0E2=.google.cloud.dataform.v1beta1.WorkflowInvocationAction.StateB\x03\xE0A\x03\x12\x1B\x0A\x0Efailure_reason\x18\x07 \x01(\x09B\x03\xE0A\x03\x125\x0A\x11invocation_timing\x18\x05 \x01(\x0B2\x15.google.type.IntervalB\x03\xE0A\x03\x12#\x0A\x11internal_metadata\x18\x0A \x01(\x09B\x03\xE0A\x03H\x01\x88\x01\x01\x1A>\x0A\x0EBigQueryAction\x12\x17\x0A\x0Asql_script\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x13\x0A\x06job_id\x18\x02 \x01(\x09B\x03\xE0A\x03\x1A<\x0A\x0ENotebookAction\x12\x15\x0A\x08contents\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x13\x0A\x06job_id\x18\x02 \x01(\x09B\x03\xE0A\x03\x1A\xA9\x09\x0A\x15DataPreparationAction\x12\x1C\x0A\x0Dcontents_yaml\x18\x02 \x01(\x09B\x03\xE0A\x03H\x00\x12y\x0A\x0Ccontents_sql\x18\x06 \x01(\x0B2a.google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionSqlDefinitionH\x00\x12\x1A\x0A\x0Dgenerated_sql\x18\x03 \x01(\x09B\x03\xE0A\x03\x12\x13\x0A\x06job_id\x18\x04 \x01(\x09B\x03\xE0A\x03\x1A\x8E\x02\x0A\x13ActionSqlDefinition\x12\x0D\x0A\x05query\x18\x01 \x01(\x09\x12s\x0A\x0Berror_table\x18\x02 \x01(\x0B2^.google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionErrorTable\x12s\x0A\x0Bload_config\x18\x03 \x01(\x0B2^.google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionLoadConfig\x1Aa\x0A\x10ActionErrorTable\x125\x0A\x06target\x18\x01 \x01(\x0B2%.google.cloud.dataform.v1beta1.Target\x12\x16\x0A\x0Eretention_days\x18\x02 \x01(\x05\x1A\xFE\x03\x0A\x10ActionLoadConfig\x12u\x0A\x07replace\x18\x01 \x01(\x0B2b.google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadModeH\x00\x12t\x0A\x06append\x18\x02 \x01(\x0B2b.google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadModeH\x00\x12z\x0A\x07maximum\x18\x03 \x01(\x0B2g.google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadModeH\x00\x12y\x0A\x06unique\x18\x04 \x01(\x0B2g.google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadModeH\x00B\x06\x0A\x04mode\x1A\x16\x0A\x14ActionSimpleLoadMode\x1A+\x0A\x19ActionIncrementalLoadMode\x12\x0E\x0A\x06column\x18\x01 \x01(\x09B\x0C\x0A\x0Adefinition\"f\x0A\x05State\x12\x0B\x0A\x07PENDING\x10\x00\x12\x0B\x0A\x07RUNNING\x10\x01\x12\x0B\x0A\x07SKIPPED\x10\x02\x12\x0C\x0A\x08DISABLED\x10\x03\x12\x0D\x0A\x09SUCCEEDED\x10\x04\x12\x0D\x0A\x09CANCELLED\x10\x05\x12\x0A\x0A\x06FAILED\x10\x06B\x08\x0A\x06actionB\x14\x0A\x12_internal_metadata\"\x9A\x01\x0A%QueryWorkflowInvocationActionsRequest\x12@\x0A\x04name\x18\x01 \x01(\x09B2\xE0A\x02\xFAA,\x0A*dataform.googleapis.com/WorkflowInvocation\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"\x9F\x01\x0A&QueryWorkflowInvocationActionsResponse\x12\\\x0A\x1Bworkflow_invocation_actions\x18\x01 \x03(\x0B27.google.cloud.dataform.v1beta1.WorkflowInvocationAction\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x85\x02\x0A\x06Config\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12G\x0A\x14default_kms_key_name\x18\x02 \x01(\x09B)\xE0A\x01\xFAA#\x0A!cloudkms.googleapis.com/CryptoKey\x12#\x0A\x11internal_metadata\x18\x07 \x01(\x09B\x03\xE0A\x03H\x00\x88\x01\x01:d\xEAAa\x0A\x1Edataform.googleapis.com/Config\x12.projects/{project}/locations/{location}/config*\x07configs2\x06configB\x14\x0A\x12_internal_metadata\"H\x0A\x10GetConfigRequest\x124\x0A\x04name\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Edataform.googleapis.com/Config\"\x87\x01\x0A\x13UpdateConfigRequest\x12:\x0A\x06config\x18\x01 \x01(\x0B2%.google.cloud.dataform.v1beta1.ConfigB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\"\xCF\x03\x0A\x06Folder\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x1E\x0A\x11containing_folder\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x1D\x0A\x10team_folder_name\x18\x04 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12#\x0A\x11internal_metadata\x18\x07 \x01(\x09B\x03\xE0A\x03H\x00\x88\x01\x01\x12'\x0A\x15creator_iam_principal\x18\x08 \x01(\x09B\x03\xE0A\x03H\x01\x88\x01\x01:n\xEAAk\x0A\x1Edataform.googleapis.com/Folder\x128projects/{project}/locations/{location}/folders/{folder}*\x07folders2\x06folderB\x14\x0A\x12_internal_metadataB\x18\x0A\x16_creator_iam_principal\"\x9F\x01\x0A\x13CreateFolderRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12:\x0A\x06folder\x18\x02 \x01(\x0B2%.google.cloud.dataform.v1beta1.FolderB\x03\xE0A\x02\x12\x11\x0A\x09folder_id\x18\x03 \x01(\x09\"\x9C\x01\x0A\x11MoveFolderRequest\x124\x0A\x04name\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Edataform.googleapis.com/Folder\x12/\x0A\x1Ddestination_containing_folder\x18\x02 \x01(\x09B\x03\xE0A\x01H\x00\x88\x01\x01B \x0A\x1E_destination_containing_folder\"H\x0A\x10GetFolderRequest\x124\x0A\x04name\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Edataform.googleapis.com/Folder\"\x87\x01\x0A\x13UpdateFolderRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12:\x0A\x06folder\x18\x02 \x01(\x0B2%.google.cloud.dataform.v1beta1.FolderB\x03\xE0A\x02\"K\x0A\x13DeleteFolderRequest\x124\x0A\x04name\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Edataform.googleapis.com/Folder\"\xB1\x01\x0A\x1AQueryFolderContentsRequest\x126\x0A\x06folder\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Edataform.googleapis.com/Folder\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\xB2\x02\x0A\x1BQueryFolderContentsResponse\x12_\x0A\x07entries\x18\x01 \x03(\x0B2N.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x1A\x98\x01\x0A\x13FolderContentsEntry\x127\x0A\x06folder\x18\x01 \x01(\x0B2%.google.cloud.dataform.v1beta1.FolderH\x00\x12?\x0A\x0Arepository\x18\x02 \x01(\x0B2).google.cloud.dataform.v1beta1.RepositoryH\x00B\x07\x0A\x05entry\"\xB8\x01\x0A\x1CQueryUserRootContentsRequest\x12;\x0A\x08location\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\xB2\x02\x0A\x1DQueryUserRootContentsResponse\x12_\x0A\x07entries\x18\x01 \x03(\x0B2N.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x1A\x96\x01\x0A\x11RootContentsEntry\x127\x0A\x06folder\x18\x01 \x01(\x0B2%.google.cloud.dataform.v1beta1.FolderH\x00\x12?\x0A\x0Arepository\x18\x02 \x01(\x0B2).google.cloud.dataform.v1beta1.RepositoryH\x00B\x07\x0A\x05entry\"\xAB\x03\x0A\x0ATeamFolder\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x02\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12#\x0A\x11internal_metadata\x18\x05 \x01(\x09B\x03\xE0A\x03H\x00\x88\x01\x01\x12'\x0A\x15creator_iam_principal\x18\x06 \x01(\x09B\x03\xE0A\x03H\x01\x88\x01\x01:\x84\x01\xEAA\x80\x01\x0A\"dataform.googleapis.com/TeamFolder\x12Aprojects/{project}/locations/{location}/teamFolders/{team_folder}*\x0BteamFolders2\x0AteamFolderB\x14\x0A\x12_internal_metadataB\x18\x0A\x16_creator_iam_principal\"\xB1\x01\x0A\x17CreateTeamFolderRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12C\x0A\x0Bteam_folder\x18\x02 \x01(\x0B2).google.cloud.dataform.v1beta1.TeamFolderB\x03\xE0A\x02\x12\x16\x0A\x0Eteam_folder_id\x18\x03 \x01(\x09\"P\x0A\x14GetTeamFolderRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/TeamFolder\"\x94\x01\x0A\x17UpdateTeamFolderRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12C\x0A\x0Bteam_folder\x18\x02 \x01(\x0B2).google.cloud.dataform.v1beta1.TeamFolderB\x03\xE0A\x02\"S\x0A\x17DeleteTeamFolderRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/TeamFolder\"\xBE\x01\x0A\x1EQueryTeamFolderContentsRequest\x12?\x0A\x0Bteam_folder\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/TeamFolder\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\xC2\x02\x0A\x1FQueryTeamFolderContentsResponse\x12g\x0A\x07entries\x18\x01 \x03(\x0B2V.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x1A\x9C\x01\x0A\x17TeamFolderContentsEntry\x127\x0A\x06folder\x18\x01 \x01(\x0B2%.google.cloud.dataform.v1beta1.FolderH\x00\x12?\x0A\x0Arepository\x18\x02 \x01(\x0B2).google.cloud.dataform.v1beta1.RepositoryH\x00B\x07\x0A\x05entry\"\xB4\x01\x0A\x18SearchTeamFoldersRequest\x12;\x0A\x08location\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\xFB\x01\x0A\x19SearchTeamFoldersResponse\x12`\x0A\x07results\x18\x01 \x03(\x0B2O.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x1Ac\x0A\x16TeamFolderSearchResult\x12@\x0A\x0Bteam_folder\x18\x02 \x01(\x0B2).google.cloud.dataform.v1beta1.TeamFolderH\x00B\x07\x0A\x05entry\"\xCF\x02\x0A\x12MoveFolderMetadata\x124\x0A\x0Bcreate_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x121\x0A\x08end_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x13\x0A\x06target\x18\x03 \x01(\x09B\x03\xE0A\x03\x12F\x0A\x05state\x18\x04 \x01(\x0E27.google.cloud.dataform.v1beta1.MoveFolderMetadata.State\x12\x18\x0A\x10percent_complete\x18\x05 \x01(\x05\"Y\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BINITIALIZED\x10\x01\x12\x0F\x0A\x0BIN_PROGRESS\x10\x02\x12\x0B\x0A\x07SUCCESS\x10\x03\x12\x0A\x0A\x06FAILED\x10\x04\"\xD7\x02\x0A\x16MoveRepositoryMetadata\x124\x0A\x0Bcreate_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x121\x0A\x08end_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x13\x0A\x06target\x18\x03 \x01(\x09B\x03\xE0A\x03\x12J\x0A\x05state\x18\x04 \x01(\x0E2;.google.cloud.dataform.v1beta1.MoveRepositoryMetadata.State\x12\x18\x0A\x10percent_complete\x18\x05 \x01(\x05\"Y\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BINITIALIZED\x10\x01\x12\x0F\x0A\x0BIN_PROGRESS\x10\x02\x12\x0B\x0A\x07SUCCESS\x10\x03\x12\x0A\x0A\x06FAILED\x10\x042\x8B\x82\x01\x0A\x08Dataform\x12\xB4\x01\x0A\x0DGetTeamFolder\x123.google.cloud.dataform.v1beta1.GetTeamFolderRequest\x1A).google.cloud.dataform.v1beta1.TeamFolder\"C\xDAA\x04name\x82\xD3\xE4\x93\x026\x124/v1beta1/{name=projects/*/locations/*/teamFolders/*}\x12\xD5\x01\x0A\x10CreateTeamFolder\x126.google.cloud.dataform.v1beta1.CreateTeamFolderRequest\x1A).google.cloud.dataform.v1beta1.TeamFolder\"^\xDAA\x12parent,team_folder\x82\xD3\xE4\x93\x02C\"4/v1beta1/{parent=projects/*/locations/*}/teamFolders:\x0Bteam_folder\x12\xE6\x01\x0A\x10UpdateTeamFolder\x126.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest\x1A).google.cloud.dataform.v1beta1.TeamFolder\"o\xDAA\x17team_folder,update_mask\x82\xD3\xE4\x93\x02O2@/v1beta1/{team_folder.name=projects/*/locations/*/teamFolders/*}:\x0Bteam_folder\x12\xA7\x01\x0A\x10DeleteTeamFolder\x126.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest\x1A\x16.google.protobuf.Empty\"C\xDAA\x04name\x82\xD3\xE4\x93\x026*4/v1beta1/{name=projects/*/locations/*/teamFolders/*}\x12\xF9\x01\x0A\x17QueryTeamFolderContents\x12=.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest\x1A>.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse\"_\xDAA\x0Bteam_folder\x82\xD3\xE4\x93\x02K\x12I/v1beta1/{team_folder=projects/*/locations/*/teamFolders/*}:queryContents\x12\xCD\x01\x0A\x11SearchTeamFolders\x127.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest\x1A8.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse\"E\x82\xD3\xE4\x93\x02?\x12=/v1beta1/{location=projects/*/locations/*}/teamFolders:search\x12\xA4\x01\x0A\x09GetFolder\x12/.google.cloud.dataform.v1beta1.GetFolderRequest\x1A%.google.cloud.dataform.v1beta1.Folder\"?\xDAA\x04name\x82\xD3\xE4\x93\x022\x120/v1beta1/{name=projects/*/locations/*/folders/*}\x12\xBB\x01\x0A\x0CCreateFolder\x122.google.cloud.dataform.v1beta1.CreateFolderRequest\x1A%.google.cloud.dataform.v1beta1.Folder\"P\xDAA\x0Dparent,folder\x82\xD3\xE4\x93\x02:\"0/v1beta1/{parent=projects/*/locations/*}/folders:\x06folder\x12\xC7\x01\x0A\x0CUpdateFolder\x122.google.cloud.dataform.v1beta1.UpdateFolderRequest\x1A%.google.cloud.dataform.v1beta1.Folder\"\\\xDAA\x12folder,update_mask\x82\xD3\xE4\x93\x02A27/v1beta1/{folder.name=projects/*/locations/*/folders/*}:\x06folder\x12\x9B\x01\x0A\x0CDeleteFolder\x122.google.cloud.dataform.v1beta1.DeleteFolderRequest\x1A\x16.google.protobuf.Empty\"?\xDAA\x04name\x82\xD3\xE4\x93\x022*0/v1beta1/{name=projects/*/locations/*/folders/*}\x12\xE5\x01\x0A\x13QueryFolderContents\x129.google.cloud.dataform.v1beta1.QueryFolderContentsRequest\x1A:.google.cloud.dataform.v1beta1.QueryFolderContentsResponse\"W\xDAA\x06folder\x82\xD3\xE4\x93\x02H\x12F/v1beta1/{folder=projects/*/locations/*/folders/*}:queryFolderContents\x12\xE7\x01\x0A\x15QueryUserRootContents\x12;.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest\x1A<.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse\"S\xDAA\x08location\x82\xD3\xE4\x93\x02B\x12@/v1beta1/{location=projects/*/locations/*}:queryUserRootContents\x12\xF3\x01\x0A\x0AMoveFolder\x120.google.cloud.dataform.v1beta1.MoveFolderRequest\x1A\x1D.google.longrunning.Operation\"\x93\x01\xCAA+\x0A\x15google.protobuf.Empty\x12\x12MoveFolderMetadata\xDAA\"name,destination_containing_folder\x82\xD3\xE4\x93\x02:\"5/v1beta1/{name=projects/*/locations/*/folders/*}:move:\x01*\x12\xCB\x01\x0A\x10ListRepositories\x126.google.cloud.dataform.v1beta1.ListRepositoriesRequest\x1A7.google.cloud.dataform.v1beta1.ListRepositoriesResponse\"F\xDAA\x06parent\x82\xD3\xE4\x93\x027\x125/v1beta1/{parent=projects/*/locations/*}/repositories\x12\xB5\x01\x0A\x0DGetRepository\x123.google.cloud.dataform.v1beta1.GetRepositoryRequest\x1A).google.cloud.dataform.v1beta1.Repository\"D\xDAA\x04name\x82\xD3\xE4\x93\x027\x125/v1beta1/{name=projects/*/locations/*/repositories/*}\x12\xE2\x01\x0A\x10CreateRepository\x126.google.cloud.dataform.v1beta1.CreateRepositoryRequest\x1A).google.cloud.dataform.v1beta1.Repository\"k\xDAA\x1Fparent,repository,repository_id\x82\xD3\xE4\x93\x02C\"5/v1beta1/{parent=projects/*/locations/*}/repositories:\x0Arepository\x12\xE4\x01\x0A\x10UpdateRepository\x126.google.cloud.dataform.v1beta1.UpdateRepositoryRequest\x1A).google.cloud.dataform.v1beta1.Repository\"m\xDAA\x16repository,update_mask\x82\xD3\xE4\x93\x02N2@/v1beta1/{repository.name=projects/*/locations/*/repositories/*}:\x0Arepository\x12\xA8\x01\x0A\x10DeleteRepository\x126.google.cloud.dataform.v1beta1.DeleteRepositoryRequest\x1A\x16.google.protobuf.Empty\"D\xDAA\x04name\x82\xD3\xE4\x93\x027*5/v1beta1/{name=projects/*/locations/*/repositories/*}\x12\x84\x02\x0A\x0EMoveRepository\x124.google.cloud.dataform.v1beta1.MoveRepositoryRequest\x1A\x1D.google.longrunning.Operation\"\x9C\x01\xCAA/\x0A\x15google.protobuf.Empty\x12\x16MoveRepositoryMetadata\xDAA\"name,destination_containing_folder\x82\xD3\xE4\x93\x02?\":/v1beta1/{name=projects/*/locations/*/repositories/*}:move:\x01*\x12\xE1\x01\x0A\x17CommitRepositoryChanges\x12=.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest\x1A>.google.cloud.dataform.v1beta1.CommitRepositoryChangesResponse\"G\x82\xD3\xE4\x93\x02A\"/v1beta1/{name=projects/*/locations/*/repositories/*}:readFile\x12\x89\x02\x0A QueryRepositoryDirectoryContents\x12F.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest\x1AG.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse\"T\x82\xD3\xE4\x93\x02N\x12L/v1beta1/{name=projects/*/locations/*/repositories/*}:queryDirectoryContents\x12\xE1\x01\x0A\x16FetchRepositoryHistory\x12<.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest\x1A=.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse\"J\x82\xD3\xE4\x93\x02D\x12B/v1beta1/{name=projects/*/locations/*/repositories/*}:fetchHistory\x12\x91\x02\x0A\"ComputeRepositoryAccessTokenStatus\x12H.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest\x1AI.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse\"V\x82\xD3\xE4\x93\x02P\x12N/v1beta1/{name=projects/*/locations/*/repositories/*}:computeAccessTokenStatus\x12\xDF\x01\x0A\x13FetchRemoteBranches\x129.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest\x1A:.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse\"Q\x82\xD3\xE4\x93\x02K\x12I/v1beta1/{name=projects/*/locations/*/repositories/*}:fetchRemoteBranches\x12\xD2\x01\x0A\x0EListWorkspaces\x124.google.cloud.dataform.v1beta1.ListWorkspacesRequest\x1A5.google.cloud.dataform.v1beta1.ListWorkspacesResponse\"S\xDAA\x06parent\x82\xD3\xE4\x93\x02D\x12B/v1beta1/{parent=projects/*/locations/*/repositories/*}/workspaces\x12\xBF\x01\x0A\x0CGetWorkspace\x122.google.cloud.dataform.v1beta1.GetWorkspaceRequest\x1A(.google.cloud.dataform.v1beta1.Workspace\"Q\xDAA\x04name\x82\xD3\xE4\x93\x02D\x12B/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}\x12\xE9\x01\x0A\x0FCreateWorkspace\x125.google.cloud.dataform.v1beta1.CreateWorkspaceRequest\x1A(.google.cloud.dataform.v1beta1.Workspace\"u\xDAA\x1Dparent,workspace,workspace_id\x82\xD3\xE4\x93\x02O\"B/v1beta1/{parent=projects/*/locations/*/repositories/*}/workspaces:\x09workspace\x12\xB3\x01\x0A\x0FDeleteWorkspace\x125.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest\x1A\x16.google.protobuf.Empty\"Q\xDAA\x04name\x82\xD3\xE4\x93\x02D*B/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}\x12\xF0\x01\x0A\x12InstallNpmPackages\x128.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest\x1A9.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse\"e\x82\xD3\xE4\x93\x02_\"Z/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:installNpmPackages:\x01*\x12\xD1\x01\x0A\x0EPullGitCommits\x124.google.cloud.dataform.v1beta1.PullGitCommitsRequest\x1A5.google.cloud.dataform.v1beta1.PullGitCommitsResponse\"R\x82\xD3\xE4\x93\x02L\"G/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}:pull:\x01*\x12\xD1\x01\x0A\x0EPushGitCommits\x124.google.cloud.dataform.v1beta1.PushGitCommitsRequest\x1A5.google.cloud.dataform.v1beta1.PushGitCommitsResponse\"R\x82\xD3\xE4\x93\x02L\"G/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}:push:\x01*\x12\xF0\x01\x0A\x14FetchFileGitStatuses\x12:.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest\x1A;.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse\"_\x82\xD3\xE4\x93\x02Y\x12W/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}:fetchFileGitStatuses\x12\xEC\x01\x0A\x13FetchGitAheadBehind\x129.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest\x1A:.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse\"^\x82\xD3\xE4\x93\x02X\x12V/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}:fetchGitAheadBehind\x12\xEB\x01\x0A\x16CommitWorkspaceChanges\x12<.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest\x1A=.google.cloud.dataform.v1beta1.CommitWorkspaceChangesResponse\"T\x82\xD3\xE4\x93\x02N\"I/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}:commit:\x01*\x12\xE7\x01\x0A\x15ResetWorkspaceChanges\x12;.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest\x1A<.google.cloud.dataform.v1beta1.ResetWorkspaceChangesResponse\"S\x82\xD3\xE4\x93\x02M\"H/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}:reset:\x01*\x12\xD9\x01\x0A\x0DFetchFileDiff\x123.google.cloud.dataform.v1beta1.FetchFileDiffRequest\x1A4.google.cloud.dataform.v1beta1.FetchFileDiffResponse\"]\x82\xD3\xE4\x93\x02W\x12U/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:fetchFileDiff\x12\xFD\x01\x0A\x16QueryDirectoryContents\x12<.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest\x1A=.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse\"f\x82\xD3\xE4\x93\x02`\x12^/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:queryDirectoryContents\x12\xD1\x01\x0A\x0BSearchFiles\x121.google.cloud.dataform.v1beta1.SearchFilesRequest\x1A2.google.cloud.dataform.v1beta1.SearchFilesResponse\"[\x82\xD3\xE4\x93\x02U\x12S/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:searchFiles\x12\xDC\x01\x0A\x0DMakeDirectory\x123.google.cloud.dataform.v1beta1.MakeDirectoryRequest\x1A4.google.cloud.dataform.v1beta1.MakeDirectoryResponse\"`\x82\xD3\xE4\x93\x02Z\"U/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:makeDirectory:\x01*\x12\xE4\x01\x0A\x0FRemoveDirectory\x125.google.cloud.dataform.v1beta1.RemoveDirectoryRequest\x1A6.google.cloud.dataform.v1beta1.RemoveDirectoryResponse\"b\x82\xD3\xE4\x93\x02\\\"W/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:removeDirectory:\x01*\x12\xDC\x01\x0A\x0DMoveDirectory\x123.google.cloud.dataform.v1beta1.MoveDirectoryRequest\x1A4.google.cloud.dataform.v1beta1.MoveDirectoryResponse\"`\x82\xD3\xE4\x93\x02Z\"U/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:moveDirectory:\x01*\x12\xC5\x01\x0A\x08ReadFile\x12..google.cloud.dataform.v1beta1.ReadFileRequest\x1A/.google.cloud.dataform.v1beta1.ReadFileResponse\"X\x82\xD3\xE4\x93\x02R\x12P/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:readFile\x12\xD0\x01\x0A\x0ARemoveFile\x120.google.cloud.dataform.v1beta1.RemoveFileRequest\x1A1.google.cloud.dataform.v1beta1.RemoveFileResponse\"]\x82\xD3\xE4\x93\x02W\"R/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:removeFile:\x01*\x12\xC8\x01\x0A\x08MoveFile\x12..google.cloud.dataform.v1beta1.MoveFileRequest\x1A/.google.cloud.dataform.v1beta1.MoveFileResponse\"[\x82\xD3\xE4\x93\x02U\"P/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:moveFile:\x01*\x12\xCC\x01\x0A\x09WriteFile\x12/.google.cloud.dataform.v1beta1.WriteFileRequest\x1A0.google.cloud.dataform.v1beta1.WriteFileResponse\"\\\x82\xD3\xE4\x93\x02V\"Q/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:writeFile:\x01*\x12\xE2\x01\x0A\x12ListReleaseConfigs\x128.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest\x1A9.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse\"W\xDAA\x06parent\x82\xD3\xE4\x93\x02H\x12F/v1beta1/{parent=projects/*/locations/*/repositories/*}/releaseConfigs\x12\xCF\x01\x0A\x10GetReleaseConfig\x126.google.cloud.dataform.v1beta1.GetReleaseConfigRequest\x1A,.google.cloud.dataform.v1beta1.ReleaseConfig\"U\xDAA\x04name\x82\xD3\xE4\x93\x02H\x12F/v1beta1/{name=projects/*/locations/*/repositories/*/releaseConfigs/*}\x12\x89\x02\x0A\x13CreateReleaseConfig\x129.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest\x1A,.google.cloud.dataform.v1beta1.ReleaseConfig\"\x88\x01\xDAA'parent,release_config,release_config_id\x82\xD3\xE4\x93\x02X\"F/v1beta1/{parent=projects/*/locations/*/repositories/*}/releaseConfigs:\x0Erelease_config\x12\x8B\x02\x0A\x13UpdateReleaseConfig\x129.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest\x1A,.google.cloud.dataform.v1beta1.ReleaseConfig\"\x8A\x01\xDAA\x1Arelease_config,update_mask\x82\xD3\xE4\x93\x02g2U/v1beta1/{release_config.name=projects/*/locations/*/repositories/*/releaseConfigs/*}:\x0Erelease_config\x12\xBF\x01\x0A\x13DeleteReleaseConfig\x129.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest\x1A\x16.google.protobuf.Empty\"U\xDAA\x04name\x82\xD3\xE4\x93\x02H*F/v1beta1/{name=projects/*/locations/*/repositories/*/releaseConfigs/*}\x12\xF2\x01\x0A\x16ListCompilationResults\x12<.google.cloud.dataform.v1beta1.ListCompilationResultsRequest\x1A=.google.cloud.dataform.v1beta1.ListCompilationResultsResponse\"[\xDAA\x06parent\x82\xD3\xE4\x93\x02L\x12J/v1beta1/{parent=projects/*/locations/*/repositories/*}/compilationResults\x12\xDF\x01\x0A\x14GetCompilationResult\x12:.google.cloud.dataform.v1beta1.GetCompilationResultRequest\x1A0.google.cloud.dataform.v1beta1.CompilationResult\"Y\xDAA\x04name\x82\xD3\xE4\x93\x02L\x12J/v1beta1/{name=projects/*/locations/*/repositories/*/compilationResults/*}\x12\x8F\x02\x0A\x17CreateCompilationResult\x12=.google.cloud.dataform.v1beta1.CreateCompilationResultRequest\x1A0.google.cloud.dataform.v1beta1.CompilationResult\"\x82\x01\xDAA\x19parent,compilation_result\x82\xD3\xE4\x93\x02`\"J/v1beta1/{parent=projects/*/locations/*/repositories/*}/compilationResults:\x12compilation_result\x12\x84\x02\x0A\x1DQueryCompilationResultActions\x12C.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest\x1AD.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse\"X\x82\xD3\xE4\x93\x02R\x12P/v1beta1/{name=projects/*/locations/*/repositories/*/compilationResults/*}:query\x12\xE6\x01\x0A\x13ListWorkflowConfigs\x129.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest\x1A:.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse\"X\xDAA\x06parent\x82\xD3\xE4\x93\x02I\x12G/v1beta1/{parent=projects/*/locations/*/repositories/*}/workflowConfigs\x12\xD3\x01\x0A\x11GetWorkflowConfig\x127.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest\x1A-.google.cloud.dataform.v1beta1.WorkflowConfig\"V\xDAA\x04name\x82\xD3\xE4\x93\x02I\x12G/v1beta1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}\x12\x90\x02\x0A\x14CreateWorkflowConfig\x12:.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest\x1A-.google.cloud.dataform.v1beta1.WorkflowConfig\"\x8C\x01\xDAA)parent,workflow_config,workflow_config_id\x82\xD3\xE4\x93\x02Z\"G/v1beta1/{parent=projects/*/locations/*/repositories/*}/workflowConfigs:\x0Fworkflow_config\x12\x92\x02\x0A\x14UpdateWorkflowConfig\x12:.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest\x1A-.google.cloud.dataform.v1beta1.WorkflowConfig\"\x8E\x01\xDAA\x1Bworkflow_config,update_mask\x82\xD3\xE4\x93\x02j2W/v1beta1/{workflow_config.name=projects/*/locations/*/repositories/*/workflowConfigs/*}:\x0Fworkflow_config\x12\xC2\x01\x0A\x14DeleteWorkflowConfig\x12:.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest\x1A\x16.google.protobuf.Empty\"V\xDAA\x04name\x82\xD3\xE4\x93\x02I*G/v1beta1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}\x12\xF6\x01\x0A\x17ListWorkflowInvocations\x12=.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest\x1A>.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse\"\\\xDAA\x06parent\x82\xD3\xE4\x93\x02M\x12K/v1beta1/{parent=projects/*/locations/*/repositories/*}/workflowInvocations\x12\xE3\x01\x0A\x15GetWorkflowInvocation\x12;.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest\x1A1.google.cloud.dataform.v1beta1.WorkflowInvocation\"Z\xDAA\x04name\x82\xD3\xE4\x93\x02M\x12K/v1beta1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}\x12\x95\x02\x0A\x18CreateWorkflowInvocation\x12>.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest\x1A1.google.cloud.dataform.v1beta1.WorkflowInvocation\"\x85\x01\xDAA\x1Aparent,workflow_invocation\x82\xD3\xE4\x93\x02b\"K/v1beta1/{parent=projects/*/locations/*/repositories/*}/workflowInvocations:\x13workflow_invocation\x12\xCE\x01\x0A\x18DeleteWorkflowInvocation\x12>.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest\x1A\x16.google.protobuf.Empty\"Z\xDAA\x04name\x82\xD3\xE4\x93\x02M*K/v1beta1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}\x12\xFA\x01\x0A\x18CancelWorkflowInvocation\x12>.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest\x1A?.google.cloud.dataform.v1beta1.CancelWorkflowInvocationResponse\"]\x82\xD3\xE4\x93\x02W\"R/v1beta1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}:cancel:\x01*\x12\x88\x02\x0A\x1EQueryWorkflowInvocationActions\x12D.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest\x1AE.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse\"Y\x82\xD3\xE4\x93\x02S\x12Q/v1beta1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}:query\x12\xA1\x01\x0A\x09GetConfig\x12/.google.cloud.dataform.v1beta1.GetConfigRequest\x1A%.google.cloud.dataform.v1beta1.Config\"<\xDAA\x04name\x82\xD3\xE4\x93\x02/\x12-/v1beta1/{name=projects/*/locations/*/config}\x12\xC4\x01\x0A\x0CUpdateConfig\x122.google.cloud.dataform.v1beta1.UpdateConfigRequest\x1A%.google.cloud.dataform.v1beta1.Config\"Y\xDAA\x12config,update_mask\x82\xD3\xE4\x93\x02>24/v1beta1/{config.name=projects/*/locations/*/config}:\x06config\x12\x8B\x03\x0A\x0CGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1A\x15.google.iam.v1.Policy\"\xBF\x02\xDAA\x08resource\x82\xD3\xE4\x93\x02\xAD\x02\x12F/v1beta1/{resource=projects/*/locations/*/repositories/*}:getIamPolicyZU\x12S/v1beta1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:getIamPolicyZC\x12A/v1beta1/{resource=projects/*/locations/*/folders/*}:getIamPolicyZG\x12E/v1beta1/{resource=projects/*/locations/*/teamFolders/*}:getIamPolicy\x12\x8C\x03\x0A\x0CSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1A\x15.google.iam.v1.Policy\"\xC0\x02\x82\xD3\xE4\x93\x02\xB9\x02\"F/v1beta1/{resource=projects/*/locations/*/repositories/*}:setIamPolicy:\x01*ZX\"S/v1beta1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:setIamPolicy:\x01*ZF\"A/v1beta1/{resource=projects/*/locations/*/folders/*}:setIamPolicy:\x01*ZJ\"E/v1beta1/{resource=projects/*/locations/*/teamFolders/*}:setIamPolicy:\x01*\x12\xC4\x03\x0A\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1A).google.iam.v1.TestIamPermissionsResponse\"\xD8\x02\x82\xD3\xE4\x93\x02\xD1\x02\"L/v1beta1/{resource=projects/*/locations/*/repositories/*}:testIamPermissions:\x01*Z^\"Y/v1beta1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:testIamPermissions:\x01*ZL\"G/v1beta1/{resource=projects/*/locations/*/folders/*}:testIamPermissions:\x01*ZP\"K/v1beta1/{resource=projects/*/locations/*/teamFolders/*}:testIamPermissions:\x01*\x1At\xCAA\x17dataform.googleapis.com\xD2AWhttps://www.googleapis.com/auth/bigquery,https://www.googleapis.com/auth/cloud-platformB\xF7\x05\x0A!com.google.cloud.dataform.v1beta1B\x0DDataformProtoP\x01Z=cloud.google.com/go/dataform/apiv1beta1/dataformpb;dataformpb\xAA\x02\x1DGoogle.Cloud.Dataform.V1Beta1\xCA\x02\x1DGoogle\\Cloud\\Dataform\\V1beta1\xEA\x02 Google::Cloud::Dataform::V1beta1\xEAAd\x0A*secretmanager.googleapis.com/SecretVersion\x126projects/{project}/secrets/{secret}/versions/{version}\xEAAx\x0A!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\xEAA\xA6\x01\x0A(cloudkms.googleapis.com/CryptoKeyVersion\x12zprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}\xEAA\x91\x01\x0A1aiplatform.googleapis.com/NotebookRuntimeTemplate\x12\\projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CancelWorkflowInvocationRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CancelWorkflowInvocationRequest.php new file mode 100644 index 000000000000..455ade46f032 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CancelWorkflowInvocationRequest.php @@ -0,0 +1,67 @@ +google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest + */ +class CancelWorkflowInvocationRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workflow invocation resource's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The workflow invocation resource's name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workflow invocation resource's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The workflow invocation resource's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CancelWorkflowInvocationResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CancelWorkflowInvocationResponse.php new file mode 100644 index 000000000000..c20551c8068a --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CancelWorkflowInvocationResponse.php @@ -0,0 +1,33 @@ +google.cloud.dataform.v1beta1.CancelWorkflowInvocationResponse + */ +class CancelWorkflowInvocationResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CodeCompilationConfig.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CodeCompilationConfig.php new file mode 100644 index 000000000000..cebd39602a9b --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CodeCompilationConfig.php @@ -0,0 +1,403 @@ +google.cloud.dataform.v1beta1.CodeCompilationConfig + */ +class CodeCompilationConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The default database (Google Cloud project ID). + * + * Generated from protobuf field string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $default_database = ''; + /** + * Optional. The default schema (BigQuery dataset ID). + * + * Generated from protobuf field string default_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $default_schema = ''; + /** + * 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. + * + * Generated from protobuf field string default_location = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $default_location = ''; + /** + * Optional. The default schema (BigQuery dataset ID) for assertions. + * + * Generated from protobuf field string assertion_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $assertion_schema = ''; + /** + * Optional. User-defined variables that are made available to project code + * during compilation. + * + * Generated from protobuf field map vars = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $vars; + /** + * Optional. The suffix that should be appended to all database (Google Cloud + * project ID) names. + * + * Generated from protobuf field string database_suffix = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $database_suffix = ''; + /** + * Optional. The suffix that should be appended to all schema (BigQuery + * dataset ID) names. + * + * Generated from protobuf field string schema_suffix = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $schema_suffix = ''; + /** + * Optional. The prefix that should be prepended to all table names. + * + * Generated from protobuf field string table_prefix = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $table_prefix = ''; + /** + * Optional. The prefix to prepend to built-in assertion names. + * + * Generated from protobuf field string builtin_assertion_name_prefix = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $builtin_assertion_name_prefix = ''; + /** + * Optional. The default notebook runtime options. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.NotebookRuntimeOptions default_notebook_runtime_options = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $default_notebook_runtime_options = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $default_database + * Optional. The default database (Google Cloud project ID). + * @type string $default_schema + * Optional. The default schema (BigQuery dataset ID). + * @type string $default_location + * 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. + * @type string $assertion_schema + * Optional. The default schema (BigQuery dataset ID) for assertions. + * @type array|\Google\Protobuf\Internal\MapField $vars + * Optional. User-defined variables that are made available to project code + * during compilation. + * @type string $database_suffix + * Optional. The suffix that should be appended to all database (Google Cloud + * project ID) names. + * @type string $schema_suffix + * Optional. The suffix that should be appended to all schema (BigQuery + * dataset ID) names. + * @type string $table_prefix + * Optional. The prefix that should be prepended to all table names. + * @type string $builtin_assertion_name_prefix + * Optional. The prefix to prepend to built-in assertion names. + * @type \Google\Cloud\Dataform\V1beta1\NotebookRuntimeOptions $default_notebook_runtime_options + * Optional. The default notebook runtime options. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The default database (Google Cloud project ID). + * + * Generated from protobuf field string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDefaultDatabase() + { + return $this->default_database; + } + + /** + * Optional. The default database (Google Cloud project ID). + * + * Generated from protobuf field string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDefaultDatabase($var) + { + GPBUtil::checkString($var, True); + $this->default_database = $var; + + return $this; + } + + /** + * Optional. The default schema (BigQuery dataset ID). + * + * Generated from protobuf field string default_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDefaultSchema() + { + return $this->default_schema; + } + + /** + * Optional. The default schema (BigQuery dataset ID). + * + * Generated from protobuf field string default_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDefaultSchema($var) + { + GPBUtil::checkString($var, True); + $this->default_schema = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string default_location = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDefaultLocation() + { + return $this->default_location; + } + + /** + * 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. + * + * Generated from protobuf field string default_location = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDefaultLocation($var) + { + GPBUtil::checkString($var, True); + $this->default_location = $var; + + return $this; + } + + /** + * Optional. The default schema (BigQuery dataset ID) for assertions. + * + * Generated from protobuf field string assertion_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getAssertionSchema() + { + return $this->assertion_schema; + } + + /** + * Optional. The default schema (BigQuery dataset ID) for assertions. + * + * Generated from protobuf field string assertion_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setAssertionSchema($var) + { + GPBUtil::checkString($var, True); + $this->assertion_schema = $var; + + return $this; + } + + /** + * Optional. User-defined variables that are made available to project code + * during compilation. + * + * Generated from protobuf field map vars = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getVars() + { + return $this->vars; + } + + /** + * Optional. User-defined variables that are made available to project code + * during compilation. + * + * Generated from protobuf field map vars = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setVars($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->vars = $arr; + + return $this; + } + + /** + * Optional. The suffix that should be appended to all database (Google Cloud + * project ID) names. + * + * Generated from protobuf field string database_suffix = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDatabaseSuffix() + { + return $this->database_suffix; + } + + /** + * Optional. The suffix that should be appended to all database (Google Cloud + * project ID) names. + * + * Generated from protobuf field string database_suffix = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDatabaseSuffix($var) + { + GPBUtil::checkString($var, True); + $this->database_suffix = $var; + + return $this; + } + + /** + * Optional. The suffix that should be appended to all schema (BigQuery + * dataset ID) names. + * + * Generated from protobuf field string schema_suffix = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getSchemaSuffix() + { + return $this->schema_suffix; + } + + /** + * Optional. The suffix that should be appended to all schema (BigQuery + * dataset ID) names. + * + * Generated from protobuf field string schema_suffix = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setSchemaSuffix($var) + { + GPBUtil::checkString($var, True); + $this->schema_suffix = $var; + + return $this; + } + + /** + * Optional. The prefix that should be prepended to all table names. + * + * Generated from protobuf field string table_prefix = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getTablePrefix() + { + return $this->table_prefix; + } + + /** + * Optional. The prefix that should be prepended to all table names. + * + * Generated from protobuf field string table_prefix = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setTablePrefix($var) + { + GPBUtil::checkString($var, True); + $this->table_prefix = $var; + + return $this; + } + + /** + * Optional. The prefix to prepend to built-in assertion names. + * + * Generated from protobuf field string builtin_assertion_name_prefix = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getBuiltinAssertionNamePrefix() + { + return $this->builtin_assertion_name_prefix; + } + + /** + * Optional. The prefix to prepend to built-in assertion names. + * + * Generated from protobuf field string builtin_assertion_name_prefix = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setBuiltinAssertionNamePrefix($var) + { + GPBUtil::checkString($var, True); + $this->builtin_assertion_name_prefix = $var; + + return $this; + } + + /** + * Optional. The default notebook runtime options. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.NotebookRuntimeOptions default_notebook_runtime_options = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataform\V1beta1\NotebookRuntimeOptions|null + */ + public function getDefaultNotebookRuntimeOptions() + { + return $this->default_notebook_runtime_options; + } + + public function hasDefaultNotebookRuntimeOptions() + { + return isset($this->default_notebook_runtime_options); + } + + public function clearDefaultNotebookRuntimeOptions() + { + unset($this->default_notebook_runtime_options); + } + + /** + * Optional. The default notebook runtime options. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.NotebookRuntimeOptions default_notebook_runtime_options = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataform\V1beta1\NotebookRuntimeOptions $var + * @return $this + */ + public function setDefaultNotebookRuntimeOptions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\NotebookRuntimeOptions::class); + $this->default_notebook_runtime_options = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitAuthor.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitAuthor.php new file mode 100644 index 000000000000..16c0ecc12fad --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitAuthor.php @@ -0,0 +1,101 @@ +google.cloud.dataform.v1beta1.CommitAuthor + */ +class CommitAuthor extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The commit author's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + /** + * Required. The commit author's email address. + * + * Generated from protobuf field string email_address = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $email_address = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The commit author's name. + * @type string $email_address + * Required. The commit author's email address. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The commit author's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The commit author's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The commit author's email address. + * + * Generated from protobuf field string email_address = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getEmailAddress() + { + return $this->email_address; + } + + /** + * Required. The commit author's email address. + * + * Generated from protobuf field string email_address = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setEmailAddress($var) + { + GPBUtil::checkString($var, True); + $this->email_address = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitLogEntry.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitLogEntry.php new file mode 100644 index 000000000000..0000fb4bac56 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitLogEntry.php @@ -0,0 +1,189 @@ +google.cloud.dataform.v1beta1.CommitLogEntry + */ +class CommitLogEntry extends \Google\Protobuf\Internal\Message +{ + /** + * Commit timestamp. + * + * Generated from protobuf field .google.protobuf.Timestamp commit_time = 1; + */ + protected $commit_time = null; + /** + * The commit SHA for this commit log entry. + * + * Generated from protobuf field string commit_sha = 2; + */ + protected $commit_sha = ''; + /** + * The commit author for this commit log entry. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CommitAuthor author = 3; + */ + protected $author = null; + /** + * The commit message for this commit log entry. + * + * Generated from protobuf field string commit_message = 4; + */ + protected $commit_message = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Timestamp $commit_time + * Commit timestamp. + * @type string $commit_sha + * The commit SHA for this commit log entry. + * @type \Google\Cloud\Dataform\V1beta1\CommitAuthor $author + * The commit author for this commit log entry. + * @type string $commit_message + * The commit message for this commit log entry. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Commit timestamp. + * + * Generated from protobuf field .google.protobuf.Timestamp commit_time = 1; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCommitTime() + { + return $this->commit_time; + } + + public function hasCommitTime() + { + return isset($this->commit_time); + } + + public function clearCommitTime() + { + unset($this->commit_time); + } + + /** + * Commit timestamp. + * + * Generated from protobuf field .google.protobuf.Timestamp commit_time = 1; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCommitTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->commit_time = $var; + + return $this; + } + + /** + * The commit SHA for this commit log entry. + * + * Generated from protobuf field string commit_sha = 2; + * @return string + */ + public function getCommitSha() + { + return $this->commit_sha; + } + + /** + * The commit SHA for this commit log entry. + * + * Generated from protobuf field string commit_sha = 2; + * @param string $var + * @return $this + */ + public function setCommitSha($var) + { + GPBUtil::checkString($var, True); + $this->commit_sha = $var; + + return $this; + } + + /** + * The commit author for this commit log entry. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CommitAuthor author = 3; + * @return \Google\Cloud\Dataform\V1beta1\CommitAuthor|null + */ + public function getAuthor() + { + return $this->author; + } + + public function hasAuthor() + { + return isset($this->author); + } + + public function clearAuthor() + { + unset($this->author); + } + + /** + * The commit author for this commit log entry. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CommitAuthor author = 3; + * @param \Google\Cloud\Dataform\V1beta1\CommitAuthor $var + * @return $this + */ + public function setAuthor($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CommitAuthor::class); + $this->author = $var; + + return $this; + } + + /** + * The commit message for this commit log entry. + * + * Generated from protobuf field string commit_message = 4; + * @return string + */ + public function getCommitMessage() + { + return $this->commit_message; + } + + /** + * The commit message for this commit log entry. + * + * Generated from protobuf field string commit_message = 4; + * @param string $var + * @return $this + */ + public function setCommitMessage($var) + { + GPBUtil::checkString($var, True); + $this->commit_message = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitMetadata.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitMetadata.php new file mode 100644 index 000000000000..badca8b21a82 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitMetadata.php @@ -0,0 +1,111 @@ +google.cloud.dataform.v1beta1.CommitMetadata + */ +class CommitMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The commit's author. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CommitAuthor author = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $author = null; + /** + * Optional. The commit's message. + * + * Generated from protobuf field string commit_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $commit_message = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1beta1\CommitAuthor $author + * Required. The commit's author. + * @type string $commit_message + * Optional. The commit's message. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The commit's author. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CommitAuthor author = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataform\V1beta1\CommitAuthor|null + */ + public function getAuthor() + { + return $this->author; + } + + public function hasAuthor() + { + return isset($this->author); + } + + public function clearAuthor() + { + unset($this->author); + } + + /** + * Required. The commit's author. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CommitAuthor author = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataform\V1beta1\CommitAuthor $var + * @return $this + */ + public function setAuthor($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CommitAuthor::class); + $this->author = $var; + + return $this; + } + + /** + * Optional. The commit's message. + * + * Generated from protobuf field string commit_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getCommitMessage() + { + return $this->commit_message; + } + + /** + * Optional. The commit's message. + * + * Generated from protobuf field string commit_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setCommitMessage($var) + { + GPBUtil::checkString($var, True); + $this->commit_message = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesRequest.php new file mode 100644 index 000000000000..c011f90c6db0 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesRequest.php @@ -0,0 +1,191 @@ +google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest + */ +class CommitRepositoryChangesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. The changes to commit to the repository. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $commit_metadata = null; + /** + * 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. + * + * Generated from protobuf field string required_head_commit_sha = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $required_head_commit_sha = ''; + /** + * Optional. A map to the path of the file to the operation. The path is the + * full file path including filename, from repository root. + * + * Generated from protobuf field map file_operations = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $file_operations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The repository's name. + * @type \Google\Cloud\Dataform\V1beta1\CommitMetadata $commit_metadata + * Required. The changes to commit to the repository. + * @type string $required_head_commit_sha + * 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. + * @type array|\Google\Protobuf\Internal\MapField $file_operations + * Optional. A map to the path of the file to the operation. The path is the + * full file path including filename, from repository root. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The changes to commit to the repository. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataform\V1beta1\CommitMetadata|null + */ + public function getCommitMetadata() + { + return $this->commit_metadata; + } + + public function hasCommitMetadata() + { + return isset($this->commit_metadata); + } + + public function clearCommitMetadata() + { + unset($this->commit_metadata); + } + + /** + * Required. The changes to commit to the repository. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataform\V1beta1\CommitMetadata $var + * @return $this + */ + public function setCommitMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CommitMetadata::class); + $this->commit_metadata = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string required_head_commit_sha = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRequiredHeadCommitSha() + { + return $this->required_head_commit_sha; + } + + /** + * 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. + * + * Generated from protobuf field string required_head_commit_sha = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRequiredHeadCommitSha($var) + { + GPBUtil::checkString($var, True); + $this->required_head_commit_sha = $var; + + return $this; + } + + /** + * Optional. A map to the path of the file to the operation. The path is the + * full file path including filename, from repository root. + * + * Generated from protobuf field map file_operations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getFileOperations() + { + return $this->file_operations; + } + + /** + * Optional. A map to the path of the file to the operation. The path is the + * full file path including filename, from repository root. + * + * Generated from protobuf field map file_operations = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setFileOperations($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\CommitRepositoryChangesRequest\FileOperation::class); + $this->file_operations = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesRequest/FileOperation.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesRequest/FileOperation.php new file mode 100644 index 000000000000..0145516b80f5 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesRequest/FileOperation.php @@ -0,0 +1,108 @@ +google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation + */ +class FileOperation extends \Google\Protobuf\Internal\Message +{ + protected $operation; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1beta1\CommitRepositoryChangesRequest\FileOperation\WriteFile $write_file + * Represents the write operation. + * @type \Google\Cloud\Dataform\V1beta1\CommitRepositoryChangesRequest\FileOperation\DeleteFile $delete_file + * Represents the delete operation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Represents the write operation. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile write_file = 1; + * @return \Google\Cloud\Dataform\V1beta1\CommitRepositoryChangesRequest\FileOperation\WriteFile|null + */ + public function getWriteFile() + { + return $this->readOneof(1); + } + + public function hasWriteFile() + { + return $this->hasOneof(1); + } + + /** + * Represents the write operation. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile write_file = 1; + * @param \Google\Cloud\Dataform\V1beta1\CommitRepositoryChangesRequest\FileOperation\WriteFile $var + * @return $this + */ + public function setWriteFile($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CommitRepositoryChangesRequest\FileOperation\WriteFile::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Represents the delete operation. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile delete_file = 2; + * @return \Google\Cloud\Dataform\V1beta1\CommitRepositoryChangesRequest\FileOperation\DeleteFile|null + */ + public function getDeleteFile() + { + return $this->readOneof(2); + } + + public function hasDeleteFile() + { + return $this->hasOneof(2); + } + + /** + * Represents the delete operation. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile delete_file = 2; + * @param \Google\Cloud\Dataform\V1beta1\CommitRepositoryChangesRequest\FileOperation\DeleteFile $var + * @return $this + */ + public function setDeleteFile($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CommitRepositoryChangesRequest\FileOperation\DeleteFile::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getOperation() + { + return $this->whichOneof("operation"); + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesRequest/FileOperation/DeleteFile.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesRequest/FileOperation/DeleteFile.php new file mode 100644 index 000000000000..788950be7443 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesRequest/FileOperation/DeleteFile.php @@ -0,0 +1,33 @@ +google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile + */ +class DeleteFile extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesRequest/FileOperation/WriteFile.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesRequest/FileOperation/WriteFile.php new file mode 100644 index 000000000000..d7064e81b90e --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesRequest/FileOperation/WriteFile.php @@ -0,0 +1,67 @@ +google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile + */ +class WriteFile extends \Google\Protobuf\Internal\Message +{ + /** + * The file's contents. + * + * Generated from protobuf field bytes contents = 1; + */ + protected $contents = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $contents + * The file's contents. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * The file's contents. + * + * Generated from protobuf field bytes contents = 1; + * @return string + */ + public function getContents() + { + return $this->contents; + } + + /** + * The file's contents. + * + * Generated from protobuf field bytes contents = 1; + * @param string $var + * @return $this + */ + public function setContents($var) + { + GPBUtil::checkString($var, False); + $this->contents = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesResponse.php new file mode 100644 index 000000000000..31e8c4d37739 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesResponse.php @@ -0,0 +1,67 @@ +google.cloud.dataform.v1beta1.CommitRepositoryChangesResponse + */ +class CommitRepositoryChangesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The commit SHA of the current commit. + * + * Generated from protobuf field string commit_sha = 1; + */ + protected $commit_sha = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $commit_sha + * The commit SHA of the current commit. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * The commit SHA of the current commit. + * + * Generated from protobuf field string commit_sha = 1; + * @return string + */ + public function getCommitSha() + { + return $this->commit_sha; + } + + /** + * The commit SHA of the current commit. + * + * Generated from protobuf field string commit_sha = 1; + * @param string $var + * @return $this + */ + public function setCommitSha($var) + { + GPBUtil::checkString($var, True); + $this->commit_sha = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitWorkspaceChangesRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitWorkspaceChangesRequest.php new file mode 100644 index 000000000000..97d49e03287a --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitWorkspaceChangesRequest.php @@ -0,0 +1,183 @@ +google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest + */ +class CommitWorkspaceChangesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. The commit's author. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CommitAuthor author = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $author = null; + /** + * Optional. The commit's message. + * + * Generated from protobuf field string commit_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $commit_message = ''; + /** + * Optional. Full file paths to commit including filename, rooted at workspace + * root. If left empty, all files will be committed. + * + * Generated from protobuf field repeated string paths = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $paths; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The workspace's name. + * @type \Google\Cloud\Dataform\V1beta1\CommitAuthor $author + * Required. The commit's author. + * @type string $commit_message + * Optional. The commit's message. + * @type string[] $paths + * Optional. Full file paths to commit including filename, rooted at workspace + * root. If left empty, all files will be committed. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The commit's author. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CommitAuthor author = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataform\V1beta1\CommitAuthor|null + */ + public function getAuthor() + { + return $this->author; + } + + public function hasAuthor() + { + return isset($this->author); + } + + public function clearAuthor() + { + unset($this->author); + } + + /** + * Required. The commit's author. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CommitAuthor author = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataform\V1beta1\CommitAuthor $var + * @return $this + */ + public function setAuthor($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CommitAuthor::class); + $this->author = $var; + + return $this; + } + + /** + * Optional. The commit's message. + * + * Generated from protobuf field string commit_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getCommitMessage() + { + return $this->commit_message; + } + + /** + * Optional. The commit's message. + * + * Generated from protobuf field string commit_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setCommitMessage($var) + { + GPBUtil::checkString($var, True); + $this->commit_message = $var; + + return $this; + } + + /** + * Optional. Full file paths to commit including filename, rooted at workspace + * root. If left empty, all files will be committed. + * + * Generated from protobuf field repeated string paths = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getPaths() + { + return $this->paths; + } + + /** + * Optional. Full file paths to commit including filename, rooted at workspace + * root. If left empty, all files will be committed. + * + * Generated from protobuf field repeated string paths = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setPaths($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->paths = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitWorkspaceChangesResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitWorkspaceChangesResponse.php new file mode 100644 index 000000000000..b183710f8517 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitWorkspaceChangesResponse.php @@ -0,0 +1,33 @@ +google.cloud.dataform.v1beta1.CommitWorkspaceChangesResponse + */ +class CommitWorkspaceChangesResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResult.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResult.php new file mode 100644 index 000000000000..1c5f2ee724b3 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResult.php @@ -0,0 +1,539 @@ +google.cloud.dataform.v1beta1.CompilationResult + */ +class CompilationResult extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The compilation result's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Immutable. If set, fields of `code_compilation_config` override the default + * compilation settings that are specified in dataform.json. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $code_compilation_config = null; + /** + * Output only. The fully resolved Git commit SHA of the code that was + * compiled. Not set for compilation results whose source is a workspace. + * + * Generated from protobuf field string resolved_git_commit_sha = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $resolved_git_commit_sha = ''; + /** + * Output only. The version of `\@dataform/core` that was used for compilation. + * + * Generated from protobuf field string dataform_core_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $dataform_core_version = ''; + /** + * Output only. Errors encountered during project compilation. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $compilation_errors; + /** + * Output only. Only set if the repository has a KMS Key. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.DataEncryptionState data_encryption_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $data_encryption_state = null; + /** + * Output only. The timestamp of when the compilation result was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $internal_metadata = null; + /** + * Output only. Metadata indicating whether this resource is user-scoped. + * `CompilationResult` resource is `user_scoped` only if it is sourced + * from a workspace. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $private_resource_metadata = null; + protected $source; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $git_commitish + * 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` + * @type string $workspace + * Immutable. The name of the workspace to compile. Must be in the format + * `projects/{@*}locations/{@*}repositories/{@*}workspaces/*`. + * @type string $release_config + * Immutable. The name of the release config to compile. Must be in the + * format `projects/{@*}locations/{@*}repositories/{@*}releaseConfigs/*`. + * @type string $name + * Output only. The compilation result's name. + * @type \Google\Cloud\Dataform\V1beta1\CodeCompilationConfig $code_compilation_config + * Immutable. If set, fields of `code_compilation_config` override the default + * compilation settings that are specified in dataform.json. + * @type string $resolved_git_commit_sha + * Output only. The fully resolved Git commit SHA of the code that was + * compiled. Not set for compilation results whose source is a workspace. + * @type string $dataform_core_version + * Output only. The version of `\@dataform/core` that was used for compilation. + * @type \Google\Cloud\Dataform\V1beta1\CompilationResult\CompilationError[] $compilation_errors + * Output only. Errors encountered during project compilation. + * @type \Google\Cloud\Dataform\V1beta1\DataEncryptionState $data_encryption_state + * Output only. Only set if the repository has a KMS Key. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The timestamp of when the compilation result was created. + * @type string $internal_metadata + * 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. + * @type \Google\Cloud\Dataform\V1beta1\PrivateResourceMetadata $private_resource_metadata + * Output only. Metadata indicating whether this resource is user-scoped. + * `CompilationResult` resource is `user_scoped` only if it is sourced + * from a workspace. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * 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` + * + * Generated from protobuf field string git_commitish = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getGitCommitish() + { + return $this->readOneof(2); + } + + public function hasGitCommitish() + { + return $this->hasOneof(2); + } + + /** + * 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` + * + * Generated from protobuf field string git_commitish = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setGitCommitish($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Immutable. The name of the workspace to compile. Must be in the format + * `projects/{@*}locations/{@*}repositories/{@*}workspaces/*`. + * + * Generated from protobuf field string workspace = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + * @return string + */ + public function getWorkspace() + { + return $this->readOneof(3); + } + + public function hasWorkspace() + { + return $this->hasOneof(3); + } + + /** + * Immutable. The name of the workspace to compile. Must be in the format + * `projects/{@*}locations/{@*}repositories/{@*}workspaces/*`. + * + * Generated from protobuf field string workspace = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setWorkspace($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Immutable. The name of the release config to compile. Must be in the + * format `projects/{@*}locations/{@*}repositories/{@*}releaseConfigs/*`. + * + * Generated from protobuf field string release_config = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + * @return string + */ + public function getReleaseConfig() + { + return $this->readOneof(7); + } + + public function hasReleaseConfig() + { + return $this->hasOneof(7); + } + + /** + * Immutable. The name of the release config to compile. Must be in the + * format `projects/{@*}locations/{@*}repositories/{@*}releaseConfigs/*`. + * + * Generated from protobuf field string release_config = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setReleaseConfig($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * Output only. The compilation result's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The compilation result's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Immutable. If set, fields of `code_compilation_config` override the default + * compilation settings that are specified in dataform.json. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * @return \Google\Cloud\Dataform\V1beta1\CodeCompilationConfig|null + */ + public function getCodeCompilationConfig() + { + return $this->code_compilation_config; + } + + public function hasCodeCompilationConfig() + { + return isset($this->code_compilation_config); + } + + public function clearCodeCompilationConfig() + { + unset($this->code_compilation_config); + } + + /** + * Immutable. If set, fields of `code_compilation_config` override the default + * compilation settings that are specified in dataform.json. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * @param \Google\Cloud\Dataform\V1beta1\CodeCompilationConfig $var + * @return $this + */ + public function setCodeCompilationConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CodeCompilationConfig::class); + $this->code_compilation_config = $var; + + return $this; + } + + /** + * Output only. The fully resolved Git commit SHA of the code that was + * compiled. Not set for compilation results whose source is a workspace. + * + * Generated from protobuf field string resolved_git_commit_sha = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getResolvedGitCommitSha() + { + return $this->resolved_git_commit_sha; + } + + /** + * Output only. The fully resolved Git commit SHA of the code that was + * compiled. Not set for compilation results whose source is a workspace. + * + * Generated from protobuf field string resolved_git_commit_sha = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setResolvedGitCommitSha($var) + { + GPBUtil::checkString($var, True); + $this->resolved_git_commit_sha = $var; + + return $this; + } + + /** + * Output only. The version of `\@dataform/core` that was used for compilation. + * + * Generated from protobuf field string dataform_core_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDataformCoreVersion() + { + return $this->dataform_core_version; + } + + /** + * Output only. The version of `\@dataform/core` that was used for compilation. + * + * Generated from protobuf field string dataform_core_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDataformCoreVersion($var) + { + GPBUtil::checkString($var, True); + $this->dataform_core_version = $var; + + return $this; + } + + /** + * Output only. Errors encountered during project compilation. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\CompilationResult\CompilationError> + */ + public function getCompilationErrors() + { + return $this->compilation_errors; + } + + /** + * Output only. Errors encountered during project compilation. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataform\V1beta1\CompilationResult\CompilationError[] $var + * @return $this + */ + public function setCompilationErrors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\CompilationResult\CompilationError::class); + $this->compilation_errors = $arr; + + return $this; + } + + /** + * Output only. Only set if the repository has a KMS Key. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.DataEncryptionState data_encryption_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataform\V1beta1\DataEncryptionState|null + */ + public function getDataEncryptionState() + { + return $this->data_encryption_state; + } + + public function hasDataEncryptionState() + { + return isset($this->data_encryption_state); + } + + public function clearDataEncryptionState() + { + unset($this->data_encryption_state); + } + + /** + * Output only. Only set if the repository has a KMS Key. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.DataEncryptionState data_encryption_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataform\V1beta1\DataEncryptionState $var + * @return $this + */ + public function setDataEncryptionState($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\DataEncryptionState::class); + $this->data_encryption_state = $var; + + return $this; + } + + /** + * Output only. The timestamp of when the compilation result was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The timestamp of when the compilation result was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getInternalMetadata() + { + return isset($this->internal_metadata) ? $this->internal_metadata : ''; + } + + public function hasInternalMetadata() + { + return isset($this->internal_metadata); + } + + public function clearInternalMetadata() + { + unset($this->internal_metadata); + } + + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setInternalMetadata($var) + { + GPBUtil::checkString($var, True); + $this->internal_metadata = $var; + + return $this; + } + + /** + * Output only. Metadata indicating whether this resource is user-scoped. + * `CompilationResult` resource is `user_scoped` only if it is sourced + * from a workspace. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataform\V1beta1\PrivateResourceMetadata|null + */ + public function getPrivateResourceMetadata() + { + return $this->private_resource_metadata; + } + + public function hasPrivateResourceMetadata() + { + return isset($this->private_resource_metadata); + } + + public function clearPrivateResourceMetadata() + { + unset($this->private_resource_metadata); + } + + /** + * Output only. Metadata indicating whether this resource is user-scoped. + * `CompilationResult` resource is `user_scoped` only if it is sourced + * from a workspace. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataform\V1beta1\PrivateResourceMetadata $var + * @return $this + */ + public function setPrivateResourceMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\PrivateResourceMetadata::class); + $this->private_resource_metadata = $var; + + return $this; + } + + /** + * @return string + */ + public function getSource() + { + return $this->whichOneof("source"); + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResult/CompilationError.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResult/CompilationError.php new file mode 100644 index 000000000000..5ebf8d27c434 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResult/CompilationError.php @@ -0,0 +1,187 @@ +google.cloud.dataform.v1beta1.CompilationResult.CompilationError + */ +class CompilationError extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The error's top level message. + * + * Generated from protobuf field string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $message = ''; + /** + * Output only. The error's full stack trace. + * + * Generated from protobuf field string stack = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $stack = ''; + /** + * Output only. The path of the file where this error occurred, if + * available, relative to the project root. + * + * Generated from protobuf field string path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $path = ''; + /** + * Output only. The identifier of the action where this error occurred, if + * available. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $action_target = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $message + * Output only. The error's top level message. + * @type string $stack + * Output only. The error's full stack trace. + * @type string $path + * Output only. The path of the file where this error occurred, if + * available, relative to the project root. + * @type \Google\Cloud\Dataform\V1beta1\Target $action_target + * Output only. The identifier of the action where this error occurred, if + * available. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The error's top level message. + * + * Generated from protobuf field string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * Output only. The error's top level message. + * + * Generated from protobuf field string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + + /** + * Output only. The error's full stack trace. + * + * Generated from protobuf field string stack = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getStack() + { + return $this->stack; + } + + /** + * Output only. The error's full stack trace. + * + * Generated from protobuf field string stack = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setStack($var) + { + GPBUtil::checkString($var, True); + $this->stack = $var; + + return $this; + } + + /** + * Output only. The path of the file where this error occurred, if + * available, relative to the project root. + * + * Generated from protobuf field string path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getPath() + { + return $this->path; + } + + /** + * Output only. The path of the file where this error occurred, if + * available, relative to the project root. + * + * Generated from protobuf field string path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setPath($var) + { + GPBUtil::checkString($var, True); + $this->path = $var; + + return $this; + } + + /** + * Output only. The identifier of the action where this error occurred, if + * available. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataform\V1beta1\Target|null + */ + public function getActionTarget() + { + return $this->action_target; + } + + public function hasActionTarget() + { + return isset($this->action_target); + } + + public function clearActionTarget() + { + unset($this->action_target); + } + + /** + * Output only. The identifier of the action where this error occurred, if + * available. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataform\V1beta1\Target $var + * @return $this + */ + public function setActionTarget($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Target::class); + $this->action_target = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction.php new file mode 100644 index 000000000000..29b58bdbc005 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction.php @@ -0,0 +1,422 @@ +google.cloud.dataform.v1beta1.CompilationResultAction + */ +class CompilationResultAction extends \Google\Protobuf\Internal\Message +{ + /** + * This action's identifier. Unique within the compilation result. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Target target = 1; + */ + protected $target = null; + /** + * The action's identifier if the project had been compiled without any + * overrides configured. Unique within the compilation result. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Target canonical_target = 2; + */ + protected $canonical_target = null; + /** + * The full path including filename in which this action is located, relative + * to the workspace root. + * + * Generated from protobuf field string file_path = 3; + */ + protected $file_path = ''; + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $internal_metadata = null; + protected $compiled_object; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Relation $relation + * The database relation created/updated by this action. + * @type \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Operations $operations + * The database operations executed by this action. + * @type \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Assertion $assertion + * The assertion executed by this action. + * @type \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Declaration $declaration + * The declaration declared by this action. + * @type \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Notebook $notebook + * The notebook executed by this action. + * @type \Google\Cloud\Dataform\V1beta1\CompilationResultAction\DataPreparation $data_preparation + * The data preparation executed by this action. + * @type \Google\Cloud\Dataform\V1beta1\Target $target + * This action's identifier. Unique within the compilation result. + * @type \Google\Cloud\Dataform\V1beta1\Target $canonical_target + * The action's identifier if the project had been compiled without any + * overrides configured. Unique within the compilation result. + * @type string $file_path + * The full path including filename in which this action is located, relative + * to the workspace root. + * @type string $internal_metadata + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * The database relation created/updated by this action. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.Relation relation = 4; + * @return \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Relation|null + */ + public function getRelation() + { + return $this->readOneof(4); + } + + public function hasRelation() + { + return $this->hasOneof(4); + } + + /** + * The database relation created/updated by this action. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.Relation relation = 4; + * @param \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Relation $var + * @return $this + */ + public function setRelation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Relation::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * The database operations executed by this action. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.Operations operations = 5; + * @return \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Operations|null + */ + public function getOperations() + { + return $this->readOneof(5); + } + + public function hasOperations() + { + return $this->hasOneof(5); + } + + /** + * The database operations executed by this action. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.Operations operations = 5; + * @param \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Operations $var + * @return $this + */ + public function setOperations($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Operations::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * The assertion executed by this action. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.Assertion assertion = 6; + * @return \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Assertion|null + */ + public function getAssertion() + { + return $this->readOneof(6); + } + + public function hasAssertion() + { + return $this->hasOneof(6); + } + + /** + * The assertion executed by this action. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.Assertion assertion = 6; + * @param \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Assertion $var + * @return $this + */ + public function setAssertion($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Assertion::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * The declaration declared by this action. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.Declaration declaration = 7; + * @return \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Declaration|null + */ + public function getDeclaration() + { + return $this->readOneof(7); + } + + public function hasDeclaration() + { + return $this->hasOneof(7); + } + + /** + * The declaration declared by this action. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.Declaration declaration = 7; + * @param \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Declaration $var + * @return $this + */ + public function setDeclaration($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Declaration::class); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * The notebook executed by this action. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.Notebook notebook = 8; + * @return \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Notebook|null + */ + public function getNotebook() + { + return $this->readOneof(8); + } + + public function hasNotebook() + { + return $this->hasOneof(8); + } + + /** + * The notebook executed by this action. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.Notebook notebook = 8; + * @param \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Notebook $var + * @return $this + */ + public function setNotebook($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Notebook::class); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * The data preparation executed by this action. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.DataPreparation data_preparation = 9; + * @return \Google\Cloud\Dataform\V1beta1\CompilationResultAction\DataPreparation|null + */ + public function getDataPreparation() + { + return $this->readOneof(9); + } + + public function hasDataPreparation() + { + return $this->hasOneof(9); + } + + /** + * The data preparation executed by this action. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.DataPreparation data_preparation = 9; + * @param \Google\Cloud\Dataform\V1beta1\CompilationResultAction\DataPreparation $var + * @return $this + */ + public function setDataPreparation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CompilationResultAction\DataPreparation::class); + $this->writeOneof(9, $var); + + return $this; + } + + /** + * This action's identifier. Unique within the compilation result. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Target target = 1; + * @return \Google\Cloud\Dataform\V1beta1\Target|null + */ + public function getTarget() + { + return $this->target; + } + + public function hasTarget() + { + return isset($this->target); + } + + public function clearTarget() + { + unset($this->target); + } + + /** + * This action's identifier. Unique within the compilation result. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Target target = 1; + * @param \Google\Cloud\Dataform\V1beta1\Target $var + * @return $this + */ + public function setTarget($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Target::class); + $this->target = $var; + + return $this; + } + + /** + * The action's identifier if the project had been compiled without any + * overrides configured. Unique within the compilation result. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Target canonical_target = 2; + * @return \Google\Cloud\Dataform\V1beta1\Target|null + */ + public function getCanonicalTarget() + { + return $this->canonical_target; + } + + public function hasCanonicalTarget() + { + return isset($this->canonical_target); + } + + public function clearCanonicalTarget() + { + unset($this->canonical_target); + } + + /** + * The action's identifier if the project had been compiled without any + * overrides configured. Unique within the compilation result. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Target canonical_target = 2; + * @param \Google\Cloud\Dataform\V1beta1\Target $var + * @return $this + */ + public function setCanonicalTarget($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Target::class); + $this->canonical_target = $var; + + return $this; + } + + /** + * The full path including filename in which this action is located, relative + * to the workspace root. + * + * Generated from protobuf field string file_path = 3; + * @return string + */ + public function getFilePath() + { + return $this->file_path; + } + + /** + * The full path including filename in which this action is located, relative + * to the workspace root. + * + * Generated from protobuf field string file_path = 3; + * @param string $var + * @return $this + */ + public function setFilePath($var) + { + GPBUtil::checkString($var, True); + $this->file_path = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getInternalMetadata() + { + return isset($this->internal_metadata) ? $this->internal_metadata : ''; + } + + public function hasInternalMetadata() + { + return isset($this->internal_metadata); + } + + public function clearInternalMetadata() + { + unset($this->internal_metadata); + } + + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setInternalMetadata($var) + { + GPBUtil::checkString($var, True); + $this->internal_metadata = $var; + + return $this; + } + + /** + * @return string + */ + public function getCompiledObject() + { + return $this->whichOneof("compiled_object"); + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Assertion.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Assertion.php new file mode 100644 index 000000000000..31f1a75de7b8 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Assertion.php @@ -0,0 +1,270 @@ +google.cloud.dataform.v1beta1.CompilationResultAction.Assertion + */ +class Assertion extends \Google\Protobuf\Internal\Message +{ + /** + * A list of actions that this action depends on. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; + */ + private $dependency_targets; + /** + * The parent action of this assertion. Only set if this assertion was + * automatically generated. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Target parent_action = 5; + */ + protected $parent_action = null; + /** + * Whether this action is disabled (i.e. should not be run). + * + * Generated from protobuf field bool disabled = 2; + */ + protected $disabled = false; + /** + * Arbitrary, user-defined tags on this action. + * + * Generated from protobuf field repeated string tags = 3; + */ + private $tags; + /** + * The SELECT query which must return zero rows in order for this assertion + * to succeed. + * + * Generated from protobuf field string select_query = 4; + */ + protected $select_query = ''; + /** + * Descriptor for the assertion's automatically-generated view and its + * columns. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6; + */ + protected $relation_descriptor = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1beta1\Target[] $dependency_targets + * A list of actions that this action depends on. + * @type \Google\Cloud\Dataform\V1beta1\Target $parent_action + * The parent action of this assertion. Only set if this assertion was + * automatically generated. + * @type bool $disabled + * Whether this action is disabled (i.e. should not be run). + * @type string[] $tags + * Arbitrary, user-defined tags on this action. + * @type string $select_query + * The SELECT query which must return zero rows in order for this assertion + * to succeed. + * @type \Google\Cloud\Dataform\V1beta1\RelationDescriptor $relation_descriptor + * Descriptor for the assertion's automatically-generated view and its + * columns. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * A list of actions that this action depends on. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; + * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\Target> + */ + public function getDependencyTargets() + { + return $this->dependency_targets; + } + + /** + * A list of actions that this action depends on. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; + * @param \Google\Cloud\Dataform\V1beta1\Target[] $var + * @return $this + */ + public function setDependencyTargets($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\Target::class); + $this->dependency_targets = $arr; + + return $this; + } + + /** + * The parent action of this assertion. Only set if this assertion was + * automatically generated. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Target parent_action = 5; + * @return \Google\Cloud\Dataform\V1beta1\Target|null + */ + public function getParentAction() + { + return $this->parent_action; + } + + public function hasParentAction() + { + return isset($this->parent_action); + } + + public function clearParentAction() + { + unset($this->parent_action); + } + + /** + * The parent action of this assertion. Only set if this assertion was + * automatically generated. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Target parent_action = 5; + * @param \Google\Cloud\Dataform\V1beta1\Target $var + * @return $this + */ + public function setParentAction($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Target::class); + $this->parent_action = $var; + + return $this; + } + + /** + * Whether this action is disabled (i.e. should not be run). + * + * Generated from protobuf field bool disabled = 2; + * @return bool + */ + public function getDisabled() + { + return $this->disabled; + } + + /** + * Whether this action is disabled (i.e. should not be run). + * + * Generated from protobuf field bool disabled = 2; + * @param bool $var + * @return $this + */ + public function setDisabled($var) + { + GPBUtil::checkBool($var); + $this->disabled = $var; + + return $this; + } + + /** + * Arbitrary, user-defined tags on this action. + * + * Generated from protobuf field repeated string tags = 3; + * @return RepeatedField + */ + public function getTags() + { + return $this->tags; + } + + /** + * Arbitrary, user-defined tags on this action. + * + * Generated from protobuf field repeated string tags = 3; + * @param string[] $var + * @return $this + */ + public function setTags($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->tags = $arr; + + return $this; + } + + /** + * The SELECT query which must return zero rows in order for this assertion + * to succeed. + * + * Generated from protobuf field string select_query = 4; + * @return string + */ + public function getSelectQuery() + { + return $this->select_query; + } + + /** + * The SELECT query which must return zero rows in order for this assertion + * to succeed. + * + * Generated from protobuf field string select_query = 4; + * @param string $var + * @return $this + */ + public function setSelectQuery($var) + { + GPBUtil::checkString($var, True); + $this->select_query = $var; + + return $this; + } + + /** + * Descriptor for the assertion's automatically-generated view and its + * columns. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6; + * @return \Google\Cloud\Dataform\V1beta1\RelationDescriptor|null + */ + public function getRelationDescriptor() + { + return $this->relation_descriptor; + } + + public function hasRelationDescriptor() + { + return isset($this->relation_descriptor); + } + + public function clearRelationDescriptor() + { + unset($this->relation_descriptor); + } + + /** + * Descriptor for the assertion's automatically-generated view and its + * columns. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6; + * @param \Google\Cloud\Dataform\V1beta1\RelationDescriptor $var + * @return $this + */ + public function setRelationDescriptor($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\RelationDescriptor::class); + $this->relation_descriptor = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/DataPreparation.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/DataPreparation.php new file mode 100644 index 000000000000..536adb911cb1 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/DataPreparation.php @@ -0,0 +1,213 @@ +google.cloud.dataform.v1beta1.CompilationResultAction.DataPreparation + */ +class DataPreparation extends \Google\Protobuf\Internal\Message +{ + /** + * A list of actions that this action depends on. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; + */ + private $dependency_targets; + /** + * Whether this action is disabled (i.e. should not be run). + * + * Generated from protobuf field bool disabled = 2; + */ + protected $disabled = false; + /** + * Arbitrary, user-defined tags on this action. + * + * Generated from protobuf field repeated string tags = 4; + */ + private $tags; + protected $definition; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $contents_yaml + * The data preparation definition, stored as a YAML string. + * @type \Google\Cloud\Dataform\V1beta1\CompilationResultAction\DataPreparation\SqlDefinition $contents_sql + * SQL definition for a Data Preparation. Contains a SQL query and + * additional context information. + * @type \Google\Cloud\Dataform\V1beta1\Target[] $dependency_targets + * A list of actions that this action depends on. + * @type bool $disabled + * Whether this action is disabled (i.e. should not be run). + * @type string[] $tags + * Arbitrary, user-defined tags on this action. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * The data preparation definition, stored as a YAML string. + * + * Generated from protobuf field string contents_yaml = 5; + * @return string + */ + public function getContentsYaml() + { + return $this->readOneof(5); + } + + public function hasContentsYaml() + { + return $this->hasOneof(5); + } + + /** + * The data preparation definition, stored as a YAML string. + * + * Generated from protobuf field string contents_yaml = 5; + * @param string $var + * @return $this + */ + public function setContentsYaml($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * SQL definition for a Data Preparation. Contains a SQL query and + * additional context information. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.DataPreparation.SqlDefinition contents_sql = 6; + * @return \Google\Cloud\Dataform\V1beta1\CompilationResultAction\DataPreparation\SqlDefinition|null + */ + public function getContentsSql() + { + return $this->readOneof(6); + } + + public function hasContentsSql() + { + return $this->hasOneof(6); + } + + /** + * SQL definition for a Data Preparation. Contains a SQL query and + * additional context information. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.DataPreparation.SqlDefinition contents_sql = 6; + * @param \Google\Cloud\Dataform\V1beta1\CompilationResultAction\DataPreparation\SqlDefinition $var + * @return $this + */ + public function setContentsSql($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CompilationResultAction\DataPreparation\SqlDefinition::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * A list of actions that this action depends on. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; + * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\Target> + */ + public function getDependencyTargets() + { + return $this->dependency_targets; + } + + /** + * A list of actions that this action depends on. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; + * @param \Google\Cloud\Dataform\V1beta1\Target[] $var + * @return $this + */ + public function setDependencyTargets($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\Target::class); + $this->dependency_targets = $arr; + + return $this; + } + + /** + * Whether this action is disabled (i.e. should not be run). + * + * Generated from protobuf field bool disabled = 2; + * @return bool + */ + public function getDisabled() + { + return $this->disabled; + } + + /** + * Whether this action is disabled (i.e. should not be run). + * + * Generated from protobuf field bool disabled = 2; + * @param bool $var + * @return $this + */ + public function setDisabled($var) + { + GPBUtil::checkBool($var); + $this->disabled = $var; + + return $this; + } + + /** + * Arbitrary, user-defined tags on this action. + * + * Generated from protobuf field repeated string tags = 4; + * @return RepeatedField + */ + public function getTags() + { + return $this->tags; + } + + /** + * Arbitrary, user-defined tags on this action. + * + * Generated from protobuf field repeated string tags = 4; + * @param string[] $var + * @return $this + */ + public function setTags($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->tags = $arr; + + return $this; + } + + /** + * @return string + */ + public function getDefinition() + { + return $this->whichOneof("definition"); + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/DataPreparation/ErrorTable.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/DataPreparation/ErrorTable.php new file mode 100644 index 000000000000..d2f5f7adc345 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/DataPreparation/ErrorTable.php @@ -0,0 +1,116 @@ +google.cloud.dataform.v1beta1.CompilationResultAction.DataPreparation.ErrorTable + */ +class ErrorTable extends \Google\Protobuf\Internal\Message +{ + /** + * Error Table target. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Target target = 1; + */ + protected $target = null; + /** + * Error table partition expiration in days. Only positive values are + * allowed. + * + * Generated from protobuf field int32 retention_days = 2; + */ + protected $retention_days = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1beta1\Target $target + * Error Table target. + * @type int $retention_days + * Error table partition expiration in days. Only positive values are + * allowed. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Error Table target. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Target target = 1; + * @return \Google\Cloud\Dataform\V1beta1\Target|null + */ + public function getTarget() + { + return $this->target; + } + + public function hasTarget() + { + return isset($this->target); + } + + public function clearTarget() + { + unset($this->target); + } + + /** + * Error Table target. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Target target = 1; + * @param \Google\Cloud\Dataform\V1beta1\Target $var + * @return $this + */ + public function setTarget($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Target::class); + $this->target = $var; + + return $this; + } + + /** + * Error table partition expiration in days. Only positive values are + * allowed. + * + * Generated from protobuf field int32 retention_days = 2; + * @return int + */ + public function getRetentionDays() + { + return $this->retention_days; + } + + /** + * Error table partition expiration in days. Only positive values are + * allowed. + * + * Generated from protobuf field int32 retention_days = 2; + * @param int $var + * @return $this + */ + public function setRetentionDays($var) + { + GPBUtil::checkInt32($var); + $this->retention_days = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/DataPreparation/SqlDefinition.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/DataPreparation/SqlDefinition.php new file mode 100644 index 000000000000..3889e560941e --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/DataPreparation/SqlDefinition.php @@ -0,0 +1,159 @@ +google.cloud.dataform.v1beta1.CompilationResultAction.DataPreparation.SqlDefinition + */ +class SqlDefinition extends \Google\Protobuf\Internal\Message +{ + /** + * The SQL query representing the data preparation steps. Formatted as a + * Pipe SQL query statement. + * + * Generated from protobuf field string query = 1; + */ + protected $query = ''; + /** + * Error table configuration, + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.DataPreparation.ErrorTable error_table = 2; + */ + protected $error_table = null; + /** + * Load configuration. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.LoadConfig load = 3; + */ + protected $load = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $query + * The SQL query representing the data preparation steps. Formatted as a + * Pipe SQL query statement. + * @type \Google\Cloud\Dataform\V1beta1\CompilationResultAction\DataPreparation\ErrorTable $error_table + * Error table configuration, + * @type \Google\Cloud\Dataform\V1beta1\CompilationResultAction\LoadConfig $load + * Load configuration. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * The SQL query representing the data preparation steps. Formatted as a + * Pipe SQL query statement. + * + * Generated from protobuf field string query = 1; + * @return string + */ + public function getQuery() + { + return $this->query; + } + + /** + * The SQL query representing the data preparation steps. Formatted as a + * Pipe SQL query statement. + * + * Generated from protobuf field string query = 1; + * @param string $var + * @return $this + */ + public function setQuery($var) + { + GPBUtil::checkString($var, True); + $this->query = $var; + + return $this; + } + + /** + * Error table configuration, + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.DataPreparation.ErrorTable error_table = 2; + * @return \Google\Cloud\Dataform\V1beta1\CompilationResultAction\DataPreparation\ErrorTable|null + */ + public function getErrorTable() + { + return $this->error_table; + } + + public function hasErrorTable() + { + return isset($this->error_table); + } + + public function clearErrorTable() + { + unset($this->error_table); + } + + /** + * Error table configuration, + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.DataPreparation.ErrorTable error_table = 2; + * @param \Google\Cloud\Dataform\V1beta1\CompilationResultAction\DataPreparation\ErrorTable $var + * @return $this + */ + public function setErrorTable($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CompilationResultAction\DataPreparation\ErrorTable::class); + $this->error_table = $var; + + return $this; + } + + /** + * Load configuration. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.LoadConfig load = 3; + * @return \Google\Cloud\Dataform\V1beta1\CompilationResultAction\LoadConfig|null + */ + public function getLoad() + { + return $this->load; + } + + public function hasLoad() + { + return isset($this->load); + } + + public function clearLoad() + { + unset($this->load); + } + + /** + * Load configuration. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.LoadConfig load = 3; + * @param \Google\Cloud\Dataform\V1beta1\CompilationResultAction\LoadConfig $var + * @return $this + */ + public function setLoad($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CompilationResultAction\LoadConfig::class); + $this->load = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Declaration.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Declaration.php new file mode 100644 index 000000000000..98d1624fecc8 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Declaration.php @@ -0,0 +1,82 @@ +google.cloud.dataform.v1beta1.CompilationResultAction.Declaration + */ +class Declaration extends \Google\Protobuf\Internal\Message +{ + /** + * 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. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 1; + */ + protected $relation_descriptor = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1beta1\RelationDescriptor $relation_descriptor + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * 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. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 1; + * @return \Google\Cloud\Dataform\V1beta1\RelationDescriptor|null + */ + public function getRelationDescriptor() + { + return $this->relation_descriptor; + } + + public function hasRelationDescriptor() + { + return isset($this->relation_descriptor); + } + + public function clearRelationDescriptor() + { + unset($this->relation_descriptor); + } + + /** + * 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. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 1; + * @param \Google\Cloud\Dataform\V1beta1\RelationDescriptor $var + * @return $this + */ + public function setRelationDescriptor($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\RelationDescriptor::class); + $this->relation_descriptor = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/IncrementalLoadMode.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/IncrementalLoadMode.php new file mode 100644 index 000000000000..1762e02b41cf --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/IncrementalLoadMode.php @@ -0,0 +1,67 @@ +google.cloud.dataform.v1beta1.CompilationResultAction.IncrementalLoadMode + */ +class IncrementalLoadMode extends \Google\Protobuf\Internal\Message +{ + /** + * Column name for incremental load modes + * + * Generated from protobuf field string column = 1; + */ + protected $column = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $column + * Column name for incremental load modes + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Column name for incremental load modes + * + * Generated from protobuf field string column = 1; + * @return string + */ + public function getColumn() + { + return $this->column; + } + + /** + * Column name for incremental load modes + * + * Generated from protobuf field string column = 1; + * @param string $var + * @return $this + */ + public function setColumn($var) + { + GPBUtil::checkString($var, True); + $this->column = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/LoadConfig.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/LoadConfig.php new file mode 100644 index 000000000000..aaee9763a65c --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/LoadConfig.php @@ -0,0 +1,180 @@ +google.cloud.dataform.v1beta1.CompilationResultAction.LoadConfig + */ +class LoadConfig extends \Google\Protobuf\Internal\Message +{ + protected $mode; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1beta1\CompilationResultAction\SimpleLoadMode $replace + * Replace destination table + * @type \Google\Cloud\Dataform\V1beta1\CompilationResultAction\SimpleLoadMode $append + * Append into destination table + * @type \Google\Cloud\Dataform\V1beta1\CompilationResultAction\IncrementalLoadMode $maximum + * Insert records where the value exceeds the previous maximum value for a + * column in the destination table + * @type \Google\Cloud\Dataform\V1beta1\CompilationResultAction\IncrementalLoadMode $unique + * Insert records where the value of a column is not already present in + * the destination table + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Replace destination table + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.SimpleLoadMode replace = 1; + * @return \Google\Cloud\Dataform\V1beta1\CompilationResultAction\SimpleLoadMode|null + */ + public function getReplace() + { + return $this->readOneof(1); + } + + public function hasReplace() + { + return $this->hasOneof(1); + } + + /** + * Replace destination table + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.SimpleLoadMode replace = 1; + * @param \Google\Cloud\Dataform\V1beta1\CompilationResultAction\SimpleLoadMode $var + * @return $this + */ + public function setReplace($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CompilationResultAction\SimpleLoadMode::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Append into destination table + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.SimpleLoadMode append = 2; + * @return \Google\Cloud\Dataform\V1beta1\CompilationResultAction\SimpleLoadMode|null + */ + public function getAppend() + { + return $this->readOneof(2); + } + + public function hasAppend() + { + return $this->hasOneof(2); + } + + /** + * Append into destination table + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.SimpleLoadMode append = 2; + * @param \Google\Cloud\Dataform\V1beta1\CompilationResultAction\SimpleLoadMode $var + * @return $this + */ + public function setAppend($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CompilationResultAction\SimpleLoadMode::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Insert records where the value exceeds the previous maximum value for a + * column in the destination table + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.IncrementalLoadMode maximum = 3; + * @return \Google\Cloud\Dataform\V1beta1\CompilationResultAction\IncrementalLoadMode|null + */ + public function getMaximum() + { + return $this->readOneof(3); + } + + public function hasMaximum() + { + return $this->hasOneof(3); + } + + /** + * Insert records where the value exceeds the previous maximum value for a + * column in the destination table + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.IncrementalLoadMode maximum = 3; + * @param \Google\Cloud\Dataform\V1beta1\CompilationResultAction\IncrementalLoadMode $var + * @return $this + */ + public function setMaximum($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CompilationResultAction\IncrementalLoadMode::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Insert records where the value of a column is not already present in + * the destination table + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.IncrementalLoadMode unique = 4; + * @return \Google\Cloud\Dataform\V1beta1\CompilationResultAction\IncrementalLoadMode|null + */ + public function getUnique() + { + return $this->readOneof(4); + } + + public function hasUnique() + { + return $this->hasOneof(4); + } + + /** + * Insert records where the value of a column is not already present in + * the destination table + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.IncrementalLoadMode unique = 4; + * @param \Google\Cloud\Dataform\V1beta1\CompilationResultAction\IncrementalLoadMode $var + * @return $this + */ + public function setUnique($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CompilationResultAction\IncrementalLoadMode::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * @return string + */ + public function getMode() + { + return $this->whichOneof("mode"); + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Notebook.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Notebook.php new file mode 100644 index 000000000000..e848bff3b740 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Notebook.php @@ -0,0 +1,169 @@ +google.cloud.dataform.v1beta1.CompilationResultAction.Notebook + */ +class Notebook extends \Google\Protobuf\Internal\Message +{ + /** + * A list of actions that this action depends on. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; + */ + private $dependency_targets; + /** + * Whether this action is disabled (i.e. should not be run). + * + * Generated from protobuf field bool disabled = 2; + */ + protected $disabled = false; + /** + * The contents of the notebook. + * + * Generated from protobuf field string contents = 3; + */ + protected $contents = ''; + /** + * Arbitrary, user-defined tags on this action. + * + * Generated from protobuf field repeated string tags = 4; + */ + private $tags; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1beta1\Target[] $dependency_targets + * A list of actions that this action depends on. + * @type bool $disabled + * Whether this action is disabled (i.e. should not be run). + * @type string $contents + * The contents of the notebook. + * @type string[] $tags + * Arbitrary, user-defined tags on this action. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * A list of actions that this action depends on. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; + * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\Target> + */ + public function getDependencyTargets() + { + return $this->dependency_targets; + } + + /** + * A list of actions that this action depends on. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; + * @param \Google\Cloud\Dataform\V1beta1\Target[] $var + * @return $this + */ + public function setDependencyTargets($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\Target::class); + $this->dependency_targets = $arr; + + return $this; + } + + /** + * Whether this action is disabled (i.e. should not be run). + * + * Generated from protobuf field bool disabled = 2; + * @return bool + */ + public function getDisabled() + { + return $this->disabled; + } + + /** + * Whether this action is disabled (i.e. should not be run). + * + * Generated from protobuf field bool disabled = 2; + * @param bool $var + * @return $this + */ + public function setDisabled($var) + { + GPBUtil::checkBool($var); + $this->disabled = $var; + + return $this; + } + + /** + * The contents of the notebook. + * + * Generated from protobuf field string contents = 3; + * @return string + */ + public function getContents() + { + return $this->contents; + } + + /** + * The contents of the notebook. + * + * Generated from protobuf field string contents = 3; + * @param string $var + * @return $this + */ + public function setContents($var) + { + GPBUtil::checkString($var, True); + $this->contents = $var; + + return $this; + } + + /** + * Arbitrary, user-defined tags on this action. + * + * Generated from protobuf field repeated string tags = 4; + * @return RepeatedField + */ + public function getTags() + { + return $this->tags; + } + + /** + * Arbitrary, user-defined tags on this action. + * + * Generated from protobuf field repeated string tags = 4; + * @param string[] $var + * @return $this + */ + public function setTags($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->tags = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Operations.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Operations.php new file mode 100644 index 000000000000..2a1521922d37 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Operations.php @@ -0,0 +1,255 @@ +google.cloud.dataform.v1beta1.CompilationResultAction.Operations + */ +class Operations extends \Google\Protobuf\Internal\Message +{ + /** + * A list of actions that this action depends on. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; + */ + private $dependency_targets; + /** + * Whether this action is disabled (i.e. should not be run). + * + * Generated from protobuf field bool disabled = 2; + */ + protected $disabled = false; + /** + * Arbitrary, user-defined tags on this action. + * + * Generated from protobuf field repeated string tags = 3; + */ + private $tags; + /** + * Descriptor for any output relation and its columns. Only set if + * `has_output` is true. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6; + */ + protected $relation_descriptor = null; + /** + * A list of arbitrary SQL statements that will be executed without + * alteration. + * + * Generated from protobuf field repeated string queries = 4; + */ + private $queries; + /** + * Whether these operations produce an output relation. + * + * Generated from protobuf field bool has_output = 5; + */ + protected $has_output = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1beta1\Target[] $dependency_targets + * A list of actions that this action depends on. + * @type bool $disabled + * Whether this action is disabled (i.e. should not be run). + * @type string[] $tags + * Arbitrary, user-defined tags on this action. + * @type \Google\Cloud\Dataform\V1beta1\RelationDescriptor $relation_descriptor + * Descriptor for any output relation and its columns. Only set if + * `has_output` is true. + * @type string[] $queries + * A list of arbitrary SQL statements that will be executed without + * alteration. + * @type bool $has_output + * Whether these operations produce an output relation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * A list of actions that this action depends on. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; + * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\Target> + */ + public function getDependencyTargets() + { + return $this->dependency_targets; + } + + /** + * A list of actions that this action depends on. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; + * @param \Google\Cloud\Dataform\V1beta1\Target[] $var + * @return $this + */ + public function setDependencyTargets($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\Target::class); + $this->dependency_targets = $arr; + + return $this; + } + + /** + * Whether this action is disabled (i.e. should not be run). + * + * Generated from protobuf field bool disabled = 2; + * @return bool + */ + public function getDisabled() + { + return $this->disabled; + } + + /** + * Whether this action is disabled (i.e. should not be run). + * + * Generated from protobuf field bool disabled = 2; + * @param bool $var + * @return $this + */ + public function setDisabled($var) + { + GPBUtil::checkBool($var); + $this->disabled = $var; + + return $this; + } + + /** + * Arbitrary, user-defined tags on this action. + * + * Generated from protobuf field repeated string tags = 3; + * @return RepeatedField + */ + public function getTags() + { + return $this->tags; + } + + /** + * Arbitrary, user-defined tags on this action. + * + * Generated from protobuf field repeated string tags = 3; + * @param string[] $var + * @return $this + */ + public function setTags($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->tags = $arr; + + return $this; + } + + /** + * Descriptor for any output relation and its columns. Only set if + * `has_output` is true. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6; + * @return \Google\Cloud\Dataform\V1beta1\RelationDescriptor|null + */ + public function getRelationDescriptor() + { + return $this->relation_descriptor; + } + + public function hasRelationDescriptor() + { + return isset($this->relation_descriptor); + } + + public function clearRelationDescriptor() + { + unset($this->relation_descriptor); + } + + /** + * Descriptor for any output relation and its columns. Only set if + * `has_output` is true. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6; + * @param \Google\Cloud\Dataform\V1beta1\RelationDescriptor $var + * @return $this + */ + public function setRelationDescriptor($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\RelationDescriptor::class); + $this->relation_descriptor = $var; + + return $this; + } + + /** + * A list of arbitrary SQL statements that will be executed without + * alteration. + * + * Generated from protobuf field repeated string queries = 4; + * @return RepeatedField + */ + public function getQueries() + { + return $this->queries; + } + + /** + * A list of arbitrary SQL statements that will be executed without + * alteration. + * + * Generated from protobuf field repeated string queries = 4; + * @param string[] $var + * @return $this + */ + public function setQueries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->queries = $arr; + + return $this; + } + + /** + * Whether these operations produce an output relation. + * + * Generated from protobuf field bool has_output = 5; + * @return bool + */ + public function getHasOutput() + { + return $this->has_output; + } + + /** + * Whether these operations produce an output relation. + * + * Generated from protobuf field bool has_output = 5; + * @param bool $var + * @return $this + */ + public function setHasOutput($var) + { + GPBUtil::checkBool($var); + $this->has_output = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation.php new file mode 100644 index 000000000000..34f6a0a95566 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation.php @@ -0,0 +1,709 @@ +google.cloud.dataform.v1beta1.CompilationResultAction.Relation + */ +class Relation extends \Google\Protobuf\Internal\Message +{ + /** + * A list of actions that this action depends on. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; + */ + private $dependency_targets; + /** + * Whether this action is disabled (i.e. should not be run). + * + * Generated from protobuf field bool disabled = 2; + */ + protected $disabled = false; + /** + * Arbitrary, user-defined tags on this action. + * + * Generated from protobuf field repeated string tags = 3; + */ + private $tags; + /** + * Descriptor for the relation and its columns. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 4; + */ + protected $relation_descriptor = null; + /** + * The type of this relation. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType relation_type = 5; + */ + protected $relation_type = 0; + /** + * The SELECT query which returns rows which this relation should contain. + * + * Generated from protobuf field string select_query = 6; + */ + protected $select_query = ''; + /** + * SQL statements to be executed before creating the relation. + * + * Generated from protobuf field repeated string pre_operations = 7; + */ + private $pre_operations; + /** + * SQL statements to be executed after creating the relation. + * + * Generated from protobuf field repeated string post_operations = 8; + */ + private $post_operations; + /** + * Configures `INCREMENTAL_TABLE` settings for this relation. Only set if + * `relation_type` is `INCREMENTAL_TABLE`. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9; + */ + protected $incremental_table_config = null; + /** + * The SQL expression used to partition the relation. + * + * Generated from protobuf field string partition_expression = 10; + */ + protected $partition_expression = ''; + /** + * A list of columns or SQL expressions used to cluster the table. + * + * Generated from protobuf field repeated string cluster_expressions = 11; + */ + private $cluster_expressions; + /** + * Sets the partition expiration in days. + * + * Generated from protobuf field int32 partition_expiration_days = 12; + */ + protected $partition_expiration_days = 0; + /** + * Specifies whether queries on this table must include a predicate filter + * that filters on the partitioning column. + * + * Generated from protobuf field bool require_partition_filter = 13; + */ + protected $require_partition_filter = false; + /** + * 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. + * + * Generated from protobuf field map additional_options = 14; + */ + private $additional_options; + /** + * 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. + * + * Generated from protobuf field string connection = 15 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $connection = ''; + /** + * Optional. The table format for the BigQuery table. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.TableFormat table_format = 16 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $table_format = 0; + /** + * Optional. The file format for the BigQuery table. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.FileFormat file_format = 17 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $file_format = 0; + /** + * 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/`. + * + * Generated from protobuf field string storage_uri = 18 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $storage_uri = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1beta1\Target[] $dependency_targets + * A list of actions that this action depends on. + * @type bool $disabled + * Whether this action is disabled (i.e. should not be run). + * @type string[] $tags + * Arbitrary, user-defined tags on this action. + * @type \Google\Cloud\Dataform\V1beta1\RelationDescriptor $relation_descriptor + * Descriptor for the relation and its columns. + * @type int $relation_type + * The type of this relation. + * @type string $select_query + * The SELECT query which returns rows which this relation should contain. + * @type string[] $pre_operations + * SQL statements to be executed before creating the relation. + * @type string[] $post_operations + * SQL statements to be executed after creating the relation. + * @type \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Relation\IncrementalTableConfig $incremental_table_config + * Configures `INCREMENTAL_TABLE` settings for this relation. Only set if + * `relation_type` is `INCREMENTAL_TABLE`. + * @type string $partition_expression + * The SQL expression used to partition the relation. + * @type string[] $cluster_expressions + * A list of columns or SQL expressions used to cluster the table. + * @type int $partition_expiration_days + * Sets the partition expiration in days. + * @type bool $require_partition_filter + * Specifies whether queries on this table must include a predicate filter + * that filters on the partitioning column. + * @type array|\Google\Protobuf\Internal\MapField $additional_options + * 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. + * @type string $connection + * 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. + * @type int $table_format + * Optional. The table format for the BigQuery table. + * @type int $file_format + * Optional. The file format for the BigQuery table. + * @type string $storage_uri + * 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/`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * A list of actions that this action depends on. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; + * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\Target> + */ + public function getDependencyTargets() + { + return $this->dependency_targets; + } + + /** + * A list of actions that this action depends on. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; + * @param \Google\Cloud\Dataform\V1beta1\Target[] $var + * @return $this + */ + public function setDependencyTargets($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\Target::class); + $this->dependency_targets = $arr; + + return $this; + } + + /** + * Whether this action is disabled (i.e. should not be run). + * + * Generated from protobuf field bool disabled = 2; + * @return bool + */ + public function getDisabled() + { + return $this->disabled; + } + + /** + * Whether this action is disabled (i.e. should not be run). + * + * Generated from protobuf field bool disabled = 2; + * @param bool $var + * @return $this + */ + public function setDisabled($var) + { + GPBUtil::checkBool($var); + $this->disabled = $var; + + return $this; + } + + /** + * Arbitrary, user-defined tags on this action. + * + * Generated from protobuf field repeated string tags = 3; + * @return RepeatedField + */ + public function getTags() + { + return $this->tags; + } + + /** + * Arbitrary, user-defined tags on this action. + * + * Generated from protobuf field repeated string tags = 3; + * @param string[] $var + * @return $this + */ + public function setTags($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->tags = $arr; + + return $this; + } + + /** + * Descriptor for the relation and its columns. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 4; + * @return \Google\Cloud\Dataform\V1beta1\RelationDescriptor|null + */ + public function getRelationDescriptor() + { + return $this->relation_descriptor; + } + + public function hasRelationDescriptor() + { + return isset($this->relation_descriptor); + } + + public function clearRelationDescriptor() + { + unset($this->relation_descriptor); + } + + /** + * Descriptor for the relation and its columns. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 4; + * @param \Google\Cloud\Dataform\V1beta1\RelationDescriptor $var + * @return $this + */ + public function setRelationDescriptor($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\RelationDescriptor::class); + $this->relation_descriptor = $var; + + return $this; + } + + /** + * The type of this relation. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType relation_type = 5; + * @return int + */ + public function getRelationType() + { + return $this->relation_type; + } + + /** + * The type of this relation. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType relation_type = 5; + * @param int $var + * @return $this + */ + public function setRelationType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Relation\RelationType::class); + $this->relation_type = $var; + + return $this; + } + + /** + * The SELECT query which returns rows which this relation should contain. + * + * Generated from protobuf field string select_query = 6; + * @return string + */ + public function getSelectQuery() + { + return $this->select_query; + } + + /** + * The SELECT query which returns rows which this relation should contain. + * + * Generated from protobuf field string select_query = 6; + * @param string $var + * @return $this + */ + public function setSelectQuery($var) + { + GPBUtil::checkString($var, True); + $this->select_query = $var; + + return $this; + } + + /** + * SQL statements to be executed before creating the relation. + * + * Generated from protobuf field repeated string pre_operations = 7; + * @return RepeatedField + */ + public function getPreOperations() + { + return $this->pre_operations; + } + + /** + * SQL statements to be executed before creating the relation. + * + * Generated from protobuf field repeated string pre_operations = 7; + * @param string[] $var + * @return $this + */ + public function setPreOperations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->pre_operations = $arr; + + return $this; + } + + /** + * SQL statements to be executed after creating the relation. + * + * Generated from protobuf field repeated string post_operations = 8; + * @return RepeatedField + */ + public function getPostOperations() + { + return $this->post_operations; + } + + /** + * SQL statements to be executed after creating the relation. + * + * Generated from protobuf field repeated string post_operations = 8; + * @param string[] $var + * @return $this + */ + public function setPostOperations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->post_operations = $arr; + + return $this; + } + + /** + * Configures `INCREMENTAL_TABLE` settings for this relation. Only set if + * `relation_type` is `INCREMENTAL_TABLE`. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9; + * @return \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Relation\IncrementalTableConfig|null + */ + public function getIncrementalTableConfig() + { + return $this->incremental_table_config; + } + + public function hasIncrementalTableConfig() + { + return isset($this->incremental_table_config); + } + + public function clearIncrementalTableConfig() + { + unset($this->incremental_table_config); + } + + /** + * Configures `INCREMENTAL_TABLE` settings for this relation. Only set if + * `relation_type` is `INCREMENTAL_TABLE`. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9; + * @param \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Relation\IncrementalTableConfig $var + * @return $this + */ + public function setIncrementalTableConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Relation\IncrementalTableConfig::class); + $this->incremental_table_config = $var; + + return $this; + } + + /** + * The SQL expression used to partition the relation. + * + * Generated from protobuf field string partition_expression = 10; + * @return string + */ + public function getPartitionExpression() + { + return $this->partition_expression; + } + + /** + * The SQL expression used to partition the relation. + * + * Generated from protobuf field string partition_expression = 10; + * @param string $var + * @return $this + */ + public function setPartitionExpression($var) + { + GPBUtil::checkString($var, True); + $this->partition_expression = $var; + + return $this; + } + + /** + * A list of columns or SQL expressions used to cluster the table. + * + * Generated from protobuf field repeated string cluster_expressions = 11; + * @return RepeatedField + */ + public function getClusterExpressions() + { + return $this->cluster_expressions; + } + + /** + * A list of columns or SQL expressions used to cluster the table. + * + * Generated from protobuf field repeated string cluster_expressions = 11; + * @param string[] $var + * @return $this + */ + public function setClusterExpressions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->cluster_expressions = $arr; + + return $this; + } + + /** + * Sets the partition expiration in days. + * + * Generated from protobuf field int32 partition_expiration_days = 12; + * @return int + */ + public function getPartitionExpirationDays() + { + return $this->partition_expiration_days; + } + + /** + * Sets the partition expiration in days. + * + * Generated from protobuf field int32 partition_expiration_days = 12; + * @param int $var + * @return $this + */ + public function setPartitionExpirationDays($var) + { + GPBUtil::checkInt32($var); + $this->partition_expiration_days = $var; + + return $this; + } + + /** + * Specifies whether queries on this table must include a predicate filter + * that filters on the partitioning column. + * + * Generated from protobuf field bool require_partition_filter = 13; + * @return bool + */ + public function getRequirePartitionFilter() + { + return $this->require_partition_filter; + } + + /** + * Specifies whether queries on this table must include a predicate filter + * that filters on the partitioning column. + * + * Generated from protobuf field bool require_partition_filter = 13; + * @param bool $var + * @return $this + */ + public function setRequirePartitionFilter($var) + { + GPBUtil::checkBool($var); + $this->require_partition_filter = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field map additional_options = 14; + * @return \Google\Protobuf\Internal\MapField + */ + public function getAdditionalOptions() + { + return $this->additional_options; + } + + /** + * 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. + * + * Generated from protobuf field map additional_options = 14; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setAdditionalOptions($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->additional_options = $arr; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string connection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getConnection() + { + return $this->connection; + } + + /** + * 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. + * + * Generated from protobuf field string connection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setConnection($var) + { + GPBUtil::checkString($var, True); + $this->connection = $var; + + return $this; + } + + /** + * Optional. The table format for the BigQuery table. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.TableFormat table_format = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getTableFormat() + { + return $this->table_format; + } + + /** + * Optional. The table format for the BigQuery table. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.TableFormat table_format = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setTableFormat($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Relation\TableFormat::class); + $this->table_format = $var; + + return $this; + } + + /** + * Optional. The file format for the BigQuery table. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.FileFormat file_format = 17 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getFileFormat() + { + return $this->file_format; + } + + /** + * Optional. The file format for the BigQuery table. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.FileFormat file_format = 17 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setFileFormat($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Relation\FileFormat::class); + $this->file_format = $var; + + return $this; + } + + /** + * 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/`. + * + * Generated from protobuf field string storage_uri = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getStorageUri() + { + return $this->storage_uri; + } + + /** + * 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/`. + * + * Generated from protobuf field string storage_uri = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setStorageUri($var) + { + GPBUtil::checkString($var, True); + $this->storage_uri = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation/FileFormat.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation/FileFormat.php new file mode 100644 index 000000000000..c5f32a098b5e --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation/FileFormat.php @@ -0,0 +1,54 @@ +google.cloud.dataform.v1beta1.CompilationResultAction.Relation.FileFormat + */ +class FileFormat +{ + /** + * Default value. + * + * Generated from protobuf enum FILE_FORMAT_UNSPECIFIED = 0; + */ + const FILE_FORMAT_UNSPECIFIED = 0; + /** + * Apache Parquet format. + * + * Generated from protobuf enum PARQUET = 1; + */ + const PARQUET = 1; + + private static $valueToName = [ + self::FILE_FORMAT_UNSPECIFIED => 'FILE_FORMAT_UNSPECIFIED', + self::PARQUET => 'PARQUET', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation/IncrementalTableConfig.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation/IncrementalTableConfig.php new file mode 100644 index 000000000000..f35751da0d61 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation/IncrementalTableConfig.php @@ -0,0 +1,269 @@ +google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig + */ +class IncrementalTableConfig extends \Google\Protobuf\Internal\Message +{ + /** + * The SELECT query which returns rows which should be inserted into the + * relation if it already exists and is not being refreshed. + * + * Generated from protobuf field string incremental_select_query = 1; + */ + protected $incremental_select_query = ''; + /** + * Whether this table should be protected from being refreshed. + * + * Generated from protobuf field bool refresh_disabled = 2; + */ + protected $refresh_disabled = false; + /** + * 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. + * + * Generated from protobuf field repeated string unique_key_parts = 3; + */ + private $unique_key_parts; + /** + * A SQL expression conditional used to limit the set of existing rows + * considered for a merge operation (see `unique_key_parts` for more + * information). + * + * Generated from protobuf field string update_partition_filter = 4; + */ + protected $update_partition_filter = ''; + /** + * SQL statements to be executed before inserting new rows into the + * relation. + * + * Generated from protobuf field repeated string incremental_pre_operations = 5; + */ + private $incremental_pre_operations; + /** + * SQL statements to be executed after inserting new rows into the + * relation. + * + * Generated from protobuf field repeated string incremental_post_operations = 6; + */ + private $incremental_post_operations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $incremental_select_query + * The SELECT query which returns rows which should be inserted into the + * relation if it already exists and is not being refreshed. + * @type bool $refresh_disabled + * Whether this table should be protected from being refreshed. + * @type string[] $unique_key_parts + * 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. + * @type string $update_partition_filter + * A SQL expression conditional used to limit the set of existing rows + * considered for a merge operation (see `unique_key_parts` for more + * information). + * @type string[] $incremental_pre_operations + * SQL statements to be executed before inserting new rows into the + * relation. + * @type string[] $incremental_post_operations + * SQL statements to be executed after inserting new rows into the + * relation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * The SELECT query which returns rows which should be inserted into the + * relation if it already exists and is not being refreshed. + * + * Generated from protobuf field string incremental_select_query = 1; + * @return string + */ + public function getIncrementalSelectQuery() + { + return $this->incremental_select_query; + } + + /** + * The SELECT query which returns rows which should be inserted into the + * relation if it already exists and is not being refreshed. + * + * Generated from protobuf field string incremental_select_query = 1; + * @param string $var + * @return $this + */ + public function setIncrementalSelectQuery($var) + { + GPBUtil::checkString($var, True); + $this->incremental_select_query = $var; + + return $this; + } + + /** + * Whether this table should be protected from being refreshed. + * + * Generated from protobuf field bool refresh_disabled = 2; + * @return bool + */ + public function getRefreshDisabled() + { + return $this->refresh_disabled; + } + + /** + * Whether this table should be protected from being refreshed. + * + * Generated from protobuf field bool refresh_disabled = 2; + * @param bool $var + * @return $this + */ + public function setRefreshDisabled($var) + { + GPBUtil::checkBool($var); + $this->refresh_disabled = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field repeated string unique_key_parts = 3; + * @return RepeatedField + */ + public function getUniqueKeyParts() + { + return $this->unique_key_parts; + } + + /** + * 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. + * + * Generated from protobuf field repeated string unique_key_parts = 3; + * @param string[] $var + * @return $this + */ + public function setUniqueKeyParts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unique_key_parts = $arr; + + return $this; + } + + /** + * A SQL expression conditional used to limit the set of existing rows + * considered for a merge operation (see `unique_key_parts` for more + * information). + * + * Generated from protobuf field string update_partition_filter = 4; + * @return string + */ + public function getUpdatePartitionFilter() + { + return $this->update_partition_filter; + } + + /** + * A SQL expression conditional used to limit the set of existing rows + * considered for a merge operation (see `unique_key_parts` for more + * information). + * + * Generated from protobuf field string update_partition_filter = 4; + * @param string $var + * @return $this + */ + public function setUpdatePartitionFilter($var) + { + GPBUtil::checkString($var, True); + $this->update_partition_filter = $var; + + return $this; + } + + /** + * SQL statements to be executed before inserting new rows into the + * relation. + * + * Generated from protobuf field repeated string incremental_pre_operations = 5; + * @return RepeatedField + */ + public function getIncrementalPreOperations() + { + return $this->incremental_pre_operations; + } + + /** + * SQL statements to be executed before inserting new rows into the + * relation. + * + * Generated from protobuf field repeated string incremental_pre_operations = 5; + * @param string[] $var + * @return $this + */ + public function setIncrementalPreOperations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->incremental_pre_operations = $arr; + + return $this; + } + + /** + * SQL statements to be executed after inserting new rows into the + * relation. + * + * Generated from protobuf field repeated string incremental_post_operations = 6; + * @return RepeatedField + */ + public function getIncrementalPostOperations() + { + return $this->incremental_post_operations; + } + + /** + * SQL statements to be executed after inserting new rows into the + * relation. + * + * Generated from protobuf field repeated string incremental_post_operations = 6; + * @param string[] $var + * @return $this + */ + public function setIncrementalPostOperations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->incremental_post_operations = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation/RelationType.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation/RelationType.php new file mode 100644 index 000000000000..54c84cd5e3fc --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation/RelationType.php @@ -0,0 +1,75 @@ +google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType + */ +class RelationType +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum RELATION_TYPE_UNSPECIFIED = 0; + */ + const RELATION_TYPE_UNSPECIFIED = 0; + /** + * The relation is a table. + * + * Generated from protobuf enum TABLE = 1; + */ + const TABLE = 1; + /** + * The relation is a view. + * + * Generated from protobuf enum VIEW = 2; + */ + const VIEW = 2; + /** + * The relation is an incrementalized table. + * + * Generated from protobuf enum INCREMENTAL_TABLE = 3; + */ + const INCREMENTAL_TABLE = 3; + /** + * The relation is a materialized view. + * + * Generated from protobuf enum MATERIALIZED_VIEW = 4; + */ + const MATERIALIZED_VIEW = 4; + + private static $valueToName = [ + self::RELATION_TYPE_UNSPECIFIED => 'RELATION_TYPE_UNSPECIFIED', + self::TABLE => 'TABLE', + self::VIEW => 'VIEW', + self::INCREMENTAL_TABLE => 'INCREMENTAL_TABLE', + self::MATERIALIZED_VIEW => 'MATERIALIZED_VIEW', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation/TableFormat.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation/TableFormat.php new file mode 100644 index 000000000000..6a5355e99fc4 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation/TableFormat.php @@ -0,0 +1,54 @@ +google.cloud.dataform.v1beta1.CompilationResultAction.Relation.TableFormat + */ +class TableFormat +{ + /** + * Default value. + * + * Generated from protobuf enum TABLE_FORMAT_UNSPECIFIED = 0; + */ + const TABLE_FORMAT_UNSPECIFIED = 0; + /** + * Apache Iceberg format. + * + * Generated from protobuf enum ICEBERG = 1; + */ + const ICEBERG = 1; + + private static $valueToName = [ + self::TABLE_FORMAT_UNSPECIFIED => 'TABLE_FORMAT_UNSPECIFIED', + self::ICEBERG => 'ICEBERG', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/SimpleLoadMode.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/SimpleLoadMode.php new file mode 100644 index 000000000000..44f327841e2f --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/SimpleLoadMode.php @@ -0,0 +1,33 @@ +google.cloud.dataform.v1beta1.CompilationResultAction.SimpleLoadMode + */ +class SimpleLoadMode extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ComputeRepositoryAccessTokenStatusRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ComputeRepositoryAccessTokenStatusRequest.php new file mode 100644 index 000000000000..82d5aa07ce9e --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ComputeRepositoryAccessTokenStatusRequest.php @@ -0,0 +1,67 @@ +google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest + */ +class ComputeRepositoryAccessTokenStatusRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The repository's name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ComputeRepositoryAccessTokenStatusResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ComputeRepositoryAccessTokenStatusResponse.php new file mode 100644 index 000000000000..a53a39e36467 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ComputeRepositoryAccessTokenStatusResponse.php @@ -0,0 +1,67 @@ +google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse + */ +class ComputeRepositoryAccessTokenStatusResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Indicates the status of the Git access token. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus token_status = 1; + */ + protected $token_status = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $token_status + * Indicates the status of the Git access token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Indicates the status of the Git access token. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus token_status = 1; + * @return int + */ + public function getTokenStatus() + { + return $this->token_status; + } + + /** + * Indicates the status of the Git access token. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus token_status = 1; + * @param int $var + * @return $this + */ + public function setTokenStatus($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1beta1\ComputeRepositoryAccessTokenStatusResponse\TokenStatus::class); + $this->token_status = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ComputeRepositoryAccessTokenStatusResponse/TokenStatus.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ComputeRepositoryAccessTokenStatusResponse/TokenStatus.php new file mode 100644 index 000000000000..ee61f9fb155c --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ComputeRepositoryAccessTokenStatusResponse/TokenStatus.php @@ -0,0 +1,69 @@ +google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus + */ +class TokenStatus +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum TOKEN_STATUS_UNSPECIFIED = 0; + */ + const 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). + * + * Generated from protobuf enum NOT_FOUND = 1; + */ + const NOT_FOUND = 1; + /** + * The token could not be used to authenticate against the Git remote. + * + * Generated from protobuf enum INVALID = 2; + */ + const INVALID = 2; + /** + * The token was used successfully to authenticate against the Git remote. + * + * Generated from protobuf enum VALID = 3; + */ + const VALID = 3; + + private static $valueToName = [ + self::TOKEN_STATUS_UNSPECIFIED => 'TOKEN_STATUS_UNSPECIFIED', + self::NOT_FOUND => 'NOT_FOUND', + self::INVALID => 'INVALID', + self::VALID => 'VALID', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Config.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Config.php new file mode 100644 index 000000000000..f36974d3475a --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Config.php @@ -0,0 +1,157 @@ +google.cloud.dataform.v1beta1.Config + */ +class Config extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The config name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Optional. The default KMS key that is used if no encryption key is provided + * when a repository is created. + * + * Generated from protobuf field string default_kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $default_kms_key_name = ''; + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $internal_metadata = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The config name. + * @type string $default_kms_key_name + * Optional. The default KMS key that is used if no encryption key is provided + * when a repository is created. + * @type string $internal_metadata + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The config name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The config name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. The default KMS key that is used if no encryption key is provided + * when a repository is created. + * + * Generated from protobuf field string default_kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getDefaultKmsKeyName() + { + return $this->default_kms_key_name; + } + + /** + * Optional. The default KMS key that is used if no encryption key is provided + * when a repository is created. + * + * Generated from protobuf field string default_kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setDefaultKmsKeyName($var) + { + GPBUtil::checkString($var, True); + $this->default_kms_key_name = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getInternalMetadata() + { + return isset($this->internal_metadata) ? $this->internal_metadata : ''; + } + + public function hasInternalMetadata() + { + return isset($this->internal_metadata); + } + + public function clearInternalMetadata() + { + unset($this->internal_metadata); + } + + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setInternalMetadata($var) + { + GPBUtil::checkString($var, True); + $this->internal_metadata = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateCompilationResultRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateCompilationResultRequest.php new file mode 100644 index 000000000000..2606a5ce1508 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateCompilationResultRequest.php @@ -0,0 +1,132 @@ +google.cloud.dataform.v1beta1.CreateCompilationResultRequest + */ +class CreateCompilationResultRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The repository in which to create the compilation result. Must be + * in the format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The compilation result to create. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResult compilation_result = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $compilation_result = null; + + /** + * @param string $parent Required. The repository in which to create the compilation result. Must be + * in the format `projects/*/locations/*/repositories/*`. Please see + * {@see DataformClient::repositoryName()} for help formatting this field. + * @param \Google\Cloud\Dataform\V1beta1\CompilationResult $compilationResult Required. The compilation result to create. + * + * @return \Google\Cloud\Dataform\V1beta1\CreateCompilationResultRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Dataform\V1beta1\CompilationResult $compilationResult): self + { + return (new self()) + ->setParent($parent) + ->setCompilationResult($compilationResult); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The repository in which to create the compilation result. Must be + * in the format `projects/{@*}locations/{@*}repositories/*`. + * @type \Google\Cloud\Dataform\V1beta1\CompilationResult $compilation_result + * Required. The compilation result to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The repository in which to create the compilation result. Must be + * in the format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The repository in which to create the compilation result. Must be + * in the format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The compilation result to create. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResult compilation_result = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataform\V1beta1\CompilationResult|null + */ + public function getCompilationResult() + { + return $this->compilation_result; + } + + public function hasCompilationResult() + { + return isset($this->compilation_result); + } + + public function clearCompilationResult() + { + unset($this->compilation_result); + } + + /** + * Required. The compilation result to create. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResult compilation_result = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataform\V1beta1\CompilationResult $var + * @return $this + */ + public function setCompilationResult($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CompilationResult::class); + $this->compilation_result = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateFolderRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateFolderRequest.php new file mode 100644 index 000000000000..e58c68509258 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateFolderRequest.php @@ -0,0 +1,170 @@ +google.cloud.dataform.v1beta1.CreateFolderRequest + */ +class CreateFolderRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The location in which to create the Folder. Must be in the format + * `projects/{@*}locations/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The Folder to create. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $folder = null; + /** + * The ID to use for the Folder, which will become the final component of + * the Folder's resource name. + * + * Generated from protobuf field string folder_id = 3; + */ + protected $folder_id = ''; + + /** + * @param string $parent Required. The location in which to create the Folder. Must be in the format + * `projects/*/locations/*`. Please see + * {@see DataformClient::locationName()} for help formatting this field. + * @param \Google\Cloud\Dataform\V1beta1\Folder $folder Required. The Folder to create. + * + * @return \Google\Cloud\Dataform\V1beta1\CreateFolderRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Dataform\V1beta1\Folder $folder): self + { + return (new self()) + ->setParent($parent) + ->setFolder($folder); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The location in which to create the Folder. Must be in the format + * `projects/{@*}locations/*`. + * @type \Google\Cloud\Dataform\V1beta1\Folder $folder + * Required. The Folder to create. + * @type string $folder_id + * The ID to use for the Folder, which will become the final component of + * the Folder's resource name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The location in which to create the Folder. Must be in the format + * `projects/{@*}locations/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The location in which to create the Folder. Must be in the format + * `projects/{@*}locations/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The Folder to create. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataform\V1beta1\Folder|null + */ + public function getFolder() + { + return $this->folder; + } + + public function hasFolder() + { + return isset($this->folder); + } + + public function clearFolder() + { + unset($this->folder); + } + + /** + * Required. The Folder to create. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataform\V1beta1\Folder $var + * @return $this + */ + public function setFolder($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Folder::class); + $this->folder = $var; + + return $this; + } + + /** + * The ID to use for the Folder, which will become the final component of + * the Folder's resource name. + * + * Generated from protobuf field string folder_id = 3; + * @return string + */ + public function getFolderId() + { + return $this->folder_id; + } + + /** + * The ID to use for the Folder, which will become the final component of + * the Folder's resource name. + * + * Generated from protobuf field string folder_id = 3; + * @param string $var + * @return $this + */ + public function setFolderId($var) + { + GPBUtil::checkString($var, True); + $this->folder_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateReleaseConfigRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateReleaseConfigRequest.php new file mode 100644 index 000000000000..04b0cfdb568a --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateReleaseConfigRequest.php @@ -0,0 +1,173 @@ +google.cloud.dataform.v1beta1.CreateReleaseConfigRequest + */ +class CreateReleaseConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The repository in which to create the release config. Must be in + * the format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The release config to create. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $release_config = null; + /** + * Required. The ID to use for the release config, which will become the final + * component of the release config's resource name. + * + * Generated from protobuf field string release_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $release_config_id = ''; + + /** + * @param string $parent Required. The repository in which to create the release config. Must be in + * the format `projects/*/locations/*/repositories/*`. Please see + * {@see DataformClient::repositoryName()} for help formatting this field. + * @param \Google\Cloud\Dataform\V1beta1\ReleaseConfig $releaseConfig Required. The release config to create. + * @param string $releaseConfigId Required. The ID to use for the release config, which will become the final + * component of the release config's resource name. + * + * @return \Google\Cloud\Dataform\V1beta1\CreateReleaseConfigRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Dataform\V1beta1\ReleaseConfig $releaseConfig, string $releaseConfigId): self + { + return (new self()) + ->setParent($parent) + ->setReleaseConfig($releaseConfig) + ->setReleaseConfigId($releaseConfigId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The repository in which to create the release config. Must be in + * the format `projects/{@*}locations/{@*}repositories/*`. + * @type \Google\Cloud\Dataform\V1beta1\ReleaseConfig $release_config + * Required. The release config to create. + * @type string $release_config_id + * Required. The ID to use for the release config, which will become the final + * component of the release config's resource name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The repository in which to create the release config. Must be in + * the format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The repository in which to create the release config. Must be in + * the format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The release config to create. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataform\V1beta1\ReleaseConfig|null + */ + public function getReleaseConfig() + { + return $this->release_config; + } + + public function hasReleaseConfig() + { + return isset($this->release_config); + } + + public function clearReleaseConfig() + { + unset($this->release_config); + } + + /** + * Required. The release config to create. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataform\V1beta1\ReleaseConfig $var + * @return $this + */ + public function setReleaseConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\ReleaseConfig::class); + $this->release_config = $var; + + return $this; + } + + /** + * Required. The ID to use for the release config, which will become the final + * component of the release config's resource name. + * + * Generated from protobuf field string release_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getReleaseConfigId() + { + return $this->release_config_id; + } + + /** + * Required. The ID to use for the release config, which will become the final + * component of the release config's resource name. + * + * Generated from protobuf field string release_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setReleaseConfigId($var) + { + GPBUtil::checkString($var, True); + $this->release_config_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateRepositoryRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateRepositoryRequest.php new file mode 100644 index 000000000000..f0cf98e1da4a --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateRepositoryRequest.php @@ -0,0 +1,173 @@ +google.cloud.dataform.v1beta1.CreateRepositoryRequest + */ +class CreateRepositoryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The location in which to create the repository. Must be in the + * format `projects/{@*}locations/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The repository to create. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $repository = null; + /** + * Required. The ID to use for the repository, which will become the final + * component of the repository's resource name. + * + * Generated from protobuf field string repository_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $repository_id = ''; + + /** + * @param string $parent Required. The location in which to create the repository. Must be in the + * format `projects/*/locations/*`. Please see + * {@see DataformClient::locationName()} for help formatting this field. + * @param \Google\Cloud\Dataform\V1beta1\Repository $repository Required. The repository to create. + * @param string $repositoryId Required. The ID to use for the repository, which will become the final + * component of the repository's resource name. + * + * @return \Google\Cloud\Dataform\V1beta1\CreateRepositoryRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Dataform\V1beta1\Repository $repository, string $repositoryId): self + { + return (new self()) + ->setParent($parent) + ->setRepository($repository) + ->setRepositoryId($repositoryId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The location in which to create the repository. Must be in the + * format `projects/{@*}locations/*`. + * @type \Google\Cloud\Dataform\V1beta1\Repository $repository + * Required. The repository to create. + * @type string $repository_id + * Required. The ID to use for the repository, which will become the final + * component of the repository's resource name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The location in which to create the repository. Must be in the + * format `projects/{@*}locations/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The location in which to create the repository. Must be in the + * format `projects/{@*}locations/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The repository to create. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataform\V1beta1\Repository|null + */ + public function getRepository() + { + return $this->repository; + } + + public function hasRepository() + { + return isset($this->repository); + } + + public function clearRepository() + { + unset($this->repository); + } + + /** + * Required. The repository to create. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataform\V1beta1\Repository $var + * @return $this + */ + public function setRepository($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Repository::class); + $this->repository = $var; + + return $this; + } + + /** + * Required. The ID to use for the repository, which will become the final + * component of the repository's resource name. + * + * Generated from protobuf field string repository_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getRepositoryId() + { + return $this->repository_id; + } + + /** + * Required. The ID to use for the repository, which will become the final + * component of the repository's resource name. + * + * Generated from protobuf field string repository_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setRepositoryId($var) + { + GPBUtil::checkString($var, True); + $this->repository_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateTeamFolderRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateTeamFolderRequest.php new file mode 100644 index 000000000000..c1351c80b119 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateTeamFolderRequest.php @@ -0,0 +1,170 @@ +google.cloud.dataform.v1beta1.CreateTeamFolderRequest + */ +class CreateTeamFolderRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The location in which to create the TeamFolder. Must be in the + * format `projects/{@*}locations/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The TeamFolder to create. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $team_folder = null; + /** + * The ID to use for the TeamFolder, which will become the final component of + * the TeamFolder's resource name. + * + * Generated from protobuf field string team_folder_id = 3; + */ + protected $team_folder_id = ''; + + /** + * @param string $parent Required. The location in which to create the TeamFolder. Must be in the + * format `projects/*/locations/*`. Please see + * {@see DataformClient::locationName()} for help formatting this field. + * @param \Google\Cloud\Dataform\V1beta1\TeamFolder $teamFolder Required. The TeamFolder to create. + * + * @return \Google\Cloud\Dataform\V1beta1\CreateTeamFolderRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Dataform\V1beta1\TeamFolder $teamFolder): self + { + return (new self()) + ->setParent($parent) + ->setTeamFolder($teamFolder); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The location in which to create the TeamFolder. Must be in the + * format `projects/{@*}locations/*`. + * @type \Google\Cloud\Dataform\V1beta1\TeamFolder $team_folder + * Required. The TeamFolder to create. + * @type string $team_folder_id + * The ID to use for the TeamFolder, which will become the final component of + * the TeamFolder's resource name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The location in which to create the TeamFolder. Must be in the + * format `projects/{@*}locations/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The location in which to create the TeamFolder. Must be in the + * format `projects/{@*}locations/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The TeamFolder to create. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataform\V1beta1\TeamFolder|null + */ + public function getTeamFolder() + { + return $this->team_folder; + } + + public function hasTeamFolder() + { + return isset($this->team_folder); + } + + public function clearTeamFolder() + { + unset($this->team_folder); + } + + /** + * Required. The TeamFolder to create. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataform\V1beta1\TeamFolder $var + * @return $this + */ + public function setTeamFolder($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\TeamFolder::class); + $this->team_folder = $var; + + return $this; + } + + /** + * The ID to use for the TeamFolder, which will become the final component of + * the TeamFolder's resource name. + * + * Generated from protobuf field string team_folder_id = 3; + * @return string + */ + public function getTeamFolderId() + { + return $this->team_folder_id; + } + + /** + * The ID to use for the TeamFolder, which will become the final component of + * the TeamFolder's resource name. + * + * Generated from protobuf field string team_folder_id = 3; + * @param string $var + * @return $this + */ + public function setTeamFolderId($var) + { + GPBUtil::checkString($var, True); + $this->team_folder_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateWorkflowConfigRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateWorkflowConfigRequest.php new file mode 100644 index 000000000000..f9217a7f1803 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateWorkflowConfigRequest.php @@ -0,0 +1,173 @@ +google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest + */ +class CreateWorkflowConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The repository in which to create the workflow config. Must be in + * the format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The workflow config to create. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $workflow_config = null; + /** + * Required. The ID to use for the workflow config, which will become the + * final component of the workflow config's resource name. + * + * Generated from protobuf field string workflow_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $workflow_config_id = ''; + + /** + * @param string $parent Required. The repository in which to create the workflow config. Must be in + * the format `projects/*/locations/*/repositories/*`. Please see + * {@see DataformClient::repositoryName()} for help formatting this field. + * @param \Google\Cloud\Dataform\V1beta1\WorkflowConfig $workflowConfig Required. The workflow config to create. + * @param string $workflowConfigId Required. The ID to use for the workflow config, which will become the + * final component of the workflow config's resource name. + * + * @return \Google\Cloud\Dataform\V1beta1\CreateWorkflowConfigRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Dataform\V1beta1\WorkflowConfig $workflowConfig, string $workflowConfigId): self + { + return (new self()) + ->setParent($parent) + ->setWorkflowConfig($workflowConfig) + ->setWorkflowConfigId($workflowConfigId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The repository in which to create the workflow config. Must be in + * the format `projects/{@*}locations/{@*}repositories/*`. + * @type \Google\Cloud\Dataform\V1beta1\WorkflowConfig $workflow_config + * Required. The workflow config to create. + * @type string $workflow_config_id + * Required. The ID to use for the workflow config, which will become the + * final component of the workflow config's resource name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The repository in which to create the workflow config. Must be in + * the format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The repository in which to create the workflow config. Must be in + * the format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The workflow config to create. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataform\V1beta1\WorkflowConfig|null + */ + public function getWorkflowConfig() + { + return $this->workflow_config; + } + + public function hasWorkflowConfig() + { + return isset($this->workflow_config); + } + + public function clearWorkflowConfig() + { + unset($this->workflow_config); + } + + /** + * Required. The workflow config to create. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataform\V1beta1\WorkflowConfig $var + * @return $this + */ + public function setWorkflowConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\WorkflowConfig::class); + $this->workflow_config = $var; + + return $this; + } + + /** + * Required. The ID to use for the workflow config, which will become the + * final component of the workflow config's resource name. + * + * Generated from protobuf field string workflow_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getWorkflowConfigId() + { + return $this->workflow_config_id; + } + + /** + * Required. The ID to use for the workflow config, which will become the + * final component of the workflow config's resource name. + * + * Generated from protobuf field string workflow_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setWorkflowConfigId($var) + { + GPBUtil::checkString($var, True); + $this->workflow_config_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateWorkflowInvocationRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateWorkflowInvocationRequest.php new file mode 100644 index 000000000000..6a0ab9f9bf69 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateWorkflowInvocationRequest.php @@ -0,0 +1,132 @@ +google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest + */ +class CreateWorkflowInvocationRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The repository in which to create the workflow invocation. Must + * be in the format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The workflow invocation resource to create. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocation workflow_invocation = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $workflow_invocation = null; + + /** + * @param string $parent Required. The repository in which to create the workflow invocation. Must + * be in the format `projects/*/locations/*/repositories/*`. Please see + * {@see DataformClient::repositoryName()} for help formatting this field. + * @param \Google\Cloud\Dataform\V1beta1\WorkflowInvocation $workflowInvocation Required. The workflow invocation resource to create. + * + * @return \Google\Cloud\Dataform\V1beta1\CreateWorkflowInvocationRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Dataform\V1beta1\WorkflowInvocation $workflowInvocation): self + { + return (new self()) + ->setParent($parent) + ->setWorkflowInvocation($workflowInvocation); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The repository in which to create the workflow invocation. Must + * be in the format `projects/{@*}locations/{@*}repositories/*`. + * @type \Google\Cloud\Dataform\V1beta1\WorkflowInvocation $workflow_invocation + * Required. The workflow invocation resource to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The repository in which to create the workflow invocation. Must + * be in the format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The repository in which to create the workflow invocation. Must + * be in the format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The workflow invocation resource to create. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocation workflow_invocation = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataform\V1beta1\WorkflowInvocation|null + */ + public function getWorkflowInvocation() + { + return $this->workflow_invocation; + } + + public function hasWorkflowInvocation() + { + return isset($this->workflow_invocation); + } + + public function clearWorkflowInvocation() + { + unset($this->workflow_invocation); + } + + /** + * Required. The workflow invocation resource to create. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocation workflow_invocation = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataform\V1beta1\WorkflowInvocation $var + * @return $this + */ + public function setWorkflowInvocation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\WorkflowInvocation::class); + $this->workflow_invocation = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateWorkspaceRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateWorkspaceRequest.php new file mode 100644 index 000000000000..39399cfdbd22 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateWorkspaceRequest.php @@ -0,0 +1,173 @@ +google.cloud.dataform.v1beta1.CreateWorkspaceRequest + */ +class CreateWorkspaceRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The repository in which to create the workspace. Must be in the + * format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The workspace to create. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $workspace = null; + /** + * Required. The ID to use for the workspace, which will become the final + * component of the workspace's resource name. + * + * Generated from protobuf field string workspace_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $workspace_id = ''; + + /** + * @param string $parent Required. The repository in which to create the workspace. Must be in the + * format `projects/*/locations/*/repositories/*`. Please see + * {@see DataformClient::repositoryName()} for help formatting this field. + * @param \Google\Cloud\Dataform\V1beta1\Workspace $workspace Required. The workspace to create. + * @param string $workspaceId Required. The ID to use for the workspace, which will become the final + * component of the workspace's resource name. + * + * @return \Google\Cloud\Dataform\V1beta1\CreateWorkspaceRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Dataform\V1beta1\Workspace $workspace, string $workspaceId): self + { + return (new self()) + ->setParent($parent) + ->setWorkspace($workspace) + ->setWorkspaceId($workspaceId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The repository in which to create the workspace. Must be in the + * format `projects/{@*}locations/{@*}repositories/*`. + * @type \Google\Cloud\Dataform\V1beta1\Workspace $workspace + * Required. The workspace to create. + * @type string $workspace_id + * Required. The ID to use for the workspace, which will become the final + * component of the workspace's resource name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The repository in which to create the workspace. Must be in the + * format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The repository in which to create the workspace. Must be in the + * format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The workspace to create. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataform\V1beta1\Workspace|null + */ + public function getWorkspace() + { + return $this->workspace; + } + + public function hasWorkspace() + { + return isset($this->workspace); + } + + public function clearWorkspace() + { + unset($this->workspace); + } + + /** + * Required. The workspace to create. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataform\V1beta1\Workspace $var + * @return $this + */ + public function setWorkspace($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Workspace::class); + $this->workspace = $var; + + return $this; + } + + /** + * Required. The ID to use for the workspace, which will become the final + * component of the workspace's resource name. + * + * Generated from protobuf field string workspace_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getWorkspaceId() + { + return $this->workspace_id; + } + + /** + * Required. The ID to use for the workspace, which will become the final + * component of the workspace's resource name. + * + * Generated from protobuf field string workspace_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setWorkspaceId($var) + { + GPBUtil::checkString($var, True); + $this->workspace_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DataEncryptionState.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DataEncryptionState.php new file mode 100644 index 000000000000..1153bd4326f8 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DataEncryptionState.php @@ -0,0 +1,71 @@ +google.cloud.dataform.v1beta1.DataEncryptionState + */ +class DataEncryptionState extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The KMS key version name with which data of a resource is + * encrypted. + * + * Generated from protobuf field string kms_key_version_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $kms_key_version_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $kms_key_version_name + * Required. The KMS key version name with which data of a resource is + * encrypted. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The KMS key version name with which data of a resource is + * encrypted. + * + * Generated from protobuf field string kms_key_version_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getKmsKeyVersionName() + { + return $this->kms_key_version_name; + } + + /** + * Required. The KMS key version name with which data of a resource is + * encrypted. + * + * Generated from protobuf field string kms_key_version_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setKmsKeyVersionName($var) + { + GPBUtil::checkString($var, True); + $this->kms_key_version_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteFolderRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteFolderRequest.php new file mode 100644 index 000000000000..6dc78839acc6 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteFolderRequest.php @@ -0,0 +1,81 @@ +google.cloud.dataform.v1beta1.DeleteFolderRequest + */ +class DeleteFolderRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The Folder's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The Folder's name. Please see + * {@see DataformClient::folderName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1beta1\DeleteFolderRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The Folder's name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The Folder's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The Folder's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteReleaseConfigRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteReleaseConfigRequest.php new file mode 100644 index 000000000000..374b0a0b2f74 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteReleaseConfigRequest.php @@ -0,0 +1,81 @@ +google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest + */ +class DeleteReleaseConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The release config's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The release config's name. Please see + * {@see DataformClient::releaseConfigName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1beta1\DeleteReleaseConfigRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The release config's name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The release config's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The release config's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteRepositoryRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteRepositoryRequest.php new file mode 100644 index 000000000000..2ac5f56991c0 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteRepositoryRequest.php @@ -0,0 +1,135 @@ +google.cloud.dataform.v1beta1.DeleteRepositoryRequest + */ +class DeleteRepositoryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * 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.*. + * + * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $force = false; + + /** + * @param string $name Required. The repository's name. Please see + * {@see DataformClient::repositoryName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1beta1\DeleteRepositoryRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The repository's name. + * @type bool $force + * 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.*. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * 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.*. + * + * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getForce() + { + return $this->force; + } + + /** + * 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.*. + * + * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setForce($var) + { + GPBUtil::checkBool($var); + $this->force = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteTeamFolderRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteTeamFolderRequest.php new file mode 100644 index 000000000000..4abf6efd7a1c --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteTeamFolderRequest.php @@ -0,0 +1,81 @@ +google.cloud.dataform.v1beta1.DeleteTeamFolderRequest + */ +class DeleteTeamFolderRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The TeamFolder's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The TeamFolder's name. Please see + * {@see DataformClient::teamFolderName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1beta1\DeleteTeamFolderRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The TeamFolder's name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The TeamFolder's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The TeamFolder's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteWorkflowConfigRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteWorkflowConfigRequest.php new file mode 100644 index 000000000000..1bcc0f5f5d00 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteWorkflowConfigRequest.php @@ -0,0 +1,81 @@ +google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest + */ +class DeleteWorkflowConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workflow config's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The workflow config's name. Please see + * {@see DataformClient::workflowConfigName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1beta1\DeleteWorkflowConfigRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The workflow config's name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workflow config's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The workflow config's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteWorkflowInvocationRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteWorkflowInvocationRequest.php new file mode 100644 index 000000000000..5600b1a6d10a --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteWorkflowInvocationRequest.php @@ -0,0 +1,81 @@ +google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest + */ +class DeleteWorkflowInvocationRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workflow invocation resource's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The workflow invocation resource's name. Please see + * {@see DataformClient::workflowInvocationName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1beta1\DeleteWorkflowInvocationRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The workflow invocation resource's name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workflow invocation resource's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The workflow invocation resource's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteWorkspaceRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteWorkspaceRequest.php new file mode 100644 index 000000000000..d93d81947911 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteWorkspaceRequest.php @@ -0,0 +1,81 @@ +google.cloud.dataform.v1beta1.DeleteWorkspaceRequest + */ +class DeleteWorkspaceRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workspace resource's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The workspace resource's name. Please see + * {@see DataformClient::workspaceName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1beta1\DeleteWorkspaceRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The workspace resource's name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workspace resource's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The workspace resource's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DirectoryEntry.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DirectoryEntry.php new file mode 100644 index 000000000000..5c9358936db7 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DirectoryEntry.php @@ -0,0 +1,108 @@ +google.cloud.dataform.v1beta1.DirectoryEntry + */ +class DirectoryEntry extends \Google\Protobuf\Internal\Message +{ + protected $entry; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $file + * A file in the directory. + * @type string $directory + * A child directory in the directory. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * A file in the directory. + * + * Generated from protobuf field string file = 1; + * @return string + */ + public function getFile() + { + return $this->readOneof(1); + } + + public function hasFile() + { + return $this->hasOneof(1); + } + + /** + * A file in the directory. + * + * Generated from protobuf field string file = 1; + * @param string $var + * @return $this + */ + public function setFile($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * A child directory in the directory. + * + * Generated from protobuf field string directory = 2; + * @return string + */ + public function getDirectory() + { + return $this->readOneof(2); + } + + public function hasDirectory() + { + return $this->hasOneof(2); + } + + /** + * A child directory in the directory. + * + * Generated from protobuf field string directory = 2; + * @param string $var + * @return $this + */ + public function setDirectory($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getEntry() + { + return $this->whichOneof("entry"); + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DirectorySearchResult.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DirectorySearchResult.php new file mode 100644 index 000000000000..fdae8b6aa9e1 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DirectorySearchResult.php @@ -0,0 +1,67 @@ +google.cloud.dataform.v1beta1.DirectorySearchResult + */ +class DirectorySearchResult extends \Google\Protobuf\Internal\Message +{ + /** + * File system path relative to the workspace root. + * + * Generated from protobuf field string path = 1; + */ + protected $path = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $path + * File system path relative to the workspace root. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * File system path relative to the workspace root. + * + * Generated from protobuf field string path = 1; + * @return string + */ + public function getPath() + { + return $this->path; + } + + /** + * File system path relative to the workspace root. + * + * Generated from protobuf field string path = 1; + * @param string $var + * @return $this + */ + public function setPath($var) + { + GPBUtil::checkString($var, True); + $this->path = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileDiffRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileDiffRequest.php new file mode 100644 index 000000000000..1d241984ed41 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileDiffRequest.php @@ -0,0 +1,105 @@ +google.cloud.dataform.v1beta1.FetchFileDiffRequest + */ +class FetchFileDiffRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $workspace = ''; + /** + * Required. The file's full path including filename, relative to the + * workspace root. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $path = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $workspace + * Required. The workspace's name. + * @type string $path + * Required. The file's full path including filename, relative to the + * workspace root. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getWorkspace() + { + return $this->workspace; + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setWorkspace($var) + { + GPBUtil::checkString($var, True); + $this->workspace = $var; + + return $this; + } + + /** + * Required. The file's full path including filename, relative to the + * workspace root. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getPath() + { + return $this->path; + } + + /** + * Required. The file's full path including filename, relative to the + * workspace root. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setPath($var) + { + GPBUtil::checkString($var, True); + $this->path = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileDiffResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileDiffResponse.php new file mode 100644 index 000000000000..d3e42ecff834 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileDiffResponse.php @@ -0,0 +1,67 @@ +google.cloud.dataform.v1beta1.FetchFileDiffResponse + */ +class FetchFileDiffResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The raw formatted Git diff for the file. + * + * Generated from protobuf field string formatted_diff = 1; + */ + protected $formatted_diff = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $formatted_diff + * The raw formatted Git diff for the file. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * The raw formatted Git diff for the file. + * + * Generated from protobuf field string formatted_diff = 1; + * @return string + */ + public function getFormattedDiff() + { + return $this->formatted_diff; + } + + /** + * The raw formatted Git diff for the file. + * + * Generated from protobuf field string formatted_diff = 1; + * @param string $var + * @return $this + */ + public function setFormattedDiff($var) + { + GPBUtil::checkString($var, True); + $this->formatted_diff = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileGitStatusesRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileGitStatusesRequest.php new file mode 100644 index 000000000000..c5aae2cab628 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileGitStatusesRequest.php @@ -0,0 +1,67 @@ +google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest + */ +class FetchFileGitStatusesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The workspace's name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileGitStatusesResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileGitStatusesResponse.php new file mode 100644 index 000000000000..0740d22e8fde --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileGitStatusesResponse.php @@ -0,0 +1,71 @@ +google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse + */ +class FetchFileGitStatusesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * A list of all files which have uncommitted Git changes. There will only be + * a single entry for any given file. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; + */ + private $uncommitted_file_changes; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1beta1\FetchFileGitStatusesResponse\UncommittedFileChange[] $uncommitted_file_changes + * A list of all files which have uncommitted Git changes. There will only be + * a single entry for any given file. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * A list of all files which have uncommitted Git changes. There will only be + * a single entry for any given file. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; + * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\FetchFileGitStatusesResponse\UncommittedFileChange> + */ + public function getUncommittedFileChanges() + { + return $this->uncommitted_file_changes; + } + + /** + * A list of all files which have uncommitted Git changes. There will only be + * a single entry for any given file. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; + * @param \Google\Cloud\Dataform\V1beta1\FetchFileGitStatusesResponse\UncommittedFileChange[] $var + * @return $this + */ + public function setUncommittedFileChanges($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\FetchFileGitStatusesResponse\UncommittedFileChange::class); + $this->uncommitted_file_changes = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileGitStatusesResponse/UncommittedFileChange.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileGitStatusesResponse/UncommittedFileChange.php new file mode 100644 index 000000000000..88742cfb99ab --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileGitStatusesResponse/UncommittedFileChange.php @@ -0,0 +1,101 @@ +google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange + */ +class UncommittedFileChange extends \Google\Protobuf\Internal\Message +{ + /** + * The file's full path including filename, relative to the workspace root. + * + * Generated from protobuf field string path = 1; + */ + protected $path = ''; + /** + * Output only. Indicates the status of the file. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $path + * The file's full path including filename, relative to the workspace root. + * @type int $state + * Output only. Indicates the status of the file. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * The file's full path including filename, relative to the workspace root. + * + * Generated from protobuf field string path = 1; + * @return string + */ + public function getPath() + { + return $this->path; + } + + /** + * The file's full path including filename, relative to the workspace root. + * + * Generated from protobuf field string path = 1; + * @param string $var + * @return $this + */ + public function setPath($var) + { + GPBUtil::checkString($var, True); + $this->path = $var; + + return $this; + } + + /** + * Output only. Indicates the status of the file. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. Indicates the status of the file. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1beta1\FetchFileGitStatusesResponse\UncommittedFileChange\State::class); + $this->state = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileGitStatusesResponse/UncommittedFileChange/State.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileGitStatusesResponse/UncommittedFileChange/State.php new file mode 100644 index 000000000000..0b1873e7da06 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileGitStatusesResponse/UncommittedFileChange/State.php @@ -0,0 +1,75 @@ +google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.State + */ +class State +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * The file has been newly added. + * + * Generated from protobuf enum ADDED = 1; + */ + const ADDED = 1; + /** + * The file has been deleted. + * + * Generated from protobuf enum DELETED = 2; + */ + const DELETED = 2; + /** + * The file has been modified. + * + * Generated from protobuf enum MODIFIED = 3; + */ + const MODIFIED = 3; + /** + * The file contains merge conflicts. + * + * Generated from protobuf enum HAS_CONFLICTS = 4; + */ + const HAS_CONFLICTS = 4; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::ADDED => 'ADDED', + self::DELETED => 'DELETED', + self::MODIFIED => 'MODIFIED', + self::HAS_CONFLICTS => 'HAS_CONFLICTS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchGitAheadBehindRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchGitAheadBehindRequest.php new file mode 100644 index 000000000000..df387ca25ae1 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchGitAheadBehindRequest.php @@ -0,0 +1,109 @@ +google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest + */ +class FetchGitAheadBehindRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * 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. + * + * Generated from protobuf field string remote_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $remote_branch = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The workspace's name. + * @type string $remote_branch + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string remote_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRemoteBranch() + { + return $this->remote_branch; + } + + /** + * 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. + * + * Generated from protobuf field string remote_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRemoteBranch($var) + { + GPBUtil::checkString($var, True); + $this->remote_branch = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchGitAheadBehindResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchGitAheadBehindResponse.php new file mode 100644 index 000000000000..f2b1cde31ee6 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchGitAheadBehindResponse.php @@ -0,0 +1,101 @@ +google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse + */ +class FetchGitAheadBehindResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The number of commits in the remote branch that are not in the workspace. + * + * Generated from protobuf field int32 commits_ahead = 1; + */ + protected $commits_ahead = 0; + /** + * The number of commits in the workspace that are not in the remote branch. + * + * Generated from protobuf field int32 commits_behind = 2; + */ + protected $commits_behind = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $commits_ahead + * The number of commits in the remote branch that are not in the workspace. + * @type int $commits_behind + * The number of commits in the workspace that are not in the remote branch. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * The number of commits in the remote branch that are not in the workspace. + * + * Generated from protobuf field int32 commits_ahead = 1; + * @return int + */ + public function getCommitsAhead() + { + return $this->commits_ahead; + } + + /** + * The number of commits in the remote branch that are not in the workspace. + * + * Generated from protobuf field int32 commits_ahead = 1; + * @param int $var + * @return $this + */ + public function setCommitsAhead($var) + { + GPBUtil::checkInt32($var); + $this->commits_ahead = $var; + + return $this; + } + + /** + * The number of commits in the workspace that are not in the remote branch. + * + * Generated from protobuf field int32 commits_behind = 2; + * @return int + */ + public function getCommitsBehind() + { + return $this->commits_behind; + } + + /** + * The number of commits in the workspace that are not in the remote branch. + * + * Generated from protobuf field int32 commits_behind = 2; + * @param int $var + * @return $this + */ + public function setCommitsBehind($var) + { + GPBUtil::checkInt32($var); + $this->commits_behind = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchRemoteBranchesRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchRemoteBranchesRequest.php new file mode 100644 index 000000000000..4a4548ac7122 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchRemoteBranchesRequest.php @@ -0,0 +1,67 @@ +google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest + */ +class FetchRemoteBranchesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The repository's name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchRemoteBranchesResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchRemoteBranchesResponse.php new file mode 100644 index 000000000000..08d471bac1f9 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchRemoteBranchesResponse.php @@ -0,0 +1,67 @@ +google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse + */ +class FetchRemoteBranchesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The remote repository's branch names. + * + * Generated from protobuf field repeated string branches = 1; + */ + private $branches; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string[] $branches + * The remote repository's branch names. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * The remote repository's branch names. + * + * Generated from protobuf field repeated string branches = 1; + * @return RepeatedField + */ + public function getBranches() + { + return $this->branches; + } + + /** + * The remote repository's branch names. + * + * Generated from protobuf field repeated string branches = 1; + * @param string[] $var + * @return $this + */ + public function setBranches($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->branches = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchRepositoryHistoryRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchRepositoryHistoryRequest.php new file mode 100644 index 000000000000..efbda4e9e40c --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchRepositoryHistoryRequest.php @@ -0,0 +1,159 @@ +google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest + */ +class FetchRepositoryHistoryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. Maximum number of commits to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * 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. + * + * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The repository's name. + * @type int $page_size + * Optional. Maximum number of commits to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * @type string $page_token + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. Maximum number of commits to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Maximum number of commits to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchRepositoryHistoryResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchRepositoryHistoryResponse.php new file mode 100644 index 000000000000..8d01c2d726c9 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchRepositoryHistoryResponse.php @@ -0,0 +1,105 @@ +google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse + */ +class FetchRepositoryHistoryResponse extends \Google\Protobuf\Internal\Message +{ + /** + * A list of commit logs, ordered by 'git log' default order. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.CommitLogEntry commits = 1; + */ + private $commits; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1beta1\CommitLogEntry[] $commits + * A list of commit logs, ordered by 'git log' default order. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * A list of commit logs, ordered by 'git log' default order. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.CommitLogEntry commits = 1; + * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\CommitLogEntry> + */ + public function getCommits() + { + return $this->commits; + } + + /** + * A list of commit logs, ordered by 'git log' default order. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.CommitLogEntry commits = 1; + * @param \Google\Cloud\Dataform\V1beta1\CommitLogEntry[] $var + * @return $this + */ + public function setCommits($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\CommitLogEntry::class); + $this->commits = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FileSearchResult.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FileSearchResult.php new file mode 100644 index 000000000000..0e4bb0c4920a --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FileSearchResult.php @@ -0,0 +1,67 @@ +google.cloud.dataform.v1beta1.FileSearchResult + */ +class FileSearchResult extends \Google\Protobuf\Internal\Message +{ + /** + * File system path relative to the workspace root. + * + * Generated from protobuf field string path = 1; + */ + protected $path = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $path + * File system path relative to the workspace root. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * File system path relative to the workspace root. + * + * Generated from protobuf field string path = 1; + * @return string + */ + public function getPath() + { + return $this->path; + } + + /** + * File system path relative to the workspace root. + * + * Generated from protobuf field string path = 1; + * @param string $var + * @return $this + */ + public function setPath($var) + { + GPBUtil::checkString($var, True); + $this->path = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Folder.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Folder.php new file mode 100644 index 000000000000..c2f0420231d0 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Folder.php @@ -0,0 +1,386 @@ +google.cloud.dataform.v1beta1.Folder + */ +class Folder extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The Folder's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Required. The Folder's user-friendly name. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * 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. + * + * Generated from protobuf field string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $containing_folder = ''; + /** + * 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. + * + * Generated from protobuf field string team_folder_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $team_folder_name = ''; + /** + * Output only. The timestamp of when the Folder was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The timestamp of when the Folder was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $internal_metadata = null; + /** + * Output only. The IAM principal identifier of the creator of the Folder. + * + * Generated from protobuf field optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $creator_iam_principal = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The Folder's name. + * @type string $display_name + * Required. The Folder's user-friendly name. + * @type string $containing_folder + * 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. + * @type string $team_folder_name + * 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. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The timestamp of when the Folder was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The timestamp of when the Folder was last updated. + * @type string $internal_metadata + * 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. + * @type string $creator_iam_principal + * Output only. The IAM principal identifier of the creator of the Folder. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The Folder's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The Folder's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The Folder's user-friendly name. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. The Folder's user-friendly name. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getContainingFolder() + { + return $this->containing_folder; + } + + /** + * 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. + * + * Generated from protobuf field string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setContainingFolder($var) + { + GPBUtil::checkString($var, True); + $this->containing_folder = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string team_folder_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getTeamFolderName() + { + return $this->team_folder_name; + } + + /** + * 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. + * + * Generated from protobuf field string team_folder_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setTeamFolderName($var) + { + GPBUtil::checkString($var, True); + $this->team_folder_name = $var; + + return $this; + } + + /** + * Output only. The timestamp of when the Folder was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The timestamp of when the Folder was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The timestamp of when the Folder was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The timestamp of when the Folder was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getInternalMetadata() + { + return isset($this->internal_metadata) ? $this->internal_metadata : ''; + } + + public function hasInternalMetadata() + { + return isset($this->internal_metadata); + } + + public function clearInternalMetadata() + { + unset($this->internal_metadata); + } + + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setInternalMetadata($var) + { + GPBUtil::checkString($var, True); + $this->internal_metadata = $var; + + return $this; + } + + /** + * Output only. The IAM principal identifier of the creator of the Folder. + * + * Generated from protobuf field optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getCreatorIamPrincipal() + { + return isset($this->creator_iam_principal) ? $this->creator_iam_principal : ''; + } + + public function hasCreatorIamPrincipal() + { + return isset($this->creator_iam_principal); + } + + public function clearCreatorIamPrincipal() + { + unset($this->creator_iam_principal); + } + + /** + * Output only. The IAM principal identifier of the creator of the Folder. + * + * Generated from protobuf field optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setCreatorIamPrincipal($var) + { + GPBUtil::checkString($var, True); + $this->creator_iam_principal = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetCompilationResultRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetCompilationResultRequest.php new file mode 100644 index 000000000000..e05423c339cc --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetCompilationResultRequest.php @@ -0,0 +1,81 @@ +google.cloud.dataform.v1beta1.GetCompilationResultRequest + */ +class GetCompilationResultRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The compilation result's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The compilation result's name. Please see + * {@see DataformClient::compilationResultName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1beta1\GetCompilationResultRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The compilation result's name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The compilation result's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The compilation result's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetConfigRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetConfigRequest.php new file mode 100644 index 000000000000..791eeb2e28c6 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetConfigRequest.php @@ -0,0 +1,81 @@ +google.cloud.dataform.v1beta1.GetConfigRequest + */ +class GetConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The config name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The config name. Please see + * {@see DataformClient::configName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1beta1\GetConfigRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The config name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The config name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The config name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetFolderRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetFolderRequest.php new file mode 100644 index 000000000000..03ffc3c80652 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetFolderRequest.php @@ -0,0 +1,81 @@ +google.cloud.dataform.v1beta1.GetFolderRequest + */ +class GetFolderRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The Folder's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The Folder's name. Please see + * {@see DataformClient::folderName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1beta1\GetFolderRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The Folder's name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The Folder's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The Folder's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetReleaseConfigRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetReleaseConfigRequest.php new file mode 100644 index 000000000000..1b0482e7d1c0 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetReleaseConfigRequest.php @@ -0,0 +1,81 @@ +google.cloud.dataform.v1beta1.GetReleaseConfigRequest + */ +class GetReleaseConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The release config's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The release config's name. Please see + * {@see DataformClient::releaseConfigName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1beta1\GetReleaseConfigRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The release config's name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The release config's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The release config's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetRepositoryRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetRepositoryRequest.php new file mode 100644 index 000000000000..26042530d1a1 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetRepositoryRequest.php @@ -0,0 +1,81 @@ +google.cloud.dataform.v1beta1.GetRepositoryRequest + */ +class GetRepositoryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The repository's name. Please see + * {@see DataformClient::repositoryName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1beta1\GetRepositoryRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The repository's name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetTeamFolderRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetTeamFolderRequest.php new file mode 100644 index 000000000000..030053e388e1 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetTeamFolderRequest.php @@ -0,0 +1,81 @@ +google.cloud.dataform.v1beta1.GetTeamFolderRequest + */ +class GetTeamFolderRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The TeamFolder's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The TeamFolder's name. Please see + * {@see DataformClient::teamFolderName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1beta1\GetTeamFolderRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The TeamFolder's name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The TeamFolder's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The TeamFolder's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetWorkflowConfigRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetWorkflowConfigRequest.php new file mode 100644 index 000000000000..4e6cfff7d838 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetWorkflowConfigRequest.php @@ -0,0 +1,81 @@ +google.cloud.dataform.v1beta1.GetWorkflowConfigRequest + */ +class GetWorkflowConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workflow config's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The workflow config's name. Please see + * {@see DataformClient::workflowConfigName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1beta1\GetWorkflowConfigRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The workflow config's name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workflow config's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The workflow config's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetWorkflowInvocationRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetWorkflowInvocationRequest.php new file mode 100644 index 000000000000..8ef750d53a72 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetWorkflowInvocationRequest.php @@ -0,0 +1,81 @@ +google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest + */ +class GetWorkflowInvocationRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workflow invocation resource's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The workflow invocation resource's name. Please see + * {@see DataformClient::workflowInvocationName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1beta1\GetWorkflowInvocationRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The workflow invocation resource's name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workflow invocation resource's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The workflow invocation resource's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetWorkspaceRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetWorkspaceRequest.php new file mode 100644 index 000000000000..0b7b2cc2b437 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetWorkspaceRequest.php @@ -0,0 +1,81 @@ +google.cloud.dataform.v1beta1.GetWorkspaceRequest + */ +class GetWorkspaceRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The workspace's name. Please see + * {@see DataformClient::workspaceName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1beta1\GetWorkspaceRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The workspace's name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/InstallNpmPackagesRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/InstallNpmPackagesRequest.php new file mode 100644 index 000000000000..e2e1bbb46b4c --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/InstallNpmPackagesRequest.php @@ -0,0 +1,67 @@ +google.cloud.dataform.v1beta1.InstallNpmPackagesRequest + */ +class InstallNpmPackagesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $workspace = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $workspace + * Required. The workspace's name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getWorkspace() + { + return $this->workspace; + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setWorkspace($var) + { + GPBUtil::checkString($var, True); + $this->workspace = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/InstallNpmPackagesResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/InstallNpmPackagesResponse.php new file mode 100644 index 000000000000..e498a4b5fa85 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/InstallNpmPackagesResponse.php @@ -0,0 +1,33 @@ +google.cloud.dataform.v1beta1.InstallNpmPackagesResponse + */ +class InstallNpmPackagesResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/InvocationConfig.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/InvocationConfig.php new file mode 100644 index 000000000000..5e7e704e5455 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/InvocationConfig.php @@ -0,0 +1,299 @@ +google.cloud.dataform.v1beta1.InvocationConfig + */ +class InvocationConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The set of action identifiers to include. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $included_targets; + /** + * Optional. The set of tags to include. + * + * Generated from protobuf field repeated string included_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $included_tags; + /** + * Optional. When set to true, transitive dependencies of included actions + * will be executed. + * + * Generated from protobuf field bool transitive_dependencies_included = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $transitive_dependencies_included = false; + /** + * Optional. When set to true, transitive dependents of included actions will + * be executed. + * + * Generated from protobuf field bool transitive_dependents_included = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $transitive_dependents_included = false; + /** + * Optional. When set to true, any incremental tables will be fully refreshed. + * + * Generated from protobuf field bool fully_refresh_incremental_tables_enabled = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $fully_refresh_incremental_tables_enabled = false; + /** + * Optional. The service account to run workflow invocations under. + * + * Generated from protobuf field string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $service_account = ''; + /** + * Optional. Specifies the priority for query execution in BigQuery. + * More information can be found at + * https://cloud.google.com/bigquery/docs/running-queries#queries. + * + * Generated from protobuf field optional .google.cloud.dataform.v1beta1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $query_priority = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1beta1\Target[] $included_targets + * Optional. The set of action identifiers to include. + * @type string[] $included_tags + * Optional. The set of tags to include. + * @type bool $transitive_dependencies_included + * Optional. When set to true, transitive dependencies of included actions + * will be executed. + * @type bool $transitive_dependents_included + * Optional. When set to true, transitive dependents of included actions will + * be executed. + * @type bool $fully_refresh_incremental_tables_enabled + * Optional. When set to true, any incremental tables will be fully refreshed. + * @type string $service_account + * Optional. The service account to run workflow invocations under. + * @type int $query_priority + * Optional. Specifies the priority for query execution in BigQuery. + * More information can be found at + * https://cloud.google.com/bigquery/docs/running-queries#queries. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The set of action identifiers to include. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\Target> + */ + public function getIncludedTargets() + { + return $this->included_targets; + } + + /** + * Optional. The set of action identifiers to include. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataform\V1beta1\Target[] $var + * @return $this + */ + public function setIncludedTargets($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\Target::class); + $this->included_targets = $arr; + + return $this; + } + + /** + * Optional. The set of tags to include. + * + * Generated from protobuf field repeated string included_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getIncludedTags() + { + return $this->included_tags; + } + + /** + * Optional. The set of tags to include. + * + * Generated from protobuf field repeated string included_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setIncludedTags($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->included_tags = $arr; + + return $this; + } + + /** + * Optional. When set to true, transitive dependencies of included actions + * will be executed. + * + * Generated from protobuf field bool transitive_dependencies_included = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getTransitiveDependenciesIncluded() + { + return $this->transitive_dependencies_included; + } + + /** + * Optional. When set to true, transitive dependencies of included actions + * will be executed. + * + * Generated from protobuf field bool transitive_dependencies_included = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setTransitiveDependenciesIncluded($var) + { + GPBUtil::checkBool($var); + $this->transitive_dependencies_included = $var; + + return $this; + } + + /** + * Optional. When set to true, transitive dependents of included actions will + * be executed. + * + * Generated from protobuf field bool transitive_dependents_included = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getTransitiveDependentsIncluded() + { + return $this->transitive_dependents_included; + } + + /** + * Optional. When set to true, transitive dependents of included actions will + * be executed. + * + * Generated from protobuf field bool transitive_dependents_included = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setTransitiveDependentsIncluded($var) + { + GPBUtil::checkBool($var); + $this->transitive_dependents_included = $var; + + return $this; + } + + /** + * Optional. When set to true, any incremental tables will be fully refreshed. + * + * Generated from protobuf field bool fully_refresh_incremental_tables_enabled = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getFullyRefreshIncrementalTablesEnabled() + { + return $this->fully_refresh_incremental_tables_enabled; + } + + /** + * Optional. When set to true, any incremental tables will be fully refreshed. + * + * Generated from protobuf field bool fully_refresh_incremental_tables_enabled = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setFullyRefreshIncrementalTablesEnabled($var) + { + GPBUtil::checkBool($var); + $this->fully_refresh_incremental_tables_enabled = $var; + + return $this; + } + + /** + * Optional. The service account to run workflow invocations under. + * + * Generated from protobuf field string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getServiceAccount() + { + return $this->service_account; + } + + /** + * Optional. The service account to run workflow invocations under. + * + * Generated from protobuf field string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setServiceAccount($var) + { + GPBUtil::checkString($var, True); + $this->service_account = $var; + + return $this; + } + + /** + * Optional. Specifies the priority for query execution in BigQuery. + * More information can be found at + * https://cloud.google.com/bigquery/docs/running-queries#queries. + * + * Generated from protobuf field optional .google.cloud.dataform.v1beta1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getQueryPriority() + { + return isset($this->query_priority) ? $this->query_priority : 0; + } + + public function hasQueryPriority() + { + return isset($this->query_priority); + } + + public function clearQueryPriority() + { + unset($this->query_priority); + } + + /** + * Optional. Specifies the priority for query execution in BigQuery. + * More information can be found at + * https://cloud.google.com/bigquery/docs/running-queries#queries. + * + * Generated from protobuf field optional .google.cloud.dataform.v1beta1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setQueryPriority($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1beta1\InvocationConfig\QueryPriority::class); + $this->query_priority = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/InvocationConfig/QueryPriority.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/InvocationConfig/QueryPriority.php new file mode 100644 index 000000000000..d8c22486b793 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/InvocationConfig/QueryPriority.php @@ -0,0 +1,65 @@ +google.cloud.dataform.v1beta1.InvocationConfig.QueryPriority + */ +class QueryPriority +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum QUERY_PRIORITY_UNSPECIFIED = 0; + */ + const 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. + * + * Generated from protobuf enum INTERACTIVE = 1; + */ + const 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. + * + * Generated from protobuf enum BATCH = 2; + */ + const BATCH = 2; + + private static $valueToName = [ + self::QUERY_PRIORITY_UNSPECIFIED => 'QUERY_PRIORITY_UNSPECIFIED', + self::INTERACTIVE => 'INTERACTIVE', + self::BATCH => 'BATCH', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListCompilationResultsRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListCompilationResultsRequest.php new file mode 100644 index 000000000000..5fd5b05ae6fd --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListCompilationResultsRequest.php @@ -0,0 +1,254 @@ +google.cloud.dataform.v1beta1.ListCompilationResultsRequest + */ +class ListCompilationResultsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The repository in which to list compilation results. Must be in + * the format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * 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. + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Filter for the returned list. + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * @param string $parent Required. The repository in which to list compilation results. Must be in + * the format `projects/*/locations/*/repositories/*`. Please see + * {@see DataformClient::repositoryName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1beta1\ListCompilationResultsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The repository in which to list compilation results. Must be in + * the format `projects/{@*}locations/{@*}repositories/*`. + * @type int $page_size + * 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. + * @type string $page_token + * 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. + * @type string $order_by + * 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. + * @type string $filter + * Optional. Filter for the returned list. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The repository in which to list compilation results. Must be in + * the format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The repository in which to list compilation results. Must be in + * the format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * 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. + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Filter for the returned list. + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filter for the returned list. + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListCompilationResultsResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListCompilationResultsResponse.php new file mode 100644 index 000000000000..a6153b4db64e --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListCompilationResultsResponse.php @@ -0,0 +1,139 @@ +google.cloud.dataform.v1beta1.ListCompilationResultsResponse + */ +class ListCompilationResultsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of compilation results. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.CompilationResult compilation_results = 1; + */ + private $compilation_results; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Locations which could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + */ + private $unreachable; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1beta1\CompilationResult[] $compilation_results + * List of compilation results. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type string[] $unreachable + * Locations which could not be reached. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * List of compilation results. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.CompilationResult compilation_results = 1; + * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\CompilationResult> + */ + public function getCompilationResults() + { + return $this->compilation_results; + } + + /** + * List of compilation results. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.CompilationResult compilation_results = 1; + * @param \Google\Cloud\Dataform\V1beta1\CompilationResult[] $var + * @return $this + */ + public function setCompilationResults($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\CompilationResult::class); + $this->compilation_results = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Locations which could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @return RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Locations which could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @param string[] $var + * @return $this + */ + public function setUnreachable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListReleaseConfigsRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListReleaseConfigsRequest.php new file mode 100644 index 000000000000..4c92c649e40c --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListReleaseConfigsRequest.php @@ -0,0 +1,178 @@ +google.cloud.dataform.v1beta1.ListReleaseConfigsRequest + */ +class ListReleaseConfigsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The repository in which to list release configs. Must be in the + * format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + + /** + * @param string $parent Required. The repository in which to list release configs. Must be in the + * format `projects/*/locations/*/repositories/*`. Please see + * {@see DataformClient::repositoryName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1beta1\ListReleaseConfigsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The repository in which to list release configs. Must be in the + * format `projects/{@*}locations/{@*}repositories/*`. + * @type int $page_size + * 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. + * @type string $page_token + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The repository in which to list release configs. Must be in the + * format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The repository in which to list release configs. Must be in the + * format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListReleaseConfigsResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListReleaseConfigsResponse.php new file mode 100644 index 000000000000..dbfb0995dc07 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListReleaseConfigsResponse.php @@ -0,0 +1,139 @@ +google.cloud.dataform.v1beta1.ListReleaseConfigsResponse + */ +class ListReleaseConfigsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of release configs. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.ReleaseConfig release_configs = 1; + */ + private $release_configs; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Locations which could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + */ + private $unreachable; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1beta1\ReleaseConfig[] $release_configs + * List of release configs. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type string[] $unreachable + * Locations which could not be reached. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * List of release configs. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.ReleaseConfig release_configs = 1; + * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\ReleaseConfig> + */ + public function getReleaseConfigs() + { + return $this->release_configs; + } + + /** + * List of release configs. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.ReleaseConfig release_configs = 1; + * @param \Google\Cloud\Dataform\V1beta1\ReleaseConfig[] $var + * @return $this + */ + public function setReleaseConfigs($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\ReleaseConfig::class); + $this->release_configs = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Locations which could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @return RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Locations which could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @param string[] $var + * @return $this + */ + public function setUnreachable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListRepositoriesRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListRepositoriesRequest.php new file mode 100644 index 000000000000..ed2011b3ad2e --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListRepositoriesRequest.php @@ -0,0 +1,254 @@ +google.cloud.dataform.v1beta1.ListRepositoriesRequest + */ +class ListRepositoriesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The location in which to list repositories. Must be in the format + * `projects/{@*}locations/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. Maximum number of repositories to return. The server may return + * fewer items than requested. If unspecified, the server will pick an + * appropriate default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * 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. + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Filter for the returned list. + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * @param string $parent Required. The location in which to list repositories. Must be in the format + * `projects/*/locations/*`. Please see + * {@see DataformClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1beta1\ListRepositoriesRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The location in which to list repositories. Must be in the format + * `projects/{@*}locations/*`. + * @type int $page_size + * Optional. Maximum number of repositories to return. The server may return + * fewer items than requested. If unspecified, the server will pick an + * appropriate default. + * @type string $page_token + * 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. + * @type string $order_by + * 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. + * @type string $filter + * Optional. Filter for the returned list. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The location in which to list repositories. Must be in the format + * `projects/{@*}locations/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The location in which to list repositories. Must be in the format + * `projects/{@*}locations/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. Maximum number of repositories to return. The server may return + * fewer items than requested. If unspecified, the server will pick an + * appropriate default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Maximum number of repositories to return. The server may return + * fewer items than requested. If unspecified, the server will pick an + * appropriate default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * 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. + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Filter for the returned list. + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filter for the returned list. + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListRepositoriesResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListRepositoriesResponse.php new file mode 100644 index 000000000000..9245703f9bb6 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListRepositoriesResponse.php @@ -0,0 +1,139 @@ +google.cloud.dataform.v1beta1.ListRepositoriesResponse + */ +class ListRepositoriesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of repositories. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Repository repositories = 1; + */ + private $repositories; + /** + * A token which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Locations which could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + */ + private $unreachable; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1beta1\Repository[] $repositories + * List of repositories. + * @type string $next_page_token + * A token which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type string[] $unreachable + * Locations which could not be reached. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * List of repositories. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Repository repositories = 1; + * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\Repository> + */ + public function getRepositories() + { + return $this->repositories; + } + + /** + * List of repositories. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Repository repositories = 1; + * @param \Google\Cloud\Dataform\V1beta1\Repository[] $var + * @return $this + */ + public function setRepositories($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\Repository::class); + $this->repositories = $arr; + + return $this; + } + + /** + * A token which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Locations which could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @return RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Locations which could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @param string[] $var + * @return $this + */ + public function setUnreachable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkflowConfigsRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkflowConfigsRequest.php new file mode 100644 index 000000000000..46315d861e47 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkflowConfigsRequest.php @@ -0,0 +1,178 @@ +google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest + */ +class ListWorkflowConfigsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The repository in which to list workflow configs. Must be in the + * format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + + /** + * @param string $parent Required. The repository in which to list workflow configs. Must be in the + * format `projects/*/locations/*/repositories/*`. Please see + * {@see DataformClient::repositoryName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1beta1\ListWorkflowConfigsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The repository in which to list workflow configs. Must be in the + * format `projects/{@*}locations/{@*}repositories/*`. + * @type int $page_size + * 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. + * @type string $page_token + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The repository in which to list workflow configs. Must be in the + * format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The repository in which to list workflow configs. Must be in the + * format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkflowConfigsResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkflowConfigsResponse.php new file mode 100644 index 000000000000..49698697808d --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkflowConfigsResponse.php @@ -0,0 +1,139 @@ +google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse + */ +class ListWorkflowConfigsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of workflow configs. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.WorkflowConfig workflow_configs = 1; + */ + private $workflow_configs; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Locations which could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + */ + private $unreachable; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1beta1\WorkflowConfig[] $workflow_configs + * List of workflow configs. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type string[] $unreachable + * Locations which could not be reached. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * List of workflow configs. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.WorkflowConfig workflow_configs = 1; + * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\WorkflowConfig> + */ + public function getWorkflowConfigs() + { + return $this->workflow_configs; + } + + /** + * List of workflow configs. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.WorkflowConfig workflow_configs = 1; + * @param \Google\Cloud\Dataform\V1beta1\WorkflowConfig[] $var + * @return $this + */ + public function setWorkflowConfigs($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\WorkflowConfig::class); + $this->workflow_configs = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Locations which could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @return RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Locations which could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @param string[] $var + * @return $this + */ + public function setUnreachable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkflowInvocationsRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkflowInvocationsRequest.php new file mode 100644 index 000000000000..f4a38eb34dbe --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkflowInvocationsRequest.php @@ -0,0 +1,254 @@ +google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest + */ +class ListWorkflowInvocationsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource of the WorkflowInvocation type. Must be in + * the format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * 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. + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Filter for the returned list. + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * @param string $parent Required. The parent resource of the WorkflowInvocation type. Must be in + * the format `projects/*/locations/*/repositories/*`. Please see + * {@see DataformClient::repositoryName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1beta1\ListWorkflowInvocationsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource of the WorkflowInvocation type. Must be in + * the format `projects/{@*}locations/{@*}repositories/*`. + * @type int $page_size + * 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. + * @type string $page_token + * 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. + * @type string $order_by + * 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. + * @type string $filter + * Optional. Filter for the returned list. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource of the WorkflowInvocation type. Must be in + * the format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource of the WorkflowInvocation type. Must be in + * the format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * 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. + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Filter for the returned list. + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filter for the returned list. + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkflowInvocationsResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkflowInvocationsResponse.php new file mode 100644 index 000000000000..b6046224114e --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkflowInvocationsResponse.php @@ -0,0 +1,139 @@ +google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse + */ +class ListWorkflowInvocationsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of workflow invocations. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.WorkflowInvocation workflow_invocations = 1; + */ + private $workflow_invocations; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Locations which could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + */ + private $unreachable; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1beta1\WorkflowInvocation[] $workflow_invocations + * List of workflow invocations. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type string[] $unreachable + * Locations which could not be reached. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * List of workflow invocations. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.WorkflowInvocation workflow_invocations = 1; + * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\WorkflowInvocation> + */ + public function getWorkflowInvocations() + { + return $this->workflow_invocations; + } + + /** + * List of workflow invocations. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.WorkflowInvocation workflow_invocations = 1; + * @param \Google\Cloud\Dataform\V1beta1\WorkflowInvocation[] $var + * @return $this + */ + public function setWorkflowInvocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\WorkflowInvocation::class); + $this->workflow_invocations = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Locations which could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @return RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Locations which could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @param string[] $var + * @return $this + */ + public function setUnreachable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkspacesRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkspacesRequest.php new file mode 100644 index 000000000000..99e4381b9990 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkspacesRequest.php @@ -0,0 +1,254 @@ +google.cloud.dataform.v1beta1.ListWorkspacesRequest + */ +class ListWorkspacesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The repository in which to list workspaces. Must be in the + * format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. Maximum number of workspaces to return. The server may return + * fewer items than requested. If unspecified, the server will pick an + * appropriate default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * 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. + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Filter for the returned list. + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * @param string $parent Required. The repository in which to list workspaces. Must be in the + * format `projects/*/locations/*/repositories/*`. Please see + * {@see DataformClient::repositoryName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1beta1\ListWorkspacesRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The repository in which to list workspaces. Must be in the + * format `projects/{@*}locations/{@*}repositories/*`. + * @type int $page_size + * Optional. Maximum number of workspaces to return. The server may return + * fewer items than requested. If unspecified, the server will pick an + * appropriate default. + * @type string $page_token + * 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. + * @type string $order_by + * 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. + * @type string $filter + * Optional. Filter for the returned list. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The repository in which to list workspaces. Must be in the + * format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The repository in which to list workspaces. Must be in the + * format `projects/{@*}locations/{@*}repositories/*`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. Maximum number of workspaces to return. The server may return + * fewer items than requested. If unspecified, the server will pick an + * appropriate default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Maximum number of workspaces to return. The server may return + * fewer items than requested. If unspecified, the server will pick an + * appropriate default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * 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. + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Filter for the returned list. + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filter for the returned list. + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkspacesResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkspacesResponse.php new file mode 100644 index 000000000000..b3d8caa3386a --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkspacesResponse.php @@ -0,0 +1,139 @@ +google.cloud.dataform.v1beta1.ListWorkspacesResponse + */ +class ListWorkspacesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of workspaces. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Workspace workspaces = 1; + */ + private $workspaces; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Locations which could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + */ + private $unreachable; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1beta1\Workspace[] $workspaces + * List of workspaces. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type string[] $unreachable + * Locations which could not be reached. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * List of workspaces. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Workspace workspaces = 1; + * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\Workspace> + */ + public function getWorkspaces() + { + return $this->workspaces; + } + + /** + * List of workspaces. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Workspace workspaces = 1; + * @param \Google\Cloud\Dataform\V1beta1\Workspace[] $var + * @return $this + */ + public function setWorkspaces($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\Workspace::class); + $this->workspaces = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Locations which could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @return RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Locations which could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @param string[] $var + * @return $this + */ + public function setUnreachable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MakeDirectoryRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MakeDirectoryRequest.php new file mode 100644 index 000000000000..dd5f4cadc26e --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MakeDirectoryRequest.php @@ -0,0 +1,105 @@ +google.cloud.dataform.v1beta1.MakeDirectoryRequest + */ +class MakeDirectoryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $workspace = ''; + /** + * Required. The directory's full path including directory name, relative to + * the workspace root. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $path = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $workspace + * Required. The workspace's name. + * @type string $path + * Required. The directory's full path including directory name, relative to + * the workspace root. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getWorkspace() + { + return $this->workspace; + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setWorkspace($var) + { + GPBUtil::checkString($var, True); + $this->workspace = $var; + + return $this; + } + + /** + * Required. The directory's full path including directory name, relative to + * the workspace root. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getPath() + { + return $this->path; + } + + /** + * Required. The directory's full path including directory name, relative to + * the workspace root. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setPath($var) + { + GPBUtil::checkString($var, True); + $this->path = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MakeDirectoryResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MakeDirectoryResponse.php new file mode 100644 index 000000000000..b5777e25349a --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MakeDirectoryResponse.php @@ -0,0 +1,33 @@ +google.cloud.dataform.v1beta1.MakeDirectoryResponse + */ +class MakeDirectoryResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveDirectoryRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveDirectoryRequest.php new file mode 100644 index 000000000000..9bcd0265bba9 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveDirectoryRequest.php @@ -0,0 +1,143 @@ +google.cloud.dataform.v1beta1.MoveDirectoryRequest + */ +class MoveDirectoryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $workspace = ''; + /** + * Required. The directory's full path including directory name, relative to + * the workspace root. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $path = ''; + /** + * Required. The new path for the directory including directory name, rooted + * at workspace root. + * + * Generated from protobuf field string new_path = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $new_path = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $workspace + * Required. The workspace's name. + * @type string $path + * Required. The directory's full path including directory name, relative to + * the workspace root. + * @type string $new_path + * Required. The new path for the directory including directory name, rooted + * at workspace root. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getWorkspace() + { + return $this->workspace; + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setWorkspace($var) + { + GPBUtil::checkString($var, True); + $this->workspace = $var; + + return $this; + } + + /** + * Required. The directory's full path including directory name, relative to + * the workspace root. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getPath() + { + return $this->path; + } + + /** + * Required. The directory's full path including directory name, relative to + * the workspace root. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setPath($var) + { + GPBUtil::checkString($var, True); + $this->path = $var; + + return $this; + } + + /** + * Required. The new path for the directory including directory name, rooted + * at workspace root. + * + * Generated from protobuf field string new_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getNewPath() + { + return $this->new_path; + } + + /** + * Required. The new path for the directory including directory name, rooted + * at workspace root. + * + * Generated from protobuf field string new_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setNewPath($var) + { + GPBUtil::checkString($var, True); + $this->new_path = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveDirectoryResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveDirectoryResponse.php new file mode 100644 index 000000000000..bad21266d97d --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveDirectoryResponse.php @@ -0,0 +1,33 @@ +google.cloud.dataform.v1beta1.MoveDirectoryResponse + */ +class MoveDirectoryResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveFileRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveFileRequest.php new file mode 100644 index 000000000000..07df33a66fa3 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveFileRequest.php @@ -0,0 +1,143 @@ +google.cloud.dataform.v1beta1.MoveFileRequest + */ +class MoveFileRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $workspace = ''; + /** + * Required. The file's full path including filename, relative to the + * workspace root. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $path = ''; + /** + * Required. The file's new path including filename, relative to the workspace + * root. + * + * Generated from protobuf field string new_path = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $new_path = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $workspace + * Required. The workspace's name. + * @type string $path + * Required. The file's full path including filename, relative to the + * workspace root. + * @type string $new_path + * Required. The file's new path including filename, relative to the workspace + * root. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getWorkspace() + { + return $this->workspace; + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setWorkspace($var) + { + GPBUtil::checkString($var, True); + $this->workspace = $var; + + return $this; + } + + /** + * Required. The file's full path including filename, relative to the + * workspace root. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getPath() + { + return $this->path; + } + + /** + * Required. The file's full path including filename, relative to the + * workspace root. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setPath($var) + { + GPBUtil::checkString($var, True); + $this->path = $var; + + return $this; + } + + /** + * Required. The file's new path including filename, relative to the workspace + * root. + * + * Generated from protobuf field string new_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getNewPath() + { + return $this->new_path; + } + + /** + * Required. The file's new path including filename, relative to the workspace + * root. + * + * Generated from protobuf field string new_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setNewPath($var) + { + GPBUtil::checkString($var, True); + $this->new_path = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveFileResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveFileResponse.php new file mode 100644 index 000000000000..84c623ad6324 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveFileResponse.php @@ -0,0 +1,33 @@ +google.cloud.dataform.v1beta1.MoveFileResponse + */ +class MoveFileResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveFolderMetadata.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveFolderMetadata.php new file mode 100644 index 000000000000..83ac886f5fb0 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveFolderMetadata.php @@ -0,0 +1,224 @@ +google.cloud.dataform.v1beta1.MoveFolderMetadata + */ +class MoveFolderMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The time the operation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time the operation finished running. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $end_time = null; + /** + * Output only. Server-defined resource path for the target of the operation. + * + * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $target = ''; + /** + * The state of the move. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.MoveFolderMetadata.State state = 4; + */ + protected $state = 0; + /** + * Percent complete of the move [0, 100]. + * + * Generated from protobuf field int32 percent_complete = 5; + */ + protected $percent_complete = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time the operation was created. + * @type \Google\Protobuf\Timestamp $end_time + * Output only. The time the operation finished running. + * @type string $target + * Output only. Server-defined resource path for the target of the operation. + * @type int $state + * The state of the move. + * @type int $percent_complete + * Percent complete of the move [0, 100]. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The time the operation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The time the operation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The time the operation finished running. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getEndTime() + { + return $this->end_time; + } + + public function hasEndTime() + { + return isset($this->end_time); + } + + public function clearEndTime() + { + unset($this->end_time); + } + + /** + * Output only. The time the operation finished running. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * + * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getTarget() + { + return $this->target; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * + * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setTarget($var) + { + GPBUtil::checkString($var, True); + $this->target = $var; + + return $this; + } + + /** + * The state of the move. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.MoveFolderMetadata.State state = 4; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * The state of the move. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.MoveFolderMetadata.State state = 4; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1beta1\MoveFolderMetadata\State::class); + $this->state = $var; + + return $this; + } + + /** + * Percent complete of the move [0, 100]. + * + * Generated from protobuf field int32 percent_complete = 5; + * @return int + */ + public function getPercentComplete() + { + return $this->percent_complete; + } + + /** + * Percent complete of the move [0, 100]. + * + * Generated from protobuf field int32 percent_complete = 5; + * @param int $var + * @return $this + */ + public function setPercentComplete($var) + { + GPBUtil::checkInt32($var); + $this->percent_complete = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveFolderMetadata/State.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveFolderMetadata/State.php new file mode 100644 index 000000000000..e7df3986915a --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveFolderMetadata/State.php @@ -0,0 +1,75 @@ +google.cloud.dataform.v1beta1.MoveFolderMetadata.State + */ +class State +{ + /** + * The state is unspecified. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * The move was initialized and recorded by the server, but not yet started. + * + * Generated from protobuf enum INITIALIZED = 1; + */ + const INITIALIZED = 1; + /** + * The move is in progress. + * + * Generated from protobuf enum IN_PROGRESS = 2; + */ + const IN_PROGRESS = 2; + /** + * The move has completed successfully. + * + * Generated from protobuf enum SUCCESS = 3; + */ + const SUCCESS = 3; + /** + * The move has failed. + * + * Generated from protobuf enum FAILED = 4; + */ + const FAILED = 4; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::INITIALIZED => 'INITIALIZED', + self::IN_PROGRESS => 'IN_PROGRESS', + self::SUCCESS => 'SUCCESS', + self::FAILED => 'FAILED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveFolderRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveFolderRequest.php new file mode 100644 index 000000000000..71164f80accc --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveFolderRequest.php @@ -0,0 +1,137 @@ +google.cloud.dataform.v1beta1.MoveFolderRequest + */ +class MoveFolderRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The full resource name of the Folder to move. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * 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/*` + * + * Generated from protobuf field optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $destination_containing_folder = null; + + /** + * @param string $name Required. The full resource name of the Folder to move. Please see + * {@see DataformClient::folderName()} for help formatting this field. + * @param string $destinationContainingFolder 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/*` + * + * @return \Google\Cloud\Dataform\V1beta1\MoveFolderRequest + * + * @experimental + */ + public static function build(string $name, string $destinationContainingFolder): self + { + return (new self()) + ->setName($name) + ->setDestinationContainingFolder($destinationContainingFolder); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The full resource name of the Folder to move. + * @type string $destination_containing_folder + * 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/*` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The full resource name of the Folder to move. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The full resource name of the Folder to move. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * 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/*` + * + * Generated from protobuf field optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDestinationContainingFolder() + { + return isset($this->destination_containing_folder) ? $this->destination_containing_folder : ''; + } + + public function hasDestinationContainingFolder() + { + return isset($this->destination_containing_folder); + } + + public function clearDestinationContainingFolder() + { + unset($this->destination_containing_folder); + } + + /** + * 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/*` + * + * Generated from protobuf field optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDestinationContainingFolder($var) + { + GPBUtil::checkString($var, True); + $this->destination_containing_folder = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveRepositoryMetadata.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveRepositoryMetadata.php new file mode 100644 index 000000000000..84bfbb8f32bf --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveRepositoryMetadata.php @@ -0,0 +1,224 @@ +google.cloud.dataform.v1beta1.MoveRepositoryMetadata + */ +class MoveRepositoryMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The time the operation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time the operation finished running. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $end_time = null; + /** + * Output only. Server-defined resource path for the target of the operation. + * + * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $target = ''; + /** + * The state of the move. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.MoveRepositoryMetadata.State state = 4; + */ + protected $state = 0; + /** + * Percent complete of the move [0, 100]. + * + * Generated from protobuf field int32 percent_complete = 5; + */ + protected $percent_complete = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time the operation was created. + * @type \Google\Protobuf\Timestamp $end_time + * Output only. The time the operation finished running. + * @type string $target + * Output only. Server-defined resource path for the target of the operation. + * @type int $state + * The state of the move. + * @type int $percent_complete + * Percent complete of the move [0, 100]. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The time the operation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The time the operation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The time the operation finished running. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getEndTime() + { + return $this->end_time; + } + + public function hasEndTime() + { + return isset($this->end_time); + } + + public function clearEndTime() + { + unset($this->end_time); + } + + /** + * Output only. The time the operation finished running. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * + * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getTarget() + { + return $this->target; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * + * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setTarget($var) + { + GPBUtil::checkString($var, True); + $this->target = $var; + + return $this; + } + + /** + * The state of the move. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.MoveRepositoryMetadata.State state = 4; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * The state of the move. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.MoveRepositoryMetadata.State state = 4; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1beta1\MoveRepositoryMetadata\State::class); + $this->state = $var; + + return $this; + } + + /** + * Percent complete of the move [0, 100]. + * + * Generated from protobuf field int32 percent_complete = 5; + * @return int + */ + public function getPercentComplete() + { + return $this->percent_complete; + } + + /** + * Percent complete of the move [0, 100]. + * + * Generated from protobuf field int32 percent_complete = 5; + * @param int $var + * @return $this + */ + public function setPercentComplete($var) + { + GPBUtil::checkInt32($var); + $this->percent_complete = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveRepositoryMetadata/State.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveRepositoryMetadata/State.php new file mode 100644 index 000000000000..81149a50aa1f --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveRepositoryMetadata/State.php @@ -0,0 +1,75 @@ +google.cloud.dataform.v1beta1.MoveRepositoryMetadata.State + */ +class State +{ + /** + * The state is unspecified. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * The move was initialized and recorded by the server, but not yet started. + * + * Generated from protobuf enum INITIALIZED = 1; + */ + const INITIALIZED = 1; + /** + * The move is in progress. + * + * Generated from protobuf enum IN_PROGRESS = 2; + */ + const IN_PROGRESS = 2; + /** + * The move has completed successfully. + * + * Generated from protobuf enum SUCCESS = 3; + */ + const SUCCESS = 3; + /** + * The move has failed. + * + * Generated from protobuf enum FAILED = 4; + */ + const FAILED = 4; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::INITIALIZED => 'INITIALIZED', + self::IN_PROGRESS => 'IN_PROGRESS', + self::SUCCESS => 'SUCCESS', + self::FAILED => 'FAILED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveRepositoryRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveRepositoryRequest.php new file mode 100644 index 000000000000..291e77f36a51 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveRepositoryRequest.php @@ -0,0 +1,142 @@ +google.cloud.dataform.v1beta1.MoveRepositoryRequest + */ +class MoveRepositoryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The full resource name of the repository to move. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * 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/*` + * + * Generated from protobuf field optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $destination_containing_folder = null; + + /** + * @param string $name Required. The full resource name of the repository to move. Please see + * {@see DataformClient::repositoryName()} for help formatting this field. + * @param string $destinationContainingFolder 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/*` + * + * @return \Google\Cloud\Dataform\V1beta1\MoveRepositoryRequest + * + * @experimental + */ + public static function build(string $name, string $destinationContainingFolder): self + { + return (new self()) + ->setName($name) + ->setDestinationContainingFolder($destinationContainingFolder); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The full resource name of the repository to move. + * @type string $destination_containing_folder + * 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/*` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The full resource name of the repository to move. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The full resource name of the repository to move. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * 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/*` + * + * Generated from protobuf field optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDestinationContainingFolder() + { + return isset($this->destination_containing_folder) ? $this->destination_containing_folder : ''; + } + + public function hasDestinationContainingFolder() + { + return isset($this->destination_containing_folder); + } + + public function clearDestinationContainingFolder() + { + unset($this->destination_containing_folder); + } + + /** + * 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/*` + * + * Generated from protobuf field optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDestinationContainingFolder($var) + { + GPBUtil::checkString($var, True); + $this->destination_containing_folder = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/NotebookRuntimeOptions.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/NotebookRuntimeOptions.php new file mode 100644 index 000000000000..07c4dc41205a --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/NotebookRuntimeOptions.php @@ -0,0 +1,124 @@ +google.cloud.dataform.v1beta1.NotebookRuntimeOptions + */ +class NotebookRuntimeOptions extends \Google\Protobuf\Internal\Message +{ + /** + * 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. + * + * Generated from protobuf field string ai_platform_notebook_runtime_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $ai_platform_notebook_runtime_template = ''; + protected $execution_sink; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $gcs_output_bucket + * Optional. The Google Cloud Storage location to upload the result to. + * Format: `gs://bucket-name`. + * @type string $ai_platform_notebook_runtime_template + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The Google Cloud Storage location to upload the result to. + * Format: `gs://bucket-name`. + * + * Generated from protobuf field string gcs_output_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getGcsOutputBucket() + { + return $this->readOneof(1); + } + + public function hasGcsOutputBucket() + { + return $this->hasOneof(1); + } + + /** + * Optional. The Google Cloud Storage location to upload the result to. + * Format: `gs://bucket-name`. + * + * Generated from protobuf field string gcs_output_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setGcsOutputBucket($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string ai_platform_notebook_runtime_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getAiPlatformNotebookRuntimeTemplate() + { + return $this->ai_platform_notebook_runtime_template; + } + + /** + * 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. + * + * Generated from protobuf field string ai_platform_notebook_runtime_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setAiPlatformNotebookRuntimeTemplate($var) + { + GPBUtil::checkString($var, True); + $this->ai_platform_notebook_runtime_template = $var; + + return $this; + } + + /** + * @return string + */ + public function getExecutionSink() + { + return $this->whichOneof("execution_sink"); + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/PrivateResourceMetadata.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/PrivateResourceMetadata.php new file mode 100644 index 000000000000..fb3058dca6d3 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/PrivateResourceMetadata.php @@ -0,0 +1,71 @@ +google.cloud.dataform.v1beta1.PrivateResourceMetadata + */ +class PrivateResourceMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. If true, this resource is user-scoped, meaning it is either a + * workspace or sourced from a workspace. + * + * Generated from protobuf field bool user_scoped = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $user_scoped = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $user_scoped + * Output only. If true, this resource is user-scoped, meaning it is either a + * workspace or sourced from a workspace. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Output only. If true, this resource is user-scoped, meaning it is either a + * workspace or sourced from a workspace. + * + * Generated from protobuf field bool user_scoped = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getUserScoped() + { + return $this->user_scoped; + } + + /** + * Output only. If true, this resource is user-scoped, meaning it is either a + * workspace or sourced from a workspace. + * + * Generated from protobuf field bool user_scoped = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setUserScoped($var) + { + GPBUtil::checkBool($var); + $this->user_scoped = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/PullGitCommitsRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/PullGitCommitsRequest.php new file mode 100644 index 000000000000..ee9655523293 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/PullGitCommitsRequest.php @@ -0,0 +1,153 @@ +google.cloud.dataform.v1beta1.PullGitCommitsRequest + */ +class PullGitCommitsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * 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. + * + * Generated from protobuf field string remote_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $remote_branch = ''; + /** + * Required. The author of any merge commit which may be created as a result + * of merging fetched Git commits into this workspace. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $author = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The workspace's name. + * @type string $remote_branch + * 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. + * @type \Google\Cloud\Dataform\V1beta1\CommitAuthor $author + * Required. The author of any merge commit which may be created as a result + * of merging fetched Git commits into this workspace. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string remote_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRemoteBranch() + { + return $this->remote_branch; + } + + /** + * 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. + * + * Generated from protobuf field string remote_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRemoteBranch($var) + { + GPBUtil::checkString($var, True); + $this->remote_branch = $var; + + return $this; + } + + /** + * Required. The author of any merge commit which may be created as a result + * of merging fetched Git commits into this workspace. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataform\V1beta1\CommitAuthor|null + */ + public function getAuthor() + { + return $this->author; + } + + public function hasAuthor() + { + return isset($this->author); + } + + public function clearAuthor() + { + unset($this->author); + } + + /** + * Required. The author of any merge commit which may be created as a result + * of merging fetched Git commits into this workspace. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataform\V1beta1\CommitAuthor $var + * @return $this + */ + public function setAuthor($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CommitAuthor::class); + $this->author = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/PullGitCommitsResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/PullGitCommitsResponse.php new file mode 100644 index 000000000000..b4c3c25ede7e --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/PullGitCommitsResponse.php @@ -0,0 +1,33 @@ +google.cloud.dataform.v1beta1.PullGitCommitsResponse + */ +class PullGitCommitsResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/PushGitCommitsRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/PushGitCommitsRequest.php new file mode 100644 index 000000000000..73b75ecd1f33 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/PushGitCommitsRequest.php @@ -0,0 +1,109 @@ +google.cloud.dataform.v1beta1.PushGitCommitsRequest + */ +class PushGitCommitsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * 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. + * + * Generated from protobuf field string remote_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $remote_branch = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The workspace's name. + * @type string $remote_branch + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string remote_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRemoteBranch() + { + return $this->remote_branch; + } + + /** + * 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. + * + * Generated from protobuf field string remote_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRemoteBranch($var) + { + GPBUtil::checkString($var, True); + $this->remote_branch = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/PushGitCommitsResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/PushGitCommitsResponse.php new file mode 100644 index 000000000000..13004679bc9d --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/PushGitCommitsResponse.php @@ -0,0 +1,33 @@ +google.cloud.dataform.v1beta1.PushGitCommitsResponse + */ +class PushGitCommitsResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryCompilationResultActionsRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryCompilationResultActionsRequest.php new file mode 100644 index 000000000000..834a2f4eb299 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryCompilationResultActionsRequest.php @@ -0,0 +1,201 @@ +google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest + */ +class QueryCompilationResultActionsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The compilation result's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Optional filter for the returned list. Filtering is only + * currently supported on the `file_path` field. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The compilation result's name. + * @type int $page_size + * 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. + * @type string $page_token + * 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. + * @type string $filter + * Optional. Optional filter for the returned list. Filtering is only + * currently supported on the `file_path` field. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The compilation result's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The compilation result's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Optional filter for the returned list. Filtering is only + * currently supported on the `file_path` field. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Optional filter for the returned list. Filtering is only + * currently supported on the `file_path` field. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryCompilationResultActionsResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryCompilationResultActionsResponse.php new file mode 100644 index 000000000000..ec66454b2b18 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryCompilationResultActionsResponse.php @@ -0,0 +1,105 @@ +google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse + */ +class QueryCompilationResultActionsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of compilation result actions. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.CompilationResultAction compilation_result_actions = 1; + */ + private $compilation_result_actions; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1beta1\CompilationResultAction[] $compilation_result_actions + * List of compilation result actions. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * List of compilation result actions. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.CompilationResultAction compilation_result_actions = 1; + * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\CompilationResultAction> + */ + public function getCompilationResultActions() + { + return $this->compilation_result_actions; + } + + /** + * List of compilation result actions. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.CompilationResultAction compilation_result_actions = 1; + * @param \Google\Cloud\Dataform\V1beta1\CompilationResultAction[] $var + * @return $this + */ + public function setCompilationResultActions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\CompilationResultAction::class); + $this->compilation_result_actions = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryDirectoryContentsRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryDirectoryContentsRequest.php new file mode 100644 index 000000000000..706f7a1073fc --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryDirectoryContentsRequest.php @@ -0,0 +1,197 @@ +google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest + */ +class QueryDirectoryContentsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $workspace = ''; + /** + * Optional. The directory's full path including directory name, relative to + * the workspace root. If left unset, the workspace root is used. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $path = ''; + /** + * Optional. Maximum number of paths to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * + * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * 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. + * + * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $workspace + * Required. The workspace's name. + * @type string $path + * Optional. The directory's full path including directory name, relative to + * the workspace root. If left unset, the workspace root is used. + * @type int $page_size + * Optional. Maximum number of paths to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * @type string $page_token + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getWorkspace() + { + return $this->workspace; + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setWorkspace($var) + { + GPBUtil::checkString($var, True); + $this->workspace = $var; + + return $this; + } + + /** + * Optional. The directory's full path including directory name, relative to + * the workspace root. If left unset, the workspace root is used. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPath() + { + return $this->path; + } + + /** + * Optional. The directory's full path including directory name, relative to + * the workspace root. If left unset, the workspace root is used. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPath($var) + { + GPBUtil::checkString($var, True); + $this->path = $var; + + return $this; + } + + /** + * Optional. Maximum number of paths to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * + * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Maximum number of paths to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * + * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryDirectoryContentsResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryDirectoryContentsResponse.php new file mode 100644 index 000000000000..192fc14f011c --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryDirectoryContentsResponse.php @@ -0,0 +1,105 @@ +google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse + */ +class QueryDirectoryContentsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of entries in the directory. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; + */ + private $directory_entries; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1beta1\DirectoryEntry[] $directory_entries + * List of entries in the directory. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * List of entries in the directory. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; + * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\DirectoryEntry> + */ + public function getDirectoryEntries() + { + return $this->directory_entries; + } + + /** + * List of entries in the directory. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; + * @param \Google\Cloud\Dataform\V1beta1\DirectoryEntry[] $var + * @return $this + */ + public function setDirectoryEntries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\DirectoryEntry::class); + $this->directory_entries = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryFolderContentsRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryFolderContentsRequest.php new file mode 100644 index 000000000000..5b032a63c326 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryFolderContentsRequest.php @@ -0,0 +1,282 @@ +google.cloud.dataform.v1beta1.QueryFolderContentsRequest + */ +class QueryFolderContentsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the folder whose contents to list. + * Format: projects/{@*}locations/{@*}folders/* + * + * Generated from protobuf field string folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $folder = ''; + /** + * Optional. Maximum number of paths to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * 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"` + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Optional filtering for the returned list. Filtering is currently + * only supported on the `display_name` field. + * Example: + * - `filter="display_name="MyFolder""` + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * @param string $folder Required. Name of the folder whose contents to list. + * Format: projects/*/locations/*/folders/* + * Please see {@see DataformClient::folderName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1beta1\QueryFolderContentsRequest + * + * @experimental + */ + public static function build(string $folder): self + { + return (new self()) + ->setFolder($folder); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $folder + * Required. Name of the folder whose contents to list. + * Format: projects/{@*}locations/{@*}folders/* + * @type int $page_size + * Optional. Maximum number of paths to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * @type string $page_token + * 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. + * @type string $order_by + * 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"` + * @type string $filter + * Optional. Optional filtering for the returned list. Filtering is currently + * only supported on the `display_name` field. + * Example: + * - `filter="display_name="MyFolder""` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the folder whose contents to list. + * Format: projects/{@*}locations/{@*}folders/* + * + * Generated from protobuf field string folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getFolder() + { + return $this->folder; + } + + /** + * Required. Name of the folder whose contents to list. + * Format: projects/{@*}locations/{@*}folders/* + * + * Generated from protobuf field string folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setFolder($var) + { + GPBUtil::checkString($var, True); + $this->folder = $var; + + return $this; + } + + /** + * Optional. Maximum number of paths to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Maximum number of paths to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * 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"` + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * 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"` + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Optional filtering for the returned list. Filtering is currently + * only supported on the `display_name` field. + * Example: + * - `filter="display_name="MyFolder""` + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Optional filtering for the returned list. Filtering is currently + * only supported on the `display_name` field. + * Example: + * - `filter="display_name="MyFolder""` + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryFolderContentsResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryFolderContentsResponse.php new file mode 100644 index 000000000000..77c9fde89359 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryFolderContentsResponse.php @@ -0,0 +1,105 @@ +google.cloud.dataform.v1beta1.QueryFolderContentsResponse + */ +class QueryFolderContentsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of entries in the folder. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + */ + private $entries; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1beta1\QueryFolderContentsResponse\FolderContentsEntry[] $entries + * List of entries in the folder. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * List of entries in the folder. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\QueryFolderContentsResponse\FolderContentsEntry> + */ + public function getEntries() + { + return $this->entries; + } + + /** + * List of entries in the folder. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; + * @param \Google\Cloud\Dataform\V1beta1\QueryFolderContentsResponse\FolderContentsEntry[] $var + * @return $this + */ + public function setEntries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\QueryFolderContentsResponse\FolderContentsEntry::class); + $this->entries = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryFolderContentsResponse/FolderContentsEntry.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryFolderContentsResponse/FolderContentsEntry.php new file mode 100644 index 000000000000..6254ad341b1b --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryFolderContentsResponse/FolderContentsEntry.php @@ -0,0 +1,108 @@ +google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry + */ +class FolderContentsEntry extends \Google\Protobuf\Internal\Message +{ + protected $entry; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1beta1\Folder $folder + * A subfolder. + * @type \Google\Cloud\Dataform\V1beta1\Repository $repository + * A repository. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * A subfolder. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Folder folder = 1; + * @return \Google\Cloud\Dataform\V1beta1\Folder|null + */ + public function getFolder() + { + return $this->readOneof(1); + } + + public function hasFolder() + { + return $this->hasOneof(1); + } + + /** + * A subfolder. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Folder folder = 1; + * @param \Google\Cloud\Dataform\V1beta1\Folder $var + * @return $this + */ + public function setFolder($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Folder::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * A repository. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository repository = 2; + * @return \Google\Cloud\Dataform\V1beta1\Repository|null + */ + public function getRepository() + { + return $this->readOneof(2); + } + + public function hasRepository() + { + return $this->hasOneof(2); + } + + /** + * A repository. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository repository = 2; + * @param \Google\Cloud\Dataform\V1beta1\Repository $var + * @return $this + */ + public function setRepository($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Repository::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getEntry() + { + return $this->whichOneof("entry"); + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryRepositoryDirectoryContentsRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryRepositoryDirectoryContentsRequest.php new file mode 100644 index 000000000000..b44897a06e1e --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryRepositoryDirectoryContentsRequest.php @@ -0,0 +1,239 @@ +google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest + */ +class QueryRepositoryDirectoryContentsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. The Commit SHA for the commit to query from. If unset, the + * directory will be queried from HEAD. + * + * Generated from protobuf field string commit_sha = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $commit_sha = ''; + /** + * Optional. The directory's full path including directory name, relative to + * root. If left unset, the root is used. + * + * Generated from protobuf field string path = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $path = ''; + /** + * Optional. Maximum number of paths to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * + * Generated from protobuf field int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * 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. + * + * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The repository's name. + * @type string $commit_sha + * Optional. The Commit SHA for the commit to query from. If unset, the + * directory will be queried from HEAD. + * @type string $path + * Optional. The directory's full path including directory name, relative to + * root. If left unset, the root is used. + * @type int $page_size + * Optional. Maximum number of paths to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * @type string $page_token + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. The Commit SHA for the commit to query from. If unset, the + * directory will be queried from HEAD. + * + * Generated from protobuf field string commit_sha = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getCommitSha() + { + return $this->commit_sha; + } + + /** + * Optional. The Commit SHA for the commit to query from. If unset, the + * directory will be queried from HEAD. + * + * Generated from protobuf field string commit_sha = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setCommitSha($var) + { + GPBUtil::checkString($var, True); + $this->commit_sha = $var; + + return $this; + } + + /** + * Optional. The directory's full path including directory name, relative to + * root. If left unset, the root is used. + * + * Generated from protobuf field string path = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPath() + { + return $this->path; + } + + /** + * Optional. The directory's full path including directory name, relative to + * root. If left unset, the root is used. + * + * Generated from protobuf field string path = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPath($var) + { + GPBUtil::checkString($var, True); + $this->path = $var; + + return $this; + } + + /** + * Optional. Maximum number of paths to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * + * Generated from protobuf field int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Maximum number of paths to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * + * Generated from protobuf field int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryRepositoryDirectoryContentsResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryRepositoryDirectoryContentsResponse.php new file mode 100644 index 000000000000..7a2221dc9428 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryRepositoryDirectoryContentsResponse.php @@ -0,0 +1,105 @@ +google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse + */ +class QueryRepositoryDirectoryContentsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of entries in the directory. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; + */ + private $directory_entries; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1beta1\DirectoryEntry[] $directory_entries + * List of entries in the directory. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * List of entries in the directory. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; + * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\DirectoryEntry> + */ + public function getDirectoryEntries() + { + return $this->directory_entries; + } + + /** + * List of entries in the directory. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; + * @param \Google\Cloud\Dataform\V1beta1\DirectoryEntry[] $var + * @return $this + */ + public function setDirectoryEntries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\DirectoryEntry::class); + $this->directory_entries = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryTeamFolderContentsRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryTeamFolderContentsRequest.php new file mode 100644 index 000000000000..76d32624941b --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryTeamFolderContentsRequest.php @@ -0,0 +1,282 @@ +google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest + */ +class QueryTeamFolderContentsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the team_folder whose contents to list. + * Format: `projects/{@*}locations/{@*}teamFolders/*`. + * + * Generated from protobuf field string team_folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $team_folder = ''; + /** + * Optional. Maximum number of paths to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * 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"` + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Optional filtering for the returned list. Filtering is currently + * only supported on the `display_name` field. + * Example: + * - `filter="display_name="MyFolder""` + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * @param string $teamFolder Required. Name of the team_folder whose contents to list. + * Format: `projects/*/locations/*/teamFolders/*`. Please see + * {@see DataformClient::teamFolderName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1beta1\QueryTeamFolderContentsRequest + * + * @experimental + */ + public static function build(string $teamFolder): self + { + return (new self()) + ->setTeamFolder($teamFolder); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $team_folder + * Required. Name of the team_folder whose contents to list. + * Format: `projects/{@*}locations/{@*}teamFolders/*`. + * @type int $page_size + * Optional. Maximum number of paths to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * @type string $page_token + * 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. + * @type string $order_by + * 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"` + * @type string $filter + * Optional. Optional filtering for the returned list. Filtering is currently + * only supported on the `display_name` field. + * Example: + * - `filter="display_name="MyFolder""` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the team_folder whose contents to list. + * Format: `projects/{@*}locations/{@*}teamFolders/*`. + * + * Generated from protobuf field string team_folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getTeamFolder() + { + return $this->team_folder; + } + + /** + * Required. Name of the team_folder whose contents to list. + * Format: `projects/{@*}locations/{@*}teamFolders/*`. + * + * Generated from protobuf field string team_folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setTeamFolder($var) + { + GPBUtil::checkString($var, True); + $this->team_folder = $var; + + return $this; + } + + /** + * Optional. Maximum number of paths to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Maximum number of paths to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * 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"` + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * 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"` + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Optional filtering for the returned list. Filtering is currently + * only supported on the `display_name` field. + * Example: + * - `filter="display_name="MyFolder""` + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Optional filtering for the returned list. Filtering is currently + * only supported on the `display_name` field. + * Example: + * - `filter="display_name="MyFolder""` + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryTeamFolderContentsResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryTeamFolderContentsResponse.php new file mode 100644 index 000000000000..c9a498313597 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryTeamFolderContentsResponse.php @@ -0,0 +1,105 @@ +google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse + */ +class QueryTeamFolderContentsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of entries in the TeamFolder. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + */ + private $entries; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1beta1\QueryTeamFolderContentsResponse\TeamFolderContentsEntry[] $entries + * List of entries in the TeamFolder. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * List of entries in the TeamFolder. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\QueryTeamFolderContentsResponse\TeamFolderContentsEntry> + */ + public function getEntries() + { + return $this->entries; + } + + /** + * List of entries in the TeamFolder. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; + * @param \Google\Cloud\Dataform\V1beta1\QueryTeamFolderContentsResponse\TeamFolderContentsEntry[] $var + * @return $this + */ + public function setEntries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\QueryTeamFolderContentsResponse\TeamFolderContentsEntry::class); + $this->entries = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryTeamFolderContentsResponse/TeamFolderContentsEntry.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryTeamFolderContentsResponse/TeamFolderContentsEntry.php new file mode 100644 index 000000000000..06e5f5def31d --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryTeamFolderContentsResponse/TeamFolderContentsEntry.php @@ -0,0 +1,108 @@ +google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry + */ +class TeamFolderContentsEntry extends \Google\Protobuf\Internal\Message +{ + protected $entry; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1beta1\Folder $folder + * A subfolder. + * @type \Google\Cloud\Dataform\V1beta1\Repository $repository + * A repository. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * A subfolder. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Folder folder = 1; + * @return \Google\Cloud\Dataform\V1beta1\Folder|null + */ + public function getFolder() + { + return $this->readOneof(1); + } + + public function hasFolder() + { + return $this->hasOneof(1); + } + + /** + * A subfolder. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Folder folder = 1; + * @param \Google\Cloud\Dataform\V1beta1\Folder $var + * @return $this + */ + public function setFolder($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Folder::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * A repository. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository repository = 2; + * @return \Google\Cloud\Dataform\V1beta1\Repository|null + */ + public function getRepository() + { + return $this->readOneof(2); + } + + public function hasRepository() + { + return $this->hasOneof(2); + } + + /** + * A repository. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository repository = 2; + * @param \Google\Cloud\Dataform\V1beta1\Repository $var + * @return $this + */ + public function setRepository($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Repository::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getEntry() + { + return $this->whichOneof("entry"); + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryUserRootContentsRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryUserRootContentsRequest.php new file mode 100644 index 000000000000..8b1ebee0ee27 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryUserRootContentsRequest.php @@ -0,0 +1,278 @@ +google.cloud.dataform.v1beta1.QueryUserRootContentsRequest + */ +class QueryUserRootContentsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Location of the user root folder whose contents to list. + * Format: projects/{@*}locations/* + * + * Generated from protobuf field string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $location = ''; + /** + * Optional. Maximum number of paths to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * 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"` + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Optional filtering for the returned list. Filtering is currently + * only supported on the `display_name` field. + * Example: + * - `filter="display_name="MyFolder""` + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * @param string $location Required. Location of the user root folder whose contents to list. + * Format: projects/*/locations/* + * Please see {@see DataformClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\Dataform\V1beta1\QueryUserRootContentsRequest + * + * @experimental + */ + public static function build(string $location): self + { + return (new self()) + ->setLocation($location); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $location + * Required. Location of the user root folder whose contents to list. + * Format: projects/{@*}locations/* + * @type int $page_size + * Optional. Maximum number of paths to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * @type string $page_token + * 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. + * @type string $order_by + * 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"` + * @type string $filter + * Optional. Optional filtering for the returned list. Filtering is currently + * only supported on the `display_name` field. + * Example: + * - `filter="display_name="MyFolder""` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. Location of the user root folder whose contents to list. + * Format: projects/{@*}locations/* + * + * Generated from protobuf field string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getLocation() + { + return $this->location; + } + + /** + * Required. Location of the user root folder whose contents to list. + * Format: projects/{@*}locations/* + * + * Generated from protobuf field string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkString($var, True); + $this->location = $var; + + return $this; + } + + /** + * Optional. Maximum number of paths to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Maximum number of paths to return. The server may return fewer + * items than requested. If unspecified, the server will pick an appropriate + * default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * 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"` + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * 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"` + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Optional filtering for the returned list. Filtering is currently + * only supported on the `display_name` field. + * Example: + * - `filter="display_name="MyFolder""` + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Optional filtering for the returned list. Filtering is currently + * only supported on the `display_name` field. + * Example: + * - `filter="display_name="MyFolder""` + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryUserRootContentsResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryUserRootContentsResponse.php new file mode 100644 index 000000000000..74ff65d7fefc --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryUserRootContentsResponse.php @@ -0,0 +1,105 @@ +google.cloud.dataform.v1beta1.QueryUserRootContentsResponse + */ +class QueryUserRootContentsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of entries in the folder. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + */ + private $entries; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1beta1\QueryUserRootContentsResponse\RootContentsEntry[] $entries + * List of entries in the folder. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * List of entries in the folder. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\QueryUserRootContentsResponse\RootContentsEntry> + */ + public function getEntries() + { + return $this->entries; + } + + /** + * List of entries in the folder. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; + * @param \Google\Cloud\Dataform\V1beta1\QueryUserRootContentsResponse\RootContentsEntry[] $var + * @return $this + */ + public function setEntries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\QueryUserRootContentsResponse\RootContentsEntry::class); + $this->entries = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryUserRootContentsResponse/RootContentsEntry.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryUserRootContentsResponse/RootContentsEntry.php new file mode 100644 index 000000000000..4db6b9e0fd01 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryUserRootContentsResponse/RootContentsEntry.php @@ -0,0 +1,108 @@ +google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry + */ +class RootContentsEntry extends \Google\Protobuf\Internal\Message +{ + protected $entry; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1beta1\Folder $folder + * A subfolder. + * @type \Google\Cloud\Dataform\V1beta1\Repository $repository + * A repository. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * A subfolder. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Folder folder = 1; + * @return \Google\Cloud\Dataform\V1beta1\Folder|null + */ + public function getFolder() + { + return $this->readOneof(1); + } + + public function hasFolder() + { + return $this->hasOneof(1); + } + + /** + * A subfolder. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Folder folder = 1; + * @param \Google\Cloud\Dataform\V1beta1\Folder $var + * @return $this + */ + public function setFolder($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Folder::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * A repository. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository repository = 2; + * @return \Google\Cloud\Dataform\V1beta1\Repository|null + */ + public function getRepository() + { + return $this->readOneof(2); + } + + public function hasRepository() + { + return $this->hasOneof(2); + } + + /** + * A repository. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository repository = 2; + * @param \Google\Cloud\Dataform\V1beta1\Repository $var + * @return $this + */ + public function setRepository($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Repository::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getEntry() + { + return $this->whichOneof("entry"); + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryWorkflowInvocationActionsRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryWorkflowInvocationActionsRequest.php new file mode 100644 index 000000000000..41287e25b14f --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryWorkflowInvocationActionsRequest.php @@ -0,0 +1,163 @@ +google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest + */ +class QueryWorkflowInvocationActionsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workflow invocation's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The workflow invocation's name. + * @type int $page_size + * 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. + * @type string $page_token + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workflow invocation's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The workflow invocation's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryWorkflowInvocationActionsResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryWorkflowInvocationActionsResponse.php new file mode 100644 index 000000000000..6860c9bb9382 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryWorkflowInvocationActionsResponse.php @@ -0,0 +1,105 @@ +google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse + */ +class QueryWorkflowInvocationActionsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of workflow invocation actions. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.WorkflowInvocationAction workflow_invocation_actions = 1; + */ + private $workflow_invocation_actions; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction[] $workflow_invocation_actions + * List of workflow invocation actions. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * List of workflow invocation actions. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.WorkflowInvocationAction workflow_invocation_actions = 1; + * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction> + */ + public function getWorkflowInvocationActions() + { + return $this->workflow_invocation_actions; + } + + /** + * List of workflow invocation actions. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.WorkflowInvocationAction workflow_invocation_actions = 1; + * @param \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction[] $var + * @return $this + */ + public function setWorkflowInvocationActions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction::class); + $this->workflow_invocation_actions = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReadFileRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReadFileRequest.php new file mode 100644 index 000000000000..f805ae6fffca --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReadFileRequest.php @@ -0,0 +1,143 @@ +google.cloud.dataform.v1beta1.ReadFileRequest + */ +class ReadFileRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $workspace = ''; + /** + * Required. The file's full path including filename, relative to the + * workspace root. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $path = ''; + /** + * Optional. The Git revision of the file to return. If left empty, the + * current contents of `path` will be returned. + * + * Generated from protobuf field string revision = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $revision = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $workspace + * Required. The workspace's name. + * @type string $path + * Required. The file's full path including filename, relative to the + * workspace root. + * @type string $revision + * Optional. The Git revision of the file to return. If left empty, the + * current contents of `path` will be returned. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getWorkspace() + { + return $this->workspace; + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setWorkspace($var) + { + GPBUtil::checkString($var, True); + $this->workspace = $var; + + return $this; + } + + /** + * Required. The file's full path including filename, relative to the + * workspace root. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getPath() + { + return $this->path; + } + + /** + * Required. The file's full path including filename, relative to the + * workspace root. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setPath($var) + { + GPBUtil::checkString($var, True); + $this->path = $var; + + return $this; + } + + /** + * Optional. The Git revision of the file to return. If left empty, the + * current contents of `path` will be returned. + * + * Generated from protobuf field string revision = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRevision() + { + return $this->revision; + } + + /** + * Optional. The Git revision of the file to return. If left empty, the + * current contents of `path` will be returned. + * + * Generated from protobuf field string revision = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRevision($var) + { + GPBUtil::checkString($var, True); + $this->revision = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReadFileResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReadFileResponse.php new file mode 100644 index 000000000000..5d9a497da9d7 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReadFileResponse.php @@ -0,0 +1,67 @@ +google.cloud.dataform.v1beta1.ReadFileResponse + */ +class ReadFileResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The file's contents. + * + * Generated from protobuf field bytes file_contents = 1; + */ + protected $file_contents = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $file_contents + * The file's contents. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * The file's contents. + * + * Generated from protobuf field bytes file_contents = 1; + * @return string + */ + public function getFileContents() + { + return $this->file_contents; + } + + /** + * The file's contents. + * + * Generated from protobuf field bytes file_contents = 1; + * @param string $var + * @return $this + */ + public function setFileContents($var) + { + GPBUtil::checkString($var, False); + $this->file_contents = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReadRepositoryFileRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReadRepositoryFileRequest.php new file mode 100644 index 000000000000..5d0e0f1c67eb --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReadRepositoryFileRequest.php @@ -0,0 +1,139 @@ +google.cloud.dataform.v1beta1.ReadRepositoryFileRequest + */ +class ReadRepositoryFileRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. The commit SHA for the commit to read from. If unset, the file + * will be read from HEAD. + * + * Generated from protobuf field string commit_sha = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $commit_sha = ''; + /** + * Required. Full file path to read including filename, from repository root. + * + * Generated from protobuf field string path = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $path = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The repository's name. + * @type string $commit_sha + * Optional. The commit SHA for the commit to read from. If unset, the file + * will be read from HEAD. + * @type string $path + * Required. Full file path to read including filename, from repository root. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. The commit SHA for the commit to read from. If unset, the file + * will be read from HEAD. + * + * Generated from protobuf field string commit_sha = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getCommitSha() + { + return $this->commit_sha; + } + + /** + * Optional. The commit SHA for the commit to read from. If unset, the file + * will be read from HEAD. + * + * Generated from protobuf field string commit_sha = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setCommitSha($var) + { + GPBUtil::checkString($var, True); + $this->commit_sha = $var; + + return $this; + } + + /** + * Required. Full file path to read including filename, from repository root. + * + * Generated from protobuf field string path = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getPath() + { + return $this->path; + } + + /** + * Required. Full file path to read including filename, from repository root. + * + * Generated from protobuf field string path = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setPath($var) + { + GPBUtil::checkString($var, True); + $this->path = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReadRepositoryFileResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReadRepositoryFileResponse.php new file mode 100644 index 000000000000..29c7a6ac2085 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReadRepositoryFileResponse.php @@ -0,0 +1,67 @@ +google.cloud.dataform.v1beta1.ReadRepositoryFileResponse + */ +class ReadRepositoryFileResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The file's contents. + * + * Generated from protobuf field bytes contents = 1; + */ + protected $contents = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $contents + * The file's contents. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * The file's contents. + * + * Generated from protobuf field bytes contents = 1; + * @return string + */ + public function getContents() + { + return $this->contents; + } + + /** + * The file's contents. + * + * Generated from protobuf field bytes contents = 1; + * @param string $var + * @return $this + */ + public function setContents($var) + { + GPBUtil::checkString($var, False); + $this->contents = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RelationDescriptor.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RelationDescriptor.php new file mode 100644 index 000000000000..aad0db0d7d96 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RelationDescriptor.php @@ -0,0 +1,135 @@ +google.cloud.dataform.v1beta1.RelationDescriptor + */ +class RelationDescriptor extends \Google\Protobuf\Internal\Message +{ + /** + * A text description of the relation. + * + * Generated from protobuf field string description = 1; + */ + protected $description = ''; + /** + * A list of descriptions of columns within the relation. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor columns = 2; + */ + private $columns; + /** + * A set of BigQuery labels that should be applied to the relation. + * + * Generated from protobuf field map bigquery_labels = 3; + */ + private $bigquery_labels; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $description + * A text description of the relation. + * @type \Google\Cloud\Dataform\V1beta1\RelationDescriptor\ColumnDescriptor[] $columns + * A list of descriptions of columns within the relation. + * @type array|\Google\Protobuf\Internal\MapField $bigquery_labels + * A set of BigQuery labels that should be applied to the relation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * A text description of the relation. + * + * Generated from protobuf field string description = 1; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * A text description of the relation. + * + * Generated from protobuf field string description = 1; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * A list of descriptions of columns within the relation. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor columns = 2; + * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\RelationDescriptor\ColumnDescriptor> + */ + public function getColumns() + { + return $this->columns; + } + + /** + * A list of descriptions of columns within the relation. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor columns = 2; + * @param \Google\Cloud\Dataform\V1beta1\RelationDescriptor\ColumnDescriptor[] $var + * @return $this + */ + public function setColumns($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\RelationDescriptor\ColumnDescriptor::class); + $this->columns = $arr; + + return $this; + } + + /** + * A set of BigQuery labels that should be applied to the relation. + * + * Generated from protobuf field map bigquery_labels = 3; + * @return \Google\Protobuf\Internal\MapField + */ + public function getBigqueryLabels() + { + return $this->bigquery_labels; + } + + /** + * A set of BigQuery labels that should be applied to the relation. + * + * Generated from protobuf field map bigquery_labels = 3; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setBigqueryLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->bigquery_labels = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RelationDescriptor/ColumnDescriptor.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RelationDescriptor/ColumnDescriptor.php new file mode 100644 index 000000000000..1daa6b6cc441 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RelationDescriptor/ColumnDescriptor.php @@ -0,0 +1,139 @@ +google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor + */ +class ColumnDescriptor extends \Google\Protobuf\Internal\Message +{ + /** + * The identifier for the column. Each entry in `path` represents one level + * of nesting. + * + * Generated from protobuf field repeated string path = 1; + */ + private $path; + /** + * A textual description of the column. + * + * Generated from protobuf field string description = 2; + */ + protected $description = ''; + /** + * A list of BigQuery policy tags that will be applied to the column. + * + * Generated from protobuf field repeated string bigquery_policy_tags = 3; + */ + private $bigquery_policy_tags; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string[] $path + * The identifier for the column. Each entry in `path` represents one level + * of nesting. + * @type string $description + * A textual description of the column. + * @type string[] $bigquery_policy_tags + * A list of BigQuery policy tags that will be applied to the column. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * The identifier for the column. Each entry in `path` represents one level + * of nesting. + * + * Generated from protobuf field repeated string path = 1; + * @return RepeatedField + */ + public function getPath() + { + return $this->path; + } + + /** + * The identifier for the column. Each entry in `path` represents one level + * of nesting. + * + * Generated from protobuf field repeated string path = 1; + * @param string[] $var + * @return $this + */ + public function setPath($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->path = $arr; + + return $this; + } + + /** + * A textual description of the column. + * + * Generated from protobuf field string description = 2; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * A textual description of the column. + * + * Generated from protobuf field string description = 2; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * A list of BigQuery policy tags that will be applied to the column. + * + * Generated from protobuf field repeated string bigquery_policy_tags = 3; + * @return RepeatedField + */ + public function getBigqueryPolicyTags() + { + return $this->bigquery_policy_tags; + } + + /** + * A list of BigQuery policy tags that will be applied to the column. + * + * Generated from protobuf field repeated string bigquery_policy_tags = 3; + * @param string[] $var + * @return $this + */ + public function setBigqueryPolicyTags($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->bigquery_policy_tags = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReleaseConfig.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReleaseConfig.php new file mode 100644 index 000000000000..27363ff9c9d7 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReleaseConfig.php @@ -0,0 +1,435 @@ +google.cloud.dataform.v1beta1.ReleaseConfig + */ +class ReleaseConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The release config's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * 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` + * + * Generated from protobuf field string git_commitish = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $git_commitish = ''; + /** + * Optional. If set, fields of `code_compilation_config` override the default + * compilation settings that are specified in dataform.json. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CodeCompilationConfig code_compilation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $code_compilation_config = null; + /** + * Optional. Optional schedule (in cron format) for automatic creation of + * compilation results. + * + * Generated from protobuf field string cron_schedule = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $cron_schedule = ''; + /** + * 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. + * + * Generated from protobuf field string time_zone = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $time_zone = ''; + /** + * 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. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord recent_scheduled_release_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $recent_scheduled_release_records; + /** + * 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/*`. + * + * Generated from protobuf field string release_compilation_result = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $release_compilation_result = ''; + /** + * Optional. Disables automatic creation of compilation results. + * + * Generated from protobuf field bool disabled = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $disabled = false; + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $internal_metadata = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The release config's name. + * @type string $git_commitish + * 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` + * @type \Google\Cloud\Dataform\V1beta1\CodeCompilationConfig $code_compilation_config + * Optional. If set, fields of `code_compilation_config` override the default + * compilation settings that are specified in dataform.json. + * @type string $cron_schedule + * Optional. Optional schedule (in cron format) for automatic creation of + * compilation results. + * @type string $time_zone + * 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. + * @type \Google\Cloud\Dataform\V1beta1\ReleaseConfig\ScheduledReleaseRecord[] $recent_scheduled_release_records + * 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. + * @type string $release_compilation_result + * 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/*`. + * @type bool $disabled + * Optional. Disables automatic creation of compilation results. + * @type string $internal_metadata + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The release config's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The release config's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * 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` + * + * Generated from protobuf field string git_commitish = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getGitCommitish() + { + return $this->git_commitish; + } + + /** + * 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` + * + * Generated from protobuf field string git_commitish = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setGitCommitish($var) + { + GPBUtil::checkString($var, True); + $this->git_commitish = $var; + + return $this; + } + + /** + * Optional. If set, fields of `code_compilation_config` override the default + * compilation settings that are specified in dataform.json. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CodeCompilationConfig code_compilation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataform\V1beta1\CodeCompilationConfig|null + */ + public function getCodeCompilationConfig() + { + return $this->code_compilation_config; + } + + public function hasCodeCompilationConfig() + { + return isset($this->code_compilation_config); + } + + public function clearCodeCompilationConfig() + { + unset($this->code_compilation_config); + } + + /** + * Optional. If set, fields of `code_compilation_config` override the default + * compilation settings that are specified in dataform.json. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.CodeCompilationConfig code_compilation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataform\V1beta1\CodeCompilationConfig $var + * @return $this + */ + public function setCodeCompilationConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CodeCompilationConfig::class); + $this->code_compilation_config = $var; + + return $this; + } + + /** + * Optional. Optional schedule (in cron format) for automatic creation of + * compilation results. + * + * Generated from protobuf field string cron_schedule = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getCronSchedule() + { + return $this->cron_schedule; + } + + /** + * Optional. Optional schedule (in cron format) for automatic creation of + * compilation results. + * + * Generated from protobuf field string cron_schedule = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setCronSchedule($var) + { + GPBUtil::checkString($var, True); + $this->cron_schedule = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string time_zone = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getTimeZone() + { + return $this->time_zone; + } + + /** + * 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. + * + * Generated from protobuf field string time_zone = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setTimeZone($var) + { + GPBUtil::checkString($var, True); + $this->time_zone = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord recent_scheduled_release_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\ReleaseConfig\ScheduledReleaseRecord> + */ + public function getRecentScheduledReleaseRecords() + { + return $this->recent_scheduled_release_records; + } + + /** + * 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. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord recent_scheduled_release_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataform\V1beta1\ReleaseConfig\ScheduledReleaseRecord[] $var + * @return $this + */ + public function setRecentScheduledReleaseRecords($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\ReleaseConfig\ScheduledReleaseRecord::class); + $this->recent_scheduled_release_records = $arr; + + return $this; + } + + /** + * 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/*`. + * + * Generated from protobuf field string release_compilation_result = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getReleaseCompilationResult() + { + return $this->release_compilation_result; + } + + /** + * 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/*`. + * + * Generated from protobuf field string release_compilation_result = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setReleaseCompilationResult($var) + { + GPBUtil::checkString($var, True); + $this->release_compilation_result = $var; + + return $this; + } + + /** + * Optional. Disables automatic creation of compilation results. + * + * Generated from protobuf field bool disabled = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getDisabled() + { + return $this->disabled; + } + + /** + * Optional. Disables automatic creation of compilation results. + * + * Generated from protobuf field bool disabled = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setDisabled($var) + { + GPBUtil::checkBool($var); + $this->disabled = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getInternalMetadata() + { + return isset($this->internal_metadata) ? $this->internal_metadata : ''; + } + + public function hasInternalMetadata() + { + return isset($this->internal_metadata); + } + + public function clearInternalMetadata() + { + unset($this->internal_metadata); + } + + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setInternalMetadata($var) + { + GPBUtil::checkString($var, True); + $this->internal_metadata = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReleaseConfig/ScheduledReleaseRecord.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReleaseConfig/ScheduledReleaseRecord.php new file mode 100644 index 000000000000..d227af342ba8 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReleaseConfig/ScheduledReleaseRecord.php @@ -0,0 +1,162 @@ +google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord + */ +class ScheduledReleaseRecord extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The timestamp of this release attempt. + * + * Generated from protobuf field .google.protobuf.Timestamp release_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $release_time = null; + protected $result; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $compilation_result + * The name of the created compilation result, if one was successfully + * created. Must be in the format + * `projects/{@*}locations/{@*}repositories/{@*}compilationResults/*`. + * @type \Google\Rpc\Status $error_status + * The error status encountered upon this attempt to create the + * compilation result, if the attempt was unsuccessful. + * @type \Google\Protobuf\Timestamp $release_time + * Output only. The timestamp of this release attempt. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * The name of the created compilation result, if one was successfully + * created. Must be in the format + * `projects/{@*}locations/{@*}repositories/{@*}compilationResults/*`. + * + * Generated from protobuf field string compilation_result = 2 [(.google.api.resource_reference) = { + * @return string + */ + public function getCompilationResult() + { + return $this->readOneof(2); + } + + public function hasCompilationResult() + { + return $this->hasOneof(2); + } + + /** + * The name of the created compilation result, if one was successfully + * created. Must be in the format + * `projects/{@*}locations/{@*}repositories/{@*}compilationResults/*`. + * + * Generated from protobuf field string compilation_result = 2 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setCompilationResult($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * The error status encountered upon this attempt to create the + * compilation result, if the attempt was unsuccessful. + * + * Generated from protobuf field .google.rpc.Status error_status = 3; + * @return \Google\Rpc\Status|null + */ + public function getErrorStatus() + { + return $this->readOneof(3); + } + + public function hasErrorStatus() + { + return $this->hasOneof(3); + } + + /** + * The error status encountered upon this attempt to create the + * compilation result, if the attempt was unsuccessful. + * + * Generated from protobuf field .google.rpc.Status error_status = 3; + * @param \Google\Rpc\Status $var + * @return $this + */ + public function setErrorStatus($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\Status::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Output only. The timestamp of this release attempt. + * + * Generated from protobuf field .google.protobuf.Timestamp release_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getReleaseTime() + { + return $this->release_time; + } + + public function hasReleaseTime() + { + return isset($this->release_time); + } + + public function clearReleaseTime() + { + unset($this->release_time); + } + + /** + * Output only. The timestamp of this release attempt. + * + * Generated from protobuf field .google.protobuf.Timestamp release_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setReleaseTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->release_time = $var; + + return $this; + } + + /** + * @return string + */ + public function getResult() + { + return $this->whichOneof("result"); + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RemoveDirectoryRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RemoveDirectoryRequest.php new file mode 100644 index 000000000000..0c67b74a5b2f --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RemoveDirectoryRequest.php @@ -0,0 +1,105 @@ +google.cloud.dataform.v1beta1.RemoveDirectoryRequest + */ +class RemoveDirectoryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $workspace = ''; + /** + * Required. The directory's full path including directory name, relative to + * the workspace root. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $path = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $workspace + * Required. The workspace's name. + * @type string $path + * Required. The directory's full path including directory name, relative to + * the workspace root. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getWorkspace() + { + return $this->workspace; + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setWorkspace($var) + { + GPBUtil::checkString($var, True); + $this->workspace = $var; + + return $this; + } + + /** + * Required. The directory's full path including directory name, relative to + * the workspace root. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getPath() + { + return $this->path; + } + + /** + * Required. The directory's full path including directory name, relative to + * the workspace root. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setPath($var) + { + GPBUtil::checkString($var, True); + $this->path = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RemoveDirectoryResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RemoveDirectoryResponse.php new file mode 100644 index 000000000000..3d61e21a932c --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RemoveDirectoryResponse.php @@ -0,0 +1,33 @@ +google.cloud.dataform.v1beta1.RemoveDirectoryResponse + */ +class RemoveDirectoryResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RemoveFileRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RemoveFileRequest.php new file mode 100644 index 000000000000..d541ca32807f --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RemoveFileRequest.php @@ -0,0 +1,105 @@ +google.cloud.dataform.v1beta1.RemoveFileRequest + */ +class RemoveFileRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $workspace = ''; + /** + * Required. The file's full path including filename, relative to the + * workspace root. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $path = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $workspace + * Required. The workspace's name. + * @type string $path + * Required. The file's full path including filename, relative to the + * workspace root. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getWorkspace() + { + return $this->workspace; + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setWorkspace($var) + { + GPBUtil::checkString($var, True); + $this->workspace = $var; + + return $this; + } + + /** + * Required. The file's full path including filename, relative to the + * workspace root. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getPath() + { + return $this->path; + } + + /** + * Required. The file's full path including filename, relative to the + * workspace root. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setPath($var) + { + GPBUtil::checkString($var, True); + $this->path = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RemoveFileResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RemoveFileResponse.php new file mode 100644 index 000000000000..ada500e59942 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RemoveFileResponse.php @@ -0,0 +1,33 @@ +google.cloud.dataform.v1beta1.RemoveFileResponse + */ +class RemoveFileResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository.php new file mode 100644 index 000000000000..705bd4850627 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository.php @@ -0,0 +1,671 @@ +google.cloud.dataform.v1beta1.Repository + */ +class Repository extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * 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/*`. + * + * Generated from protobuf field optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $containing_folder = null; + /** + * 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. + * + * Generated from protobuf field optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $team_folder_name = null; + /** + * Output only. The timestamp of when the repository was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Optional. The repository's user-friendly name. + * + * Generated from protobuf field string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $display_name = ''; + /** + * Optional. If set, configures this repository to be linked to a Git remote. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $git_remote_settings = null; + /** + * 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. + * + * Generated from protobuf field string npmrc_environment_variables_secret_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $npmrc_environment_variables_secret_version = ''; + /** + * 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. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides workspace_compilation_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $workspace_compilation_overrides = null; + /** + * Optional. Repository user labels. + * + * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + /** + * Optional. Input only. If set to true, the authenticated user will be + * granted the roles/dataform.admin role on the created repository. To modify + * access to the created repository later apply setIamPolicy from + * https://cloud.google.com/dataform/reference/rest#rest-resource:-v1beta1.projects.locations.repositories + * + * Generated from protobuf field bool set_authenticated_user_admin = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + */ + protected $set_authenticated_user_admin = false; + /** + * Optional. The service account to run workflow invocations under. + * + * Generated from protobuf field string service_account = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $service_account = ''; + /** + * 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}` + * + * Generated from protobuf field string kms_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $kms_key_name = ''; + /** + * Output only. A data encryption state of a Git repository if this Repository + * is protected by a KMS key. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.DataEncryptionState data_encryption_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $data_encryption_state = null; + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $internal_metadata = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The repository's name. + * @type string $containing_folder + * 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/*`. + * @type string $team_folder_name + * 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. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The timestamp of when the repository was created. + * @type string $display_name + * Optional. The repository's user-friendly name. + * @type \Google\Cloud\Dataform\V1beta1\Repository\GitRemoteSettings $git_remote_settings + * Optional. If set, configures this repository to be linked to a Git remote. + * @type string $npmrc_environment_variables_secret_version + * 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. + * @type \Google\Cloud\Dataform\V1beta1\Repository\WorkspaceCompilationOverrides $workspace_compilation_overrides + * 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. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. Repository user labels. + * @type bool $set_authenticated_user_admin + * Optional. Input only. If set to true, the authenticated user will be + * granted the roles/dataform.admin role on the created repository. To modify + * access to the created repository later apply setIamPolicy from + * https://cloud.google.com/dataform/reference/rest#rest-resource:-v1beta1.projects.locations.repositories + * @type string $service_account + * Optional. The service account to run workflow invocations under. + * @type string $kms_key_name + * 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}` + * @type \Google\Cloud\Dataform\V1beta1\DataEncryptionState $data_encryption_state + * Output only. A data encryption state of a Git repository if this Repository + * is protected by a KMS key. + * @type string $internal_metadata + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The repository's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * 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/*`. + * + * Generated from protobuf field optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getContainingFolder() + { + return isset($this->containing_folder) ? $this->containing_folder : ''; + } + + public function hasContainingFolder() + { + return isset($this->containing_folder); + } + + public function clearContainingFolder() + { + unset($this->containing_folder); + } + + /** + * 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/*`. + * + * Generated from protobuf field optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setContainingFolder($var) + { + GPBUtil::checkString($var, True); + $this->containing_folder = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getTeamFolderName() + { + return isset($this->team_folder_name) ? $this->team_folder_name : ''; + } + + public function hasTeamFolderName() + { + return isset($this->team_folder_name); + } + + public function clearTeamFolderName() + { + unset($this->team_folder_name); + } + + /** + * 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. + * + * Generated from protobuf field optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setTeamFolderName($var) + { + GPBUtil::checkString($var, True); + $this->team_folder_name = $var; + + return $this; + } + + /** + * Output only. The timestamp of when the repository was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The timestamp of when the repository was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Optional. The repository's user-friendly name. + * + * Generated from protobuf field string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Optional. The repository's user-friendly name. + * + * Generated from protobuf field string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Optional. If set, configures this repository to be linked to a Git remote. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataform\V1beta1\Repository\GitRemoteSettings|null + */ + public function getGitRemoteSettings() + { + return $this->git_remote_settings; + } + + public function hasGitRemoteSettings() + { + return isset($this->git_remote_settings); + } + + public function clearGitRemoteSettings() + { + unset($this->git_remote_settings); + } + + /** + * Optional. If set, configures this repository to be linked to a Git remote. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataform\V1beta1\Repository\GitRemoteSettings $var + * @return $this + */ + public function setGitRemoteSettings($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Repository\GitRemoteSettings::class); + $this->git_remote_settings = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string npmrc_environment_variables_secret_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getNpmrcEnvironmentVariablesSecretVersion() + { + return $this->npmrc_environment_variables_secret_version; + } + + /** + * 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. + * + * Generated from protobuf field string npmrc_environment_variables_secret_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setNpmrcEnvironmentVariablesSecretVersion($var) + { + GPBUtil::checkString($var, True); + $this->npmrc_environment_variables_secret_version = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides workspace_compilation_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataform\V1beta1\Repository\WorkspaceCompilationOverrides|null + */ + public function getWorkspaceCompilationOverrides() + { + return $this->workspace_compilation_overrides; + } + + public function hasWorkspaceCompilationOverrides() + { + return isset($this->workspace_compilation_overrides); + } + + public function clearWorkspaceCompilationOverrides() + { + unset($this->workspace_compilation_overrides); + } + + /** + * 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. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides workspace_compilation_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataform\V1beta1\Repository\WorkspaceCompilationOverrides $var + * @return $this + */ + public function setWorkspaceCompilationOverrides($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Repository\WorkspaceCompilationOverrides::class); + $this->workspace_compilation_overrides = $var; + + return $this; + } + + /** + * Optional. Repository user labels. + * + * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. Repository user labels. + * + * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Optional. Input only. If set to true, the authenticated user will be + * granted the roles/dataform.admin role on the created repository. To modify + * access to the created repository later apply setIamPolicy from + * https://cloud.google.com/dataform/reference/rest#rest-resource:-v1beta1.projects.locations.repositories + * + * Generated from protobuf field bool set_authenticated_user_admin = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * @return bool + */ + public function getSetAuthenticatedUserAdmin() + { + return $this->set_authenticated_user_admin; + } + + /** + * Optional. Input only. If set to true, the authenticated user will be + * granted the roles/dataform.admin role on the created repository. To modify + * access to the created repository later apply setIamPolicy from + * https://cloud.google.com/dataform/reference/rest#rest-resource:-v1beta1.projects.locations.repositories + * + * Generated from protobuf field bool set_authenticated_user_admin = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setSetAuthenticatedUserAdmin($var) + { + GPBUtil::checkBool($var); + $this->set_authenticated_user_admin = $var; + + return $this; + } + + /** + * Optional. The service account to run workflow invocations under. + * + * Generated from protobuf field string service_account = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getServiceAccount() + { + return $this->service_account; + } + + /** + * Optional. The service account to run workflow invocations under. + * + * Generated from protobuf field string service_account = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setServiceAccount($var) + { + GPBUtil::checkString($var, True); + $this->service_account = $var; + + return $this; + } + + /** + * 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}` + * + * Generated from protobuf field string kms_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getKmsKeyName() + { + return $this->kms_key_name; + } + + /** + * 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}` + * + * Generated from protobuf field string kms_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setKmsKeyName($var) + { + GPBUtil::checkString($var, True); + $this->kms_key_name = $var; + + return $this; + } + + /** + * Output only. A data encryption state of a Git repository if this Repository + * is protected by a KMS key. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.DataEncryptionState data_encryption_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataform\V1beta1\DataEncryptionState|null + */ + public function getDataEncryptionState() + { + return $this->data_encryption_state; + } + + public function hasDataEncryptionState() + { + return isset($this->data_encryption_state); + } + + public function clearDataEncryptionState() + { + unset($this->data_encryption_state); + } + + /** + * Output only. A data encryption state of a Git repository if this Repository + * is protected by a KMS key. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.DataEncryptionState data_encryption_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataform\V1beta1\DataEncryptionState $var + * @return $this + */ + public function setDataEncryptionState($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\DataEncryptionState::class); + $this->data_encryption_state = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getInternalMetadata() + { + return isset($this->internal_metadata) ? $this->internal_metadata : ''; + } + + public function hasInternalMetadata() + { + return isset($this->internal_metadata); + } + + public function clearInternalMetadata() + { + unset($this->internal_metadata); + } + + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setInternalMetadata($var) + { + GPBUtil::checkString($var, True); + $this->internal_metadata = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository/GitRemoteSettings.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository/GitRemoteSettings.php new file mode 100644 index 000000000000..e47d5d4c388c --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository/GitRemoteSettings.php @@ -0,0 +1,236 @@ +google.cloud.dataform.v1beta1.Repository.GitRemoteSettings + */ +class GitRemoteSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The Git remote's URL. + * + * Generated from protobuf field string url = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $url = ''; + /** + * Required. The Git remote's default branch name. + * + * Generated from protobuf field string default_branch = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $default_branch = ''; + /** + * 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/*`. + * + * Generated from protobuf field string authentication_token_secret_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $authentication_token_secret_version = ''; + /** + * Optional. Authentication fields for remote uris using SSH protocol. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig ssh_authentication_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $ssh_authentication_config = null; + /** + * Output only. Deprecated: The field does not contain any token status + * information. Instead use + * https://cloud.google.com/dataform/reference/rest/v1beta1/projects.locations.repositories/computeAccessTokenStatus + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * @deprecated + */ + protected $token_status = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $url + * Required. The Git remote's URL. + * @type string $default_branch + * Required. The Git remote's default branch name. + * @type string $authentication_token_secret_version + * 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/*`. + * @type \Google\Cloud\Dataform\V1beta1\Repository\GitRemoteSettings\SshAuthenticationConfig $ssh_authentication_config + * Optional. Authentication fields for remote uris using SSH protocol. + * @type int $token_status + * Output only. Deprecated: The field does not contain any token status + * information. Instead use + * https://cloud.google.com/dataform/reference/rest/v1beta1/projects.locations.repositories/computeAccessTokenStatus + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The Git remote's URL. + * + * Generated from protobuf field string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getUrl() + { + return $this->url; + } + + /** + * Required. The Git remote's URL. + * + * Generated from protobuf field string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setUrl($var) + { + GPBUtil::checkString($var, True); + $this->url = $var; + + return $this; + } + + /** + * Required. The Git remote's default branch name. + * + * Generated from protobuf field string default_branch = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDefaultBranch() + { + return $this->default_branch; + } + + /** + * Required. The Git remote's default branch name. + * + * Generated from protobuf field string default_branch = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDefaultBranch($var) + { + GPBUtil::checkString($var, True); + $this->default_branch = $var; + + return $this; + } + + /** + * 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/*`. + * + * Generated from protobuf field string authentication_token_secret_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getAuthenticationTokenSecretVersion() + { + return $this->authentication_token_secret_version; + } + + /** + * 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/*`. + * + * Generated from protobuf field string authentication_token_secret_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setAuthenticationTokenSecretVersion($var) + { + GPBUtil::checkString($var, True); + $this->authentication_token_secret_version = $var; + + return $this; + } + + /** + * Optional. Authentication fields for remote uris using SSH protocol. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig ssh_authentication_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataform\V1beta1\Repository\GitRemoteSettings\SshAuthenticationConfig|null + */ + public function getSshAuthenticationConfig() + { + return $this->ssh_authentication_config; + } + + public function hasSshAuthenticationConfig() + { + return isset($this->ssh_authentication_config); + } + + public function clearSshAuthenticationConfig() + { + unset($this->ssh_authentication_config); + } + + /** + * Optional. Authentication fields for remote uris using SSH protocol. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig ssh_authentication_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataform\V1beta1\Repository\GitRemoteSettings\SshAuthenticationConfig $var + * @return $this + */ + public function setSshAuthenticationConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Repository\GitRemoteSettings\SshAuthenticationConfig::class); + $this->ssh_authentication_config = $var; + + return $this; + } + + /** + * Output only. Deprecated: The field does not contain any token status + * information. Instead use + * https://cloud.google.com/dataform/reference/rest/v1beta1/projects.locations.repositories/computeAccessTokenStatus + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + * @deprecated + */ + public function getTokenStatus() + { + if ($this->token_status !== 0) { + @trigger_error('token_status is deprecated.', E_USER_DEPRECATED); + } + return $this->token_status; + } + + /** + * Output only. Deprecated: The field does not contain any token status + * information. Instead use + * https://cloud.google.com/dataform/reference/rest/v1beta1/projects.locations.repositories/computeAccessTokenStatus + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + * @deprecated + */ + public function setTokenStatus($var) + { + @trigger_error('token_status is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1beta1\Repository\GitRemoteSettings\TokenStatus::class); + $this->token_status = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository/GitRemoteSettings/SshAuthenticationConfig.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository/GitRemoteSettings/SshAuthenticationConfig.php new file mode 100644 index 000000000000..a04eb8e70168 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository/GitRemoteSettings/SshAuthenticationConfig.php @@ -0,0 +1,113 @@ +google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig + */ +class SshAuthenticationConfig extends \Google\Protobuf\Internal\Message +{ + /** + * 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/*`. + * + * Generated from protobuf field string user_private_key_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $user_private_key_secret_version = ''; + /** + * Required. Content of a public SSH key to verify an identity of a remote + * Git host. + * + * Generated from protobuf field string host_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $host_public_key = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $user_private_key_secret_version + * 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/*`. + * @type string $host_public_key + * Required. Content of a public SSH key to verify an identity of a remote + * Git host. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * 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/*`. + * + * Generated from protobuf field string user_private_key_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getUserPrivateKeySecretVersion() + { + return $this->user_private_key_secret_version; + } + + /** + * 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/*`. + * + * Generated from protobuf field string user_private_key_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setUserPrivateKeySecretVersion($var) + { + GPBUtil::checkString($var, True); + $this->user_private_key_secret_version = $var; + + return $this; + } + + /** + * Required. Content of a public SSH key to verify an identity of a remote + * Git host. + * + * Generated from protobuf field string host_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getHostPublicKey() + { + return $this->host_public_key; + } + + /** + * Required. Content of a public SSH key to verify an identity of a remote + * Git host. + * + * Generated from protobuf field string host_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setHostPublicKey($var) + { + GPBUtil::checkString($var, True); + $this->host_public_key = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository/GitRemoteSettings/TokenStatus.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository/GitRemoteSettings/TokenStatus.php new file mode 100644 index 000000000000..9987a78b4f14 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository/GitRemoteSettings/TokenStatus.php @@ -0,0 +1,69 @@ +google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus + */ +class TokenStatus +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum TOKEN_STATUS_UNSPECIFIED = 0; + */ + const 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). + * + * Generated from protobuf enum NOT_FOUND = 1; + */ + const NOT_FOUND = 1; + /** + * The token could not be used to authenticate against the Git remote. + * + * Generated from protobuf enum INVALID = 2; + */ + const INVALID = 2; + /** + * The token was used successfully to authenticate against the Git remote. + * + * Generated from protobuf enum VALID = 3; + */ + const VALID = 3; + + private static $valueToName = [ + self::TOKEN_STATUS_UNSPECIFIED => 'TOKEN_STATUS_UNSPECIFIED', + self::NOT_FOUND => 'NOT_FOUND', + self::INVALID => 'INVALID', + self::VALID => 'VALID', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository/WorkspaceCompilationOverrides.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository/WorkspaceCompilationOverrides.php new file mode 100644 index 000000000000..385d8775b7ad --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository/WorkspaceCompilationOverrides.php @@ -0,0 +1,146 @@ +google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides + */ +class WorkspaceCompilationOverrides extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The default database (Google Cloud project ID). + * + * Generated from protobuf field string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $default_database = ''; + /** + * Optional. The suffix that should be appended to all schema (BigQuery + * dataset ID) names. + * + * Generated from protobuf field string schema_suffix = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $schema_suffix = ''; + /** + * Optional. The prefix that should be prepended to all table names. + * + * Generated from protobuf field string table_prefix = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $table_prefix = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $default_database + * Optional. The default database (Google Cloud project ID). + * @type string $schema_suffix + * Optional. The suffix that should be appended to all schema (BigQuery + * dataset ID) names. + * @type string $table_prefix + * Optional. The prefix that should be prepended to all table names. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The default database (Google Cloud project ID). + * + * Generated from protobuf field string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDefaultDatabase() + { + return $this->default_database; + } + + /** + * Optional. The default database (Google Cloud project ID). + * + * Generated from protobuf field string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDefaultDatabase($var) + { + GPBUtil::checkString($var, True); + $this->default_database = $var; + + return $this; + } + + /** + * Optional. The suffix that should be appended to all schema (BigQuery + * dataset ID) names. + * + * Generated from protobuf field string schema_suffix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getSchemaSuffix() + { + return $this->schema_suffix; + } + + /** + * Optional. The suffix that should be appended to all schema (BigQuery + * dataset ID) names. + * + * Generated from protobuf field string schema_suffix = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setSchemaSuffix($var) + { + GPBUtil::checkString($var, True); + $this->schema_suffix = $var; + + return $this; + } + + /** + * Optional. The prefix that should be prepended to all table names. + * + * Generated from protobuf field string table_prefix = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getTablePrefix() + { + return $this->table_prefix; + } + + /** + * Optional. The prefix that should be prepended to all table names. + * + * Generated from protobuf field string table_prefix = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setTablePrefix($var) + { + GPBUtil::checkString($var, True); + $this->table_prefix = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ResetWorkspaceChangesRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ResetWorkspaceChangesRequest.php new file mode 100644 index 000000000000..d3a46664e499 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ResetWorkspaceChangesRequest.php @@ -0,0 +1,139 @@ +google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest + */ +class ResetWorkspaceChangesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * 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. + * + * Generated from protobuf field repeated string paths = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $paths; + /** + * Optional. If set to true, untracked files will be deleted. + * + * Generated from protobuf field bool clean = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $clean = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The workspace's name. + * @type string[] $paths + * 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. + * @type bool $clean + * Optional. If set to true, untracked files will be deleted. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field repeated string paths = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getPaths() + { + return $this->paths; + } + + /** + * 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. + * + * Generated from protobuf field repeated string paths = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setPaths($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->paths = $arr; + + return $this; + } + + /** + * Optional. If set to true, untracked files will be deleted. + * + * Generated from protobuf field bool clean = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getClean() + { + return $this->clean; + } + + /** + * Optional. If set to true, untracked files will be deleted. + * + * Generated from protobuf field bool clean = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setClean($var) + { + GPBUtil::checkBool($var); + $this->clean = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ResetWorkspaceChangesResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ResetWorkspaceChangesResponse.php new file mode 100644 index 000000000000..a64db49cbf2d --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ResetWorkspaceChangesResponse.php @@ -0,0 +1,33 @@ +google.cloud.dataform.v1beta1.ResetWorkspaceChangesResponse + */ +class ResetWorkspaceChangesResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchFilesRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchFilesRequest.php new file mode 100644 index 000000000000..4543da4ad0b1 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchFilesRequest.php @@ -0,0 +1,201 @@ +google.cloud.dataform.v1beta1.SearchFilesRequest + */ +class SearchFilesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $workspace = ''; + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * 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. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $workspace + * Required. The workspace's name. + * @type int $page_size + * 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. + * @type string $page_token + * 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. + * @type string $filter + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getWorkspace() + { + return $this->workspace; + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setWorkspace($var) + { + GPBUtil::checkString($var, True); + $this->workspace = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * 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. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchFilesResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchFilesResponse.php new file mode 100644 index 000000000000..ebad5d33cb69 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchFilesResponse.php @@ -0,0 +1,105 @@ +google.cloud.dataform.v1beta1.SearchFilesResponse + */ +class SearchFilesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of matched results. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.SearchResult search_results = 1; + */ + private $search_results; + /** + * 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. + * + * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1beta1\SearchResult[] $search_results + * List of matched results. + * @type string $next_page_token + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * List of matched results. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.SearchResult search_results = 1; + * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\SearchResult> + */ + public function getSearchResults() + { + return $this->search_results; + } + + /** + * List of matched results. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.SearchResult search_results = 1; + * @param \Google\Cloud\Dataform\V1beta1\SearchResult[] $var + * @return $this + */ + public function setSearchResults($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\SearchResult::class); + $this->search_results = $arr; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * 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. + * + * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchResult.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchResult.php new file mode 100644 index 000000000000..ae46384e46d0 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchResult.php @@ -0,0 +1,108 @@ +google.cloud.dataform.v1beta1.SearchResult + */ +class SearchResult extends \Google\Protobuf\Internal\Message +{ + protected $entry; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1beta1\FileSearchResult $file + * Details when search result is a file. + * @type \Google\Cloud\Dataform\V1beta1\DirectorySearchResult $directory + * Details when search result is a directory. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Details when search result is a file. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.FileSearchResult file = 1; + * @return \Google\Cloud\Dataform\V1beta1\FileSearchResult|null + */ + public function getFile() + { + return $this->readOneof(1); + } + + public function hasFile() + { + return $this->hasOneof(1); + } + + /** + * Details when search result is a file. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.FileSearchResult file = 1; + * @param \Google\Cloud\Dataform\V1beta1\FileSearchResult $var + * @return $this + */ + public function setFile($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\FileSearchResult::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Details when search result is a directory. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.DirectorySearchResult directory = 2; + * @return \Google\Cloud\Dataform\V1beta1\DirectorySearchResult|null + */ + public function getDirectory() + { + return $this->readOneof(2); + } + + public function hasDirectory() + { + return $this->hasOneof(2); + } + + /** + * Details when search result is a directory. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.DirectorySearchResult directory = 2; + * @param \Google\Cloud\Dataform\V1beta1\DirectorySearchResult $var + * @return $this + */ + public function setDirectory($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\DirectorySearchResult::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getEntry() + { + return $this->whichOneof("entry"); + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchTeamFoldersRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchTeamFoldersRequest.php new file mode 100644 index 000000000000..f373d8a8941a --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchTeamFoldersRequest.php @@ -0,0 +1,259 @@ +google.cloud.dataform.v1beta1.SearchTeamFoldersRequest + */ +class SearchTeamFoldersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Location in which to query TeamFolders. + * Format: `projects/{@*}locations/*`. + * + * Generated from protobuf field string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $location = ''; + /** + * Optional. Maximum number of TeamFolders to return. The server may return + * fewer items than requested. If unspecified, the server will pick an + * appropriate default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * 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"` + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Optional filtering for the returned list. Filtering is currently + * only supported on the `display_name` field. + * Example: + * - `filter="display_name="MyFolder""` + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $location + * Required. Location in which to query TeamFolders. + * Format: `projects/{@*}locations/*`. + * @type int $page_size + * Optional. Maximum number of TeamFolders to return. The server may return + * fewer items than requested. If unspecified, the server will pick an + * appropriate default. + * @type string $page_token + * 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. + * @type string $order_by + * 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"` + * @type string $filter + * Optional. Optional filtering for the returned list. Filtering is currently + * only supported on the `display_name` field. + * Example: + * - `filter="display_name="MyFolder""` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. Location in which to query TeamFolders. + * Format: `projects/{@*}locations/*`. + * + * Generated from protobuf field string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getLocation() + { + return $this->location; + } + + /** + * Required. Location in which to query TeamFolders. + * Format: `projects/{@*}locations/*`. + * + * Generated from protobuf field string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkString($var, True); + $this->location = $var; + + return $this; + } + + /** + * Optional. Maximum number of TeamFolders to return. The server may return + * fewer items than requested. If unspecified, the server will pick an + * appropriate default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Maximum number of TeamFolders to return. The server may return + * fewer items than requested. If unspecified, the server will pick an + * appropriate default. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * 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. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * 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"` + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * 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"` + * + * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Optional filtering for the returned list. Filtering is currently + * only supported on the `display_name` field. + * Example: + * - `filter="display_name="MyFolder""` + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Optional filtering for the returned list. Filtering is currently + * only supported on the `display_name` field. + * Example: + * - `filter="display_name="MyFolder""` + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchTeamFoldersResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchTeamFoldersResponse.php new file mode 100644 index 000000000000..72770eb9b8a8 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchTeamFoldersResponse.php @@ -0,0 +1,105 @@ +google.cloud.dataform.v1beta1.SearchTeamFoldersResponse + */ +class SearchTeamFoldersResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of TeamFolders that match the search query. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + */ + private $results; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1beta1\SearchTeamFoldersResponse\TeamFolderSearchResult[] $results + * List of TeamFolders that match the search query. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * List of TeamFolders that match the search query. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\SearchTeamFoldersResponse\TeamFolderSearchResult> + */ + public function getResults() + { + return $this->results; + } + + /** + * List of TeamFolders that match the search query. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; + * @param \Google\Cloud\Dataform\V1beta1\SearchTeamFoldersResponse\TeamFolderSearchResult[] $var + * @return $this + */ + public function setResults($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\SearchTeamFoldersResponse\TeamFolderSearchResult::class); + $this->results = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchTeamFoldersResponse/TeamFolderSearchResult.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchTeamFoldersResponse/TeamFolderSearchResult.php new file mode 100644 index 000000000000..a02705799dd9 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchTeamFoldersResponse/TeamFolderSearchResult.php @@ -0,0 +1,75 @@ +google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult + */ +class TeamFolderSearchResult extends \Google\Protobuf\Internal\Message +{ + protected $entry; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1beta1\TeamFolder $team_folder + * A TeamFolder resource that is in the project / location. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * A TeamFolder resource that is in the project / location. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2; + * @return \Google\Cloud\Dataform\V1beta1\TeamFolder|null + */ + public function getTeamFolder() + { + return $this->readOneof(2); + } + + public function hasTeamFolder() + { + return $this->hasOneof(2); + } + + /** + * A TeamFolder resource that is in the project / location. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2; + * @param \Google\Cloud\Dataform\V1beta1\TeamFolder $var + * @return $this + */ + public function setTeamFolder($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\TeamFolder::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getEntry() + { + return $this->whichOneof("entry"); + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Target.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Target.php new file mode 100644 index 000000000000..b1afd829fb6f --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Target.php @@ -0,0 +1,136 @@ +google.cloud.dataform.v1beta1.Target + */ +class Target extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The action's database (Google Cloud project ID) . + * + * Generated from protobuf field string database = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $database = ''; + /** + * Optional. The action's schema (BigQuery dataset ID), within `database`. + * + * Generated from protobuf field string schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $schema = ''; + /** + * Optional. The action's name, within `database` and `schema`. + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $database + * Optional. The action's database (Google Cloud project ID) . + * @type string $schema + * Optional. The action's schema (BigQuery dataset ID), within `database`. + * @type string $name + * Optional. The action's name, within `database` and `schema`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The action's database (Google Cloud project ID) . + * + * Generated from protobuf field string database = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDatabase() + { + return $this->database; + } + + /** + * Optional. The action's database (Google Cloud project ID) . + * + * Generated from protobuf field string database = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDatabase($var) + { + GPBUtil::checkString($var, True); + $this->database = $var; + + return $this; + } + + /** + * Optional. The action's schema (BigQuery dataset ID), within `database`. + * + * Generated from protobuf field string schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getSchema() + { + return $this->schema; + } + + /** + * Optional. The action's schema (BigQuery dataset ID), within `database`. + * + * Generated from protobuf field string schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setSchema($var) + { + GPBUtil::checkString($var, True); + $this->schema = $var; + + return $this; + } + + /** + * Optional. The action's name, within `database` and `schema`. + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Optional. The action's name, within `database` and `schema`. + * + * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/TeamFolder.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/TeamFolder.php new file mode 100644 index 000000000000..c3bfa5b7588c --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/TeamFolder.php @@ -0,0 +1,287 @@ +google.cloud.dataform.v1beta1.TeamFolder + */ +class TeamFolder extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The TeamFolder's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Required. The TeamFolder's user-friendly name. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * Output only. The timestamp of when the TeamFolder was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The timestamp of when the TeamFolder was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $internal_metadata = null; + /** + * Output only. The IAM principal identifier of the creator of the TeamFolder. + * + * Generated from protobuf field optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $creator_iam_principal = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The TeamFolder's name. + * @type string $display_name + * Required. The TeamFolder's user-friendly name. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The timestamp of when the TeamFolder was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The timestamp of when the TeamFolder was last updated. + * @type string $internal_metadata + * 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. + * @type string $creator_iam_principal + * Output only. The IAM principal identifier of the creator of the TeamFolder. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The TeamFolder's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The TeamFolder's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The TeamFolder's user-friendly name. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. The TeamFolder's user-friendly name. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Output only. The timestamp of when the TeamFolder was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The timestamp of when the TeamFolder was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The timestamp of when the TeamFolder was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The timestamp of when the TeamFolder was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getInternalMetadata() + { + return isset($this->internal_metadata) ? $this->internal_metadata : ''; + } + + public function hasInternalMetadata() + { + return isset($this->internal_metadata); + } + + public function clearInternalMetadata() + { + unset($this->internal_metadata); + } + + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setInternalMetadata($var) + { + GPBUtil::checkString($var, True); + $this->internal_metadata = $var; + + return $this; + } + + /** + * Output only. The IAM principal identifier of the creator of the TeamFolder. + * + * Generated from protobuf field optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getCreatorIamPrincipal() + { + return isset($this->creator_iam_principal) ? $this->creator_iam_principal : ''; + } + + public function hasCreatorIamPrincipal() + { + return isset($this->creator_iam_principal); + } + + public function clearCreatorIamPrincipal() + { + unset($this->creator_iam_principal); + } + + /** + * Output only. The IAM principal identifier of the creator of the TeamFolder. + * + * Generated from protobuf field optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setCreatorIamPrincipal($var) + { + GPBUtil::checkString($var, True); + $this->creator_iam_principal = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateConfigRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateConfigRequest.php new file mode 100644 index 000000000000..581ffd423f45 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateConfigRequest.php @@ -0,0 +1,136 @@ +google.cloud.dataform.v1beta1.UpdateConfigRequest + */ +class UpdateConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The config to update. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $config = null; + /** + * Optional. Specifies the fields to be updated in the config. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_mask = null; + + /** + * @param \Google\Cloud\Dataform\V1beta1\Config $config Required. The config to update. + * @param \Google\Protobuf\FieldMask $updateMask Optional. Specifies the fields to be updated in the config. + * + * @return \Google\Cloud\Dataform\V1beta1\UpdateConfigRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Dataform\V1beta1\Config $config, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setConfig($config) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1beta1\Config $config + * Required. The config to update. + * @type \Google\Protobuf\FieldMask $update_mask + * Optional. Specifies the fields to be updated in the config. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The config to update. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataform\V1beta1\Config|null + */ + public function getConfig() + { + return $this->config; + } + + public function hasConfig() + { + return isset($this->config); + } + + public function clearConfig() + { + unset($this->config); + } + + /** + * Required. The config to update. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataform\V1beta1\Config $var + * @return $this + */ + public function setConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Config::class); + $this->config = $var; + + return $this; + } + + /** + * Optional. Specifies the fields to be updated in the config. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Optional. Specifies the fields to be updated in the config. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateFolderRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateFolderRequest.php new file mode 100644 index 000000000000..98b80d7ec0e7 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateFolderRequest.php @@ -0,0 +1,151 @@ +google.cloud.dataform.v1beta1.UpdateFolderRequest + */ +class UpdateFolderRequest extends \Google\Protobuf\Internal\Message +{ + /** + * 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). + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_mask = null; + /** + * Required. The updated Folder. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $folder = null; + + /** + * @param \Google\Cloud\Dataform\V1beta1\Folder $folder Required. The updated Folder. + * @param \Google\Protobuf\FieldMask $updateMask 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). + * + * @return \Google\Cloud\Dataform\V1beta1\UpdateFolderRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Dataform\V1beta1\Folder $folder, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setFolder($folder) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\FieldMask $update_mask + * 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). + * @type \Google\Cloud\Dataform\V1beta1\Folder $folder + * Required. The updated Folder. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * 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). + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * 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). + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + + /** + * Required. The updated Folder. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataform\V1beta1\Folder|null + */ + public function getFolder() + { + return $this->folder; + } + + public function hasFolder() + { + return isset($this->folder); + } + + public function clearFolder() + { + unset($this->folder); + } + + /** + * Required. The updated Folder. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataform\V1beta1\Folder $var + * @return $this + */ + public function setFolder($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Folder::class); + $this->folder = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateReleaseConfigRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateReleaseConfigRequest.php new file mode 100644 index 000000000000..80c496944bb4 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateReleaseConfigRequest.php @@ -0,0 +1,141 @@ +google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest + */ +class UpdateReleaseConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Specifies the fields to be updated in the release config. If left + * unset, all fields will be updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_mask = null; + /** + * Required. The release config to update. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $release_config = null; + + /** + * @param \Google\Cloud\Dataform\V1beta1\ReleaseConfig $releaseConfig Required. The release config to update. + * @param \Google\Protobuf\FieldMask $updateMask Optional. Specifies the fields to be updated in the release config. If left + * unset, all fields will be updated. + * + * @return \Google\Cloud\Dataform\V1beta1\UpdateReleaseConfigRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Dataform\V1beta1\ReleaseConfig $releaseConfig, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setReleaseConfig($releaseConfig) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\FieldMask $update_mask + * Optional. Specifies the fields to be updated in the release config. If left + * unset, all fields will be updated. + * @type \Google\Cloud\Dataform\V1beta1\ReleaseConfig $release_config + * Required. The release config to update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Specifies the fields to be updated in the release config. If left + * unset, all fields will be updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Optional. Specifies the fields to be updated in the release config. If left + * unset, all fields will be updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + + /** + * Required. The release config to update. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataform\V1beta1\ReleaseConfig|null + */ + public function getReleaseConfig() + { + return $this->release_config; + } + + public function hasReleaseConfig() + { + return isset($this->release_config); + } + + public function clearReleaseConfig() + { + unset($this->release_config); + } + + /** + * Required. The release config to update. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataform\V1beta1\ReleaseConfig $var + * @return $this + */ + public function setReleaseConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\ReleaseConfig::class); + $this->release_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateRepositoryRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateRepositoryRequest.php new file mode 100644 index 000000000000..e36c020f4424 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateRepositoryRequest.php @@ -0,0 +1,141 @@ +google.cloud.dataform.v1beta1.UpdateRepositoryRequest + */ +class UpdateRepositoryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Specifies the fields to be updated in the repository. If left + * unset, all fields will be updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_mask = null; + /** + * Required. The repository to update. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $repository = null; + + /** + * @param \Google\Cloud\Dataform\V1beta1\Repository $repository Required. The repository to update. + * @param \Google\Protobuf\FieldMask $updateMask Optional. Specifies the fields to be updated in the repository. If left + * unset, all fields will be updated. + * + * @return \Google\Cloud\Dataform\V1beta1\UpdateRepositoryRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Dataform\V1beta1\Repository $repository, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setRepository($repository) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\FieldMask $update_mask + * Optional. Specifies the fields to be updated in the repository. If left + * unset, all fields will be updated. + * @type \Google\Cloud\Dataform\V1beta1\Repository $repository + * Required. The repository to update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Specifies the fields to be updated in the repository. If left + * unset, all fields will be updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Optional. Specifies the fields to be updated in the repository. If left + * unset, all fields will be updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + + /** + * Required. The repository to update. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataform\V1beta1\Repository|null + */ + public function getRepository() + { + return $this->repository; + } + + public function hasRepository() + { + return isset($this->repository); + } + + public function clearRepository() + { + unset($this->repository); + } + + /** + * Required. The repository to update. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataform\V1beta1\Repository $var + * @return $this + */ + public function setRepository($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Repository::class); + $this->repository = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateTeamFolderRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateTeamFolderRequest.php new file mode 100644 index 000000000000..9148cc324676 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateTeamFolderRequest.php @@ -0,0 +1,141 @@ +google.cloud.dataform.v1beta1.UpdateTeamFolderRequest + */ +class UpdateTeamFolderRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Specifies the fields to be updated in the Folder. If left unset, + * all fields will be updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_mask = null; + /** + * Required. The updated TeamFolder. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $team_folder = null; + + /** + * @param \Google\Cloud\Dataform\V1beta1\TeamFolder $teamFolder Required. The updated TeamFolder. + * @param \Google\Protobuf\FieldMask $updateMask Optional. Specifies the fields to be updated in the Folder. If left unset, + * all fields will be updated. + * + * @return \Google\Cloud\Dataform\V1beta1\UpdateTeamFolderRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Dataform\V1beta1\TeamFolder $teamFolder, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setTeamFolder($teamFolder) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\FieldMask $update_mask + * Optional. Specifies the fields to be updated in the Folder. If left unset, + * all fields will be updated. + * @type \Google\Cloud\Dataform\V1beta1\TeamFolder $team_folder + * Required. The updated TeamFolder. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Specifies the fields to be updated in the Folder. If left unset, + * all fields will be updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Optional. Specifies the fields to be updated in the Folder. If left unset, + * all fields will be updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + + /** + * Required. The updated TeamFolder. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataform\V1beta1\TeamFolder|null + */ + public function getTeamFolder() + { + return $this->team_folder; + } + + public function hasTeamFolder() + { + return isset($this->team_folder); + } + + public function clearTeamFolder() + { + unset($this->team_folder); + } + + /** + * Required. The updated TeamFolder. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataform\V1beta1\TeamFolder $var + * @return $this + */ + public function setTeamFolder($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\TeamFolder::class); + $this->team_folder = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateWorkflowConfigRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateWorkflowConfigRequest.php new file mode 100644 index 000000000000..5d5df50a0df4 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateWorkflowConfigRequest.php @@ -0,0 +1,141 @@ +google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest + */ +class UpdateWorkflowConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Specifies the fields to be updated in the workflow config. If + * left unset, all fields will be updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_mask = null; + /** + * Required. The workflow config to update. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $workflow_config = null; + + /** + * @param \Google\Cloud\Dataform\V1beta1\WorkflowConfig $workflowConfig Required. The workflow config to update. + * @param \Google\Protobuf\FieldMask $updateMask Optional. Specifies the fields to be updated in the workflow config. If + * left unset, all fields will be updated. + * + * @return \Google\Cloud\Dataform\V1beta1\UpdateWorkflowConfigRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Dataform\V1beta1\WorkflowConfig $workflowConfig, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setWorkflowConfig($workflowConfig) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\FieldMask $update_mask + * Optional. Specifies the fields to be updated in the workflow config. If + * left unset, all fields will be updated. + * @type \Google\Cloud\Dataform\V1beta1\WorkflowConfig $workflow_config + * Required. The workflow config to update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Specifies the fields to be updated in the workflow config. If + * left unset, all fields will be updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Optional. Specifies the fields to be updated in the workflow config. If + * left unset, all fields will be updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + + /** + * Required. The workflow config to update. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataform\V1beta1\WorkflowConfig|null + */ + public function getWorkflowConfig() + { + return $this->workflow_config; + } + + public function hasWorkflowConfig() + { + return isset($this->workflow_config); + } + + public function clearWorkflowConfig() + { + unset($this->workflow_config); + } + + /** + * Required. The workflow config to update. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataform\V1beta1\WorkflowConfig $var + * @return $this + */ + public function setWorkflowConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\WorkflowConfig::class); + $this->workflow_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowConfig.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowConfig.php new file mode 100644 index 000000000000..66a83962836a --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowConfig.php @@ -0,0 +1,453 @@ +google.cloud.dataform.v1beta1.WorkflowConfig + */ +class WorkflowConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The workflow config's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Required. The name of the release config whose release_compilation_result + * should be executed. Must be in the format + * `projects/{@*}locations/{@*}repositories/{@*}releaseConfigs/*`. + * + * Generated from protobuf field string release_config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $release_config = ''; + /** + * Optional. If left unset, a default InvocationConfig will be used. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $invocation_config = null; + /** + * Optional. Optional schedule (in cron format) for automatic execution of + * this workflow config. + * + * Generated from protobuf field string cron_schedule = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $cron_schedule = ''; + /** + * 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. + * + * Generated from protobuf field string time_zone = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $time_zone = ''; + /** + * 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. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord recent_scheduled_execution_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $recent_scheduled_execution_records; + /** + * Optional. Disables automatic creation of workflow invocations. + * + * Generated from protobuf field bool disabled = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $disabled = false; + /** + * Output only. The timestamp of when the WorkflowConfig was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The timestamp of when the WorkflowConfig was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $internal_metadata = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The workflow config's name. + * @type string $release_config + * Required. The name of the release config whose release_compilation_result + * should be executed. Must be in the format + * `projects/{@*}locations/{@*}repositories/{@*}releaseConfigs/*`. + * @type \Google\Cloud\Dataform\V1beta1\InvocationConfig $invocation_config + * Optional. If left unset, a default InvocationConfig will be used. + * @type string $cron_schedule + * Optional. Optional schedule (in cron format) for automatic execution of + * this workflow config. + * @type string $time_zone + * 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. + * @type \Google\Cloud\Dataform\V1beta1\WorkflowConfig\ScheduledExecutionRecord[] $recent_scheduled_execution_records + * 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. + * @type bool $disabled + * Optional. Disables automatic creation of workflow invocations. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The timestamp of when the WorkflowConfig was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The timestamp of when the WorkflowConfig was last updated. + * @type string $internal_metadata + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The workflow config's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The workflow config's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The name of the release config whose release_compilation_result + * should be executed. Must be in the format + * `projects/{@*}locations/{@*}repositories/{@*}releaseConfigs/*`. + * + * Generated from protobuf field string release_config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getReleaseConfig() + { + return $this->release_config; + } + + /** + * Required. The name of the release config whose release_compilation_result + * should be executed. Must be in the format + * `projects/{@*}locations/{@*}repositories/{@*}releaseConfigs/*`. + * + * Generated from protobuf field string release_config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setReleaseConfig($var) + { + GPBUtil::checkString($var, True); + $this->release_config = $var; + + return $this; + } + + /** + * Optional. If left unset, a default InvocationConfig will be used. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataform\V1beta1\InvocationConfig|null + */ + public function getInvocationConfig() + { + return $this->invocation_config; + } + + public function hasInvocationConfig() + { + return isset($this->invocation_config); + } + + public function clearInvocationConfig() + { + unset($this->invocation_config); + } + + /** + * Optional. If left unset, a default InvocationConfig will be used. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataform\V1beta1\InvocationConfig $var + * @return $this + */ + public function setInvocationConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\InvocationConfig::class); + $this->invocation_config = $var; + + return $this; + } + + /** + * Optional. Optional schedule (in cron format) for automatic execution of + * this workflow config. + * + * Generated from protobuf field string cron_schedule = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getCronSchedule() + { + return $this->cron_schedule; + } + + /** + * Optional. Optional schedule (in cron format) for automatic execution of + * this workflow config. + * + * Generated from protobuf field string cron_schedule = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setCronSchedule($var) + { + GPBUtil::checkString($var, True); + $this->cron_schedule = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string time_zone = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getTimeZone() + { + return $this->time_zone; + } + + /** + * 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. + * + * Generated from protobuf field string time_zone = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setTimeZone($var) + { + GPBUtil::checkString($var, True); + $this->time_zone = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord recent_scheduled_execution_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\WorkflowConfig\ScheduledExecutionRecord> + */ + public function getRecentScheduledExecutionRecords() + { + return $this->recent_scheduled_execution_records; + } + + /** + * 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. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord recent_scheduled_execution_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataform\V1beta1\WorkflowConfig\ScheduledExecutionRecord[] $var + * @return $this + */ + public function setRecentScheduledExecutionRecords($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\WorkflowConfig\ScheduledExecutionRecord::class); + $this->recent_scheduled_execution_records = $arr; + + return $this; + } + + /** + * Optional. Disables automatic creation of workflow invocations. + * + * Generated from protobuf field bool disabled = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getDisabled() + { + return $this->disabled; + } + + /** + * Optional. Disables automatic creation of workflow invocations. + * + * Generated from protobuf field bool disabled = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setDisabled($var) + { + GPBUtil::checkBool($var); + $this->disabled = $var; + + return $this; + } + + /** + * Output only. The timestamp of when the WorkflowConfig was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The timestamp of when the WorkflowConfig was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The timestamp of when the WorkflowConfig was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The timestamp of when the WorkflowConfig was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getInternalMetadata() + { + return isset($this->internal_metadata) ? $this->internal_metadata : ''; + } + + public function hasInternalMetadata() + { + return isset($this->internal_metadata); + } + + public function clearInternalMetadata() + { + unset($this->internal_metadata); + } + + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setInternalMetadata($var) + { + GPBUtil::checkString($var, True); + $this->internal_metadata = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowConfig/ScheduledExecutionRecord.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowConfig/ScheduledExecutionRecord.php new file mode 100644 index 000000000000..2a23a6ba6e04 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowConfig/ScheduledExecutionRecord.php @@ -0,0 +1,162 @@ +google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord + */ +class ScheduledExecutionRecord extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The timestamp of this execution attempt. + * + * Generated from protobuf field .google.protobuf.Timestamp execution_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $execution_time = null; + protected $result; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $workflow_invocation + * The name of the created workflow invocation, if one was successfully + * created. Must be in the format + * `projects/{@*}locations/{@*}repositories/{@*}workflowInvocations/*`. + * @type \Google\Rpc\Status $error_status + * The error status encountered upon this attempt to create the + * workflow invocation, if the attempt was unsuccessful. + * @type \Google\Protobuf\Timestamp $execution_time + * Output only. The timestamp of this execution attempt. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * The name of the created workflow invocation, if one was successfully + * created. Must be in the format + * `projects/{@*}locations/{@*}repositories/{@*}workflowInvocations/*`. + * + * Generated from protobuf field string workflow_invocation = 2 [(.google.api.resource_reference) = { + * @return string + */ + public function getWorkflowInvocation() + { + return $this->readOneof(2); + } + + public function hasWorkflowInvocation() + { + return $this->hasOneof(2); + } + + /** + * The name of the created workflow invocation, if one was successfully + * created. Must be in the format + * `projects/{@*}locations/{@*}repositories/{@*}workflowInvocations/*`. + * + * Generated from protobuf field string workflow_invocation = 2 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setWorkflowInvocation($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * The error status encountered upon this attempt to create the + * workflow invocation, if the attempt was unsuccessful. + * + * Generated from protobuf field .google.rpc.Status error_status = 3; + * @return \Google\Rpc\Status|null + */ + public function getErrorStatus() + { + return $this->readOneof(3); + } + + public function hasErrorStatus() + { + return $this->hasOneof(3); + } + + /** + * The error status encountered upon this attempt to create the + * workflow invocation, if the attempt was unsuccessful. + * + * Generated from protobuf field .google.rpc.Status error_status = 3; + * @param \Google\Rpc\Status $var + * @return $this + */ + public function setErrorStatus($var) + { + GPBUtil::checkMessage($var, \Google\Rpc\Status::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Output only. The timestamp of this execution attempt. + * + * Generated from protobuf field .google.protobuf.Timestamp execution_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getExecutionTime() + { + return $this->execution_time; + } + + public function hasExecutionTime() + { + return isset($this->execution_time); + } + + public function clearExecutionTime() + { + unset($this->execution_time); + } + + /** + * Output only. The timestamp of this execution attempt. + * + * Generated from protobuf field .google.protobuf.Timestamp execution_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setExecutionTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->execution_time = $var; + + return $this; + } + + /** + * @return string + */ + public function getResult() + { + return $this->whichOneof("result"); + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocation.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocation.php new file mode 100644 index 000000000000..31109fda87d9 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocation.php @@ -0,0 +1,463 @@ +google.cloud.dataform.v1beta1.WorkflowInvocation + */ +class WorkflowInvocation extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The workflow invocation's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Immutable. If left unset, a default InvocationConfig will be used. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $invocation_config = null; + /** + * Output only. This workflow invocation's current state. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. This workflow invocation's timing details. + * + * Generated from protobuf field .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $invocation_timing = null; + /** + * Output only. The resolved compilation result that was used to create this + * invocation. Will be in the format + * `projects/{@*}locations/{@*}repositories/{@*}compilationResults/*`. + * + * Generated from protobuf field string resolved_compilation_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $resolved_compilation_result = ''; + /** + * Output only. Only set if the repository has a KMS Key. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.DataEncryptionState data_encryption_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $data_encryption_state = null; + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $internal_metadata = null; + /** + * 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. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $private_resource_metadata = null; + protected $compilation_source; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $compilation_result + * Immutable. The name of the compilation result to use for this invocation. + * Must be in the format + * `projects/{@*}locations/{@*}repositories/{@*}compilationResults/*`. + * @type string $workflow_config + * Immutable. The name of the workflow config to invoke. Must be in the + * format `projects/{@*}locations/{@*}repositories/{@*}workflowConfigs/*`. + * @type string $name + * Output only. The workflow invocation's name. + * @type \Google\Cloud\Dataform\V1beta1\InvocationConfig $invocation_config + * Immutable. If left unset, a default InvocationConfig will be used. + * @type int $state + * Output only. This workflow invocation's current state. + * @type \Google\Type\Interval $invocation_timing + * Output only. This workflow invocation's timing details. + * @type string $resolved_compilation_result + * Output only. The resolved compilation result that was used to create this + * invocation. Will be in the format + * `projects/{@*}locations/{@*}repositories/{@*}compilationResults/*`. + * @type \Google\Cloud\Dataform\V1beta1\DataEncryptionState $data_encryption_state + * Output only. Only set if the repository has a KMS Key. + * @type string $internal_metadata + * 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. + * @type \Google\Cloud\Dataform\V1beta1\PrivateResourceMetadata $private_resource_metadata + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Immutable. The name of the compilation result to use for this invocation. + * Must be in the format + * `projects/{@*}locations/{@*}repositories/{@*}compilationResults/*`. + * + * Generated from protobuf field string compilation_result = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + * @return string + */ + public function getCompilationResult() + { + return $this->readOneof(2); + } + + public function hasCompilationResult() + { + return $this->hasOneof(2); + } + + /** + * Immutable. The name of the compilation result to use for this invocation. + * Must be in the format + * `projects/{@*}locations/{@*}repositories/{@*}compilationResults/*`. + * + * Generated from protobuf field string compilation_result = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setCompilationResult($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Immutable. The name of the workflow config to invoke. Must be in the + * format `projects/{@*}locations/{@*}repositories/{@*}workflowConfigs/*`. + * + * Generated from protobuf field string workflow_config = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + * @return string + */ + public function getWorkflowConfig() + { + return $this->readOneof(6); + } + + public function hasWorkflowConfig() + { + return $this->hasOneof(6); + } + + /** + * Immutable. The name of the workflow config to invoke. Must be in the + * format `projects/{@*}locations/{@*}repositories/{@*}workflowConfigs/*`. + * + * Generated from protobuf field string workflow_config = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setWorkflowConfig($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * Output only. The workflow invocation's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The workflow invocation's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Immutable. If left unset, a default InvocationConfig will be used. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * @return \Google\Cloud\Dataform\V1beta1\InvocationConfig|null + */ + public function getInvocationConfig() + { + return $this->invocation_config; + } + + public function hasInvocationConfig() + { + return isset($this->invocation_config); + } + + public function clearInvocationConfig() + { + unset($this->invocation_config); + } + + /** + * Immutable. If left unset, a default InvocationConfig will be used. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * @param \Google\Cloud\Dataform\V1beta1\InvocationConfig $var + * @return $this + */ + public function setInvocationConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\InvocationConfig::class); + $this->invocation_config = $var; + + return $this; + } + + /** + * Output only. This workflow invocation's current state. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. This workflow invocation's current state. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1beta1\WorkflowInvocation\State::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. This workflow invocation's timing details. + * + * Generated from protobuf field .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Type\Interval|null + */ + public function getInvocationTiming() + { + return $this->invocation_timing; + } + + public function hasInvocationTiming() + { + return isset($this->invocation_timing); + } + + public function clearInvocationTiming() + { + unset($this->invocation_timing); + } + + /** + * Output only. This workflow invocation's timing details. + * + * Generated from protobuf field .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Type\Interval $var + * @return $this + */ + public function setInvocationTiming($var) + { + GPBUtil::checkMessage($var, \Google\Type\Interval::class); + $this->invocation_timing = $var; + + return $this; + } + + /** + * Output only. The resolved compilation result that was used to create this + * invocation. Will be in the format + * `projects/{@*}locations/{@*}repositories/{@*}compilationResults/*`. + * + * Generated from protobuf field string resolved_compilation_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getResolvedCompilationResult() + { + return $this->resolved_compilation_result; + } + + /** + * Output only. The resolved compilation result that was used to create this + * invocation. Will be in the format + * `projects/{@*}locations/{@*}repositories/{@*}compilationResults/*`. + * + * Generated from protobuf field string resolved_compilation_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setResolvedCompilationResult($var) + { + GPBUtil::checkString($var, True); + $this->resolved_compilation_result = $var; + + return $this; + } + + /** + * Output only. Only set if the repository has a KMS Key. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.DataEncryptionState data_encryption_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataform\V1beta1\DataEncryptionState|null + */ + public function getDataEncryptionState() + { + return $this->data_encryption_state; + } + + public function hasDataEncryptionState() + { + return isset($this->data_encryption_state); + } + + public function clearDataEncryptionState() + { + unset($this->data_encryption_state); + } + + /** + * Output only. Only set if the repository has a KMS Key. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.DataEncryptionState data_encryption_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataform\V1beta1\DataEncryptionState $var + * @return $this + */ + public function setDataEncryptionState($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\DataEncryptionState::class); + $this->data_encryption_state = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getInternalMetadata() + { + return isset($this->internal_metadata) ? $this->internal_metadata : ''; + } + + public function hasInternalMetadata() + { + return isset($this->internal_metadata); + } + + public function clearInternalMetadata() + { + unset($this->internal_metadata); + } + + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setInternalMetadata($var) + { + GPBUtil::checkString($var, True); + $this->internal_metadata = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataform\V1beta1\PrivateResourceMetadata|null + */ + public function getPrivateResourceMetadata() + { + return $this->private_resource_metadata; + } + + public function hasPrivateResourceMetadata() + { + return isset($this->private_resource_metadata); + } + + public function clearPrivateResourceMetadata() + { + unset($this->private_resource_metadata); + } + + /** + * 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. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataform\V1beta1\PrivateResourceMetadata $var + * @return $this + */ + public function setPrivateResourceMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\PrivateResourceMetadata::class); + $this->private_resource_metadata = $var; + + return $this; + } + + /** + * @return string + */ + public function getCompilationSource() + { + return $this->whichOneof("compilation_source"); + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocation/State.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocation/State.php new file mode 100644 index 000000000000..70f4740d0a84 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocation/State.php @@ -0,0 +1,83 @@ +google.cloud.dataform.v1beta1.WorkflowInvocation.State + */ +class State +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * The workflow invocation is currently running. + * + * Generated from protobuf enum RUNNING = 1; + */ + const RUNNING = 1; + /** + * The workflow invocation succeeded. A terminal state. + * + * Generated from protobuf enum SUCCEEDED = 2; + */ + const SUCCEEDED = 2; + /** + * The workflow invocation was cancelled. A terminal state. + * + * Generated from protobuf enum CANCELLED = 3; + */ + const CANCELLED = 3; + /** + * The workflow invocation failed. A terminal state. + * + * Generated from protobuf enum FAILED = 4; + */ + const FAILED = 4; + /** + * The workflow invocation is being cancelled, but some actions are still + * running. + * + * Generated from protobuf enum CANCELING = 5; + */ + const CANCELING = 5; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::RUNNING => 'RUNNING', + self::SUCCEEDED => 'SUCCEEDED', + self::CANCELLED => 'CANCELLED', + self::FAILED => 'FAILED', + self::CANCELING => 'CANCELING', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction.php new file mode 100644 index 000000000000..5ade5df2482f --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction.php @@ -0,0 +1,421 @@ +google.cloud.dataform.v1beta1.WorkflowInvocationAction + */ +class WorkflowInvocationAction extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. This action's identifier. Unique within the workflow + * invocation. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $target = null; + /** + * Output only. The action's identifier if the project had been compiled + * without any overrides configured. Unique within the compilation result. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $canonical_target = null; + /** + * Output only. This action's current state. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. If and only if action's state is FAILED a failure reason is + * set. + * + * Generated from protobuf field string failure_reason = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $failure_reason = ''; + /** + * 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. + * + * Generated from protobuf field .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $invocation_timing = null; + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $internal_metadata = null; + protected $action; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\BigQueryAction $bigquery_action + * Output only. The workflow action's bigquery action details. + * @type \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\NotebookAction $notebook_action + * Output only. The workflow action's notebook action details. + * @type \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction $data_preparation_action + * Output only. The workflow action's data preparation action details. + * @type \Google\Cloud\Dataform\V1beta1\Target $target + * Output only. This action's identifier. Unique within the workflow + * invocation. + * @type \Google\Cloud\Dataform\V1beta1\Target $canonical_target + * Output only. The action's identifier if the project had been compiled + * without any overrides configured. Unique within the compilation result. + * @type int $state + * Output only. This action's current state. + * @type string $failure_reason + * Output only. If and only if action's state is FAILED a failure reason is + * set. + * @type \Google\Type\Interval $invocation_timing + * 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. + * @type string $internal_metadata + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The workflow action's bigquery action details. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\BigQueryAction|null + */ + public function getBigqueryAction() + { + return $this->readOneof(6); + } + + public function hasBigqueryAction() + { + return $this->hasOneof(6); + } + + /** + * Output only. The workflow action's bigquery action details. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\BigQueryAction $var + * @return $this + */ + public function setBigqueryAction($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\BigQueryAction::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * Output only. The workflow action's notebook action details. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.NotebookAction notebook_action = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\NotebookAction|null + */ + public function getNotebookAction() + { + return $this->readOneof(8); + } + + public function hasNotebookAction() + { + return $this->hasOneof(8); + } + + /** + * Output only. The workflow action's notebook action details. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.NotebookAction notebook_action = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\NotebookAction $var + * @return $this + */ + public function setNotebookAction($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\NotebookAction::class); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * Output only. The workflow action's data preparation action details. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction data_preparation_action = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction|null + */ + public function getDataPreparationAction() + { + return $this->readOneof(9); + } + + public function hasDataPreparationAction() + { + return $this->hasOneof(9); + } + + /** + * Output only. The workflow action's data preparation action details. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction data_preparation_action = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction $var + * @return $this + */ + public function setDataPreparationAction($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction::class); + $this->writeOneof(9, $var); + + return $this; + } + + /** + * Output only. This action's identifier. Unique within the workflow + * invocation. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataform\V1beta1\Target|null + */ + public function getTarget() + { + return $this->target; + } + + public function hasTarget() + { + return isset($this->target); + } + + public function clearTarget() + { + unset($this->target); + } + + /** + * Output only. This action's identifier. Unique within the workflow + * invocation. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataform\V1beta1\Target $var + * @return $this + */ + public function setTarget($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Target::class); + $this->target = $var; + + return $this; + } + + /** + * Output only. The action's identifier if the project had been compiled + * without any overrides configured. Unique within the compilation result. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataform\V1beta1\Target|null + */ + public function getCanonicalTarget() + { + return $this->canonical_target; + } + + public function hasCanonicalTarget() + { + return isset($this->canonical_target); + } + + public function clearCanonicalTarget() + { + unset($this->canonical_target); + } + + /** + * Output only. The action's identifier if the project had been compiled + * without any overrides configured. Unique within the compilation result. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataform\V1beta1\Target $var + * @return $this + */ + public function setCanonicalTarget($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Target::class); + $this->canonical_target = $var; + + return $this; + } + + /** + * Output only. This action's current state. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. This action's current state. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\State::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. If and only if action's state is FAILED a failure reason is + * set. + * + * Generated from protobuf field string failure_reason = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getFailureReason() + { + return $this->failure_reason; + } + + /** + * Output only. If and only if action's state is FAILED a failure reason is + * set. + * + * Generated from protobuf field string failure_reason = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setFailureReason($var) + { + GPBUtil::checkString($var, True); + $this->failure_reason = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Type\Interval|null + */ + public function getInvocationTiming() + { + return $this->invocation_timing; + } + + public function hasInvocationTiming() + { + return isset($this->invocation_timing); + } + + public function clearInvocationTiming() + { + unset($this->invocation_timing); + } + + /** + * 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. + * + * Generated from protobuf field .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Type\Interval $var + * @return $this + */ + public function setInvocationTiming($var) + { + GPBUtil::checkMessage($var, \Google\Type\Interval::class); + $this->invocation_timing = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getInternalMetadata() + { + return isset($this->internal_metadata) ? $this->internal_metadata : ''; + } + + public function hasInternalMetadata() + { + return isset($this->internal_metadata); + } + + public function clearInternalMetadata() + { + unset($this->internal_metadata); + } + + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setInternalMetadata($var) + { + GPBUtil::checkString($var, True); + $this->internal_metadata = $var; + + return $this; + } + + /** + * @return string + */ + public function getAction() + { + return $this->whichOneof("action"); + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/BigQueryAction.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/BigQueryAction.php new file mode 100644 index 000000000000..40b707435e7b --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/BigQueryAction.php @@ -0,0 +1,105 @@ +google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction + */ +class BigQueryAction extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The generated BigQuery SQL script that will be executed. + * + * Generated from protobuf field string sql_script = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $sql_script = ''; + /** + * Output only. The ID of the BigQuery job that executed the SQL in + * sql_script. Only set once the job has started to run. + * + * Generated from protobuf field string job_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $job_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $sql_script + * Output only. The generated BigQuery SQL script that will be executed. + * @type string $job_id + * Output only. The ID of the BigQuery job that executed the SQL in + * sql_script. Only set once the job has started to run. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The generated BigQuery SQL script that will be executed. + * + * Generated from protobuf field string sql_script = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getSqlScript() + { + return $this->sql_script; + } + + /** + * Output only. The generated BigQuery SQL script that will be executed. + * + * Generated from protobuf field string sql_script = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setSqlScript($var) + { + GPBUtil::checkString($var, True); + $this->sql_script = $var; + + return $this; + } + + /** + * Output only. The ID of the BigQuery job that executed the SQL in + * sql_script. Only set once the job has started to run. + * + * Generated from protobuf field string job_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getJobId() + { + return $this->job_id; + } + + /** + * Output only. The ID of the BigQuery job that executed the SQL in + * sql_script. Only set once the job has started to run. + * + * Generated from protobuf field string job_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setJobId($var) + { + GPBUtil::checkString($var, True); + $this->job_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction.php new file mode 100644 index 000000000000..f7103465647f --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction.php @@ -0,0 +1,190 @@ +google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction + */ +class DataPreparationAction extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The generated BigQuery SQL script that will be executed. For + * reference only. + * + * Generated from protobuf field string generated_sql = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $generated_sql = ''; + /** + * Output only. The ID of the BigQuery job that executed the SQL in + * sql_script. Only set once the job has started to run. + * + * Generated from protobuf field string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $job_id = ''; + protected $definition; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $contents_yaml + * Output only. YAML representing the contents of the data preparation. + * Can be used to show the customer what the input was to their workflow. + * @type \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionSqlDefinition $contents_sql + * SQL definition for a Data Preparation. Contains a SQL query and + * additional context information. + * @type string $generated_sql + * Output only. The generated BigQuery SQL script that will be executed. For + * reference only. + * @type string $job_id + * Output only. The ID of the BigQuery job that executed the SQL in + * sql_script. Only set once the job has started to run. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Output only. YAML representing the contents of the data preparation. + * Can be used to show the customer what the input was to their workflow. + * + * Generated from protobuf field string contents_yaml = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getContentsYaml() + { + return $this->readOneof(2); + } + + public function hasContentsYaml() + { + return $this->hasOneof(2); + } + + /** + * Output only. YAML representing the contents of the data preparation. + * Can be used to show the customer what the input was to their workflow. + * + * Generated from protobuf field string contents_yaml = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setContentsYaml($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * SQL definition for a Data Preparation. Contains a SQL query and + * additional context information. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionSqlDefinition contents_sql = 6; + * @return \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionSqlDefinition|null + */ + public function getContentsSql() + { + return $this->readOneof(6); + } + + public function hasContentsSql() + { + return $this->hasOneof(6); + } + + /** + * SQL definition for a Data Preparation. Contains a SQL query and + * additional context information. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionSqlDefinition contents_sql = 6; + * @param \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionSqlDefinition $var + * @return $this + */ + public function setContentsSql($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionSqlDefinition::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * Output only. The generated BigQuery SQL script that will be executed. For + * reference only. + * + * Generated from protobuf field string generated_sql = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getGeneratedSql() + { + return $this->generated_sql; + } + + /** + * Output only. The generated BigQuery SQL script that will be executed. For + * reference only. + * + * Generated from protobuf field string generated_sql = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setGeneratedSql($var) + { + GPBUtil::checkString($var, True); + $this->generated_sql = $var; + + return $this; + } + + /** + * Output only. The ID of the BigQuery job that executed the SQL in + * sql_script. Only set once the job has started to run. + * + * Generated from protobuf field string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getJobId() + { + return $this->job_id; + } + + /** + * Output only. The ID of the BigQuery job that executed the SQL in + * sql_script. Only set once the job has started to run. + * + * Generated from protobuf field string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setJobId($var) + { + GPBUtil::checkString($var, True); + $this->job_id = $var; + + return $this; + } + + /** + * @return string + */ + public function getDefinition() + { + return $this->whichOneof("definition"); + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionErrorTable.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionErrorTable.php new file mode 100644 index 000000000000..e25188ceeb32 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionErrorTable.php @@ -0,0 +1,116 @@ +google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionErrorTable + */ +class ActionErrorTable extends \Google\Protobuf\Internal\Message +{ + /** + * Error Table target. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Target target = 1; + */ + protected $target = null; + /** + * Error table partition expiration in days. Only positive values are + * allowed. + * + * Generated from protobuf field int32 retention_days = 2; + */ + protected $retention_days = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1beta1\Target $target + * Error Table target. + * @type int $retention_days + * Error table partition expiration in days. Only positive values are + * allowed. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Error Table target. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Target target = 1; + * @return \Google\Cloud\Dataform\V1beta1\Target|null + */ + public function getTarget() + { + return $this->target; + } + + public function hasTarget() + { + return isset($this->target); + } + + public function clearTarget() + { + unset($this->target); + } + + /** + * Error Table target. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.Target target = 1; + * @param \Google\Cloud\Dataform\V1beta1\Target $var + * @return $this + */ + public function setTarget($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Target::class); + $this->target = $var; + + return $this; + } + + /** + * Error table partition expiration in days. Only positive values are + * allowed. + * + * Generated from protobuf field int32 retention_days = 2; + * @return int + */ + public function getRetentionDays() + { + return $this->retention_days; + } + + /** + * Error table partition expiration in days. Only positive values are + * allowed. + * + * Generated from protobuf field int32 retention_days = 2; + * @param int $var + * @return $this + */ + public function setRetentionDays($var) + { + GPBUtil::checkInt32($var); + $this->retention_days = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionIncrementalLoadMode.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionIncrementalLoadMode.php new file mode 100644 index 000000000000..7961ebfbbfe4 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionIncrementalLoadMode.php @@ -0,0 +1,67 @@ +google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadMode + */ +class ActionIncrementalLoadMode extends \Google\Protobuf\Internal\Message +{ + /** + * Column name for incremental load modes + * + * Generated from protobuf field string column = 1; + */ + protected $column = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $column + * Column name for incremental load modes + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Column name for incremental load modes + * + * Generated from protobuf field string column = 1; + * @return string + */ + public function getColumn() + { + return $this->column; + } + + /** + * Column name for incremental load modes + * + * Generated from protobuf field string column = 1; + * @param string $var + * @return $this + */ + public function setColumn($var) + { + GPBUtil::checkString($var, True); + $this->column = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionLoadConfig.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionLoadConfig.php new file mode 100644 index 000000000000..accddbde6981 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionLoadConfig.php @@ -0,0 +1,180 @@ +google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionLoadConfig + */ +class ActionLoadConfig extends \Google\Protobuf\Internal\Message +{ + protected $mode; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionSimpleLoadMode $replace + * Replace destination table + * @type \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionSimpleLoadMode $append + * Append into destination table + * @type \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionIncrementalLoadMode $maximum + * Insert records where the value exceeds the previous maximum value for + * a column in the destination table + * @type \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionIncrementalLoadMode $unique + * Insert records where the value of a column is not already present in + * the destination table + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Replace destination table + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadMode replace = 1; + * @return \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionSimpleLoadMode|null + */ + public function getReplace() + { + return $this->readOneof(1); + } + + public function hasReplace() + { + return $this->hasOneof(1); + } + + /** + * Replace destination table + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadMode replace = 1; + * @param \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionSimpleLoadMode $var + * @return $this + */ + public function setReplace($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionSimpleLoadMode::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Append into destination table + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadMode append = 2; + * @return \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionSimpleLoadMode|null + */ + public function getAppend() + { + return $this->readOneof(2); + } + + public function hasAppend() + { + return $this->hasOneof(2); + } + + /** + * Append into destination table + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadMode append = 2; + * @param \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionSimpleLoadMode $var + * @return $this + */ + public function setAppend($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionSimpleLoadMode::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Insert records where the value exceeds the previous maximum value for + * a column in the destination table + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadMode maximum = 3; + * @return \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionIncrementalLoadMode|null + */ + public function getMaximum() + { + return $this->readOneof(3); + } + + public function hasMaximum() + { + return $this->hasOneof(3); + } + + /** + * Insert records where the value exceeds the previous maximum value for + * a column in the destination table + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadMode maximum = 3; + * @param \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionIncrementalLoadMode $var + * @return $this + */ + public function setMaximum($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionIncrementalLoadMode::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Insert records where the value of a column is not already present in + * the destination table + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadMode unique = 4; + * @return \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionIncrementalLoadMode|null + */ + public function getUnique() + { + return $this->readOneof(4); + } + + public function hasUnique() + { + return $this->hasOneof(4); + } + + /** + * Insert records where the value of a column is not already present in + * the destination table + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadMode unique = 4; + * @param \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionIncrementalLoadMode $var + * @return $this + */ + public function setUnique($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionIncrementalLoadMode::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * @return string + */ + public function getMode() + { + return $this->whichOneof("mode"); + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionSimpleLoadMode.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionSimpleLoadMode.php new file mode 100644 index 000000000000..682dcd33857f --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionSimpleLoadMode.php @@ -0,0 +1,33 @@ +google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadMode + */ +class ActionSimpleLoadMode extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionSqlDefinition.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionSqlDefinition.php new file mode 100644 index 000000000000..16622975f93c --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionSqlDefinition.php @@ -0,0 +1,159 @@ +google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionSqlDefinition + */ +class ActionSqlDefinition extends \Google\Protobuf\Internal\Message +{ + /** + * The SQL query representing the data preparation steps. Formatted as a + * Pipe SQL query statement. + * + * Generated from protobuf field string query = 1; + */ + protected $query = ''; + /** + * Error table configuration, + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionErrorTable error_table = 2; + */ + protected $error_table = null; + /** + * Load configuration. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionLoadConfig load_config = 3; + */ + protected $load_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $query + * The SQL query representing the data preparation steps. Formatted as a + * Pipe SQL query statement. + * @type \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionErrorTable $error_table + * Error table configuration, + * @type \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionLoadConfig $load_config + * Load configuration. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * The SQL query representing the data preparation steps. Formatted as a + * Pipe SQL query statement. + * + * Generated from protobuf field string query = 1; + * @return string + */ + public function getQuery() + { + return $this->query; + } + + /** + * The SQL query representing the data preparation steps. Formatted as a + * Pipe SQL query statement. + * + * Generated from protobuf field string query = 1; + * @param string $var + * @return $this + */ + public function setQuery($var) + { + GPBUtil::checkString($var, True); + $this->query = $var; + + return $this; + } + + /** + * Error table configuration, + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionErrorTable error_table = 2; + * @return \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionErrorTable|null + */ + public function getErrorTable() + { + return $this->error_table; + } + + public function hasErrorTable() + { + return isset($this->error_table); + } + + public function clearErrorTable() + { + unset($this->error_table); + } + + /** + * Error table configuration, + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionErrorTable error_table = 2; + * @param \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionErrorTable $var + * @return $this + */ + public function setErrorTable($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionErrorTable::class); + $this->error_table = $var; + + return $this; + } + + /** + * Load configuration. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionLoadConfig load_config = 3; + * @return \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionLoadConfig|null + */ + public function getLoadConfig() + { + return $this->load_config; + } + + public function hasLoadConfig() + { + return isset($this->load_config); + } + + public function clearLoadConfig() + { + unset($this->load_config); + } + + /** + * Load configuration. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionLoadConfig load_config = 3; + * @param \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionLoadConfig $var + * @return $this + */ + public function setLoadConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionLoadConfig::class); + $this->load_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/NotebookAction.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/NotebookAction.php new file mode 100644 index 000000000000..329c9fce1fdb --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/NotebookAction.php @@ -0,0 +1,109 @@ +google.cloud.dataform.v1beta1.WorkflowInvocationAction.NotebookAction + */ +class NotebookAction extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The code contents of a Notebook to be run. + * + * Generated from protobuf field string contents = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $contents = ''; + /** + * 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. + * + * Generated from protobuf field string job_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $job_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $contents + * Output only. The code contents of a Notebook to be run. + * @type string $job_id + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The code contents of a Notebook to be run. + * + * Generated from protobuf field string contents = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getContents() + { + return $this->contents; + } + + /** + * Output only. The code contents of a Notebook to be run. + * + * Generated from protobuf field string contents = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setContents($var) + { + GPBUtil::checkString($var, True); + $this->contents = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string job_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getJobId() + { + return $this->job_id; + } + + /** + * 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. + * + * Generated from protobuf field string job_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setJobId($var) + { + GPBUtil::checkString($var, True); + $this->job_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/State.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/State.php new file mode 100644 index 000000000000..c968bfb05359 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/State.php @@ -0,0 +1,91 @@ +google.cloud.dataform.v1beta1.WorkflowInvocationAction.State + */ +class State +{ + /** + * The action has not yet been considered for invocation. + * + * Generated from protobuf enum PENDING = 0; + */ + const PENDING = 0; + /** + * The action is currently running. + * + * Generated from protobuf enum RUNNING = 1; + */ + const RUNNING = 1; + /** + * Execution of the action was skipped because upstream dependencies did not + * all complete successfully. A terminal state. + * + * Generated from protobuf enum SKIPPED = 2; + */ + const SKIPPED = 2; + /** + * Execution of the action was disabled as per the configuration of the + * corresponding compilation result action. A terminal state. + * + * Generated from protobuf enum DISABLED = 3; + */ + const DISABLED = 3; + /** + * The action succeeded. A terminal state. + * + * Generated from protobuf enum SUCCEEDED = 4; + */ + const SUCCEEDED = 4; + /** + * The action was cancelled. A terminal state. + * + * Generated from protobuf enum CANCELLED = 5; + */ + const CANCELLED = 5; + /** + * The action failed. A terminal state. + * + * Generated from protobuf enum FAILED = 6; + */ + const FAILED = 6; + + private static $valueToName = [ + self::PENDING => 'PENDING', + self::RUNNING => 'RUNNING', + self::SKIPPED => 'SKIPPED', + self::DISABLED => 'DISABLED', + self::SUCCEEDED => 'SUCCEEDED', + self::CANCELLED => 'CANCELLED', + self::FAILED => 'FAILED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Workspace.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Workspace.php new file mode 100644 index 000000000000..9335cb2610ff --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Workspace.php @@ -0,0 +1,307 @@ +google.cloud.dataform.v1beta1.Workspace + */ +class Workspace extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. The timestamp of when the workspace was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. A data encryption state of a Git repository if this Workspace + * is protected by a KMS key. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.DataEncryptionState data_encryption_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $data_encryption_state = null; + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $internal_metadata = null; + /** + * Optional. If set to true, workspaces will not be moved if its linked + * Repository is moved. Instead, it will be deleted. + * + * Generated from protobuf field optional bool disable_moves = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $disable_moves = null; + /** + * Output only. Metadata indicating whether this resource is user-scoped. For + * `Workspace` resources, the `user_scoped` field is always `true`. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $private_resource_metadata = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The workspace's name. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The timestamp of when the workspace was created. + * @type \Google\Cloud\Dataform\V1beta1\DataEncryptionState $data_encryption_state + * Output only. A data encryption state of a Git repository if this Workspace + * is protected by a KMS key. + * @type string $internal_metadata + * 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. + * @type bool $disable_moves + * Optional. If set to true, workspaces will not be moved if its linked + * Repository is moved. Instead, it will be deleted. + * @type \Google\Cloud\Dataform\V1beta1\PrivateResourceMetadata $private_resource_metadata + * Output only. Metadata indicating whether this resource is user-scoped. For + * `Workspace` resources, the `user_scoped` field is always `true`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The workspace's name. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. The timestamp of when the workspace was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The timestamp of when the workspace was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. A data encryption state of a Git repository if this Workspace + * is protected by a KMS key. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.DataEncryptionState data_encryption_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataform\V1beta1\DataEncryptionState|null + */ + public function getDataEncryptionState() + { + return $this->data_encryption_state; + } + + public function hasDataEncryptionState() + { + return isset($this->data_encryption_state); + } + + public function clearDataEncryptionState() + { + unset($this->data_encryption_state); + } + + /** + * Output only. A data encryption state of a Git repository if this Workspace + * is protected by a KMS key. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.DataEncryptionState data_encryption_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataform\V1beta1\DataEncryptionState $var + * @return $this + */ + public function setDataEncryptionState($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\DataEncryptionState::class); + $this->data_encryption_state = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getInternalMetadata() + { + return isset($this->internal_metadata) ? $this->internal_metadata : ''; + } + + public function hasInternalMetadata() + { + return isset($this->internal_metadata); + } + + public function clearInternalMetadata() + { + unset($this->internal_metadata); + } + + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setInternalMetadata($var) + { + GPBUtil::checkString($var, True); + $this->internal_metadata = $var; + + return $this; + } + + /** + * Optional. If set to true, workspaces will not be moved if its linked + * Repository is moved. Instead, it will be deleted. + * + * Generated from protobuf field optional bool disable_moves = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getDisableMoves() + { + return isset($this->disable_moves) ? $this->disable_moves : false; + } + + public function hasDisableMoves() + { + return isset($this->disable_moves); + } + + public function clearDisableMoves() + { + unset($this->disable_moves); + } + + /** + * Optional. If set to true, workspaces will not be moved if its linked + * Repository is moved. Instead, it will be deleted. + * + * Generated from protobuf field optional bool disable_moves = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setDisableMoves($var) + { + GPBUtil::checkBool($var); + $this->disable_moves = $var; + + return $this; + } + + /** + * Output only. Metadata indicating whether this resource is user-scoped. For + * `Workspace` resources, the `user_scoped` field is always `true`. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataform\V1beta1\PrivateResourceMetadata|null + */ + public function getPrivateResourceMetadata() + { + return $this->private_resource_metadata; + } + + public function hasPrivateResourceMetadata() + { + return isset($this->private_resource_metadata); + } + + public function clearPrivateResourceMetadata() + { + unset($this->private_resource_metadata); + } + + /** + * Output only. Metadata indicating whether this resource is user-scoped. For + * `Workspace` resources, the `user_scoped` field is always `true`. + * + * Generated from protobuf field .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataform\V1beta1\PrivateResourceMetadata $var + * @return $this + */ + public function setPrivateResourceMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\PrivateResourceMetadata::class); + $this->private_resource_metadata = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WriteFileRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WriteFileRequest.php new file mode 100644 index 000000000000..c5343e27ebb1 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WriteFileRequest.php @@ -0,0 +1,135 @@ +google.cloud.dataform.v1beta1.WriteFileRequest + */ +class WriteFileRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $workspace = ''; + /** + * Required. The file. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $path = ''; + /** + * Required. The file's contents. + * + * Generated from protobuf field bytes contents = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $contents = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $workspace + * Required. The workspace's name. + * @type string $path + * Required. The file. + * @type string $contents + * Required. The file's contents. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getWorkspace() + { + return $this->workspace; + } + + /** + * Required. The workspace's name. + * + * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setWorkspace($var) + { + GPBUtil::checkString($var, True); + $this->workspace = $var; + + return $this; + } + + /** + * Required. The file. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getPath() + { + return $this->path; + } + + /** + * Required. The file. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setPath($var) + { + GPBUtil::checkString($var, True); + $this->path = $var; + + return $this; + } + + /** + * Required. The file's contents. + * + * Generated from protobuf field bytes contents = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getContents() + { + return $this->contents; + } + + /** + * Required. The file's contents. + * + * Generated from protobuf field bytes contents = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setContents($var) + { + GPBUtil::checkString($var, False); + $this->contents = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WriteFileResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WriteFileResponse.php new file mode 100644 index 000000000000..578910dc2bf3 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WriteFileResponse.php @@ -0,0 +1,33 @@ +google.cloud.dataform.v1beta1.WriteFileResponse + */ +class WriteFileResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/cancel_operation.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/cancel_operation.php new file mode 100644 index 000000000000..98fec49e0ca6 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/cancel_operation.php @@ -0,0 +1,78 @@ +setName($name); + + // Call the API and handle any network failures. + try { + $dataformClient->cancelOperation($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $name = '[NAME]'; + + cancel_operation_sample($name); +} +// [END dataform_v1beta1_generated_Dataform_CancelOperation_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/cancel_workflow_invocation.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/cancel_workflow_invocation.php new file mode 100644 index 000000000000..08990324a751 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/cancel_workflow_invocation.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var CancelWorkflowInvocationResponse $response */ + $response = $dataformClient->cancelWorkflowInvocation($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::workflowInvocationName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKFLOW_INVOCATION]' + ); + + cancel_workflow_invocation_sample($formattedName); +} +// [END dataform_v1beta1_generated_Dataform_CancelWorkflowInvocation_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/commit_repository_changes.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/commit_repository_changes.php new file mode 100644 index 000000000000..446697a8fcc7 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/commit_repository_changes.php @@ -0,0 +1,91 @@ +setName($commitMetadataAuthorName) + ->setEmailAddress($commitMetadataAuthorEmailAddress); + $commitMetadata = (new CommitMetadata()) + ->setAuthor($commitMetadataAuthor); + $request = (new CommitRepositoryChangesRequest()) + ->setName($formattedName) + ->setCommitMetadata($commitMetadata); + + // Call the API and handle any network failures. + try { + /** @var CommitRepositoryChangesResponse $response */ + $response = $dataformClient->commitRepositoryChanges($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $commitMetadataAuthorName = '[NAME]'; + $commitMetadataAuthorEmailAddress = '[EMAIL_ADDRESS]'; + + commit_repository_changes_sample( + $formattedName, + $commitMetadataAuthorName, + $commitMetadataAuthorEmailAddress + ); +} +// [END dataform_v1beta1_generated_Dataform_CommitRepositoryChanges_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/commit_workspace_changes.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/commit_workspace_changes.php new file mode 100644 index 000000000000..d933d2de9629 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/commit_workspace_changes.php @@ -0,0 +1,88 @@ +setName($authorName) + ->setEmailAddress($authorEmailAddress); + $request = (new CommitWorkspaceChangesRequest()) + ->setName($formattedName) + ->setAuthor($author); + + // Call the API and handle any network failures. + try { + /** @var CommitWorkspaceChangesResponse $response */ + $response = $dataformClient->commitWorkspaceChanges($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::workspaceName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKSPACE]' + ); + $authorName = '[NAME]'; + $authorEmailAddress = '[EMAIL_ADDRESS]'; + + commit_workspace_changes_sample($formattedName, $authorName, $authorEmailAddress); +} +// [END dataform_v1beta1_generated_Dataform_CommitWorkspaceChanges_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/compute_repository_access_token_status.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/compute_repository_access_token_status.php new file mode 100644 index 000000000000..4aff6028e4d2 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/compute_repository_access_token_status.php @@ -0,0 +1,71 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var ComputeRepositoryAccessTokenStatusResponse $response */ + $response = $dataformClient->computeRepositoryAccessTokenStatus($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + + compute_repository_access_token_status_sample($formattedName); +} +// [END dataform_v1beta1_generated_Dataform_ComputeRepositoryAccessTokenStatus_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_compilation_result.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_compilation_result.php new file mode 100644 index 000000000000..b953c06637e4 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_compilation_result.php @@ -0,0 +1,74 @@ +setParent($formattedParent) + ->setCompilationResult($compilationResult); + + // Call the API and handle any network failures. + try { + /** @var CompilationResult $response */ + $response = $dataformClient->createCompilationResult($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + + create_compilation_result_sample($formattedParent); +} +// [END dataform_v1beta1_generated_Dataform_CreateCompilationResult_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_folder.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_folder.php new file mode 100644 index 000000000000..64d923f070f1 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_folder.php @@ -0,0 +1,77 @@ +setDisplayName($folderDisplayName); + $request = (new CreateFolderRequest()) + ->setParent($formattedParent) + ->setFolder($folder); + + // Call the API and handle any network failures. + try { + /** @var Folder $response */ + $response = $dataformClient->createFolder($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataformClient::locationName('[PROJECT]', '[LOCATION]'); + $folderDisplayName = '[DISPLAY_NAME]'; + + create_folder_sample($formattedParent, $folderDisplayName); +} +// [END dataform_v1beta1_generated_Dataform_CreateFolder_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_release_config.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_release_config.php new file mode 100644 index 000000000000..90eac7c5b78a --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_release_config.php @@ -0,0 +1,88 @@ +setGitCommitish($releaseConfigGitCommitish); + $request = (new CreateReleaseConfigRequest()) + ->setParent($formattedParent) + ->setReleaseConfig($releaseConfig) + ->setReleaseConfigId($releaseConfigId); + + // Call the API and handle any network failures. + try { + /** @var ReleaseConfig $response */ + $response = $dataformClient->createReleaseConfig($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $releaseConfigGitCommitish = '[GIT_COMMITISH]'; + $releaseConfigId = '[RELEASE_CONFIG_ID]'; + + create_release_config_sample($formattedParent, $releaseConfigGitCommitish, $releaseConfigId); +} +// [END dataform_v1beta1_generated_Dataform_CreateReleaseConfig_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_repository.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_repository.php new file mode 100644 index 000000000000..833233cb572a --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_repository.php @@ -0,0 +1,78 @@ +setParent($formattedParent) + ->setRepository($repository) + ->setRepositoryId($repositoryId); + + // Call the API and handle any network failures. + try { + /** @var Repository $response */ + $response = $dataformClient->createRepository($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataformClient::locationName('[PROJECT]', '[LOCATION]'); + $repositoryId = '[REPOSITORY_ID]'; + + create_repository_sample($formattedParent, $repositoryId); +} +// [END dataform_v1beta1_generated_Dataform_CreateRepository_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_team_folder.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_team_folder.php new file mode 100644 index 000000000000..4a68a4db285f --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_team_folder.php @@ -0,0 +1,77 @@ +setDisplayName($teamFolderDisplayName); + $request = (new CreateTeamFolderRequest()) + ->setParent($formattedParent) + ->setTeamFolder($teamFolder); + + // Call the API and handle any network failures. + try { + /** @var TeamFolder $response */ + $response = $dataformClient->createTeamFolder($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataformClient::locationName('[PROJECT]', '[LOCATION]'); + $teamFolderDisplayName = '[DISPLAY_NAME]'; + + create_team_folder_sample($formattedParent, $teamFolderDisplayName); +} +// [END dataform_v1beta1_generated_Dataform_CreateTeamFolder_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_workflow_config.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_workflow_config.php new file mode 100644 index 000000000000..d5c538d974a0 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_workflow_config.php @@ -0,0 +1,96 @@ +setReleaseConfig($formattedWorkflowConfigReleaseConfig); + $request = (new CreateWorkflowConfigRequest()) + ->setParent($formattedParent) + ->setWorkflowConfig($workflowConfig) + ->setWorkflowConfigId($workflowConfigId); + + // Call the API and handle any network failures. + try { + /** @var WorkflowConfig $response */ + $response = $dataformClient->createWorkflowConfig($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $formattedWorkflowConfigReleaseConfig = DataformClient::releaseConfigName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[RELEASE_CONFIG]' + ); + $workflowConfigId = '[WORKFLOW_CONFIG_ID]'; + + create_workflow_config_sample( + $formattedParent, + $formattedWorkflowConfigReleaseConfig, + $workflowConfigId + ); +} +// [END dataform_v1beta1_generated_Dataform_CreateWorkflowConfig_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_workflow_invocation.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_workflow_invocation.php new file mode 100644 index 000000000000..936e66137d51 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_workflow_invocation.php @@ -0,0 +1,74 @@ +setParent($formattedParent) + ->setWorkflowInvocation($workflowInvocation); + + // Call the API and handle any network failures. + try { + /** @var WorkflowInvocation $response */ + $response = $dataformClient->createWorkflowInvocation($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + + create_workflow_invocation_sample($formattedParent); +} +// [END dataform_v1beta1_generated_Dataform_CreateWorkflowInvocation_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_workspace.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_workspace.php new file mode 100644 index 000000000000..df7cbacf0409 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_workspace.php @@ -0,0 +1,78 @@ +setParent($formattedParent) + ->setWorkspace($workspace) + ->setWorkspaceId($workspaceId); + + // Call the API and handle any network failures. + try { + /** @var Workspace $response */ + $response = $dataformClient->createWorkspace($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $workspaceId = '[WORKSPACE_ID]'; + + create_workspace_sample($formattedParent, $workspaceId); +} +// [END dataform_v1beta1_generated_Dataform_CreateWorkspace_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_folder.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_folder.php new file mode 100644 index 000000000000..53b8dd46130c --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_folder.php @@ -0,0 +1,69 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $dataformClient->deleteFolder($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); + + delete_folder_sample($formattedName); +} +// [END dataform_v1beta1_generated_Dataform_DeleteFolder_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_operation.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_operation.php new file mode 100644 index 000000000000..d2248dd0ed60 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_operation.php @@ -0,0 +1,71 @@ +setName($name); + + // Call the API and handle any network failures. + try { + $dataformClient->deleteOperation($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $name = '[NAME]'; + + delete_operation_sample($name); +} +// [END dataform_v1beta1_generated_Dataform_DeleteOperation_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_release_config.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_release_config.php new file mode 100644 index 000000000000..55a1048c7661 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_release_config.php @@ -0,0 +1,74 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $dataformClient->deleteReleaseConfig($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::releaseConfigName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[RELEASE_CONFIG]' + ); + + delete_release_config_sample($formattedName); +} +// [END dataform_v1beta1_generated_Dataform_DeleteReleaseConfig_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_repository.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_repository.php new file mode 100644 index 000000000000..ee6695132cba --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_repository.php @@ -0,0 +1,69 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $dataformClient->deleteRepository($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + + delete_repository_sample($formattedName); +} +// [END dataform_v1beta1_generated_Dataform_DeleteRepository_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_team_folder.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_team_folder.php new file mode 100644 index 000000000000..ed93d3ad7601 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_team_folder.php @@ -0,0 +1,69 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $dataformClient->deleteTeamFolder($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::teamFolderName('[PROJECT]', '[LOCATION]', '[TEAM_FOLDER]'); + + delete_team_folder_sample($formattedName); +} +// [END dataform_v1beta1_generated_Dataform_DeleteTeamFolder_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_workflow_config.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_workflow_config.php new file mode 100644 index 000000000000..6d6a5c2511b9 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_workflow_config.php @@ -0,0 +1,74 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $dataformClient->deleteWorkflowConfig($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::workflowConfigName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKFLOW_CONFIG]' + ); + + delete_workflow_config_sample($formattedName); +} +// [END dataform_v1beta1_generated_Dataform_DeleteWorkflowConfig_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_workflow_invocation.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_workflow_invocation.php new file mode 100644 index 000000000000..90bd6d33ba5a --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_workflow_invocation.php @@ -0,0 +1,74 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $dataformClient->deleteWorkflowInvocation($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::workflowInvocationName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKFLOW_INVOCATION]' + ); + + delete_workflow_invocation_sample($formattedName); +} +// [END dataform_v1beta1_generated_Dataform_DeleteWorkflowInvocation_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_workspace.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_workspace.php new file mode 100644 index 000000000000..010d1c2cef0c --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_workspace.php @@ -0,0 +1,74 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $dataformClient->deleteWorkspace($request); + printf('Call completed successfully.' . PHP_EOL); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::workspaceName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKSPACE]' + ); + + delete_workspace_sample($formattedName); +} +// [END dataform_v1beta1_generated_Dataform_DeleteWorkspace_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/fetch_file_diff.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/fetch_file_diff.php new file mode 100644 index 000000000000..8479050d3235 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/fetch_file_diff.php @@ -0,0 +1,80 @@ +setWorkspace($formattedWorkspace) + ->setPath($path); + + // Call the API and handle any network failures. + try { + /** @var FetchFileDiffResponse $response */ + $response = $dataformClient->fetchFileDiff($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedWorkspace = DataformClient::workspaceName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKSPACE]' + ); + $path = '[PATH]'; + + fetch_file_diff_sample($formattedWorkspace, $path); +} +// [END dataform_v1beta1_generated_Dataform_FetchFileDiff_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/fetch_file_git_statuses.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/fetch_file_git_statuses.php new file mode 100644 index 000000000000..ea42daec5ae7 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/fetch_file_git_statuses.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var FetchFileGitStatusesResponse $response */ + $response = $dataformClient->fetchFileGitStatuses($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::workspaceName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKSPACE]' + ); + + fetch_file_git_statuses_sample($formattedName); +} +// [END dataform_v1beta1_generated_Dataform_FetchFileGitStatuses_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/fetch_git_ahead_behind.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/fetch_git_ahead_behind.php new file mode 100644 index 000000000000..794c03d33801 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/fetch_git_ahead_behind.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var FetchGitAheadBehindResponse $response */ + $response = $dataformClient->fetchGitAheadBehind($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::workspaceName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKSPACE]' + ); + + fetch_git_ahead_behind_sample($formattedName); +} +// [END dataform_v1beta1_generated_Dataform_FetchGitAheadBehind_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/fetch_remote_branches.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/fetch_remote_branches.php new file mode 100644 index 000000000000..52dba3df6360 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/fetch_remote_branches.php @@ -0,0 +1,71 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var FetchRemoteBranchesResponse $response */ + $response = $dataformClient->fetchRemoteBranches($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + + fetch_remote_branches_sample($formattedName); +} +// [END dataform_v1beta1_generated_Dataform_FetchRemoteBranches_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/fetch_repository_history.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/fetch_repository_history.php new file mode 100644 index 000000000000..6e697922ac09 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/fetch_repository_history.php @@ -0,0 +1,77 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataformClient->fetchRepositoryHistory($request); + + /** @var CommitLogEntry $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + + fetch_repository_history_sample($formattedName); +} +// [END dataform_v1beta1_generated_Dataform_FetchRepositoryHistory_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_compilation_result.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_compilation_result.php new file mode 100644 index 000000000000..9b7bc24f85e3 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_compilation_result.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var CompilationResult $response */ + $response = $dataformClient->getCompilationResult($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::compilationResultName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[COMPILATION_RESULT]' + ); + + get_compilation_result_sample($formattedName); +} +// [END dataform_v1beta1_generated_Dataform_GetCompilationResult_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_config.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_config.php new file mode 100644 index 000000000000..f7d6ca46fa43 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_config.php @@ -0,0 +1,71 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Config $response */ + $response = $dataformClient->getConfig($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::configName('[PROJECT]', '[LOCATION]'); + + get_config_sample($formattedName); +} +// [END dataform_v1beta1_generated_Dataform_GetConfig_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_folder.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_folder.php new file mode 100644 index 000000000000..d37806b0bb33 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_folder.php @@ -0,0 +1,71 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Folder $response */ + $response = $dataformClient->getFolder($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); + + get_folder_sample($formattedName); +} +// [END dataform_v1beta1_generated_Dataform_GetFolder_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_iam_policy.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_iam_policy.php new file mode 100644 index 000000000000..4f918dd5482a --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_iam_policy.php @@ -0,0 +1,73 @@ +setResource($resource); + + // Call the API and handle any network failures. + try { + /** @var Policy $response */ + $response = $dataformClient->getIamPolicy($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $resource = '[RESOURCE]'; + + get_iam_policy_sample($resource); +} +// [END dataform_v1beta1_generated_Dataform_GetIamPolicy_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_location.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_location.php new file mode 100644 index 000000000000..093ac953ff4e --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_location.php @@ -0,0 +1,57 @@ +getLocation($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END dataform_v1beta1_generated_Dataform_GetLocation_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_operation.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_operation.php new file mode 100644 index 000000000000..afb61c1f8468 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_operation.php @@ -0,0 +1,72 @@ +setName($name); + + // Call the API and handle any network failures. + try { + /** @var Operation $response */ + $response = $dataformClient->getOperation($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $name = '[NAME]'; + + get_operation_sample($name); +} +// [END dataform_v1beta1_generated_Dataform_GetOperation_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_release_config.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_release_config.php new file mode 100644 index 000000000000..37b50cd03666 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_release_config.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var ReleaseConfig $response */ + $response = $dataformClient->getReleaseConfig($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::releaseConfigName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[RELEASE_CONFIG]' + ); + + get_release_config_sample($formattedName); +} +// [END dataform_v1beta1_generated_Dataform_GetReleaseConfig_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_repository.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_repository.php new file mode 100644 index 000000000000..4f7b7a9182c4 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_repository.php @@ -0,0 +1,71 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Repository $response */ + $response = $dataformClient->getRepository($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + + get_repository_sample($formattedName); +} +// [END dataform_v1beta1_generated_Dataform_GetRepository_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_team_folder.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_team_folder.php new file mode 100644 index 000000000000..635570078521 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_team_folder.php @@ -0,0 +1,71 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var TeamFolder $response */ + $response = $dataformClient->getTeamFolder($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::teamFolderName('[PROJECT]', '[LOCATION]', '[TEAM_FOLDER]'); + + get_team_folder_sample($formattedName); +} +// [END dataform_v1beta1_generated_Dataform_GetTeamFolder_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_workflow_config.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_workflow_config.php new file mode 100644 index 000000000000..af7aecee9ffc --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_workflow_config.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var WorkflowConfig $response */ + $response = $dataformClient->getWorkflowConfig($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::workflowConfigName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKFLOW_CONFIG]' + ); + + get_workflow_config_sample($formattedName); +} +// [END dataform_v1beta1_generated_Dataform_GetWorkflowConfig_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_workflow_invocation.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_workflow_invocation.php new file mode 100644 index 000000000000..123b4905a4b7 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_workflow_invocation.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var WorkflowInvocation $response */ + $response = $dataformClient->getWorkflowInvocation($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::workflowInvocationName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKFLOW_INVOCATION]' + ); + + get_workflow_invocation_sample($formattedName); +} +// [END dataform_v1beta1_generated_Dataform_GetWorkflowInvocation_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_workspace.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_workspace.php new file mode 100644 index 000000000000..71c27834a9f1 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_workspace.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Workspace $response */ + $response = $dataformClient->getWorkspace($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::workspaceName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKSPACE]' + ); + + get_workspace_sample($formattedName); +} +// [END dataform_v1beta1_generated_Dataform_GetWorkspace_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/install_npm_packages.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/install_npm_packages.php new file mode 100644 index 000000000000..d79cbfe97e83 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/install_npm_packages.php @@ -0,0 +1,76 @@ +setWorkspace($formattedWorkspace); + + // Call the API and handle any network failures. + try { + /** @var InstallNpmPackagesResponse $response */ + $response = $dataformClient->installNpmPackages($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedWorkspace = DataformClient::workspaceName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKSPACE]' + ); + + install_npm_packages_sample($formattedWorkspace); +} +// [END dataform_v1beta1_generated_Dataform_InstallNpmPackages_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_compilation_results.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_compilation_results.php new file mode 100644 index 000000000000..231df1c9eebe --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_compilation_results.php @@ -0,0 +1,77 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataformClient->listCompilationResults($request); + + /** @var CompilationResult $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + + list_compilation_results_sample($formattedParent); +} +// [END dataform_v1beta1_generated_Dataform_ListCompilationResults_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_locations.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_locations.php new file mode 100644 index 000000000000..4ad162f21625 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_locations.php @@ -0,0 +1,69 @@ +listLocations($request); + + /** @var Location $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END dataform_v1beta1_generated_Dataform_ListLocations_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_operations.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_operations.php new file mode 100644 index 000000000000..8baf3219f54d --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_operations.php @@ -0,0 +1,79 @@ +setName($name) + ->setFilter($filter); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataformClient->listOperations($request); + + /** @var Operation $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $name = '[NAME]'; + $filter = '[FILTER]'; + + list_operations_sample($name, $filter); +} +// [END dataform_v1beta1_generated_Dataform_ListOperations_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_release_configs.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_release_configs.php new file mode 100644 index 000000000000..21ead5506d6b --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_release_configs.php @@ -0,0 +1,77 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataformClient->listReleaseConfigs($request); + + /** @var ReleaseConfig $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + + list_release_configs_sample($formattedParent); +} +// [END dataform_v1beta1_generated_Dataform_ListReleaseConfigs_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_repositories.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_repositories.php new file mode 100644 index 000000000000..9239cb97b415 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_repositories.php @@ -0,0 +1,80 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataformClient->listRepositories($request); + + /** @var Repository $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataformClient::locationName('[PROJECT]', '[LOCATION]'); + + list_repositories_sample($formattedParent); +} +// [END dataform_v1beta1_generated_Dataform_ListRepositories_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_workflow_configs.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_workflow_configs.php new file mode 100644 index 000000000000..db312bb7a36f --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_workflow_configs.php @@ -0,0 +1,77 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataformClient->listWorkflowConfigs($request); + + /** @var WorkflowConfig $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + + list_workflow_configs_sample($formattedParent); +} +// [END dataform_v1beta1_generated_Dataform_ListWorkflowConfigs_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_workflow_invocations.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_workflow_invocations.php new file mode 100644 index 000000000000..fb9e4a655f05 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_workflow_invocations.php @@ -0,0 +1,77 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataformClient->listWorkflowInvocations($request); + + /** @var WorkflowInvocation $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + + list_workflow_invocations_sample($formattedParent); +} +// [END dataform_v1beta1_generated_Dataform_ListWorkflowInvocations_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_workspaces.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_workspaces.php new file mode 100644 index 000000000000..5662a00d97ae --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_workspaces.php @@ -0,0 +1,77 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataformClient->listWorkspaces($request); + + /** @var Workspace $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + + list_workspaces_sample($formattedParent); +} +// [END dataform_v1beta1_generated_Dataform_ListWorkspaces_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/make_directory.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/make_directory.php new file mode 100644 index 000000000000..7e9a50b6c8c5 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/make_directory.php @@ -0,0 +1,80 @@ +setWorkspace($formattedWorkspace) + ->setPath($path); + + // Call the API and handle any network failures. + try { + /** @var MakeDirectoryResponse $response */ + $response = $dataformClient->makeDirectory($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedWorkspace = DataformClient::workspaceName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKSPACE]' + ); + $path = '[PATH]'; + + make_directory_sample($formattedWorkspace, $path); +} +// [END dataform_v1beta1_generated_Dataform_MakeDirectory_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/move_directory.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/move_directory.php new file mode 100644 index 000000000000..79a1ade6a834 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/move_directory.php @@ -0,0 +1,85 @@ +setWorkspace($formattedWorkspace) + ->setPath($path) + ->setNewPath($newPath); + + // Call the API and handle any network failures. + try { + /** @var MoveDirectoryResponse $response */ + $response = $dataformClient->moveDirectory($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedWorkspace = DataformClient::workspaceName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKSPACE]' + ); + $path = '[PATH]'; + $newPath = '[NEW_PATH]'; + + move_directory_sample($formattedWorkspace, $path, $newPath); +} +// [END dataform_v1beta1_generated_Dataform_MoveDirectory_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/move_file.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/move_file.php new file mode 100644 index 000000000000..07c723320187 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/move_file.php @@ -0,0 +1,84 @@ +setWorkspace($formattedWorkspace) + ->setPath($path) + ->setNewPath($newPath); + + // Call the API and handle any network failures. + try { + /** @var MoveFileResponse $response */ + $response = $dataformClient->moveFile($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedWorkspace = DataformClient::workspaceName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKSPACE]' + ); + $path = '[PATH]'; + $newPath = '[NEW_PATH]'; + + move_file_sample($formattedWorkspace, $path, $newPath); +} +// [END dataform_v1beta1_generated_Dataform_MoveFile_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/move_folder.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/move_folder.php new file mode 100644 index 000000000000..1fae47c71c14 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/move_folder.php @@ -0,0 +1,80 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataformClient->moveFolder($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + printf('Operation completed successfully.' . PHP_EOL); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); + + move_folder_sample($formattedName); +} +// [END dataform_v1beta1_generated_Dataform_MoveFolder_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/move_repository.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/move_repository.php new file mode 100644 index 000000000000..1a69a3187863 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/move_repository.php @@ -0,0 +1,80 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataformClient->moveRepository($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + printf('Operation completed successfully.' . PHP_EOL); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + + move_repository_sample($formattedName); +} +// [END dataform_v1beta1_generated_Dataform_MoveRepository_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/pull_git_commits.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/pull_git_commits.php new file mode 100644 index 000000000000..b0fd6afdf40b --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/pull_git_commits.php @@ -0,0 +1,88 @@ +setName($authorName) + ->setEmailAddress($authorEmailAddress); + $request = (new PullGitCommitsRequest()) + ->setName($formattedName) + ->setAuthor($author); + + // Call the API and handle any network failures. + try { + /** @var PullGitCommitsResponse $response */ + $response = $dataformClient->pullGitCommits($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::workspaceName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKSPACE]' + ); + $authorName = '[NAME]'; + $authorEmailAddress = '[EMAIL_ADDRESS]'; + + pull_git_commits_sample($formattedName, $authorName, $authorEmailAddress); +} +// [END dataform_v1beta1_generated_Dataform_PullGitCommits_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/push_git_commits.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/push_git_commits.php new file mode 100644 index 000000000000..c1293e95d007 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/push_git_commits.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var PushGitCommitsResponse $response */ + $response = $dataformClient->pushGitCommits($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::workspaceName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKSPACE]' + ); + + push_git_commits_sample($formattedName); +} +// [END dataform_v1beta1_generated_Dataform_PushGitCommits_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_compilation_result_actions.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_compilation_result_actions.php new file mode 100644 index 000000000000..33b97f2025e9 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_compilation_result_actions.php @@ -0,0 +1,81 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataformClient->queryCompilationResultActions($request); + + /** @var CompilationResultAction $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::compilationResultName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[COMPILATION_RESULT]' + ); + + query_compilation_result_actions_sample($formattedName); +} +// [END dataform_v1beta1_generated_Dataform_QueryCompilationResultActions_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_directory_contents.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_directory_contents.php new file mode 100644 index 000000000000..ff2e528f5425 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_directory_contents.php @@ -0,0 +1,81 @@ +setWorkspace($formattedWorkspace); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataformClient->queryDirectoryContents($request); + + /** @var DirectoryEntry $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedWorkspace = DataformClient::workspaceName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKSPACE]' + ); + + query_directory_contents_sample($formattedWorkspace); +} +// [END dataform_v1beta1_generated_Dataform_QueryDirectoryContents_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_folder_contents.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_folder_contents.php new file mode 100644 index 000000000000..b49380b8690a --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_folder_contents.php @@ -0,0 +1,77 @@ +setFolder($formattedFolder); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataformClient->queryFolderContents($request); + + /** @var FolderContentsEntry $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedFolder = DataformClient::folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); + + query_folder_contents_sample($formattedFolder); +} +// [END dataform_v1beta1_generated_Dataform_QueryFolderContents_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_repository_directory_contents.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_repository_directory_contents.php new file mode 100644 index 000000000000..cec32728b497 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_repository_directory_contents.php @@ -0,0 +1,77 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataformClient->queryRepositoryDirectoryContents($request); + + /** @var DirectoryEntry $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + + query_repository_directory_contents_sample($formattedName); +} +// [END dataform_v1beta1_generated_Dataform_QueryRepositoryDirectoryContents_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_team_folder_contents.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_team_folder_contents.php new file mode 100644 index 000000000000..c04ac178e855 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_team_folder_contents.php @@ -0,0 +1,77 @@ +setTeamFolder($formattedTeamFolder); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataformClient->queryTeamFolderContents($request); + + /** @var TeamFolderContentsEntry $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedTeamFolder = DataformClient::teamFolderName('[PROJECT]', '[LOCATION]', '[TEAM_FOLDER]'); + + query_team_folder_contents_sample($formattedTeamFolder); +} +// [END dataform_v1beta1_generated_Dataform_QueryTeamFolderContents_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_user_root_contents.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_user_root_contents.php new file mode 100644 index 000000000000..08a05318a66d --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_user_root_contents.php @@ -0,0 +1,79 @@ +setLocation($formattedLocation); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataformClient->queryUserRootContents($request); + + /** @var RootContentsEntry $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedLocation = DataformClient::locationName('[PROJECT]', '[LOCATION]'); + + query_user_root_contents_sample($formattedLocation); +} +// [END dataform_v1beta1_generated_Dataform_QueryUserRootContents_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_workflow_invocation_actions.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_workflow_invocation_actions.php new file mode 100644 index 000000000000..d8d3d4877344 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_workflow_invocation_actions.php @@ -0,0 +1,81 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataformClient->queryWorkflowInvocationActions($request); + + /** @var WorkflowInvocationAction $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::workflowInvocationName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKFLOW_INVOCATION]' + ); + + query_workflow_invocation_actions_sample($formattedName); +} +// [END dataform_v1beta1_generated_Dataform_QueryWorkflowInvocationActions_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/read_file.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/read_file.php new file mode 100644 index 000000000000..58039467e11b --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/read_file.php @@ -0,0 +1,80 @@ +setWorkspace($formattedWorkspace) + ->setPath($path); + + // Call the API and handle any network failures. + try { + /** @var ReadFileResponse $response */ + $response = $dataformClient->readFile($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedWorkspace = DataformClient::workspaceName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKSPACE]' + ); + $path = '[PATH]'; + + read_file_sample($formattedWorkspace, $path); +} +// [END dataform_v1beta1_generated_Dataform_ReadFile_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/read_repository_file.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/read_repository_file.php new file mode 100644 index 000000000000..0efbfdc9481f --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/read_repository_file.php @@ -0,0 +1,75 @@ +setName($formattedName) + ->setPath($path); + + // Call the API and handle any network failures. + try { + /** @var ReadRepositoryFileResponse $response */ + $response = $dataformClient->readRepositoryFile($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $path = '[PATH]'; + + read_repository_file_sample($formattedName, $path); +} +// [END dataform_v1beta1_generated_Dataform_ReadRepositoryFile_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/remove_directory.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/remove_directory.php new file mode 100644 index 000000000000..375f89aa81f7 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/remove_directory.php @@ -0,0 +1,80 @@ +setWorkspace($formattedWorkspace) + ->setPath($path); + + // Call the API and handle any network failures. + try { + /** @var RemoveDirectoryResponse $response */ + $response = $dataformClient->removeDirectory($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedWorkspace = DataformClient::workspaceName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKSPACE]' + ); + $path = '[PATH]'; + + remove_directory_sample($formattedWorkspace, $path); +} +// [END dataform_v1beta1_generated_Dataform_RemoveDirectory_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/remove_file.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/remove_file.php new file mode 100644 index 000000000000..85e75fb58f77 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/remove_file.php @@ -0,0 +1,80 @@ +setWorkspace($formattedWorkspace) + ->setPath($path); + + // Call the API and handle any network failures. + try { + /** @var RemoveFileResponse $response */ + $response = $dataformClient->removeFile($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedWorkspace = DataformClient::workspaceName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKSPACE]' + ); + $path = '[PATH]'; + + remove_file_sample($formattedWorkspace, $path); +} +// [END dataform_v1beta1_generated_Dataform_RemoveFile_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/reset_workspace_changes.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/reset_workspace_changes.php new file mode 100644 index 000000000000..8a9cb06cd235 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/reset_workspace_changes.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var ResetWorkspaceChangesResponse $response */ + $response = $dataformClient->resetWorkspaceChanges($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DataformClient::workspaceName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKSPACE]' + ); + + reset_workspace_changes_sample($formattedName); +} +// [END dataform_v1beta1_generated_Dataform_ResetWorkspaceChanges_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/search_files.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/search_files.php new file mode 100644 index 000000000000..94703c643e4d --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/search_files.php @@ -0,0 +1,81 @@ +setWorkspace($formattedWorkspace); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataformClient->searchFiles($request); + + /** @var SearchResult $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedWorkspace = DataformClient::workspaceName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKSPACE]' + ); + + search_files_sample($formattedWorkspace); +} +// [END dataform_v1beta1_generated_Dataform_SearchFiles_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/search_team_folders.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/search_team_folders.php new file mode 100644 index 000000000000..4398db0248a9 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/search_team_folders.php @@ -0,0 +1,78 @@ +setLocation($formattedLocation); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataformClient->searchTeamFolders($request); + + /** @var TeamFolderSearchResult $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedLocation = DataformClient::locationName('[PROJECT]', '[LOCATION]'); + + search_team_folders_sample($formattedLocation); +} +// [END dataform_v1beta1_generated_Dataform_SearchTeamFolders_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/set_iam_policy.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/set_iam_policy.php new file mode 100644 index 000000000000..26485c2fe1b5 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/set_iam_policy.php @@ -0,0 +1,76 @@ +setResource($resource) + ->setPolicy($policy); + + // Call the API and handle any network failures. + try { + /** @var Policy $response */ + $response = $dataformClient->setIamPolicy($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $resource = '[RESOURCE]'; + + set_iam_policy_sample($resource); +} +// [END dataform_v1beta1_generated_Dataform_SetIamPolicy_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/test_iam_permissions.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/test_iam_permissions.php new file mode 100644 index 000000000000..90425f5b4b52 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/test_iam_permissions.php @@ -0,0 +1,84 @@ +setResource($resource) + ->setPermissions($permissions); + + // Call the API and handle any network failures. + try { + /** @var TestIamPermissionsResponse $response */ + $response = $dataformClient->testIamPermissions($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $resource = '[RESOURCE]'; + $permissionsElement = '[PERMISSIONS]'; + + test_iam_permissions_sample($resource, $permissionsElement); +} +// [END dataform_v1beta1_generated_Dataform_TestIamPermissions_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_config.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_config.php new file mode 100644 index 000000000000..b0884b5eeebe --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_config.php @@ -0,0 +1,64 @@ +setConfig($config); + + // Call the API and handle any network failures. + try { + /** @var Config $response */ + $response = $dataformClient->updateConfig($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END dataform_v1beta1_generated_Dataform_UpdateConfig_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_folder.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_folder.php new file mode 100644 index 000000000000..37537288ea06 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_folder.php @@ -0,0 +1,72 @@ +setDisplayName($folderDisplayName); + $request = (new UpdateFolderRequest()) + ->setFolder($folder); + + // Call the API and handle any network failures. + try { + /** @var Folder $response */ + $response = $dataformClient->updateFolder($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $folderDisplayName = '[DISPLAY_NAME]'; + + update_folder_sample($folderDisplayName); +} +// [END dataform_v1beta1_generated_Dataform_UpdateFolder_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_release_config.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_release_config.php new file mode 100644 index 000000000000..77e61eecc226 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_release_config.php @@ -0,0 +1,81 @@ +setGitCommitish($releaseConfigGitCommitish); + $request = (new UpdateReleaseConfigRequest()) + ->setReleaseConfig($releaseConfig); + + // Call the API and handle any network failures. + try { + /** @var ReleaseConfig $response */ + $response = $dataformClient->updateReleaseConfig($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $releaseConfigGitCommitish = '[GIT_COMMITISH]'; + + update_release_config_sample($releaseConfigGitCommitish); +} +// [END dataform_v1beta1_generated_Dataform_UpdateReleaseConfig_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_repository.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_repository.php new file mode 100644 index 000000000000..8244d110d494 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_repository.php @@ -0,0 +1,64 @@ +setRepository($repository); + + // Call the API and handle any network failures. + try { + /** @var Repository $response */ + $response = $dataformClient->updateRepository($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END dataform_v1beta1_generated_Dataform_UpdateRepository_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_team_folder.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_team_folder.php new file mode 100644 index 000000000000..189c4965c2f9 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_team_folder.php @@ -0,0 +1,72 @@ +setDisplayName($teamFolderDisplayName); + $request = (new UpdateTeamFolderRequest()) + ->setTeamFolder($teamFolder); + + // Call the API and handle any network failures. + try { + /** @var TeamFolder $response */ + $response = $dataformClient->updateTeamFolder($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $teamFolderDisplayName = '[DISPLAY_NAME]'; + + update_team_folder_sample($teamFolderDisplayName); +} +// [END dataform_v1beta1_generated_Dataform_UpdateTeamFolder_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_workflow_config.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_workflow_config.php new file mode 100644 index 000000000000..86c7ba077e51 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_workflow_config.php @@ -0,0 +1,85 @@ +setReleaseConfig($formattedWorkflowConfigReleaseConfig); + $request = (new UpdateWorkflowConfigRequest()) + ->setWorkflowConfig($workflowConfig); + + // Call the API and handle any network failures. + try { + /** @var WorkflowConfig $response */ + $response = $dataformClient->updateWorkflowConfig($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedWorkflowConfigReleaseConfig = DataformClient::releaseConfigName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[RELEASE_CONFIG]' + ); + + update_workflow_config_sample($formattedWorkflowConfigReleaseConfig); +} +// [END dataform_v1beta1_generated_Dataform_UpdateWorkflowConfig_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/write_file.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/write_file.php new file mode 100644 index 000000000000..4b5d45ea7a4f --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/write_file.php @@ -0,0 +1,82 @@ +setWorkspace($formattedWorkspace) + ->setPath($path) + ->setContents($contents); + + // Call the API and handle any network failures. + try { + /** @var WriteFileResponse $response */ + $response = $dataformClient->writeFile($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedWorkspace = DataformClient::workspaceName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKSPACE]' + ); + $path = '[PATH]'; + $contents = '...'; + + write_file_sample($formattedWorkspace, $path, $contents); +} +// [END dataform_v1beta1_generated_Dataform_WriteFile_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/src/V1beta1/Client/DataformClient.php b/owl-bot-staging/Dataform/v1beta1/src/V1beta1/Client/DataformClient.php new file mode 100644 index 000000000000..9b161084b5b0 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/src/V1beta1/Client/DataformClient.php @@ -0,0 +1,2988 @@ + cancelWorkflowInvocationAsync(CancelWorkflowInvocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface commitRepositoryChangesAsync(CommitRepositoryChangesRequest $request, array $optionalArgs = []) + * @method PromiseInterface commitWorkspaceChangesAsync(CommitWorkspaceChangesRequest $request, array $optionalArgs = []) + * @method PromiseInterface computeRepositoryAccessTokenStatusAsync(ComputeRepositoryAccessTokenStatusRequest $request, array $optionalArgs = []) + * @method PromiseInterface createCompilationResultAsync(CreateCompilationResultRequest $request, array $optionalArgs = []) + * @method PromiseInterface createFolderAsync(CreateFolderRequest $request, array $optionalArgs = []) + * @method PromiseInterface createReleaseConfigAsync(CreateReleaseConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface createRepositoryAsync(CreateRepositoryRequest $request, array $optionalArgs = []) + * @method PromiseInterface createTeamFolderAsync(CreateTeamFolderRequest $request, array $optionalArgs = []) + * @method PromiseInterface createWorkflowConfigAsync(CreateWorkflowConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface createWorkflowInvocationAsync(CreateWorkflowInvocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface createWorkspaceAsync(CreateWorkspaceRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteFolderAsync(DeleteFolderRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteReleaseConfigAsync(DeleteReleaseConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteRepositoryAsync(DeleteRepositoryRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteTeamFolderAsync(DeleteTeamFolderRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteWorkflowConfigAsync(DeleteWorkflowConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteWorkflowInvocationAsync(DeleteWorkflowInvocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteWorkspaceAsync(DeleteWorkspaceRequest $request, array $optionalArgs = []) + * @method PromiseInterface fetchFileDiffAsync(FetchFileDiffRequest $request, array $optionalArgs = []) + * @method PromiseInterface fetchFileGitStatusesAsync(FetchFileGitStatusesRequest $request, array $optionalArgs = []) + * @method PromiseInterface fetchGitAheadBehindAsync(FetchGitAheadBehindRequest $request, array $optionalArgs = []) + * @method PromiseInterface fetchRemoteBranchesAsync(FetchRemoteBranchesRequest $request, array $optionalArgs = []) + * @method PromiseInterface fetchRepositoryHistoryAsync(FetchRepositoryHistoryRequest $request, array $optionalArgs = []) + * @method PromiseInterface getCompilationResultAsync(GetCompilationResultRequest $request, array $optionalArgs = []) + * @method PromiseInterface getConfigAsync(GetConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface getFolderAsync(GetFolderRequest $request, array $optionalArgs = []) + * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface getReleaseConfigAsync(GetReleaseConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface getRepositoryAsync(GetRepositoryRequest $request, array $optionalArgs = []) + * @method PromiseInterface getTeamFolderAsync(GetTeamFolderRequest $request, array $optionalArgs = []) + * @method PromiseInterface getWorkflowConfigAsync(GetWorkflowConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface getWorkflowInvocationAsync(GetWorkflowInvocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface getWorkspaceAsync(GetWorkspaceRequest $request, array $optionalArgs = []) + * @method PromiseInterface installNpmPackagesAsync(InstallNpmPackagesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listCompilationResultsAsync(ListCompilationResultsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listReleaseConfigsAsync(ListReleaseConfigsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listRepositoriesAsync(ListRepositoriesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listWorkflowConfigsAsync(ListWorkflowConfigsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listWorkflowInvocationsAsync(ListWorkflowInvocationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listWorkspacesAsync(ListWorkspacesRequest $request, array $optionalArgs = []) + * @method PromiseInterface makeDirectoryAsync(MakeDirectoryRequest $request, array $optionalArgs = []) + * @method PromiseInterface moveDirectoryAsync(MoveDirectoryRequest $request, array $optionalArgs = []) + * @method PromiseInterface moveFileAsync(MoveFileRequest $request, array $optionalArgs = []) + * @method PromiseInterface moveFolderAsync(MoveFolderRequest $request, array $optionalArgs = []) + * @method PromiseInterface moveRepositoryAsync(MoveRepositoryRequest $request, array $optionalArgs = []) + * @method PromiseInterface pullGitCommitsAsync(PullGitCommitsRequest $request, array $optionalArgs = []) + * @method PromiseInterface pushGitCommitsAsync(PushGitCommitsRequest $request, array $optionalArgs = []) + * @method PromiseInterface queryCompilationResultActionsAsync(QueryCompilationResultActionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface queryDirectoryContentsAsync(QueryDirectoryContentsRequest $request, array $optionalArgs = []) + * @method PromiseInterface queryFolderContentsAsync(QueryFolderContentsRequest $request, array $optionalArgs = []) + * @method PromiseInterface queryRepositoryDirectoryContentsAsync(QueryRepositoryDirectoryContentsRequest $request, array $optionalArgs = []) + * @method PromiseInterface queryTeamFolderContentsAsync(QueryTeamFolderContentsRequest $request, array $optionalArgs = []) + * @method PromiseInterface queryUserRootContentsAsync(QueryUserRootContentsRequest $request, array $optionalArgs = []) + * @method PromiseInterface queryWorkflowInvocationActionsAsync(QueryWorkflowInvocationActionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface readFileAsync(ReadFileRequest $request, array $optionalArgs = []) + * @method PromiseInterface readRepositoryFileAsync(ReadRepositoryFileRequest $request, array $optionalArgs = []) + * @method PromiseInterface removeDirectoryAsync(RemoveDirectoryRequest $request, array $optionalArgs = []) + * @method PromiseInterface removeFileAsync(RemoveFileRequest $request, array $optionalArgs = []) + * @method PromiseInterface resetWorkspaceChangesAsync(ResetWorkspaceChangesRequest $request, array $optionalArgs = []) + * @method PromiseInterface searchFilesAsync(SearchFilesRequest $request, array $optionalArgs = []) + * @method PromiseInterface searchTeamFoldersAsync(SearchTeamFoldersRequest $request, array $optionalArgs = []) + * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateConfigAsync(UpdateConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateFolderAsync(UpdateFolderRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateReleaseConfigAsync(UpdateReleaseConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateRepositoryAsync(UpdateRepositoryRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateTeamFolderAsync(UpdateTeamFolderRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateWorkflowConfigAsync(UpdateWorkflowConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface writeFileAsync(WriteFileRequest $request, array $optionalArgs = []) + * @method PromiseInterface cancelOperationAsync(CancelOperationRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteOperationAsync(DeleteOperationRequest $request, array $optionalArgs = []) + * @method PromiseInterface getOperationAsync(GetOperationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listOperationsAsync(ListOperationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) + */ +final class DataformClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.dataform.v1beta1.Dataform'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'dataform.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'dataform.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/bigquery', + 'https://www.googleapis.com/auth/cloud-platform', + ]; + + private $operationsClient; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/dataform_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/dataform_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/dataform_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/dataform_rest_client_config.php', + ], + ], + ]; + } + + /** + * Return an OperationsClient object with the same endpoint as $this. + * + * @return OperationsClient + * + * @experimental + */ + public function getOperationsClient() + { + return $this->operationsClient; + } + + /** + * Resume an existing long running operation that was previously started by a long + * running API method. If $methodName is not provided, or does not match a long + * running API method, then the operation can still be resumed, but the + * OperationResponse object will not deserialize the final response. + * + * @param string $operationName The name of the long running operation + * @param string $methodName The name of the method used to start the operation + * + * @return OperationResponse + * + * @experimental + */ + public function resumeOperation($operationName, $methodName = null) + { + $options = $this->descriptors[$methodName]['longRunning'] ?? []; + $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); + $operation->reload(); + return $operation; + } + + /** + * Create the default operation client for the service. + * + * @param array $options ClientOptions for the client. + * + * @return OperationsClient + */ + private function createOperationsClient(array $options) + { + // Unset client-specific configuration options + unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); + + if (isset($options['operationsClient'])) { + return $options['operationsClient']; + } + + return new OperationsClient($options); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * compilation_result resource. + * + * @param string $project + * @param string $location + * @param string $repository + * @param string $compilationResult + * + * @return string The formatted compilation_result resource. + * + * @experimental + */ + public static function compilationResultName(string $project, string $location, string $repository, string $compilationResult): string + { + return self::getPathTemplate('compilationResult')->render([ + 'project' => $project, + 'location' => $location, + 'repository' => $repository, + 'compilation_result' => $compilationResult, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a config + * resource. + * + * @param string $project + * @param string $location + * + * @return string The formatted config resource. + * + * @experimental + */ + public static function configName(string $project, string $location): string + { + return self::getPathTemplate('config')->render([ + 'project' => $project, + 'location' => $location, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a crypto_key + * resource. + * + * @param string $project + * @param string $location + * @param string $keyRing + * @param string $cryptoKey + * + * @return string The formatted crypto_key resource. + * + * @experimental + */ + public static function cryptoKeyName(string $project, string $location, string $keyRing, string $cryptoKey): string + { + return self::getPathTemplate('cryptoKey')->render([ + 'project' => $project, + 'location' => $location, + 'key_ring' => $keyRing, + 'crypto_key' => $cryptoKey, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * crypto_key_version resource. + * + * @param string $project + * @param string $location + * @param string $keyRing + * @param string $cryptoKey + * @param string $cryptoKeyVersion + * + * @return string The formatted crypto_key_version resource. + * + * @experimental + */ + public static function cryptoKeyVersionName(string $project, string $location, string $keyRing, string $cryptoKey, string $cryptoKeyVersion): string + { + return self::getPathTemplate('cryptoKeyVersion')->render([ + 'project' => $project, + 'location' => $location, + 'key_ring' => $keyRing, + 'crypto_key' => $cryptoKey, + 'crypto_key_version' => $cryptoKeyVersion, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a folder + * resource. + * + * @param string $project + * @param string $location + * @param string $folder + * + * @return string The formatted folder resource. + * + * @experimental + */ + public static function folderName(string $project, string $location, string $folder): string + { + return self::getPathTemplate('folder')->render([ + 'project' => $project, + 'location' => $location, + 'folder' => $folder, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a location + * resource. + * + * @param string $project + * @param string $location + * + * @return string The formatted location resource. + * + * @experimental + */ + public static function locationName(string $project, string $location): string + { + return self::getPathTemplate('location')->render([ + 'project' => $project, + 'location' => $location, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * notebook_runtime_template resource. + * + * @param string $project + * @param string $location + * @param string $notebookRuntimeTemplate + * + * @return string The formatted notebook_runtime_template resource. + * + * @experimental + */ + public static function notebookRuntimeTemplateName(string $project, string $location, string $notebookRuntimeTemplate): string + { + return self::getPathTemplate('notebookRuntimeTemplate')->render([ + 'project' => $project, + 'location' => $location, + 'notebook_runtime_template' => $notebookRuntimeTemplate, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * release_config resource. + * + * @param string $project + * @param string $location + * @param string $repository + * @param string $releaseConfig + * + * @return string The formatted release_config resource. + * + * @experimental + */ + public static function releaseConfigName(string $project, string $location, string $repository, string $releaseConfig): string + { + return self::getPathTemplate('releaseConfig')->render([ + 'project' => $project, + 'location' => $location, + 'repository' => $repository, + 'release_config' => $releaseConfig, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a repository + * resource. + * + * @param string $project + * @param string $location + * @param string $repository + * + * @return string The formatted repository resource. + * + * @experimental + */ + public static function repositoryName(string $project, string $location, string $repository): string + { + return self::getPathTemplate('repository')->render([ + 'project' => $project, + 'location' => $location, + 'repository' => $repository, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * secret_version resource. + * + * @param string $project + * @param string $secret + * @param string $version + * + * @return string The formatted secret_version resource. + * + * @experimental + */ + public static function secretVersionName(string $project, string $secret, string $version): string + { + return self::getPathTemplate('secretVersion')->render([ + 'project' => $project, + 'secret' => $secret, + 'version' => $version, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a team_folder + * resource. + * + * @param string $project + * @param string $location + * @param string $teamFolder + * + * @return string The formatted team_folder resource. + * + * @experimental + */ + public static function teamFolderName(string $project, string $location, string $teamFolder): string + { + return self::getPathTemplate('teamFolder')->render([ + 'project' => $project, + 'location' => $location, + 'team_folder' => $teamFolder, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * workflow_config resource. + * + * @param string $project + * @param string $location + * @param string $repository + * @param string $workflowConfig + * + * @return string The formatted workflow_config resource. + * + * @experimental + */ + public static function workflowConfigName(string $project, string $location, string $repository, string $workflowConfig): string + { + return self::getPathTemplate('workflowConfig')->render([ + 'project' => $project, + 'location' => $location, + 'repository' => $repository, + 'workflow_config' => $workflowConfig, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * workflow_invocation resource. + * + * @param string $project + * @param string $location + * @param string $repository + * @param string $workflowInvocation + * + * @return string The formatted workflow_invocation resource. + * + * @experimental + */ + public static function workflowInvocationName(string $project, string $location, string $repository, string $workflowInvocation): string + { + return self::getPathTemplate('workflowInvocation')->render([ + 'project' => $project, + 'location' => $location, + 'repository' => $repository, + 'workflow_invocation' => $workflowInvocation, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a workspace + * resource. + * + * @param string $project + * @param string $location + * @param string $repository + * @param string $workspace + * + * @return string The formatted workspace resource. + * + * @experimental + */ + public static function workspaceName(string $project, string $location, string $repository, string $workspace): string + { + return self::getPathTemplate('workspace')->render([ + 'project' => $project, + 'location' => $location, + 'repository' => $repository, + 'workspace' => $workspace, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - compilationResult: projects/{project}/locations/{location}/repositories/{repository}/compilationResults/{compilation_result} + * - config: projects/{project}/locations/{location}/config + * - cryptoKey: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key} + * - cryptoKeyVersion: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version} + * - folder: projects/{project}/locations/{location}/folders/{folder} + * - location: projects/{project}/locations/{location} + * - notebookRuntimeTemplate: projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template} + * - releaseConfig: projects/{project}/locations/{location}/repositories/{repository}/releaseConfigs/{release_config} + * - repository: projects/{project}/locations/{location}/repositories/{repository} + * - secretVersion: projects/{project}/secrets/{secret}/versions/{version} + * - teamFolder: projects/{project}/locations/{location}/teamFolders/{team_folder} + * - workflowConfig: projects/{project}/locations/{location}/repositories/{repository}/workflowConfigs/{workflow_config} + * - workflowInvocation: projects/{project}/locations/{location}/repositories/{repository}/workflowInvocations/{workflow_invocation} + * - workspace: projects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + * + * @experimental + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'dataform.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Cloud\Dataform\V1beta1\DataformClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new DataformClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + * + * @experimental + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + $this->operationsClient = $this->createOperationsClient($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Requests cancellation of a running WorkflowInvocation. + * + * The async variant is {@see DataformClient::cancelWorkflowInvocationAsync()} . + * + * @example samples/V1beta1/DataformClient/cancel_workflow_invocation.php + * + * @param CancelWorkflowInvocationRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return CancelWorkflowInvocationResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function cancelWorkflowInvocation(CancelWorkflowInvocationRequest $request, array $callOptions = []): CancelWorkflowInvocationResponse + { + return $this->startApiCall('CancelWorkflowInvocation', $request, $callOptions)->wait(); + } + + /** + * Applies a Git commit to a Repository. The Repository must not have a value + * for `git_remote_settings.url`. + * + * The async variant is {@see DataformClient::commitRepositoryChangesAsync()} . + * + * @example samples/V1beta1/DataformClient/commit_repository_changes.php + * + * @param CommitRepositoryChangesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return CommitRepositoryChangesResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function commitRepositoryChanges(CommitRepositoryChangesRequest $request, array $callOptions = []): CommitRepositoryChangesResponse + { + return $this->startApiCall('CommitRepositoryChanges', $request, $callOptions)->wait(); + } + + /** + * Applies a Git commit for uncommitted files in a Workspace. + * + * The async variant is {@see DataformClient::commitWorkspaceChangesAsync()} . + * + * @example samples/V1beta1/DataformClient/commit_workspace_changes.php + * + * @param CommitWorkspaceChangesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return CommitWorkspaceChangesResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function commitWorkspaceChanges(CommitWorkspaceChangesRequest $request, array $callOptions = []): CommitWorkspaceChangesResponse + { + return $this->startApiCall('CommitWorkspaceChanges', $request, $callOptions)->wait(); + } + + /** + * Computes a Repository's Git access token status. + * + * The async variant is + * {@see DataformClient::computeRepositoryAccessTokenStatusAsync()} . + * + * @example samples/V1beta1/DataformClient/compute_repository_access_token_status.php + * + * @param ComputeRepositoryAccessTokenStatusRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ComputeRepositoryAccessTokenStatusResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function computeRepositoryAccessTokenStatus(ComputeRepositoryAccessTokenStatusRequest $request, array $callOptions = []): ComputeRepositoryAccessTokenStatusResponse + { + return $this->startApiCall('ComputeRepositoryAccessTokenStatus', $request, $callOptions)->wait(); + } + + /** + * Creates a new CompilationResult in a given project and location. + * + * The async variant is {@see DataformClient::createCompilationResultAsync()} . + * + * @example samples/V1beta1/DataformClient/create_compilation_result.php + * + * @param CreateCompilationResultRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return CompilationResult + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function createCompilationResult(CreateCompilationResultRequest $request, array $callOptions = []): CompilationResult + { + return $this->startApiCall('CreateCompilationResult', $request, $callOptions)->wait(); + } + + /** + * Creates a new Folder in a given project and location. + * + * The async variant is {@see DataformClient::createFolderAsync()} . + * + * @example samples/V1beta1/DataformClient/create_folder.php + * + * @param CreateFolderRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Folder + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function createFolder(CreateFolderRequest $request, array $callOptions = []): Folder + { + return $this->startApiCall('CreateFolder', $request, $callOptions)->wait(); + } + + /** + * Creates a new ReleaseConfig in a given Repository. + * + * The async variant is {@see DataformClient::createReleaseConfigAsync()} . + * + * @example samples/V1beta1/DataformClient/create_release_config.php + * + * @param CreateReleaseConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ReleaseConfig + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function createReleaseConfig(CreateReleaseConfigRequest $request, array $callOptions = []): ReleaseConfig + { + return $this->startApiCall('CreateReleaseConfig', $request, $callOptions)->wait(); + } + + /** + * Creates a new Repository in a given project and location. + * + * The async variant is {@see DataformClient::createRepositoryAsync()} . + * + * @example samples/V1beta1/DataformClient/create_repository.php + * + * @param CreateRepositoryRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Repository + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function createRepository(CreateRepositoryRequest $request, array $callOptions = []): Repository + { + return $this->startApiCall('CreateRepository', $request, $callOptions)->wait(); + } + + /** + * Creates a new TeamFolder in a given project and location. + * + * The async variant is {@see DataformClient::createTeamFolderAsync()} . + * + * @example samples/V1beta1/DataformClient/create_team_folder.php + * + * @param CreateTeamFolderRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return TeamFolder + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function createTeamFolder(CreateTeamFolderRequest $request, array $callOptions = []): TeamFolder + { + return $this->startApiCall('CreateTeamFolder', $request, $callOptions)->wait(); + } + + /** + * Creates a new WorkflowConfig in a given Repository. + * + * The async variant is {@see DataformClient::createWorkflowConfigAsync()} . + * + * @example samples/V1beta1/DataformClient/create_workflow_config.php + * + * @param CreateWorkflowConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return WorkflowConfig + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function createWorkflowConfig(CreateWorkflowConfigRequest $request, array $callOptions = []): WorkflowConfig + { + return $this->startApiCall('CreateWorkflowConfig', $request, $callOptions)->wait(); + } + + /** + * Creates a new WorkflowInvocation in a given Repository. + * + * The async variant is {@see DataformClient::createWorkflowInvocationAsync()} . + * + * @example samples/V1beta1/DataformClient/create_workflow_invocation.php + * + * @param CreateWorkflowInvocationRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return WorkflowInvocation + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function createWorkflowInvocation(CreateWorkflowInvocationRequest $request, array $callOptions = []): WorkflowInvocation + { + return $this->startApiCall('CreateWorkflowInvocation', $request, $callOptions)->wait(); + } + + /** + * Creates a new Workspace in a given Repository. + * + * The async variant is {@see DataformClient::createWorkspaceAsync()} . + * + * @example samples/V1beta1/DataformClient/create_workspace.php + * + * @param CreateWorkspaceRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Workspace + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function createWorkspace(CreateWorkspaceRequest $request, array $callOptions = []): Workspace + { + return $this->startApiCall('CreateWorkspace', $request, $callOptions)->wait(); + } + + /** + * Deletes a single Folder. + * + * The async variant is {@see DataformClient::deleteFolderAsync()} . + * + * @example samples/V1beta1/DataformClient/delete_folder.php + * + * @param DeleteFolderRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function deleteFolder(DeleteFolderRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteFolder', $request, $callOptions)->wait(); + } + + /** + * Deletes a single ReleaseConfig. + * + * The async variant is {@see DataformClient::deleteReleaseConfigAsync()} . + * + * @example samples/V1beta1/DataformClient/delete_release_config.php + * + * @param DeleteReleaseConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function deleteReleaseConfig(DeleteReleaseConfigRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteReleaseConfig', $request, $callOptions)->wait(); + } + + /** + * Deletes a single Repository. + * + * The async variant is {@see DataformClient::deleteRepositoryAsync()} . + * + * @example samples/V1beta1/DataformClient/delete_repository.php + * + * @param DeleteRepositoryRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function deleteRepository(DeleteRepositoryRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteRepository', $request, $callOptions)->wait(); + } + + /** + * Deletes a single TeamFolder. + * + * The async variant is {@see DataformClient::deleteTeamFolderAsync()} . + * + * @example samples/V1beta1/DataformClient/delete_team_folder.php + * + * @param DeleteTeamFolderRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function deleteTeamFolder(DeleteTeamFolderRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteTeamFolder', $request, $callOptions)->wait(); + } + + /** + * Deletes a single WorkflowConfig. + * + * The async variant is {@see DataformClient::deleteWorkflowConfigAsync()} . + * + * @example samples/V1beta1/DataformClient/delete_workflow_config.php + * + * @param DeleteWorkflowConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function deleteWorkflowConfig(DeleteWorkflowConfigRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteWorkflowConfig', $request, $callOptions)->wait(); + } + + /** + * Deletes a single WorkflowInvocation. + * + * The async variant is {@see DataformClient::deleteWorkflowInvocationAsync()} . + * + * @example samples/V1beta1/DataformClient/delete_workflow_invocation.php + * + * @param DeleteWorkflowInvocationRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function deleteWorkflowInvocation(DeleteWorkflowInvocationRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteWorkflowInvocation', $request, $callOptions)->wait(); + } + + /** + * Deletes a single Workspace. + * + * The async variant is {@see DataformClient::deleteWorkspaceAsync()} . + * + * @example samples/V1beta1/DataformClient/delete_workspace.php + * + * @param DeleteWorkspaceRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function deleteWorkspace(DeleteWorkspaceRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteWorkspace', $request, $callOptions)->wait(); + } + + /** + * Fetches Git diff for an uncommitted file in a Workspace. + * + * The async variant is {@see DataformClient::fetchFileDiffAsync()} . + * + * @example samples/V1beta1/DataformClient/fetch_file_diff.php + * + * @param FetchFileDiffRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return FetchFileDiffResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function fetchFileDiff(FetchFileDiffRequest $request, array $callOptions = []): FetchFileDiffResponse + { + return $this->startApiCall('FetchFileDiff', $request, $callOptions)->wait(); + } + + /** + * Fetches Git statuses for the files in a Workspace. + * + * The async variant is {@see DataformClient::fetchFileGitStatusesAsync()} . + * + * @example samples/V1beta1/DataformClient/fetch_file_git_statuses.php + * + * @param FetchFileGitStatusesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return FetchFileGitStatusesResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function fetchFileGitStatuses(FetchFileGitStatusesRequest $request, array $callOptions = []): FetchFileGitStatusesResponse + { + return $this->startApiCall('FetchFileGitStatuses', $request, $callOptions)->wait(); + } + + /** + * Fetches Git ahead/behind against a remote branch. + * + * The async variant is {@see DataformClient::fetchGitAheadBehindAsync()} . + * + * @example samples/V1beta1/DataformClient/fetch_git_ahead_behind.php + * + * @param FetchGitAheadBehindRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return FetchGitAheadBehindResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function fetchGitAheadBehind(FetchGitAheadBehindRequest $request, array $callOptions = []): FetchGitAheadBehindResponse + { + return $this->startApiCall('FetchGitAheadBehind', $request, $callOptions)->wait(); + } + + /** + * Fetches a Repository's remote branches. + * + * The async variant is {@see DataformClient::fetchRemoteBranchesAsync()} . + * + * @example samples/V1beta1/DataformClient/fetch_remote_branches.php + * + * @param FetchRemoteBranchesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return FetchRemoteBranchesResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function fetchRemoteBranches(FetchRemoteBranchesRequest $request, array $callOptions = []): FetchRemoteBranchesResponse + { + return $this->startApiCall('FetchRemoteBranches', $request, $callOptions)->wait(); + } + + /** + * Fetches a Repository's history of commits. The Repository must not have a + * value for `git_remote_settings.url`. + * + * The async variant is {@see DataformClient::fetchRepositoryHistoryAsync()} . + * + * @example samples/V1beta1/DataformClient/fetch_repository_history.php + * + * @param FetchRepositoryHistoryRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function fetchRepositoryHistory(FetchRepositoryHistoryRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('FetchRepositoryHistory', $request, $callOptions); + } + + /** + * Fetches a single CompilationResult. + * + * The async variant is {@see DataformClient::getCompilationResultAsync()} . + * + * @example samples/V1beta1/DataformClient/get_compilation_result.php + * + * @param GetCompilationResultRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return CompilationResult + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function getCompilationResult(GetCompilationResultRequest $request, array $callOptions = []): CompilationResult + { + return $this->startApiCall('GetCompilationResult', $request, $callOptions)->wait(); + } + + /** + * Get default config for a given project and location. + * + * The async variant is {@see DataformClient::getConfigAsync()} . + * + * @example samples/V1beta1/DataformClient/get_config.php + * + * @param GetConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Config + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function getConfig(GetConfigRequest $request, array $callOptions = []): Config + { + return $this->startApiCall('GetConfig', $request, $callOptions)->wait(); + } + + /** + * Fetches a single Folder. + * + * The async variant is {@see DataformClient::getFolderAsync()} . + * + * @example samples/V1beta1/DataformClient/get_folder.php + * + * @param GetFolderRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Folder + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function getFolder(GetFolderRequest $request, array $callOptions = []): Folder + { + return $this->startApiCall('GetFolder', $request, $callOptions)->wait(); + } + + /** + * Gets the access control policy for a resource. + * Returns an empty policy if the resource exists and does not have a policy + * set. + * + * The async variant is {@see DataformClient::getIamPolicyAsync()} . + * + * @example samples/V1beta1/DataformClient/get_iam_policy.php + * + * @param GetIamPolicyRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Policy + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy + { + return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait(); + } + + /** + * Fetches a single ReleaseConfig. + * + * The async variant is {@see DataformClient::getReleaseConfigAsync()} . + * + * @example samples/V1beta1/DataformClient/get_release_config.php + * + * @param GetReleaseConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ReleaseConfig + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function getReleaseConfig(GetReleaseConfigRequest $request, array $callOptions = []): ReleaseConfig + { + return $this->startApiCall('GetReleaseConfig', $request, $callOptions)->wait(); + } + + /** + * Fetches a single Repository. + * + * The async variant is {@see DataformClient::getRepositoryAsync()} . + * + * @example samples/V1beta1/DataformClient/get_repository.php + * + * @param GetRepositoryRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Repository + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function getRepository(GetRepositoryRequest $request, array $callOptions = []): Repository + { + return $this->startApiCall('GetRepository', $request, $callOptions)->wait(); + } + + /** + * Fetches a single TeamFolder. + * + * The async variant is {@see DataformClient::getTeamFolderAsync()} . + * + * @example samples/V1beta1/DataformClient/get_team_folder.php + * + * @param GetTeamFolderRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return TeamFolder + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function getTeamFolder(GetTeamFolderRequest $request, array $callOptions = []): TeamFolder + { + return $this->startApiCall('GetTeamFolder', $request, $callOptions)->wait(); + } + + /** + * Fetches a single WorkflowConfig. + * + * The async variant is {@see DataformClient::getWorkflowConfigAsync()} . + * + * @example samples/V1beta1/DataformClient/get_workflow_config.php + * + * @param GetWorkflowConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return WorkflowConfig + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function getWorkflowConfig(GetWorkflowConfigRequest $request, array $callOptions = []): WorkflowConfig + { + return $this->startApiCall('GetWorkflowConfig', $request, $callOptions)->wait(); + } + + /** + * Fetches a single WorkflowInvocation. + * + * The async variant is {@see DataformClient::getWorkflowInvocationAsync()} . + * + * @example samples/V1beta1/DataformClient/get_workflow_invocation.php + * + * @param GetWorkflowInvocationRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return WorkflowInvocation + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function getWorkflowInvocation(GetWorkflowInvocationRequest $request, array $callOptions = []): WorkflowInvocation + { + return $this->startApiCall('GetWorkflowInvocation', $request, $callOptions)->wait(); + } + + /** + * Fetches a single Workspace. + * + * The async variant is {@see DataformClient::getWorkspaceAsync()} . + * + * @example samples/V1beta1/DataformClient/get_workspace.php + * + * @param GetWorkspaceRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Workspace + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function getWorkspace(GetWorkspaceRequest $request, array $callOptions = []): Workspace + { + return $this->startApiCall('GetWorkspace', $request, $callOptions)->wait(); + } + + /** + * Installs dependency NPM packages (inside a Workspace). + * + * The async variant is {@see DataformClient::installNpmPackagesAsync()} . + * + * @example samples/V1beta1/DataformClient/install_npm_packages.php + * + * @param InstallNpmPackagesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return InstallNpmPackagesResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function installNpmPackages(InstallNpmPackagesRequest $request, array $callOptions = []): InstallNpmPackagesResponse + { + return $this->startApiCall('InstallNpmPackages', $request, $callOptions)->wait(); + } + + /** + * Lists CompilationResults in a given Repository. + * + * The async variant is {@see DataformClient::listCompilationResultsAsync()} . + * + * @example samples/V1beta1/DataformClient/list_compilation_results.php + * + * @param ListCompilationResultsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function listCompilationResults(ListCompilationResultsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListCompilationResults', $request, $callOptions); + } + + /** + * Lists ReleaseConfigs in a given Repository. + * + * The async variant is {@see DataformClient::listReleaseConfigsAsync()} . + * + * @example samples/V1beta1/DataformClient/list_release_configs.php + * + * @param ListReleaseConfigsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function listReleaseConfigs(ListReleaseConfigsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListReleaseConfigs', $request, $callOptions); + } + + /** + * 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)*. + * + * The async variant is {@see DataformClient::listRepositoriesAsync()} . + * + * @example samples/V1beta1/DataformClient/list_repositories.php + * + * @param ListRepositoriesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function listRepositories(ListRepositoriesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListRepositories', $request, $callOptions); + } + + /** + * Lists WorkflowConfigs in a given Repository. + * + * The async variant is {@see DataformClient::listWorkflowConfigsAsync()} . + * + * @example samples/V1beta1/DataformClient/list_workflow_configs.php + * + * @param ListWorkflowConfigsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function listWorkflowConfigs(ListWorkflowConfigsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListWorkflowConfigs', $request, $callOptions); + } + + /** + * Lists WorkflowInvocations in a given Repository. + * + * The async variant is {@see DataformClient::listWorkflowInvocationsAsync()} . + * + * @example samples/V1beta1/DataformClient/list_workflow_invocations.php + * + * @param ListWorkflowInvocationsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function listWorkflowInvocations(ListWorkflowInvocationsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListWorkflowInvocations', $request, $callOptions); + } + + /** + * Lists Workspaces in a given Repository. + * + * The async variant is {@see DataformClient::listWorkspacesAsync()} . + * + * @example samples/V1beta1/DataformClient/list_workspaces.php + * + * @param ListWorkspacesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function listWorkspaces(ListWorkspacesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListWorkspaces', $request, $callOptions); + } + + /** + * Creates a directory inside a Workspace. + * + * The async variant is {@see DataformClient::makeDirectoryAsync()} . + * + * @example samples/V1beta1/DataformClient/make_directory.php + * + * @param MakeDirectoryRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return MakeDirectoryResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function makeDirectory(MakeDirectoryRequest $request, array $callOptions = []): MakeDirectoryResponse + { + return $this->startApiCall('MakeDirectory', $request, $callOptions)->wait(); + } + + /** + * Moves a directory (inside a Workspace), and all of its contents, to a new + * location. + * + * The async variant is {@see DataformClient::moveDirectoryAsync()} . + * + * @example samples/V1beta1/DataformClient/move_directory.php + * + * @param MoveDirectoryRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return MoveDirectoryResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function moveDirectory(MoveDirectoryRequest $request, array $callOptions = []): MoveDirectoryResponse + { + return $this->startApiCall('MoveDirectory', $request, $callOptions)->wait(); + } + + /** + * Moves a file (inside a Workspace) to a new location. + * + * The async variant is {@see DataformClient::moveFileAsync()} . + * + * @example samples/V1beta1/DataformClient/move_file.php + * + * @param MoveFileRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return MoveFileResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function moveFile(MoveFileRequest $request, array $callOptions = []): MoveFileResponse + { + return $this->startApiCall('MoveFile', $request, $callOptions)->wait(); + } + + /** + * Moves a Folder to a new Folder, TeamFolder, or the root location. + * + * The async variant is {@see DataformClient::moveFolderAsync()} . + * + * @example samples/V1beta1/DataformClient/move_folder.php + * + * @param MoveFolderRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function moveFolder(MoveFolderRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('MoveFolder', $request, $callOptions)->wait(); + } + + /** + * Moves a Repository to a new location. + * + * The async variant is {@see DataformClient::moveRepositoryAsync()} . + * + * @example samples/V1beta1/DataformClient/move_repository.php + * + * @param MoveRepositoryRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function moveRepository(MoveRepositoryRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('MoveRepository', $request, $callOptions)->wait(); + } + + /** + * Pulls Git commits from the Repository's remote into a Workspace. + * + * The async variant is {@see DataformClient::pullGitCommitsAsync()} . + * + * @example samples/V1beta1/DataformClient/pull_git_commits.php + * + * @param PullGitCommitsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PullGitCommitsResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function pullGitCommits(PullGitCommitsRequest $request, array $callOptions = []): PullGitCommitsResponse + { + return $this->startApiCall('PullGitCommits', $request, $callOptions)->wait(); + } + + /** + * Pushes Git commits from a Workspace to the Repository's remote. + * + * The async variant is {@see DataformClient::pushGitCommitsAsync()} . + * + * @example samples/V1beta1/DataformClient/push_git_commits.php + * + * @param PushGitCommitsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PushGitCommitsResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function pushGitCommits(PushGitCommitsRequest $request, array $callOptions = []): PushGitCommitsResponse + { + return $this->startApiCall('PushGitCommits', $request, $callOptions)->wait(); + } + + /** + * Returns CompilationResultActions in a given CompilationResult. + * + * The async variant is {@see DataformClient::queryCompilationResultActionsAsync()} + * . + * + * @example samples/V1beta1/DataformClient/query_compilation_result_actions.php + * + * @param QueryCompilationResultActionsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function queryCompilationResultActions(QueryCompilationResultActionsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('QueryCompilationResultActions', $request, $callOptions); + } + + /** + * Returns the contents of a given Workspace directory. + * + * The async variant is {@see DataformClient::queryDirectoryContentsAsync()} . + * + * @example samples/V1beta1/DataformClient/query_directory_contents.php + * + * @param QueryDirectoryContentsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function queryDirectoryContents(QueryDirectoryContentsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('QueryDirectoryContents', $request, $callOptions); + } + + /** + * Returns the contents of a given Folder. + * + * The async variant is {@see DataformClient::queryFolderContentsAsync()} . + * + * @example samples/V1beta1/DataformClient/query_folder_contents.php + * + * @param QueryFolderContentsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function queryFolderContents(QueryFolderContentsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('QueryFolderContents', $request, $callOptions); + } + + /** + * Returns the contents of a given Repository directory. The Repository must + * not have a value for `git_remote_settings.url`. + * + * The async variant is + * {@see DataformClient::queryRepositoryDirectoryContentsAsync()} . + * + * @example samples/V1beta1/DataformClient/query_repository_directory_contents.php + * + * @param QueryRepositoryDirectoryContentsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function queryRepositoryDirectoryContents(QueryRepositoryDirectoryContentsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('QueryRepositoryDirectoryContents', $request, $callOptions); + } + + /** + * Returns the contents of a given TeamFolder. + * + * The async variant is {@see DataformClient::queryTeamFolderContentsAsync()} . + * + * @example samples/V1beta1/DataformClient/query_team_folder_contents.php + * + * @param QueryTeamFolderContentsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function queryTeamFolderContents(QueryTeamFolderContentsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('QueryTeamFolderContents', $request, $callOptions); + } + + /** + * 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. + * + * The async variant is {@see DataformClient::queryUserRootContentsAsync()} . + * + * @example samples/V1beta1/DataformClient/query_user_root_contents.php + * + * @param QueryUserRootContentsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function queryUserRootContents(QueryUserRootContentsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('QueryUserRootContents', $request, $callOptions); + } + + /** + * Returns WorkflowInvocationActions in a given WorkflowInvocation. + * + * The async variant is + * {@see DataformClient::queryWorkflowInvocationActionsAsync()} . + * + * @example samples/V1beta1/DataformClient/query_workflow_invocation_actions.php + * + * @param QueryWorkflowInvocationActionsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function queryWorkflowInvocationActions(QueryWorkflowInvocationActionsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('QueryWorkflowInvocationActions', $request, $callOptions); + } + + /** + * Returns the contents of a file (inside a Workspace). + * + * The async variant is {@see DataformClient::readFileAsync()} . + * + * @example samples/V1beta1/DataformClient/read_file.php + * + * @param ReadFileRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ReadFileResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function readFile(ReadFileRequest $request, array $callOptions = []): ReadFileResponse + { + return $this->startApiCall('ReadFile', $request, $callOptions)->wait(); + } + + /** + * Returns the contents of a file (inside a Repository). The Repository + * must not have a value for `git_remote_settings.url`. + * + * The async variant is {@see DataformClient::readRepositoryFileAsync()} . + * + * @example samples/V1beta1/DataformClient/read_repository_file.php + * + * @param ReadRepositoryFileRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ReadRepositoryFileResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function readRepositoryFile(ReadRepositoryFileRequest $request, array $callOptions = []): ReadRepositoryFileResponse + { + return $this->startApiCall('ReadRepositoryFile', $request, $callOptions)->wait(); + } + + /** + * Deletes a directory (inside a Workspace) and all of its contents. + * + * The async variant is {@see DataformClient::removeDirectoryAsync()} . + * + * @example samples/V1beta1/DataformClient/remove_directory.php + * + * @param RemoveDirectoryRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return RemoveDirectoryResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function removeDirectory(RemoveDirectoryRequest $request, array $callOptions = []): RemoveDirectoryResponse + { + return $this->startApiCall('RemoveDirectory', $request, $callOptions)->wait(); + } + + /** + * Deletes a file (inside a Workspace). + * + * The async variant is {@see DataformClient::removeFileAsync()} . + * + * @example samples/V1beta1/DataformClient/remove_file.php + * + * @param RemoveFileRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return RemoveFileResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function removeFile(RemoveFileRequest $request, array $callOptions = []): RemoveFileResponse + { + return $this->startApiCall('RemoveFile', $request, $callOptions)->wait(); + } + + /** + * Performs a Git reset for uncommitted files in a Workspace. + * + * The async variant is {@see DataformClient::resetWorkspaceChangesAsync()} . + * + * @example samples/V1beta1/DataformClient/reset_workspace_changes.php + * + * @param ResetWorkspaceChangesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ResetWorkspaceChangesResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function resetWorkspaceChanges(ResetWorkspaceChangesRequest $request, array $callOptions = []): ResetWorkspaceChangesResponse + { + return $this->startApiCall('ResetWorkspaceChanges', $request, $callOptions)->wait(); + } + + /** + * Finds the contents of a given Workspace directory by filter. + * + * The async variant is {@see DataformClient::searchFilesAsync()} . + * + * @example samples/V1beta1/DataformClient/search_files.php + * + * @param SearchFilesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function searchFiles(SearchFilesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('SearchFiles', $request, $callOptions); + } + + /** + * Returns all TeamFolders in a given location that the caller has access to + * and match the provided filter. + * + * The async variant is {@see DataformClient::searchTeamFoldersAsync()} . + * + * @example samples/V1beta1/DataformClient/search_team_folders.php + * + * @param SearchTeamFoldersRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function searchTeamFolders(SearchTeamFoldersRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('SearchTeamFolders', $request, $callOptions); + } + + /** + * Sets the access control policy on the specified resource. Replaces any + * existing policy. + * + * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * + * The async variant is {@see DataformClient::setIamPolicyAsync()} . + * + * @example samples/V1beta1/DataformClient/set_iam_policy.php + * + * @param SetIamPolicyRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Policy + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy + { + return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait(); + } + + /** + * 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. + * + * The async variant is {@see DataformClient::testIamPermissionsAsync()} . + * + * @example samples/V1beta1/DataformClient/test_iam_permissions.php + * + * @param TestIamPermissionsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return TestIamPermissionsResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse + { + return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); + } + + /** + * 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.* + * + * The async variant is {@see DataformClient::updateConfigAsync()} . + * + * @example samples/V1beta1/DataformClient/update_config.php + * + * @param UpdateConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Config + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function updateConfig(UpdateConfigRequest $request, array $callOptions = []): Config + { + return $this->startApiCall('UpdateConfig', $request, $callOptions)->wait(); + } + + /** + * Updates a single Folder. + * + * The async variant is {@see DataformClient::updateFolderAsync()} . + * + * @example samples/V1beta1/DataformClient/update_folder.php + * + * @param UpdateFolderRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Folder + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function updateFolder(UpdateFolderRequest $request, array $callOptions = []): Folder + { + return $this->startApiCall('UpdateFolder', $request, $callOptions)->wait(); + } + + /** + * 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.* + * + * The async variant is {@see DataformClient::updateReleaseConfigAsync()} . + * + * @example samples/V1beta1/DataformClient/update_release_config.php + * + * @param UpdateReleaseConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ReleaseConfig + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function updateReleaseConfig(UpdateReleaseConfigRequest $request, array $callOptions = []): ReleaseConfig + { + return $this->startApiCall('UpdateReleaseConfig', $request, $callOptions)->wait(); + } + + /** + * 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.* + * + * The async variant is {@see DataformClient::updateRepositoryAsync()} . + * + * @example samples/V1beta1/DataformClient/update_repository.php + * + * @param UpdateRepositoryRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Repository + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function updateRepository(UpdateRepositoryRequest $request, array $callOptions = []): Repository + { + return $this->startApiCall('UpdateRepository', $request, $callOptions)->wait(); + } + + /** + * Updates a single TeamFolder. + * + * The async variant is {@see DataformClient::updateTeamFolderAsync()} . + * + * @example samples/V1beta1/DataformClient/update_team_folder.php + * + * @param UpdateTeamFolderRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return TeamFolder + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function updateTeamFolder(UpdateTeamFolderRequest $request, array $callOptions = []): TeamFolder + { + return $this->startApiCall('UpdateTeamFolder', $request, $callOptions)->wait(); + } + + /** + * 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.* + * + * The async variant is {@see DataformClient::updateWorkflowConfigAsync()} . + * + * @example samples/V1beta1/DataformClient/update_workflow_config.php + * + * @param UpdateWorkflowConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return WorkflowConfig + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function updateWorkflowConfig(UpdateWorkflowConfigRequest $request, array $callOptions = []): WorkflowConfig + { + return $this->startApiCall('UpdateWorkflowConfig', $request, $callOptions)->wait(); + } + + /** + * Writes to a file (inside a Workspace). + * + * The async variant is {@see DataformClient::writeFileAsync()} . + * + * @example samples/V1beta1/DataformClient/write_file.php + * + * @param WriteFileRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return WriteFileResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function writeFile(WriteFileRequest $request, array $callOptions = []): WriteFileResponse + { + return $this->startApiCall('WriteFile', $request, $callOptions)->wait(); + } + + /** + * 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][google.longrunning.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 [Operation.error][google.longrunning.Operation.error] value with a + * [google.rpc.Status.code][google.rpc.Status.code] of `1`, corresponding to + * `Code.CANCELLED`. + * + * The async variant is {@see DataformClient::cancelOperationAsync()} . + * + * @example samples/V1beta1/DataformClient/cancel_operation.php + * + * @param CancelOperationRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function cancelOperation(CancelOperationRequest $request, array $callOptions = []): void + { + $this->startApiCall('CancelOperation', $request, $callOptions)->wait(); + } + + /** + * 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`. + * + * The async variant is {@see DataformClient::deleteOperationAsync()} . + * + * @example samples/V1beta1/DataformClient/delete_operation.php + * + * @param DeleteOperationRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function deleteOperation(DeleteOperationRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteOperation', $request, $callOptions)->wait(); + } + + /** + * 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. + * + * The async variant is {@see DataformClient::getOperationAsync()} . + * + * @example samples/V1beta1/DataformClient/get_operation.php + * + * @param GetOperationRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Operation + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function getOperation(GetOperationRequest $request, array $callOptions = []): Operation + { + return $this->startApiCall('GetOperation', $request, $callOptions)->wait(); + } + + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. + * + * The async variant is {@see DataformClient::listOperationsAsync()} . + * + * @example samples/V1beta1/DataformClient/list_operations.php + * + * @param ListOperationsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function listOperations(ListOperationsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListOperations', $request, $callOptions); + } + + /** + * Gets information about a location. + * + * The async variant is {@see DataformClient::getLocationAsync()} . + * + * @example samples/V1beta1/DataformClient/get_location.php + * + * @param GetLocationRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Location + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function getLocation(GetLocationRequest $request, array $callOptions = []): Location + { + return $this->startApiCall('GetLocation', $request, $callOptions)->wait(); + } + + /** + * Lists information about the supported locations for this service. + This method can be called in two ways: + + * **List all public locations:** Use the path `GET /v1/locations`. + * **List project-visible locations:** Use the path + `GET /v1/projects/{project_id}/locations`. This may include public + locations as well as private or other locations specifically visible + to the project. + * + * The async variant is {@see DataformClient::listLocationsAsync()} . + * + * @example samples/V1beta1/DataformClient/list_locations.php + * + * @param ListLocationsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListLocations', $request, $callOptions); + } +} diff --git a/owl-bot-staging/Dataform/v1beta1/src/V1beta1/gapic_metadata.json b/owl-bot-staging/Dataform/v1beta1/src/V1beta1/gapic_metadata.json new file mode 100644 index 000000000000..00107e462a0e --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/src/V1beta1/gapic_metadata.json @@ -0,0 +1,403 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", + "language": "php", + "protoPackage": "google.cloud.dataform.v1beta1", + "libraryPackage": "Google\\Cloud\\Dataform\\V1beta1", + "services": { + "Dataform": { + "clients": { + "grpc": { + "libraryClient": "DataformGapicClient", + "rpcs": { + "CancelWorkflowInvocation": { + "methods": [ + "cancelWorkflowInvocation" + ] + }, + "CommitRepositoryChanges": { + "methods": [ + "commitRepositoryChanges" + ] + }, + "CommitWorkspaceChanges": { + "methods": [ + "commitWorkspaceChanges" + ] + }, + "ComputeRepositoryAccessTokenStatus": { + "methods": [ + "computeRepositoryAccessTokenStatus" + ] + }, + "CreateCompilationResult": { + "methods": [ + "createCompilationResult" + ] + }, + "CreateFolder": { + "methods": [ + "createFolder" + ] + }, + "CreateReleaseConfig": { + "methods": [ + "createReleaseConfig" + ] + }, + "CreateRepository": { + "methods": [ + "createRepository" + ] + }, + "CreateTeamFolder": { + "methods": [ + "createTeamFolder" + ] + }, + "CreateWorkflowConfig": { + "methods": [ + "createWorkflowConfig" + ] + }, + "CreateWorkflowInvocation": { + "methods": [ + "createWorkflowInvocation" + ] + }, + "CreateWorkspace": { + "methods": [ + "createWorkspace" + ] + }, + "DeleteFolder": { + "methods": [ + "deleteFolder" + ] + }, + "DeleteReleaseConfig": { + "methods": [ + "deleteReleaseConfig" + ] + }, + "DeleteRepository": { + "methods": [ + "deleteRepository" + ] + }, + "DeleteTeamFolder": { + "methods": [ + "deleteTeamFolder" + ] + }, + "DeleteWorkflowConfig": { + "methods": [ + "deleteWorkflowConfig" + ] + }, + "DeleteWorkflowInvocation": { + "methods": [ + "deleteWorkflowInvocation" + ] + }, + "DeleteWorkspace": { + "methods": [ + "deleteWorkspace" + ] + }, + "FetchFileDiff": { + "methods": [ + "fetchFileDiff" + ] + }, + "FetchFileGitStatuses": { + "methods": [ + "fetchFileGitStatuses" + ] + }, + "FetchGitAheadBehind": { + "methods": [ + "fetchGitAheadBehind" + ] + }, + "FetchRemoteBranches": { + "methods": [ + "fetchRemoteBranches" + ] + }, + "FetchRepositoryHistory": { + "methods": [ + "fetchRepositoryHistory" + ] + }, + "GetCompilationResult": { + "methods": [ + "getCompilationResult" + ] + }, + "GetConfig": { + "methods": [ + "getConfig" + ] + }, + "GetFolder": { + "methods": [ + "getFolder" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "GetReleaseConfig": { + "methods": [ + "getReleaseConfig" + ] + }, + "GetRepository": { + "methods": [ + "getRepository" + ] + }, + "GetTeamFolder": { + "methods": [ + "getTeamFolder" + ] + }, + "GetWorkflowConfig": { + "methods": [ + "getWorkflowConfig" + ] + }, + "GetWorkflowInvocation": { + "methods": [ + "getWorkflowInvocation" + ] + }, + "GetWorkspace": { + "methods": [ + "getWorkspace" + ] + }, + "InstallNpmPackages": { + "methods": [ + "installNpmPackages" + ] + }, + "ListCompilationResults": { + "methods": [ + "listCompilationResults" + ] + }, + "ListReleaseConfigs": { + "methods": [ + "listReleaseConfigs" + ] + }, + "ListRepositories": { + "methods": [ + "listRepositories" + ] + }, + "ListWorkflowConfigs": { + "methods": [ + "listWorkflowConfigs" + ] + }, + "ListWorkflowInvocations": { + "methods": [ + "listWorkflowInvocations" + ] + }, + "ListWorkspaces": { + "methods": [ + "listWorkspaces" + ] + }, + "MakeDirectory": { + "methods": [ + "makeDirectory" + ] + }, + "MoveDirectory": { + "methods": [ + "moveDirectory" + ] + }, + "MoveFile": { + "methods": [ + "moveFile" + ] + }, + "MoveFolder": { + "methods": [ + "moveFolder" + ] + }, + "MoveRepository": { + "methods": [ + "moveRepository" + ] + }, + "PullGitCommits": { + "methods": [ + "pullGitCommits" + ] + }, + "PushGitCommits": { + "methods": [ + "pushGitCommits" + ] + }, + "QueryCompilationResultActions": { + "methods": [ + "queryCompilationResultActions" + ] + }, + "QueryDirectoryContents": { + "methods": [ + "queryDirectoryContents" + ] + }, + "QueryFolderContents": { + "methods": [ + "queryFolderContents" + ] + }, + "QueryRepositoryDirectoryContents": { + "methods": [ + "queryRepositoryDirectoryContents" + ] + }, + "QueryTeamFolderContents": { + "methods": [ + "queryTeamFolderContents" + ] + }, + "QueryUserRootContents": { + "methods": [ + "queryUserRootContents" + ] + }, + "QueryWorkflowInvocationActions": { + "methods": [ + "queryWorkflowInvocationActions" + ] + }, + "ReadFile": { + "methods": [ + "readFile" + ] + }, + "ReadRepositoryFile": { + "methods": [ + "readRepositoryFile" + ] + }, + "RemoveDirectory": { + "methods": [ + "removeDirectory" + ] + }, + "RemoveFile": { + "methods": [ + "removeFile" + ] + }, + "ResetWorkspaceChanges": { + "methods": [ + "resetWorkspaceChanges" + ] + }, + "SearchFiles": { + "methods": [ + "searchFiles" + ] + }, + "SearchTeamFolders": { + "methods": [ + "searchTeamFolders" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + }, + "UpdateConfig": { + "methods": [ + "updateConfig" + ] + }, + "UpdateFolder": { + "methods": [ + "updateFolder" + ] + }, + "UpdateReleaseConfig": { + "methods": [ + "updateReleaseConfig" + ] + }, + "UpdateRepository": { + "methods": [ + "updateRepository" + ] + }, + "UpdateTeamFolder": { + "methods": [ + "updateTeamFolder" + ] + }, + "UpdateWorkflowConfig": { + "methods": [ + "updateWorkflowConfig" + ] + }, + "WriteFile": { + "methods": [ + "writeFile" + ] + }, + "CancelOperation": { + "methods": [ + "cancelOperation" + ] + }, + "DeleteOperation": { + "methods": [ + "deleteOperation" + ] + }, + "GetOperation": { + "methods": [ + "getOperation" + ] + }, + "ListOperations": { + "methods": [ + "listOperations" + ] + }, + "GetLocation": { + "methods": [ + "getLocation" + ] + }, + "ListLocations": { + "methods": [ + "listLocations" + ] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/Dataform/v1beta1/src/V1beta1/resources/dataform_client_config.json b/owl-bot-staging/Dataform/v1beta1/src/V1beta1/resources/dataform_client_config.json new file mode 100644 index 000000000000..10934ededbf2 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/src/V1beta1/resources/dataform_client_config.json @@ -0,0 +1,419 @@ +{ + "interfaces": { + "google.cloud.dataform.v1beta1.Dataform": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "UNAVAILABLE" + ] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + }, + "retry_policy_1_params": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 10000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + } + }, + "methods": { + "CancelWorkflowInvocation": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CommitRepositoryChanges": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CommitWorkspaceChanges": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ComputeRepositoryAccessTokenStatus": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CreateCompilationResult": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CreateFolder": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CreateReleaseConfig": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CreateRepository": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CreateTeamFolder": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CreateWorkflowConfig": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CreateWorkflowInvocation": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CreateWorkspace": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "DeleteFolder": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "DeleteReleaseConfig": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "DeleteRepository": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "DeleteTeamFolder": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "DeleteWorkflowConfig": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "DeleteWorkflowInvocation": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "DeleteWorkspace": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "FetchFileDiff": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "FetchFileGitStatuses": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "FetchGitAheadBehind": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "FetchRemoteBranches": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "FetchRepositoryHistory": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetCompilationResult": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetConfig": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetFolder": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetIamPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetReleaseConfig": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetRepository": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetTeamFolder": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetWorkflowConfig": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetWorkflowInvocation": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetWorkspace": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "InstallNpmPackages": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListCompilationResults": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListReleaseConfigs": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListRepositories": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListWorkflowConfigs": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListWorkflowInvocations": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListWorkspaces": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "MakeDirectory": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "MoveDirectory": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "MoveFile": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "MoveFolder": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "MoveRepository": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "PullGitCommits": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "PushGitCommits": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "QueryCompilationResultActions": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "QueryDirectoryContents": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "QueryFolderContents": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "QueryRepositoryDirectoryContents": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "QueryTeamFolderContents": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "QueryUserRootContents": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "QueryWorkflowInvocationActions": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ReadFile": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ReadRepositoryFile": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "RemoveDirectory": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "RemoveFile": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ResetWorkspaceChanges": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "SearchFiles": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "SearchTeamFolders": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "SetIamPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "TestIamPermissions": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "UpdateConfig": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "UpdateFolder": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "UpdateReleaseConfig": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "UpdateRepository": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "UpdateTeamFolder": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "UpdateWorkflowConfig": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "WriteFile": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CancelOperation": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "DeleteOperation": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetOperation": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListOperations": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetLocation": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListLocations": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/Dataform/v1beta1/src/V1beta1/resources/dataform_descriptor_config.php b/owl-bot-staging/Dataform/v1beta1/src/V1beta1/resources/dataform_descriptor_config.php new file mode 100644 index 000000000000..e0d9300d3795 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/src/V1beta1/resources/dataform_descriptor_config.php @@ -0,0 +1,1138 @@ + [ + 'google.cloud.dataform.v1beta1.Dataform' => [ + 'MoveFolder' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\Dataform\V1beta1\MoveFolderMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'MoveRepository' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\Dataform\V1beta1\MoveRepositoryMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'CancelWorkflowInvocation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\CancelWorkflowInvocationResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'CommitRepositoryChanges' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\CommitRepositoryChangesResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'CommitWorkspaceChanges' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\CommitWorkspaceChangesResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ComputeRepositoryAccessTokenStatus' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\ComputeRepositoryAccessTokenStatusResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'CreateCompilationResult' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\CompilationResult', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateFolder' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\Folder', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateReleaseConfig' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\ReleaseConfig', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateRepository' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\Repository', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateTeamFolder' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\TeamFolder', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateWorkflowConfig' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\WorkflowConfig', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateWorkflowInvocation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\WorkflowInvocation', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateWorkspace' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\Workspace', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteFolder' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteReleaseConfig' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteRepository' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteTeamFolder' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteWorkflowConfig' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteWorkflowInvocation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteWorkspace' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'FetchFileDiff' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\FetchFileDiffResponse', + 'headerParams' => [ + [ + 'keyName' => 'workspace', + 'fieldAccessors' => [ + 'getWorkspace', + ], + ], + ], + ], + 'FetchFileGitStatuses' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\FetchFileGitStatusesResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'FetchGitAheadBehind' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\FetchGitAheadBehindResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'FetchRemoteBranches' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\FetchRemoteBranchesResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'FetchRepositoryHistory' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getCommits', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\FetchRepositoryHistoryResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetCompilationResult' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\CompilationResult', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetConfig' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\Config', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetFolder' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\Folder', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + ], + 'GetReleaseConfig' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\ReleaseConfig', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetRepository' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\Repository', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetTeamFolder' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\TeamFolder', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetWorkflowConfig' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\WorkflowConfig', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetWorkflowInvocation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\WorkflowInvocation', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetWorkspace' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\Workspace', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'InstallNpmPackages' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\InstallNpmPackagesResponse', + 'headerParams' => [ + [ + 'keyName' => 'workspace', + 'fieldAccessors' => [ + 'getWorkspace', + ], + ], + ], + ], + 'ListCompilationResults' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getCompilationResults', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\ListCompilationResultsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListReleaseConfigs' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getReleaseConfigs', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\ListReleaseConfigsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListRepositories' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getRepositories', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\ListRepositoriesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListWorkflowConfigs' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getWorkflowConfigs', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\ListWorkflowConfigsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListWorkflowInvocations' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getWorkflowInvocations', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\ListWorkflowInvocationsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListWorkspaces' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getWorkspaces', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\ListWorkspacesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'MakeDirectory' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\MakeDirectoryResponse', + 'headerParams' => [ + [ + 'keyName' => 'workspace', + 'fieldAccessors' => [ + 'getWorkspace', + ], + ], + ], + ], + 'MoveDirectory' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\MoveDirectoryResponse', + 'headerParams' => [ + [ + 'keyName' => 'workspace', + 'fieldAccessors' => [ + 'getWorkspace', + ], + ], + ], + ], + 'MoveFile' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\MoveFileResponse', + 'headerParams' => [ + [ + 'keyName' => 'workspace', + 'fieldAccessors' => [ + 'getWorkspace', + ], + ], + ], + ], + 'PullGitCommits' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\PullGitCommitsResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'PushGitCommits' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\PushGitCommitsResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'QueryCompilationResultActions' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getCompilationResultActions', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\QueryCompilationResultActionsResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'QueryDirectoryContents' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getDirectoryEntries', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\QueryDirectoryContentsResponse', + 'headerParams' => [ + [ + 'keyName' => 'workspace', + 'fieldAccessors' => [ + 'getWorkspace', + ], + ], + ], + ], + 'QueryFolderContents' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getEntries', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\QueryFolderContentsResponse', + 'headerParams' => [ + [ + 'keyName' => 'folder', + 'fieldAccessors' => [ + 'getFolder', + ], + ], + ], + ], + 'QueryRepositoryDirectoryContents' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getDirectoryEntries', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\QueryRepositoryDirectoryContentsResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'QueryTeamFolderContents' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getEntries', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\QueryTeamFolderContentsResponse', + 'headerParams' => [ + [ + 'keyName' => 'team_folder', + 'fieldAccessors' => [ + 'getTeamFolder', + ], + ], + ], + ], + 'QueryUserRootContents' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getEntries', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\QueryUserRootContentsResponse', + 'headerParams' => [ + [ + 'keyName' => 'location', + 'fieldAccessors' => [ + 'getLocation', + ], + ], + ], + ], + 'QueryWorkflowInvocationActions' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getWorkflowInvocationActions', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\QueryWorkflowInvocationActionsResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ReadFile' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\ReadFileResponse', + 'headerParams' => [ + [ + 'keyName' => 'workspace', + 'fieldAccessors' => [ + 'getWorkspace', + ], + ], + ], + ], + 'ReadRepositoryFile' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\ReadRepositoryFileResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'RemoveDirectory' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\RemoveDirectoryResponse', + 'headerParams' => [ + [ + 'keyName' => 'workspace', + 'fieldAccessors' => [ + 'getWorkspace', + ], + ], + ], + ], + 'RemoveFile' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\RemoveFileResponse', + 'headerParams' => [ + [ + 'keyName' => 'workspace', + 'fieldAccessors' => [ + 'getWorkspace', + ], + ], + ], + ], + 'ResetWorkspaceChanges' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\ResetWorkspaceChangesResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'SearchFiles' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getSearchResults', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\SearchFilesResponse', + 'headerParams' => [ + [ + 'keyName' => 'workspace', + 'fieldAccessors' => [ + 'getWorkspace', + ], + ], + ], + ], + 'SearchTeamFolders' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getResults', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\SearchTeamFoldersResponse', + 'headerParams' => [ + [ + 'keyName' => 'location', + 'fieldAccessors' => [ + 'getLocation', + ], + ], + ], + ], + 'SetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + ], + 'TestIamPermissions' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + ], + 'UpdateConfig' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\Config', + 'headerParams' => [ + [ + 'keyName' => 'config.name', + 'fieldAccessors' => [ + 'getConfig', + 'getName', + ], + ], + ], + ], + 'UpdateFolder' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\Folder', + 'headerParams' => [ + [ + 'keyName' => 'folder.name', + 'fieldAccessors' => [ + 'getFolder', + 'getName', + ], + ], + ], + ], + 'UpdateReleaseConfig' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\ReleaseConfig', + 'headerParams' => [ + [ + 'keyName' => 'release_config.name', + 'fieldAccessors' => [ + 'getReleaseConfig', + 'getName', + ], + ], + ], + ], + 'UpdateRepository' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\Repository', + 'headerParams' => [ + [ + 'keyName' => 'repository.name', + 'fieldAccessors' => [ + 'getRepository', + 'getName', + ], + ], + ], + ], + 'UpdateTeamFolder' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\TeamFolder', + 'headerParams' => [ + [ + 'keyName' => 'team_folder.name', + 'fieldAccessors' => [ + 'getTeamFolder', + 'getName', + ], + ], + ], + ], + 'UpdateWorkflowConfig' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\WorkflowConfig', + 'headerParams' => [ + [ + 'keyName' => 'workflow_config.name', + 'fieldAccessors' => [ + 'getWorkflowConfig', + 'getName', + ], + ], + ], + ], + 'WriteFile' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\WriteFileResponse', + 'headerParams' => [ + [ + 'keyName' => 'workspace', + 'fieldAccessors' => [ + 'getWorkspace', + ], + ], + ], + ], + 'CancelOperation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + 'interfaceOverride' => 'google.longrunning.Operations', + ], + 'DeleteOperation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + 'interfaceOverride' => 'google.longrunning.Operations', + ], + 'GetOperation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\LongRunning\Operation', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + 'interfaceOverride' => 'google.longrunning.Operations', + ], + 'ListOperations' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getOperations', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\LongRunning\ListOperationsResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + 'interfaceOverride' => 'google.longrunning.Operations', + ], + 'GetLocation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Location\Location', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'ListLocations' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getLocations', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'templateMap' => [ + 'compilationResult' => 'projects/{project}/locations/{location}/repositories/{repository}/compilationResults/{compilation_result}', + 'config' => 'projects/{project}/locations/{location}/config', + 'cryptoKey' => 'projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}', + 'cryptoKeyVersion' => 'projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}', + 'folder' => 'projects/{project}/locations/{location}/folders/{folder}', + 'location' => 'projects/{project}/locations/{location}', + 'notebookRuntimeTemplate' => 'projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}', + 'releaseConfig' => 'projects/{project}/locations/{location}/repositories/{repository}/releaseConfigs/{release_config}', + 'repository' => 'projects/{project}/locations/{location}/repositories/{repository}', + 'secretVersion' => 'projects/{project}/secrets/{secret}/versions/{version}', + 'teamFolder' => 'projects/{project}/locations/{location}/teamFolders/{team_folder}', + 'workflowConfig' => 'projects/{project}/locations/{location}/repositories/{repository}/workflowConfigs/{workflow_config}', + 'workflowInvocation' => 'projects/{project}/locations/{location}/repositories/{repository}/workflowInvocations/{workflow_invocation}', + 'workspace' => 'projects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace}', + ], + ], + ], +]; diff --git a/owl-bot-staging/Dataform/v1beta1/src/V1beta1/resources/dataform_rest_client_config.php b/owl-bot-staging/Dataform/v1beta1/src/V1beta1/resources/dataform_rest_client_config.php new file mode 100644 index 000000000000..688e1b79d9f1 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/src/V1beta1/resources/dataform_rest_client_config.php @@ -0,0 +1,978 @@ + [ + 'google.cloud.dataform.v1beta1.Dataform' => [ + 'CancelWorkflowInvocation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'CommitRepositoryChanges' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*}:commit', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'CommitWorkspaceChanges' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}:commit', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ComputeRepositoryAccessTokenStatus' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*}:computeAccessTokenStatus', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'CreateCompilationResult' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta1/{parent=projects/*/locations/*/repositories/*}/compilationResults', + 'body' => 'compilation_result', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateFolder' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta1/{parent=projects/*/locations/*}/folders', + 'body' => 'folder', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateReleaseConfig' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta1/{parent=projects/*/locations/*/repositories/*}/releaseConfigs', + 'body' => 'release_config', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'release_config_id', + ], + ], + 'CreateRepository' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta1/{parent=projects/*/locations/*}/repositories', + 'body' => 'repository', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'repository_id', + ], + ], + 'CreateTeamFolder' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta1/{parent=projects/*/locations/*}/teamFolders', + 'body' => 'team_folder', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateWorkflowConfig' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta1/{parent=projects/*/locations/*/repositories/*}/workflowConfigs', + 'body' => 'workflow_config', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'workflow_config_id', + ], + ], + 'CreateWorkflowInvocation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta1/{parent=projects/*/locations/*/repositories/*}/workflowInvocations', + 'body' => 'workflow_invocation', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateWorkspace' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta1/{parent=projects/*/locations/*/repositories/*}/workspaces', + 'body' => 'workspace', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'workspace_id', + ], + ], + 'DeleteFolder' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/folders/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteReleaseConfig' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*/releaseConfigs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteRepository' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteTeamFolder' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/teamFolders/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteWorkflowConfig' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteWorkflowInvocation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteWorkspace' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'FetchFileDiff' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:fetchFileDiff', + 'placeholders' => [ + 'workspace' => [ + 'getters' => [ + 'getWorkspace', + ], + ], + ], + ], + 'FetchFileGitStatuses' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}:fetchFileGitStatuses', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'FetchGitAheadBehind' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}:fetchGitAheadBehind', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'FetchRemoteBranches' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*}:fetchRemoteBranches', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'FetchRepositoryHistory' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*}:fetchHistory', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetCompilationResult' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*/compilationResults/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetConfig' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/config}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetFolder' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/folders/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetIamPolicy' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta1/{resource=projects/*/locations/*/repositories/*}:getIamPolicy', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1beta1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1beta1/{resource=projects/*/locations/*/folders/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1beta1/{resource=projects/*/locations/*/teamFolders/*}:getIamPolicy', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'GetReleaseConfig' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*/releaseConfigs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetRepository' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetTeamFolder' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/teamFolders/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetWorkflowConfig' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetWorkflowInvocation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetWorkspace' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'InstallNpmPackages' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:installNpmPackages', + 'body' => '*', + 'placeholders' => [ + 'workspace' => [ + 'getters' => [ + 'getWorkspace', + ], + ], + ], + ], + 'ListCompilationResults' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta1/{parent=projects/*/locations/*/repositories/*}/compilationResults', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListReleaseConfigs' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta1/{parent=projects/*/locations/*/repositories/*}/releaseConfigs', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListRepositories' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta1/{parent=projects/*/locations/*}/repositories', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListWorkflowConfigs' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta1/{parent=projects/*/locations/*/repositories/*}/workflowConfigs', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListWorkflowInvocations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta1/{parent=projects/*/locations/*/repositories/*}/workflowInvocations', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListWorkspaces' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta1/{parent=projects/*/locations/*/repositories/*}/workspaces', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'MakeDirectory' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:makeDirectory', + 'body' => '*', + 'placeholders' => [ + 'workspace' => [ + 'getters' => [ + 'getWorkspace', + ], + ], + ], + ], + 'MoveDirectory' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:moveDirectory', + 'body' => '*', + 'placeholders' => [ + 'workspace' => [ + 'getters' => [ + 'getWorkspace', + ], + ], + ], + ], + 'MoveFile' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:moveFile', + 'body' => '*', + 'placeholders' => [ + 'workspace' => [ + 'getters' => [ + 'getWorkspace', + ], + ], + ], + ], + 'MoveFolder' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/folders/*}:move', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'MoveRepository' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*}:move', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'PullGitCommits' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}:pull', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'PushGitCommits' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}:push', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'QueryCompilationResultActions' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*/compilationResults/*}:query', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'QueryDirectoryContents' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:queryDirectoryContents', + 'placeholders' => [ + 'workspace' => [ + 'getters' => [ + 'getWorkspace', + ], + ], + ], + ], + 'QueryFolderContents' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta1/{folder=projects/*/locations/*/folders/*}:queryFolderContents', + 'placeholders' => [ + 'folder' => [ + 'getters' => [ + 'getFolder', + ], + ], + ], + ], + 'QueryRepositoryDirectoryContents' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*}:queryDirectoryContents', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'QueryTeamFolderContents' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta1/{team_folder=projects/*/locations/*/teamFolders/*}:queryContents', + 'placeholders' => [ + 'team_folder' => [ + 'getters' => [ + 'getTeamFolder', + ], + ], + ], + ], + 'QueryUserRootContents' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta1/{location=projects/*/locations/*}:queryUserRootContents', + 'placeholders' => [ + 'location' => [ + 'getters' => [ + 'getLocation', + ], + ], + ], + ], + 'QueryWorkflowInvocationActions' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}:query', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ReadFile' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:readFile', + 'placeholders' => [ + 'workspace' => [ + 'getters' => [ + 'getWorkspace', + ], + ], + ], + ], + 'ReadRepositoryFile' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*}:readFile', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'RemoveDirectory' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:removeDirectory', + 'body' => '*', + 'placeholders' => [ + 'workspace' => [ + 'getters' => [ + 'getWorkspace', + ], + ], + ], + ], + 'RemoveFile' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:removeFile', + 'body' => '*', + 'placeholders' => [ + 'workspace' => [ + 'getters' => [ + 'getWorkspace', + ], + ], + ], + ], + 'ResetWorkspaceChanges' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}:reset', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'SearchFiles' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:searchFiles', + 'placeholders' => [ + 'workspace' => [ + 'getters' => [ + 'getWorkspace', + ], + ], + ], + ], + 'SearchTeamFolders' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta1/{location=projects/*/locations/*}/teamFolders:search', + 'placeholders' => [ + 'location' => [ + 'getters' => [ + 'getLocation', + ], + ], + ], + ], + 'SetIamPolicy' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta1/{resource=projects/*/locations/*/repositories/*}:setIamPolicy', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1beta1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1beta1/{resource=projects/*/locations/*/folders/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1beta1/{resource=projects/*/locations/*/teamFolders/*}:setIamPolicy', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'TestIamPermissions' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta1/{resource=projects/*/locations/*/repositories/*}:testIamPermissions', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1beta1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1beta1/{resource=projects/*/locations/*/folders/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1beta1/{resource=projects/*/locations/*/teamFolders/*}:testIamPermissions', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'UpdateConfig' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1beta1/{config.name=projects/*/locations/*/config}', + 'body' => 'config', + 'placeholders' => [ + 'config.name' => [ + 'getters' => [ + 'getConfig', + 'getName', + ], + ], + ], + ], + 'UpdateFolder' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1beta1/{folder.name=projects/*/locations/*/folders/*}', + 'body' => 'folder', + 'placeholders' => [ + 'folder.name' => [ + 'getters' => [ + 'getFolder', + 'getName', + ], + ], + ], + ], + 'UpdateReleaseConfig' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1beta1/{release_config.name=projects/*/locations/*/repositories/*/releaseConfigs/*}', + 'body' => 'release_config', + 'placeholders' => [ + 'release_config.name' => [ + 'getters' => [ + 'getReleaseConfig', + 'getName', + ], + ], + ], + ], + 'UpdateRepository' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1beta1/{repository.name=projects/*/locations/*/repositories/*}', + 'body' => 'repository', + 'placeholders' => [ + 'repository.name' => [ + 'getters' => [ + 'getRepository', + 'getName', + ], + ], + ], + ], + 'UpdateTeamFolder' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1beta1/{team_folder.name=projects/*/locations/*/teamFolders/*}', + 'body' => 'team_folder', + 'placeholders' => [ + 'team_folder.name' => [ + 'getters' => [ + 'getTeamFolder', + 'getName', + ], + ], + ], + ], + 'UpdateWorkflowConfig' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1beta1/{workflow_config.name=projects/*/locations/*/repositories/*/workflowConfigs/*}', + 'body' => 'workflow_config', + 'placeholders' => [ + 'workflow_config.name' => [ + 'getters' => [ + 'getWorkflowConfig', + 'getName', + ], + ], + ], + ], + 'WriteFile' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:writeFile', + 'body' => '*', + 'placeholders' => [ + 'workspace' => [ + 'getters' => [ + 'getWorkspace', + ], + ], + ], + ], + ], + 'google.cloud.location.Locations' => [ + 'GetLocation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListLocations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta1/{name=projects/*}/locations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/operations/*}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*}/operations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/Dataform/v1beta1/tests/Unit/V1beta1/Client/DataformClientTest.php b/owl-bot-staging/Dataform/v1beta1/tests/Unit/V1beta1/Client/DataformClientTest.php new file mode 100644 index 000000000000..698c72e44839 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/tests/Unit/V1beta1/Client/DataformClientTest.php @@ -0,0 +1,5798 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return DataformClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new DataformClient($options); + } + + /** @test */ + public function cancelWorkflowInvocationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new CancelWorkflowInvocationResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->workflowInvocationName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_INVOCATION]'); + $request = (new CancelWorkflowInvocationRequest()) + ->setName($formattedName); + $response = $gapicClient->cancelWorkflowInvocation($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/CancelWorkflowInvocation', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function cancelWorkflowInvocationExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->workflowInvocationName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_INVOCATION]'); + $request = (new CancelWorkflowInvocationRequest()) + ->setName($formattedName); + try { + $gapicClient->cancelWorkflowInvocation($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function commitRepositoryChangesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $commitSha = 'commitSha1018601892'; + $expectedResponse = new CommitRepositoryChangesResponse(); + $expectedResponse->setCommitSha($commitSha); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $commitMetadata = new CommitMetadata(); + $commitMetadataAuthor = new CommitAuthor(); + $authorName = 'authorName-1501539658'; + $commitMetadataAuthor->setName($authorName); + $authorEmailAddress = 'authorEmailAddress-6398493'; + $commitMetadataAuthor->setEmailAddress($authorEmailAddress); + $commitMetadata->setAuthor($commitMetadataAuthor); + $request = (new CommitRepositoryChangesRequest()) + ->setName($formattedName) + ->setCommitMetadata($commitMetadata); + $response = $gapicClient->commitRepositoryChanges($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/CommitRepositoryChanges', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualRequestObject->getCommitMetadata(); + $this->assertProtobufEquals($commitMetadata, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function commitRepositoryChangesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $commitMetadata = new CommitMetadata(); + $commitMetadataAuthor = new CommitAuthor(); + $authorName = 'authorName-1501539658'; + $commitMetadataAuthor->setName($authorName); + $authorEmailAddress = 'authorEmailAddress-6398493'; + $commitMetadataAuthor->setEmailAddress($authorEmailAddress); + $commitMetadata->setAuthor($commitMetadataAuthor); + $request = (new CommitRepositoryChangesRequest()) + ->setName($formattedName) + ->setCommitMetadata($commitMetadata); + try { + $gapicClient->commitRepositoryChanges($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function commitWorkspaceChangesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new CommitWorkspaceChangesResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $author = new CommitAuthor(); + $authorName = 'authorName-1501539658'; + $author->setName($authorName); + $authorEmailAddress = 'authorEmailAddress-6398493'; + $author->setEmailAddress($authorEmailAddress); + $request = (new CommitWorkspaceChangesRequest()) + ->setName($formattedName) + ->setAuthor($author); + $response = $gapicClient->commitWorkspaceChanges($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/CommitWorkspaceChanges', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualRequestObject->getAuthor(); + $this->assertProtobufEquals($author, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function commitWorkspaceChangesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $author = new CommitAuthor(); + $authorName = 'authorName-1501539658'; + $author->setName($authorName); + $authorEmailAddress = 'authorEmailAddress-6398493'; + $author->setEmailAddress($authorEmailAddress); + $request = (new CommitWorkspaceChangesRequest()) + ->setName($formattedName) + ->setAuthor($author); + try { + $gapicClient->commitWorkspaceChanges($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function computeRepositoryAccessTokenStatusTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new ComputeRepositoryAccessTokenStatusResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new ComputeRepositoryAccessTokenStatusRequest()) + ->setName($formattedName); + $response = $gapicClient->computeRepositoryAccessTokenStatus($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/ComputeRepositoryAccessTokenStatus', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function computeRepositoryAccessTokenStatusExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new ComputeRepositoryAccessTokenStatusRequest()) + ->setName($formattedName); + try { + $gapicClient->computeRepositoryAccessTokenStatus($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createCompilationResultTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $gitCommitish = 'gitCommitish-459981894'; + $name = 'name3373707'; + $resolvedGitCommitSha = 'resolvedGitCommitSha-1974209704'; + $dataformCoreVersion = 'dataformCoreVersion1918089577'; + $internalMetadata = 'internalMetadata-1087755663'; + $expectedResponse = new CompilationResult(); + $expectedResponse->setGitCommitish($gitCommitish); + $expectedResponse->setName($name); + $expectedResponse->setResolvedGitCommitSha($resolvedGitCommitSha); + $expectedResponse->setDataformCoreVersion($dataformCoreVersion); + $expectedResponse->setInternalMetadata($internalMetadata); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $compilationResult = new CompilationResult(); + $request = (new CreateCompilationResultRequest()) + ->setParent($formattedParent) + ->setCompilationResult($compilationResult); + $response = $gapicClient->createCompilationResult($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/CreateCompilationResult', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getCompilationResult(); + $this->assertProtobufEquals($compilationResult, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createCompilationResultExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $compilationResult = new CompilationResult(); + $request = (new CreateCompilationResultRequest()) + ->setParent($formattedParent) + ->setCompilationResult($compilationResult); + try { + $gapicClient->createCompilationResult($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createFolderTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $containingFolder = 'containingFolder2137746239'; + $teamFolderName = 'teamFolderName-1375688486'; + $internalMetadata = 'internalMetadata-1087755663'; + $creatorIamPrincipal = 'creatorIamPrincipal866086897'; + $expectedResponse = new Folder(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setContainingFolder($containingFolder); + $expectedResponse->setTeamFolderName($teamFolderName); + $expectedResponse->setInternalMetadata($internalMetadata); + $expectedResponse->setCreatorIamPrincipal($creatorIamPrincipal); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $folder = new Folder(); + $folderDisplayName = 'folderDisplayName1703145759'; + $folder->setDisplayName($folderDisplayName); + $request = (new CreateFolderRequest()) + ->setParent($formattedParent) + ->setFolder($folder); + $response = $gapicClient->createFolder($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/CreateFolder', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getFolder(); + $this->assertProtobufEquals($folder, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createFolderExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $folder = new Folder(); + $folderDisplayName = 'folderDisplayName1703145759'; + $folder->setDisplayName($folderDisplayName); + $request = (new CreateFolderRequest()) + ->setParent($formattedParent) + ->setFolder($folder); + try { + $gapicClient->createFolder($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createReleaseConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $gitCommitish = 'gitCommitish-459981894'; + $cronSchedule = 'cronSchedule206244136'; + $timeZone = 'timeZone36848094'; + $releaseCompilationResult = 'releaseCompilationResult1831489873'; + $disabled = true; + $internalMetadata = 'internalMetadata-1087755663'; + $expectedResponse = new ReleaseConfig(); + $expectedResponse->setName($name); + $expectedResponse->setGitCommitish($gitCommitish); + $expectedResponse->setCronSchedule($cronSchedule); + $expectedResponse->setTimeZone($timeZone); + $expectedResponse->setReleaseCompilationResult($releaseCompilationResult); + $expectedResponse->setDisabled($disabled); + $expectedResponse->setInternalMetadata($internalMetadata); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $releaseConfig = new ReleaseConfig(); + $releaseConfigGitCommitish = 'releaseConfigGitCommitish1714987262'; + $releaseConfig->setGitCommitish($releaseConfigGitCommitish); + $releaseConfigId = 'releaseConfigId-113371904'; + $request = (new CreateReleaseConfigRequest()) + ->setParent($formattedParent) + ->setReleaseConfig($releaseConfig) + ->setReleaseConfigId($releaseConfigId); + $response = $gapicClient->createReleaseConfig($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/CreateReleaseConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getReleaseConfig(); + $this->assertProtobufEquals($releaseConfig, $actualValue); + $actualValue = $actualRequestObject->getReleaseConfigId(); + $this->assertProtobufEquals($releaseConfigId, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createReleaseConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $releaseConfig = new ReleaseConfig(); + $releaseConfigGitCommitish = 'releaseConfigGitCommitish1714987262'; + $releaseConfig->setGitCommitish($releaseConfigGitCommitish); + $releaseConfigId = 'releaseConfigId-113371904'; + $request = (new CreateReleaseConfigRequest()) + ->setParent($formattedParent) + ->setReleaseConfig($releaseConfig) + ->setReleaseConfigId($releaseConfigId); + try { + $gapicClient->createReleaseConfig($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createRepositoryTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $containingFolder = 'containingFolder2137746239'; + $teamFolderName = 'teamFolderName-1375688486'; + $displayName = 'displayName1615086568'; + $npmrcEnvironmentVariablesSecretVersion = 'npmrcEnvironmentVariablesSecretVersion-2118517056'; + $setAuthenticatedUserAdmin = true; + $serviceAccount = 'serviceAccount-1948028253'; + $kmsKeyName = 'kmsKeyName2094986649'; + $internalMetadata = 'internalMetadata-1087755663'; + $expectedResponse = new Repository(); + $expectedResponse->setName($name); + $expectedResponse->setContainingFolder($containingFolder); + $expectedResponse->setTeamFolderName($teamFolderName); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setNpmrcEnvironmentVariablesSecretVersion($npmrcEnvironmentVariablesSecretVersion); + $expectedResponse->setSetAuthenticatedUserAdmin($setAuthenticatedUserAdmin); + $expectedResponse->setServiceAccount($serviceAccount); + $expectedResponse->setKmsKeyName($kmsKeyName); + $expectedResponse->setInternalMetadata($internalMetadata); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $repository = new Repository(); + $repositoryId = 'repositoryId1101683248'; + $request = (new CreateRepositoryRequest()) + ->setParent($formattedParent) + ->setRepository($repository) + ->setRepositoryId($repositoryId); + $response = $gapicClient->createRepository($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/CreateRepository', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRepository(); + $this->assertProtobufEquals($repository, $actualValue); + $actualValue = $actualRequestObject->getRepositoryId(); + $this->assertProtobufEquals($repositoryId, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createRepositoryExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $repository = new Repository(); + $repositoryId = 'repositoryId1101683248'; + $request = (new CreateRepositoryRequest()) + ->setParent($formattedParent) + ->setRepository($repository) + ->setRepositoryId($repositoryId); + try { + $gapicClient->createRepository($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createTeamFolderTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $internalMetadata = 'internalMetadata-1087755663'; + $creatorIamPrincipal = 'creatorIamPrincipal866086897'; + $expectedResponse = new TeamFolder(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setInternalMetadata($internalMetadata); + $expectedResponse->setCreatorIamPrincipal($creatorIamPrincipal); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $teamFolder = new TeamFolder(); + $teamFolderDisplayName = 'teamFolderDisplayName136139842'; + $teamFolder->setDisplayName($teamFolderDisplayName); + $request = (new CreateTeamFolderRequest()) + ->setParent($formattedParent) + ->setTeamFolder($teamFolder); + $response = $gapicClient->createTeamFolder($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/CreateTeamFolder', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getTeamFolder(); + $this->assertProtobufEquals($teamFolder, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createTeamFolderExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $teamFolder = new TeamFolder(); + $teamFolderDisplayName = 'teamFolderDisplayName136139842'; + $teamFolder->setDisplayName($teamFolderDisplayName); + $request = (new CreateTeamFolderRequest()) + ->setParent($formattedParent) + ->setTeamFolder($teamFolder); + try { + $gapicClient->createTeamFolder($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createWorkflowConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $releaseConfig = 'releaseConfig582587002'; + $cronSchedule = 'cronSchedule206244136'; + $timeZone = 'timeZone36848094'; + $disabled = true; + $internalMetadata = 'internalMetadata-1087755663'; + $expectedResponse = new WorkflowConfig(); + $expectedResponse->setName($name); + $expectedResponse->setReleaseConfig($releaseConfig); + $expectedResponse->setCronSchedule($cronSchedule); + $expectedResponse->setTimeZone($timeZone); + $expectedResponse->setDisabled($disabled); + $expectedResponse->setInternalMetadata($internalMetadata); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $workflowConfig = new WorkflowConfig(); + $workflowConfigReleaseConfig = $gapicClient->releaseConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[RELEASE_CONFIG]'); + $workflowConfig->setReleaseConfig($workflowConfigReleaseConfig); + $workflowConfigId = 'workflowConfigId-60129608'; + $request = (new CreateWorkflowConfigRequest()) + ->setParent($formattedParent) + ->setWorkflowConfig($workflowConfig) + ->setWorkflowConfigId($workflowConfigId); + $response = $gapicClient->createWorkflowConfig($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/CreateWorkflowConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getWorkflowConfig(); + $this->assertProtobufEquals($workflowConfig, $actualValue); + $actualValue = $actualRequestObject->getWorkflowConfigId(); + $this->assertProtobufEquals($workflowConfigId, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createWorkflowConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $workflowConfig = new WorkflowConfig(); + $workflowConfigReleaseConfig = $gapicClient->releaseConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[RELEASE_CONFIG]'); + $workflowConfig->setReleaseConfig($workflowConfigReleaseConfig); + $workflowConfigId = 'workflowConfigId-60129608'; + $request = (new CreateWorkflowConfigRequest()) + ->setParent($formattedParent) + ->setWorkflowConfig($workflowConfig) + ->setWorkflowConfigId($workflowConfigId); + try { + $gapicClient->createWorkflowConfig($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createWorkflowInvocationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $compilationResult = 'compilationResult-2035984871'; + $name = 'name3373707'; + $resolvedCompilationResult = 'resolvedCompilationResult-2110280256'; + $internalMetadata = 'internalMetadata-1087755663'; + $expectedResponse = new WorkflowInvocation(); + $expectedResponse->setCompilationResult($compilationResult); + $expectedResponse->setName($name); + $expectedResponse->setResolvedCompilationResult($resolvedCompilationResult); + $expectedResponse->setInternalMetadata($internalMetadata); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $workflowInvocation = new WorkflowInvocation(); + $request = (new CreateWorkflowInvocationRequest()) + ->setParent($formattedParent) + ->setWorkflowInvocation($workflowInvocation); + $response = $gapicClient->createWorkflowInvocation($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/CreateWorkflowInvocation', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getWorkflowInvocation(); + $this->assertProtobufEquals($workflowInvocation, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createWorkflowInvocationExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $workflowInvocation = new WorkflowInvocation(); + $request = (new CreateWorkflowInvocationRequest()) + ->setParent($formattedParent) + ->setWorkflowInvocation($workflowInvocation); + try { + $gapicClient->createWorkflowInvocation($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createWorkspaceTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $internalMetadata = 'internalMetadata-1087755663'; + $disableMoves = false; + $expectedResponse = new Workspace(); + $expectedResponse->setName($name); + $expectedResponse->setInternalMetadata($internalMetadata); + $expectedResponse->setDisableMoves($disableMoves); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $workspace = new Workspace(); + $workspaceId = 'workspaceId1578483973'; + $request = (new CreateWorkspaceRequest()) + ->setParent($formattedParent) + ->setWorkspace($workspace) + ->setWorkspaceId($workspaceId); + $response = $gapicClient->createWorkspace($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/CreateWorkspace', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getWorkspace(); + $this->assertProtobufEquals($workspace, $actualValue); + $actualValue = $actualRequestObject->getWorkspaceId(); + $this->assertProtobufEquals($workspaceId, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createWorkspaceExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $workspace = new Workspace(); + $workspaceId = 'workspaceId1578483973'; + $request = (new CreateWorkspaceRequest()) + ->setParent($formattedParent) + ->setWorkspace($workspace) + ->setWorkspaceId($workspaceId); + try { + $gapicClient->createWorkspace($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteFolderTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); + $request = (new DeleteFolderRequest()) + ->setName($formattedName); + $gapicClient->deleteFolder($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/DeleteFolder', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteFolderExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); + $request = (new DeleteFolderRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteFolder($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteReleaseConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->releaseConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[RELEASE_CONFIG]'); + $request = (new DeleteReleaseConfigRequest()) + ->setName($formattedName); + $gapicClient->deleteReleaseConfig($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/DeleteReleaseConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteReleaseConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->releaseConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[RELEASE_CONFIG]'); + $request = (new DeleteReleaseConfigRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteReleaseConfig($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteRepositoryTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new DeleteRepositoryRequest()) + ->setName($formattedName); + $gapicClient->deleteRepository($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/DeleteRepository', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteRepositoryExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new DeleteRepositoryRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteRepository($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteTeamFolderTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->teamFolderName('[PROJECT]', '[LOCATION]', '[TEAM_FOLDER]'); + $request = (new DeleteTeamFolderRequest()) + ->setName($formattedName); + $gapicClient->deleteTeamFolder($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/DeleteTeamFolder', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteTeamFolderExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->teamFolderName('[PROJECT]', '[LOCATION]', '[TEAM_FOLDER]'); + $request = (new DeleteTeamFolderRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteTeamFolder($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteWorkflowConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->workflowConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_CONFIG]'); + $request = (new DeleteWorkflowConfigRequest()) + ->setName($formattedName); + $gapicClient->deleteWorkflowConfig($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/DeleteWorkflowConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteWorkflowConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->workflowConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_CONFIG]'); + $request = (new DeleteWorkflowConfigRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteWorkflowConfig($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteWorkflowInvocationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->workflowInvocationName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_INVOCATION]'); + $request = (new DeleteWorkflowInvocationRequest()) + ->setName($formattedName); + $gapicClient->deleteWorkflowInvocation($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/DeleteWorkflowInvocation', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteWorkflowInvocationExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->workflowInvocationName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_INVOCATION]'); + $request = (new DeleteWorkflowInvocationRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteWorkflowInvocation($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteWorkspaceTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new DeleteWorkspaceRequest()) + ->setName($formattedName); + $gapicClient->deleteWorkspace($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/DeleteWorkspace', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteWorkspaceExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new DeleteWorkspaceRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteWorkspace($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function fetchFileDiffTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $formattedDiff = 'formattedDiff-1687410264'; + $expectedResponse = new FetchFileDiffResponse(); + $expectedResponse->setFormattedDiff($formattedDiff); + $transport->addResponse($expectedResponse); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $path = 'path3433509'; + $request = (new FetchFileDiffRequest()) + ->setWorkspace($formattedWorkspace) + ->setPath($path); + $response = $gapicClient->fetchFileDiff($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/FetchFileDiff', $actualFuncCall); + $actualValue = $actualRequestObject->getWorkspace(); + $this->assertProtobufEquals($formattedWorkspace, $actualValue); + $actualValue = $actualRequestObject->getPath(); + $this->assertProtobufEquals($path, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function fetchFileDiffExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $path = 'path3433509'; + $request = (new FetchFileDiffRequest()) + ->setWorkspace($formattedWorkspace) + ->setPath($path); + try { + $gapicClient->fetchFileDiff($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function fetchFileGitStatusesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new FetchFileGitStatusesResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new FetchFileGitStatusesRequest()) + ->setName($formattedName); + $response = $gapicClient->fetchFileGitStatuses($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/FetchFileGitStatuses', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function fetchFileGitStatusesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new FetchFileGitStatusesRequest()) + ->setName($formattedName); + try { + $gapicClient->fetchFileGitStatuses($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function fetchGitAheadBehindTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $commitsAhead = 1216483806; + $commitsBehind = 917751619; + $expectedResponse = new FetchGitAheadBehindResponse(); + $expectedResponse->setCommitsAhead($commitsAhead); + $expectedResponse->setCommitsBehind($commitsBehind); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new FetchGitAheadBehindRequest()) + ->setName($formattedName); + $response = $gapicClient->fetchGitAheadBehind($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/FetchGitAheadBehind', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function fetchGitAheadBehindExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new FetchGitAheadBehindRequest()) + ->setName($formattedName); + try { + $gapicClient->fetchGitAheadBehind($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function fetchRemoteBranchesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new FetchRemoteBranchesResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new FetchRemoteBranchesRequest()) + ->setName($formattedName); + $response = $gapicClient->fetchRemoteBranches($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/FetchRemoteBranches', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function fetchRemoteBranchesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new FetchRemoteBranchesRequest()) + ->setName($formattedName); + try { + $gapicClient->fetchRemoteBranches($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function fetchRepositoryHistoryTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $commitsElement = new CommitLogEntry(); + $commits = [ + $commitsElement, + ]; + $expectedResponse = new FetchRepositoryHistoryResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setCommits($commits); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new FetchRepositoryHistoryRequest()) + ->setName($formattedName); + $response = $gapicClient->fetchRepositoryHistory($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getCommits()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/FetchRepositoryHistory', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function fetchRepositoryHistoryExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new FetchRepositoryHistoryRequest()) + ->setName($formattedName); + try { + $gapicClient->fetchRepositoryHistory($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCompilationResultTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $gitCommitish = 'gitCommitish-459981894'; + $name2 = 'name2-1052831874'; + $resolvedGitCommitSha = 'resolvedGitCommitSha-1974209704'; + $dataformCoreVersion = 'dataformCoreVersion1918089577'; + $internalMetadata = 'internalMetadata-1087755663'; + $expectedResponse = new CompilationResult(); + $expectedResponse->setGitCommitish($gitCommitish); + $expectedResponse->setName($name2); + $expectedResponse->setResolvedGitCommitSha($resolvedGitCommitSha); + $expectedResponse->setDataformCoreVersion($dataformCoreVersion); + $expectedResponse->setInternalMetadata($internalMetadata); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->compilationResultName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[COMPILATION_RESULT]'); + $request = (new GetCompilationResultRequest()) + ->setName($formattedName); + $response = $gapicClient->getCompilationResult($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/GetCompilationResult', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCompilationResultExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->compilationResultName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[COMPILATION_RESULT]'); + $request = (new GetCompilationResultRequest()) + ->setName($formattedName); + try { + $gapicClient->getCompilationResult($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $defaultKmsKeyName = 'defaultKmsKeyName-635012393'; + $internalMetadata = 'internalMetadata-1087755663'; + $expectedResponse = new Config(); + $expectedResponse->setName($name2); + $expectedResponse->setDefaultKmsKeyName($defaultKmsKeyName); + $expectedResponse->setInternalMetadata($internalMetadata); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->configName('[PROJECT]', '[LOCATION]'); + $request = (new GetConfigRequest()) + ->setName($formattedName); + $response = $gapicClient->getConfig($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/GetConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->configName('[PROJECT]', '[LOCATION]'); + $request = (new GetConfigRequest()) + ->setName($formattedName); + try { + $gapicClient->getConfig($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getFolderTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $containingFolder = 'containingFolder2137746239'; + $teamFolderName = 'teamFolderName-1375688486'; + $internalMetadata = 'internalMetadata-1087755663'; + $creatorIamPrincipal = 'creatorIamPrincipal866086897'; + $expectedResponse = new Folder(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setContainingFolder($containingFolder); + $expectedResponse->setTeamFolderName($teamFolderName); + $expectedResponse->setInternalMetadata($internalMetadata); + $expectedResponse->setCreatorIamPrincipal($creatorIamPrincipal); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); + $request = (new GetFolderRequest()) + ->setName($formattedName); + $response = $gapicClient->getFolder($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/GetFolder', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getFolderExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); + $request = (new GetFolderRequest()) + ->setName($formattedName); + try { + $gapicClient->getFolder($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getIamPolicyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $version = 351608024; + $etag = '21'; + $expectedResponse = new Policy(); + $expectedResponse->setVersion($version); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $request = (new GetIamPolicyRequest()) + ->setResource($resource); + $response = $gapicClient->getIamPolicy($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/GetIamPolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getIamPolicyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $resource = 'resource-341064690'; + $request = (new GetIamPolicyRequest()) + ->setResource($resource); + try { + $gapicClient->getIamPolicy($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getReleaseConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $gitCommitish = 'gitCommitish-459981894'; + $cronSchedule = 'cronSchedule206244136'; + $timeZone = 'timeZone36848094'; + $releaseCompilationResult = 'releaseCompilationResult1831489873'; + $disabled = true; + $internalMetadata = 'internalMetadata-1087755663'; + $expectedResponse = new ReleaseConfig(); + $expectedResponse->setName($name2); + $expectedResponse->setGitCommitish($gitCommitish); + $expectedResponse->setCronSchedule($cronSchedule); + $expectedResponse->setTimeZone($timeZone); + $expectedResponse->setReleaseCompilationResult($releaseCompilationResult); + $expectedResponse->setDisabled($disabled); + $expectedResponse->setInternalMetadata($internalMetadata); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->releaseConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[RELEASE_CONFIG]'); + $request = (new GetReleaseConfigRequest()) + ->setName($formattedName); + $response = $gapicClient->getReleaseConfig($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/GetReleaseConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getReleaseConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->releaseConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[RELEASE_CONFIG]'); + $request = (new GetReleaseConfigRequest()) + ->setName($formattedName); + try { + $gapicClient->getReleaseConfig($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getRepositoryTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $containingFolder = 'containingFolder2137746239'; + $teamFolderName = 'teamFolderName-1375688486'; + $displayName = 'displayName1615086568'; + $npmrcEnvironmentVariablesSecretVersion = 'npmrcEnvironmentVariablesSecretVersion-2118517056'; + $setAuthenticatedUserAdmin = true; + $serviceAccount = 'serviceAccount-1948028253'; + $kmsKeyName = 'kmsKeyName2094986649'; + $internalMetadata = 'internalMetadata-1087755663'; + $expectedResponse = new Repository(); + $expectedResponse->setName($name2); + $expectedResponse->setContainingFolder($containingFolder); + $expectedResponse->setTeamFolderName($teamFolderName); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setNpmrcEnvironmentVariablesSecretVersion($npmrcEnvironmentVariablesSecretVersion); + $expectedResponse->setSetAuthenticatedUserAdmin($setAuthenticatedUserAdmin); + $expectedResponse->setServiceAccount($serviceAccount); + $expectedResponse->setKmsKeyName($kmsKeyName); + $expectedResponse->setInternalMetadata($internalMetadata); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new GetRepositoryRequest()) + ->setName($formattedName); + $response = $gapicClient->getRepository($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/GetRepository', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getRepositoryExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new GetRepositoryRequest()) + ->setName($formattedName); + try { + $gapicClient->getRepository($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getTeamFolderTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $internalMetadata = 'internalMetadata-1087755663'; + $creatorIamPrincipal = 'creatorIamPrincipal866086897'; + $expectedResponse = new TeamFolder(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setInternalMetadata($internalMetadata); + $expectedResponse->setCreatorIamPrincipal($creatorIamPrincipal); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->teamFolderName('[PROJECT]', '[LOCATION]', '[TEAM_FOLDER]'); + $request = (new GetTeamFolderRequest()) + ->setName($formattedName); + $response = $gapicClient->getTeamFolder($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/GetTeamFolder', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getTeamFolderExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->teamFolderName('[PROJECT]', '[LOCATION]', '[TEAM_FOLDER]'); + $request = (new GetTeamFolderRequest()) + ->setName($formattedName); + try { + $gapicClient->getTeamFolder($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getWorkflowConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $releaseConfig = 'releaseConfig582587002'; + $cronSchedule = 'cronSchedule206244136'; + $timeZone = 'timeZone36848094'; + $disabled = true; + $internalMetadata = 'internalMetadata-1087755663'; + $expectedResponse = new WorkflowConfig(); + $expectedResponse->setName($name2); + $expectedResponse->setReleaseConfig($releaseConfig); + $expectedResponse->setCronSchedule($cronSchedule); + $expectedResponse->setTimeZone($timeZone); + $expectedResponse->setDisabled($disabled); + $expectedResponse->setInternalMetadata($internalMetadata); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->workflowConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_CONFIG]'); + $request = (new GetWorkflowConfigRequest()) + ->setName($formattedName); + $response = $gapicClient->getWorkflowConfig($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/GetWorkflowConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getWorkflowConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->workflowConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_CONFIG]'); + $request = (new GetWorkflowConfigRequest()) + ->setName($formattedName); + try { + $gapicClient->getWorkflowConfig($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getWorkflowInvocationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $compilationResult = 'compilationResult-2035984871'; + $name2 = 'name2-1052831874'; + $resolvedCompilationResult = 'resolvedCompilationResult-2110280256'; + $internalMetadata = 'internalMetadata-1087755663'; + $expectedResponse = new WorkflowInvocation(); + $expectedResponse->setCompilationResult($compilationResult); + $expectedResponse->setName($name2); + $expectedResponse->setResolvedCompilationResult($resolvedCompilationResult); + $expectedResponse->setInternalMetadata($internalMetadata); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->workflowInvocationName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_INVOCATION]'); + $request = (new GetWorkflowInvocationRequest()) + ->setName($formattedName); + $response = $gapicClient->getWorkflowInvocation($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/GetWorkflowInvocation', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getWorkflowInvocationExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->workflowInvocationName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_INVOCATION]'); + $request = (new GetWorkflowInvocationRequest()) + ->setName($formattedName); + try { + $gapicClient->getWorkflowInvocation($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getWorkspaceTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $internalMetadata = 'internalMetadata-1087755663'; + $disableMoves = false; + $expectedResponse = new Workspace(); + $expectedResponse->setName($name2); + $expectedResponse->setInternalMetadata($internalMetadata); + $expectedResponse->setDisableMoves($disableMoves); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new GetWorkspaceRequest()) + ->setName($formattedName); + $response = $gapicClient->getWorkspace($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/GetWorkspace', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getWorkspaceExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new GetWorkspaceRequest()) + ->setName($formattedName); + try { + $gapicClient->getWorkspace($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function installNpmPackagesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new InstallNpmPackagesResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new InstallNpmPackagesRequest()) + ->setWorkspace($formattedWorkspace); + $response = $gapicClient->installNpmPackages($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/InstallNpmPackages', $actualFuncCall); + $actualValue = $actualRequestObject->getWorkspace(); + $this->assertProtobufEquals($formattedWorkspace, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function installNpmPackagesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new InstallNpmPackagesRequest()) + ->setWorkspace($formattedWorkspace); + try { + $gapicClient->installNpmPackages($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCompilationResultsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $compilationResultsElement = new CompilationResult(); + $compilationResults = [ + $compilationResultsElement, + ]; + $expectedResponse = new ListCompilationResultsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setCompilationResults($compilationResults); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new ListCompilationResultsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listCompilationResults($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getCompilationResults()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/ListCompilationResults', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCompilationResultsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new ListCompilationResultsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listCompilationResults($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listReleaseConfigsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $releaseConfigsElement = new ReleaseConfig(); + $releaseConfigs = [ + $releaseConfigsElement, + ]; + $expectedResponse = new ListReleaseConfigsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setReleaseConfigs($releaseConfigs); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new ListReleaseConfigsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listReleaseConfigs($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getReleaseConfigs()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/ListReleaseConfigs', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listReleaseConfigsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new ListReleaseConfigsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listReleaseConfigs($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listRepositoriesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $repositoriesElement = new Repository(); + $repositories = [ + $repositoriesElement, + ]; + $expectedResponse = new ListRepositoriesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setRepositories($repositories); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListRepositoriesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listRepositories($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getRepositories()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/ListRepositories', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listRepositoriesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListRepositoriesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listRepositories($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listWorkflowConfigsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $workflowConfigsElement = new WorkflowConfig(); + $workflowConfigs = [ + $workflowConfigsElement, + ]; + $expectedResponse = new ListWorkflowConfigsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setWorkflowConfigs($workflowConfigs); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new ListWorkflowConfigsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listWorkflowConfigs($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getWorkflowConfigs()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/ListWorkflowConfigs', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listWorkflowConfigsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new ListWorkflowConfigsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listWorkflowConfigs($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listWorkflowInvocationsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $workflowInvocationsElement = new WorkflowInvocation(); + $workflowInvocations = [ + $workflowInvocationsElement, + ]; + $expectedResponse = new ListWorkflowInvocationsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setWorkflowInvocations($workflowInvocations); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new ListWorkflowInvocationsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listWorkflowInvocations($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getWorkflowInvocations()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/ListWorkflowInvocations', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listWorkflowInvocationsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new ListWorkflowInvocationsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listWorkflowInvocations($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listWorkspacesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $workspacesElement = new Workspace(); + $workspaces = [ + $workspacesElement, + ]; + $expectedResponse = new ListWorkspacesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setWorkspaces($workspaces); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new ListWorkspacesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listWorkspaces($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getWorkspaces()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/ListWorkspaces', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listWorkspacesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new ListWorkspacesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listWorkspaces($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function makeDirectoryTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new MakeDirectoryResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $path = 'path3433509'; + $request = (new MakeDirectoryRequest()) + ->setWorkspace($formattedWorkspace) + ->setPath($path); + $response = $gapicClient->makeDirectory($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/MakeDirectory', $actualFuncCall); + $actualValue = $actualRequestObject->getWorkspace(); + $this->assertProtobufEquals($formattedWorkspace, $actualValue); + $actualValue = $actualRequestObject->getPath(); + $this->assertProtobufEquals($path, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function makeDirectoryExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $path = 'path3433509'; + $request = (new MakeDirectoryRequest()) + ->setWorkspace($formattedWorkspace) + ->setPath($path); + try { + $gapicClient->makeDirectory($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function moveDirectoryTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new MoveDirectoryResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $path = 'path3433509'; + $newPath = 'newPath1377204068'; + $request = (new MoveDirectoryRequest()) + ->setWorkspace($formattedWorkspace) + ->setPath($path) + ->setNewPath($newPath); + $response = $gapicClient->moveDirectory($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/MoveDirectory', $actualFuncCall); + $actualValue = $actualRequestObject->getWorkspace(); + $this->assertProtobufEquals($formattedWorkspace, $actualValue); + $actualValue = $actualRequestObject->getPath(); + $this->assertProtobufEquals($path, $actualValue); + $actualValue = $actualRequestObject->getNewPath(); + $this->assertProtobufEquals($newPath, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function moveDirectoryExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $path = 'path3433509'; + $newPath = 'newPath1377204068'; + $request = (new MoveDirectoryRequest()) + ->setWorkspace($formattedWorkspace) + ->setPath($path) + ->setNewPath($newPath); + try { + $gapicClient->moveDirectory($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function moveFileTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new MoveFileResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $path = 'path3433509'; + $newPath = 'newPath1377204068'; + $request = (new MoveFileRequest()) + ->setWorkspace($formattedWorkspace) + ->setPath($path) + ->setNewPath($newPath); + $response = $gapicClient->moveFile($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/MoveFile', $actualFuncCall); + $actualValue = $actualRequestObject->getWorkspace(); + $this->assertProtobufEquals($formattedWorkspace, $actualValue); + $actualValue = $actualRequestObject->getPath(); + $this->assertProtobufEquals($path, $actualValue); + $actualValue = $actualRequestObject->getNewPath(); + $this->assertProtobufEquals($newPath, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function moveFileExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $path = 'path3433509'; + $newPath = 'newPath1377204068'; + $request = (new MoveFileRequest()) + ->setWorkspace($formattedWorkspace) + ->setPath($path) + ->setNewPath($newPath); + try { + $gapicClient->moveFile($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function moveFolderTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/moveFolderTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/moveFolderTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); + $request = (new MoveFolderRequest()) + ->setName($formattedName); + $response = $gapicClient->moveFolder($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/MoveFolder', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/moveFolderTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function moveFolderExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/moveFolderTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); + $request = (new MoveFolderRequest()) + ->setName($formattedName); + $response = $gapicClient->moveFolder($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/moveFolderTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function moveRepositoryTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/moveRepositoryTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/moveRepositoryTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new MoveRepositoryRequest()) + ->setName($formattedName); + $response = $gapicClient->moveRepository($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/MoveRepository', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/moveRepositoryTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function moveRepositoryExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/moveRepositoryTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new MoveRepositoryRequest()) + ->setName($formattedName); + $response = $gapicClient->moveRepository($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/moveRepositoryTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function pullGitCommitsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new PullGitCommitsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $author = new CommitAuthor(); + $authorName = 'authorName-1501539658'; + $author->setName($authorName); + $authorEmailAddress = 'authorEmailAddress-6398493'; + $author->setEmailAddress($authorEmailAddress); + $request = (new PullGitCommitsRequest()) + ->setName($formattedName) + ->setAuthor($author); + $response = $gapicClient->pullGitCommits($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/PullGitCommits', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualRequestObject->getAuthor(); + $this->assertProtobufEquals($author, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function pullGitCommitsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $author = new CommitAuthor(); + $authorName = 'authorName-1501539658'; + $author->setName($authorName); + $authorEmailAddress = 'authorEmailAddress-6398493'; + $author->setEmailAddress($authorEmailAddress); + $request = (new PullGitCommitsRequest()) + ->setName($formattedName) + ->setAuthor($author); + try { + $gapicClient->pullGitCommits($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function pushGitCommitsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new PushGitCommitsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new PushGitCommitsRequest()) + ->setName($formattedName); + $response = $gapicClient->pushGitCommits($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/PushGitCommits', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function pushGitCommitsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new PushGitCommitsRequest()) + ->setName($formattedName); + try { + $gapicClient->pushGitCommits($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function queryCompilationResultActionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $compilationResultActionsElement = new CompilationResultAction(); + $compilationResultActions = [ + $compilationResultActionsElement, + ]; + $expectedResponse = new QueryCompilationResultActionsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setCompilationResultActions($compilationResultActions); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->compilationResultName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[COMPILATION_RESULT]'); + $request = (new QueryCompilationResultActionsRequest()) + ->setName($formattedName); + $response = $gapicClient->queryCompilationResultActions($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getCompilationResultActions()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/QueryCompilationResultActions', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function queryCompilationResultActionsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->compilationResultName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[COMPILATION_RESULT]'); + $request = (new QueryCompilationResultActionsRequest()) + ->setName($formattedName); + try { + $gapicClient->queryCompilationResultActions($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function queryDirectoryContentsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $directoryEntriesElement = new DirectoryEntry(); + $directoryEntries = [ + $directoryEntriesElement, + ]; + $expectedResponse = new QueryDirectoryContentsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setDirectoryEntries($directoryEntries); + $transport->addResponse($expectedResponse); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new QueryDirectoryContentsRequest()) + ->setWorkspace($formattedWorkspace); + $response = $gapicClient->queryDirectoryContents($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getDirectoryEntries()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/QueryDirectoryContents', $actualFuncCall); + $actualValue = $actualRequestObject->getWorkspace(); + $this->assertProtobufEquals($formattedWorkspace, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function queryDirectoryContentsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new QueryDirectoryContentsRequest()) + ->setWorkspace($formattedWorkspace); + try { + $gapicClient->queryDirectoryContents($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function queryFolderContentsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $entriesElement = new FolderContentsEntry(); + $entries = [ + $entriesElement, + ]; + $expectedResponse = new QueryFolderContentsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setEntries($entries); + $transport->addResponse($expectedResponse); + // Mock request + $formattedFolder = $gapicClient->folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); + $request = (new QueryFolderContentsRequest()) + ->setFolder($formattedFolder); + $response = $gapicClient->queryFolderContents($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getEntries()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/QueryFolderContents', $actualFuncCall); + $actualValue = $actualRequestObject->getFolder(); + $this->assertProtobufEquals($formattedFolder, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function queryFolderContentsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedFolder = $gapicClient->folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); + $request = (new QueryFolderContentsRequest()) + ->setFolder($formattedFolder); + try { + $gapicClient->queryFolderContents($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function queryRepositoryDirectoryContentsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $directoryEntriesElement = new DirectoryEntry(); + $directoryEntries = [ + $directoryEntriesElement, + ]; + $expectedResponse = new QueryRepositoryDirectoryContentsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setDirectoryEntries($directoryEntries); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new QueryRepositoryDirectoryContentsRequest()) + ->setName($formattedName); + $response = $gapicClient->queryRepositoryDirectoryContents($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getDirectoryEntries()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/QueryRepositoryDirectoryContents', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function queryRepositoryDirectoryContentsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new QueryRepositoryDirectoryContentsRequest()) + ->setName($formattedName); + try { + $gapicClient->queryRepositoryDirectoryContents($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function queryTeamFolderContentsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $entriesElement = new TeamFolderContentsEntry(); + $entries = [ + $entriesElement, + ]; + $expectedResponse = new QueryTeamFolderContentsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setEntries($entries); + $transport->addResponse($expectedResponse); + // Mock request + $formattedTeamFolder = $gapicClient->teamFolderName('[PROJECT]', '[LOCATION]', '[TEAM_FOLDER]'); + $request = (new QueryTeamFolderContentsRequest()) + ->setTeamFolder($formattedTeamFolder); + $response = $gapicClient->queryTeamFolderContents($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getEntries()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/QueryTeamFolderContents', $actualFuncCall); + $actualValue = $actualRequestObject->getTeamFolder(); + $this->assertProtobufEquals($formattedTeamFolder, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function queryTeamFolderContentsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedTeamFolder = $gapicClient->teamFolderName('[PROJECT]', '[LOCATION]', '[TEAM_FOLDER]'); + $request = (new QueryTeamFolderContentsRequest()) + ->setTeamFolder($formattedTeamFolder); + try { + $gapicClient->queryTeamFolderContents($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function queryUserRootContentsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $entriesElement = new RootContentsEntry(); + $entries = [ + $entriesElement, + ]; + $expectedResponse = new QueryUserRootContentsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setEntries($entries); + $transport->addResponse($expectedResponse); + // Mock request + $formattedLocation = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new QueryUserRootContentsRequest()) + ->setLocation($formattedLocation); + $response = $gapicClient->queryUserRootContents($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getEntries()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/QueryUserRootContents', $actualFuncCall); + $actualValue = $actualRequestObject->getLocation(); + $this->assertProtobufEquals($formattedLocation, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function queryUserRootContentsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedLocation = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new QueryUserRootContentsRequest()) + ->setLocation($formattedLocation); + try { + $gapicClient->queryUserRootContents($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function queryWorkflowInvocationActionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $workflowInvocationActionsElement = new WorkflowInvocationAction(); + $workflowInvocationActions = [ + $workflowInvocationActionsElement, + ]; + $expectedResponse = new QueryWorkflowInvocationActionsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setWorkflowInvocationActions($workflowInvocationActions); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->workflowInvocationName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_INVOCATION]'); + $request = (new QueryWorkflowInvocationActionsRequest()) + ->setName($formattedName); + $response = $gapicClient->queryWorkflowInvocationActions($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getWorkflowInvocationActions()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/QueryWorkflowInvocationActions', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function queryWorkflowInvocationActionsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->workflowInvocationName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_INVOCATION]'); + $request = (new QueryWorkflowInvocationActionsRequest()) + ->setName($formattedName); + try { + $gapicClient->queryWorkflowInvocationActions($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function readFileTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $fileContents = '125'; + $expectedResponse = new ReadFileResponse(); + $expectedResponse->setFileContents($fileContents); + $transport->addResponse($expectedResponse); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $path = 'path3433509'; + $request = (new ReadFileRequest()) + ->setWorkspace($formattedWorkspace) + ->setPath($path); + $response = $gapicClient->readFile($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/ReadFile', $actualFuncCall); + $actualValue = $actualRequestObject->getWorkspace(); + $this->assertProtobufEquals($formattedWorkspace, $actualValue); + $actualValue = $actualRequestObject->getPath(); + $this->assertProtobufEquals($path, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function readFileExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $path = 'path3433509'; + $request = (new ReadFileRequest()) + ->setWorkspace($formattedWorkspace) + ->setPath($path); + try { + $gapicClient->readFile($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function readRepositoryFileTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $contents = '26'; + $expectedResponse = new ReadRepositoryFileResponse(); + $expectedResponse->setContents($contents); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $path = 'path3433509'; + $request = (new ReadRepositoryFileRequest()) + ->setName($formattedName) + ->setPath($path); + $response = $gapicClient->readRepositoryFile($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/ReadRepositoryFile', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualRequestObject->getPath(); + $this->assertProtobufEquals($path, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function readRepositoryFileExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $path = 'path3433509'; + $request = (new ReadRepositoryFileRequest()) + ->setName($formattedName) + ->setPath($path); + try { + $gapicClient->readRepositoryFile($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function removeDirectoryTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new RemoveDirectoryResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $path = 'path3433509'; + $request = (new RemoveDirectoryRequest()) + ->setWorkspace($formattedWorkspace) + ->setPath($path); + $response = $gapicClient->removeDirectory($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/RemoveDirectory', $actualFuncCall); + $actualValue = $actualRequestObject->getWorkspace(); + $this->assertProtobufEquals($formattedWorkspace, $actualValue); + $actualValue = $actualRequestObject->getPath(); + $this->assertProtobufEquals($path, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function removeDirectoryExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $path = 'path3433509'; + $request = (new RemoveDirectoryRequest()) + ->setWorkspace($formattedWorkspace) + ->setPath($path); + try { + $gapicClient->removeDirectory($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function removeFileTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new RemoveFileResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $path = 'path3433509'; + $request = (new RemoveFileRequest()) + ->setWorkspace($formattedWorkspace) + ->setPath($path); + $response = $gapicClient->removeFile($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/RemoveFile', $actualFuncCall); + $actualValue = $actualRequestObject->getWorkspace(); + $this->assertProtobufEquals($formattedWorkspace, $actualValue); + $actualValue = $actualRequestObject->getPath(); + $this->assertProtobufEquals($path, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function removeFileExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $path = 'path3433509'; + $request = (new RemoveFileRequest()) + ->setWorkspace($formattedWorkspace) + ->setPath($path); + try { + $gapicClient->removeFile($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function resetWorkspaceChangesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new ResetWorkspaceChangesResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new ResetWorkspaceChangesRequest()) + ->setName($formattedName); + $response = $gapicClient->resetWorkspaceChanges($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/ResetWorkspaceChanges', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function resetWorkspaceChangesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new ResetWorkspaceChangesRequest()) + ->setName($formattedName); + try { + $gapicClient->resetWorkspaceChanges($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function searchFilesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $searchResultsElement = new SearchResult(); + $searchResults = [ + $searchResultsElement, + ]; + $expectedResponse = new SearchFilesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setSearchResults($searchResults); + $transport->addResponse($expectedResponse); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new SearchFilesRequest()) + ->setWorkspace($formattedWorkspace); + $response = $gapicClient->searchFiles($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getSearchResults()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/SearchFiles', $actualFuncCall); + $actualValue = $actualRequestObject->getWorkspace(); + $this->assertProtobufEquals($formattedWorkspace, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function searchFilesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new SearchFilesRequest()) + ->setWorkspace($formattedWorkspace); + try { + $gapicClient->searchFiles($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function searchTeamFoldersTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $resultsElement = new TeamFolderSearchResult(); + $results = [ + $resultsElement, + ]; + $expectedResponse = new SearchTeamFoldersResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setResults($results); + $transport->addResponse($expectedResponse); + // Mock request + $formattedLocation = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new SearchTeamFoldersRequest()) + ->setLocation($formattedLocation); + $response = $gapicClient->searchTeamFolders($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getResults()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/SearchTeamFolders', $actualFuncCall); + $actualValue = $actualRequestObject->getLocation(); + $this->assertProtobufEquals($formattedLocation, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function searchTeamFoldersExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedLocation = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new SearchTeamFoldersRequest()) + ->setLocation($formattedLocation); + try { + $gapicClient->searchTeamFolders($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setIamPolicyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $version = 351608024; + $etag = '21'; + $expectedResponse = new Policy(); + $expectedResponse->setVersion($version); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $policy = new Policy(); + $request = (new SetIamPolicyRequest()) + ->setResource($resource) + ->setPolicy($policy); + $response = $gapicClient->setIamPolicy($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/SetIamPolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $actualValue = $actualRequestObject->getPolicy(); + $this->assertProtobufEquals($policy, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setIamPolicyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $resource = 'resource-341064690'; + $policy = new Policy(); + $request = (new SetIamPolicyRequest()) + ->setResource($resource) + ->setPolicy($policy); + try { + $gapicClient->setIamPolicy($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function testIamPermissionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new TestIamPermissionsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $permissions = []; + $request = (new TestIamPermissionsRequest()) + ->setResource($resource) + ->setPermissions($permissions); + $response = $gapicClient->testIamPermissions($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/TestIamPermissions', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $actualValue = $actualRequestObject->getPermissions(); + $this->assertProtobufEquals($permissions, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function testIamPermissionsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $resource = 'resource-341064690'; + $permissions = []; + $request = (new TestIamPermissionsRequest()) + ->setResource($resource) + ->setPermissions($permissions); + try { + $gapicClient->testIamPermissions($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $defaultKmsKeyName = 'defaultKmsKeyName-635012393'; + $internalMetadata = 'internalMetadata-1087755663'; + $expectedResponse = new Config(); + $expectedResponse->setName($name); + $expectedResponse->setDefaultKmsKeyName($defaultKmsKeyName); + $expectedResponse->setInternalMetadata($internalMetadata); + $transport->addResponse($expectedResponse); + // Mock request + $config = new Config(); + $request = (new UpdateConfigRequest()) + ->setConfig($config); + $response = $gapicClient->updateConfig($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/UpdateConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getConfig(); + $this->assertProtobufEquals($config, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $config = new Config(); + $request = (new UpdateConfigRequest()) + ->setConfig($config); + try { + $gapicClient->updateConfig($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateFolderTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $containingFolder = 'containingFolder2137746239'; + $teamFolderName = 'teamFolderName-1375688486'; + $internalMetadata = 'internalMetadata-1087755663'; + $creatorIamPrincipal = 'creatorIamPrincipal866086897'; + $expectedResponse = new Folder(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setContainingFolder($containingFolder); + $expectedResponse->setTeamFolderName($teamFolderName); + $expectedResponse->setInternalMetadata($internalMetadata); + $expectedResponse->setCreatorIamPrincipal($creatorIamPrincipal); + $transport->addResponse($expectedResponse); + // Mock request + $folder = new Folder(); + $folderDisplayName = 'folderDisplayName1703145759'; + $folder->setDisplayName($folderDisplayName); + $request = (new UpdateFolderRequest()) + ->setFolder($folder); + $response = $gapicClient->updateFolder($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/UpdateFolder', $actualFuncCall); + $actualValue = $actualRequestObject->getFolder(); + $this->assertProtobufEquals($folder, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateFolderExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $folder = new Folder(); + $folderDisplayName = 'folderDisplayName1703145759'; + $folder->setDisplayName($folderDisplayName); + $request = (new UpdateFolderRequest()) + ->setFolder($folder); + try { + $gapicClient->updateFolder($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateReleaseConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $gitCommitish = 'gitCommitish-459981894'; + $cronSchedule = 'cronSchedule206244136'; + $timeZone = 'timeZone36848094'; + $releaseCompilationResult = 'releaseCompilationResult1831489873'; + $disabled = true; + $internalMetadata = 'internalMetadata-1087755663'; + $expectedResponse = new ReleaseConfig(); + $expectedResponse->setName($name); + $expectedResponse->setGitCommitish($gitCommitish); + $expectedResponse->setCronSchedule($cronSchedule); + $expectedResponse->setTimeZone($timeZone); + $expectedResponse->setReleaseCompilationResult($releaseCompilationResult); + $expectedResponse->setDisabled($disabled); + $expectedResponse->setInternalMetadata($internalMetadata); + $transport->addResponse($expectedResponse); + // Mock request + $releaseConfig = new ReleaseConfig(); + $releaseConfigGitCommitish = 'releaseConfigGitCommitish1714987262'; + $releaseConfig->setGitCommitish($releaseConfigGitCommitish); + $request = (new UpdateReleaseConfigRequest()) + ->setReleaseConfig($releaseConfig); + $response = $gapicClient->updateReleaseConfig($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/UpdateReleaseConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getReleaseConfig(); + $this->assertProtobufEquals($releaseConfig, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateReleaseConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $releaseConfig = new ReleaseConfig(); + $releaseConfigGitCommitish = 'releaseConfigGitCommitish1714987262'; + $releaseConfig->setGitCommitish($releaseConfigGitCommitish); + $request = (new UpdateReleaseConfigRequest()) + ->setReleaseConfig($releaseConfig); + try { + $gapicClient->updateReleaseConfig($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateRepositoryTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $containingFolder = 'containingFolder2137746239'; + $teamFolderName = 'teamFolderName-1375688486'; + $displayName = 'displayName1615086568'; + $npmrcEnvironmentVariablesSecretVersion = 'npmrcEnvironmentVariablesSecretVersion-2118517056'; + $setAuthenticatedUserAdmin = true; + $serviceAccount = 'serviceAccount-1948028253'; + $kmsKeyName = 'kmsKeyName2094986649'; + $internalMetadata = 'internalMetadata-1087755663'; + $expectedResponse = new Repository(); + $expectedResponse->setName($name); + $expectedResponse->setContainingFolder($containingFolder); + $expectedResponse->setTeamFolderName($teamFolderName); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setNpmrcEnvironmentVariablesSecretVersion($npmrcEnvironmentVariablesSecretVersion); + $expectedResponse->setSetAuthenticatedUserAdmin($setAuthenticatedUserAdmin); + $expectedResponse->setServiceAccount($serviceAccount); + $expectedResponse->setKmsKeyName($kmsKeyName); + $expectedResponse->setInternalMetadata($internalMetadata); + $transport->addResponse($expectedResponse); + // Mock request + $repository = new Repository(); + $request = (new UpdateRepositoryRequest()) + ->setRepository($repository); + $response = $gapicClient->updateRepository($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/UpdateRepository', $actualFuncCall); + $actualValue = $actualRequestObject->getRepository(); + $this->assertProtobufEquals($repository, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateRepositoryExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $repository = new Repository(); + $request = (new UpdateRepositoryRequest()) + ->setRepository($repository); + try { + $gapicClient->updateRepository($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateTeamFolderTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $internalMetadata = 'internalMetadata-1087755663'; + $creatorIamPrincipal = 'creatorIamPrincipal866086897'; + $expectedResponse = new TeamFolder(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setInternalMetadata($internalMetadata); + $expectedResponse->setCreatorIamPrincipal($creatorIamPrincipal); + $transport->addResponse($expectedResponse); + // Mock request + $teamFolder = new TeamFolder(); + $teamFolderDisplayName = 'teamFolderDisplayName136139842'; + $teamFolder->setDisplayName($teamFolderDisplayName); + $request = (new UpdateTeamFolderRequest()) + ->setTeamFolder($teamFolder); + $response = $gapicClient->updateTeamFolder($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/UpdateTeamFolder', $actualFuncCall); + $actualValue = $actualRequestObject->getTeamFolder(); + $this->assertProtobufEquals($teamFolder, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateTeamFolderExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $teamFolder = new TeamFolder(); + $teamFolderDisplayName = 'teamFolderDisplayName136139842'; + $teamFolder->setDisplayName($teamFolderDisplayName); + $request = (new UpdateTeamFolderRequest()) + ->setTeamFolder($teamFolder); + try { + $gapicClient->updateTeamFolder($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateWorkflowConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $releaseConfig = 'releaseConfig582587002'; + $cronSchedule = 'cronSchedule206244136'; + $timeZone = 'timeZone36848094'; + $disabled = true; + $internalMetadata = 'internalMetadata-1087755663'; + $expectedResponse = new WorkflowConfig(); + $expectedResponse->setName($name); + $expectedResponse->setReleaseConfig($releaseConfig); + $expectedResponse->setCronSchedule($cronSchedule); + $expectedResponse->setTimeZone($timeZone); + $expectedResponse->setDisabled($disabled); + $expectedResponse->setInternalMetadata($internalMetadata); + $transport->addResponse($expectedResponse); + // Mock request + $workflowConfig = new WorkflowConfig(); + $workflowConfigReleaseConfig = $gapicClient->releaseConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[RELEASE_CONFIG]'); + $workflowConfig->setReleaseConfig($workflowConfigReleaseConfig); + $request = (new UpdateWorkflowConfigRequest()) + ->setWorkflowConfig($workflowConfig); + $response = $gapicClient->updateWorkflowConfig($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/UpdateWorkflowConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getWorkflowConfig(); + $this->assertProtobufEquals($workflowConfig, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateWorkflowConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $workflowConfig = new WorkflowConfig(); + $workflowConfigReleaseConfig = $gapicClient->releaseConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[RELEASE_CONFIG]'); + $workflowConfig->setReleaseConfig($workflowConfigReleaseConfig); + $request = (new UpdateWorkflowConfigRequest()) + ->setWorkflowConfig($workflowConfig); + try { + $gapicClient->updateWorkflowConfig($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function writeFileTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new WriteFileResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $path = 'path3433509'; + $contents = '26'; + $request = (new WriteFileRequest()) + ->setWorkspace($formattedWorkspace) + ->setPath($path) + ->setContents($contents); + $response = $gapicClient->writeFile($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/WriteFile', $actualFuncCall); + $actualValue = $actualRequestObject->getWorkspace(); + $this->assertProtobufEquals($formattedWorkspace, $actualValue); + $actualValue = $actualRequestObject->getPath(); + $this->assertProtobufEquals($path, $actualValue); + $actualValue = $actualRequestObject->getContents(); + $this->assertProtobufEquals($contents, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function writeFileExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $path = 'path3433509'; + $contents = '26'; + $request = (new WriteFileRequest()) + ->setWorkspace($formattedWorkspace) + ->setPath($path) + ->setContents($contents); + try { + $gapicClient->writeFile($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function cancelOperationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $name = 'name3373707'; + $request = (new CancelOperationRequest()) + ->setName($name); + $gapicClient->cancelOperation($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/CancelOperation', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($name, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function cancelOperationExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $name = 'name3373707'; + $request = (new CancelOperationRequest()) + ->setName($name); + try { + $gapicClient->cancelOperation($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteOperationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $name = 'name3373707'; + $request = (new DeleteOperationRequest()) + ->setName($name); + $gapicClient->deleteOperation($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/DeleteOperation', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($name, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteOperationExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $name = 'name3373707'; + $request = (new DeleteOperationRequest()) + ->setName($name); + try { + $gapicClient->deleteOperation($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getOperationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $done = true; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setDone($done); + $transport->addResponse($expectedResponse); + // Mock request + $name = 'name3373707'; + $request = (new GetOperationRequest()) + ->setName($name); + $response = $gapicClient->getOperation($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($name, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getOperationExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $name = 'name3373707'; + $request = (new GetOperationRequest()) + ->setName($name); + try { + $gapicClient->getOperation($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listOperationsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $operationsElement = new Operation(); + $operations = [ + $operationsElement, + ]; + $expectedResponse = new ListOperationsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setOperations($operations); + $transport->addResponse($expectedResponse); + // Mock request + $name = 'name3373707'; + $filter = 'filter-1274492040'; + $request = (new ListOperationsRequest()) + ->setName($name) + ->setFilter($filter); + $response = $gapicClient->listOperations($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getOperations()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/ListOperations', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($name, $actualValue); + $actualValue = $actualRequestObject->getFilter(); + $this->assertProtobufEquals($filter, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listOperationsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $name = 'name3373707'; + $filter = 'filter-1274492040'; + $request = (new ListOperationsRequest()) + ->setName($name) + ->setFilter($filter); + try { + $gapicClient->listOperations($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getLocationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $locationId = 'locationId552319461'; + $displayName = 'displayName1615086568'; + $expectedResponse = new Location(); + $expectedResponse->setName($name2); + $expectedResponse->setLocationId($locationId); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + $request = new GetLocationRequest(); + $response = $gapicClient->getLocation($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.location.Locations/GetLocation', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getLocationExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new GetLocationRequest(); + try { + $gapicClient->getLocation($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listLocationsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $locationsElement = new Location(); + $locations = [ + $locationsElement, + ]; + $expectedResponse = new ListLocationsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setLocations($locations); + $transport->addResponse($expectedResponse); + $request = new ListLocationsRequest(); + $response = $gapicClient->listLocations($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listLocationsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new ListLocationsRequest(); + try { + $gapicClient->listLocations($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function cancelWorkflowInvocationAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new CancelWorkflowInvocationResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->workflowInvocationName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_INVOCATION]'); + $request = (new CancelWorkflowInvocationRequest()) + ->setName($formattedName); + $response = $gapicClient->cancelWorkflowInvocationAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/CancelWorkflowInvocation', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} From 48b03aaee98790e475771828449d15c01e48f868 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 24 Mar 2026 19:10:35 +0000 Subject: [PATCH 2/2] =?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 --- Dataform/metadata/V1/Dataform.php | 5 +- .../V1/DataformClient/cancel_operation.php | 0 .../V1/DataformClient/create_folder.php | 0 .../V1/DataformClient/create_team_folder.php | 0 .../V1/DataformClient/delete_folder.php | 0 .../V1/DataformClient/delete_folder_tree.php | 0 .../V1/DataformClient/delete_operation.php | 0 .../V1/DataformClient/delete_team_folder.php | 0 .../delete_team_folder_tree.php | 0 .../samples/V1/DataformClient/get_folder.php | 0 .../V1/DataformClient/get_iam_policy.php | 5 +- .../V1/DataformClient/get_operation.php | 0 .../V1/DataformClient/get_team_folder.php | 0 .../V1/DataformClient/list_locations.php | 16 + .../V1/DataformClient/list_operations.php | 0 .../samples/V1/DataformClient/move_folder.php | 0 .../V1/DataformClient/move_repository.php | 0 .../DataformClient/query_folder_contents.php | 0 .../query_team_folder_contents.php | 0 .../query_user_root_contents.php | 0 .../V1/DataformClient/search_team_folders.php | 0 .../V1/DataformClient/set_iam_policy.php | 9 +- .../DataformClient/test_iam_permissions.php | 14 +- .../V1/DataformClient/update_folder.php | 0 .../V1/DataformClient/update_team_folder.php | 0 Dataform/src/V1/Client/DataformClient.php | 845 ++- Dataform/src/V1/CompilationResult.php | 52 + .../V1/CompilationResultAction/Relation.php | 160 + .../Relation/FileFormat.php | 0 .../Relation/TableFormat.php | 0 .../TokenStatus.php | 7 + Dataform/src/V1/Config.php | 52 + .../src}/V1/CreateFolderRequest.php | 0 .../src}/V1/CreateTeamFolderRequest.php | 0 .../src}/V1/DeleteFolderRequest.php | 0 .../src}/V1/DeleteFolderTreeMetadata.php | 0 .../V1/DeleteFolderTreeMetadata/State.php | 0 .../src}/V1/DeleteFolderTreeRequest.php | 0 Dataform/src/V1/DeleteRepositoryRequest.php | 36 +- .../src}/V1/DeleteTeamFolderRequest.php | 0 .../src}/V1/DeleteTeamFolderTreeRequest.php | 0 .../src}/V1/DirectoryContentsView.php | 0 Dataform/src/V1/DirectoryEntry.php | 44 + .../src}/V1/FilesystemEntryMetadata.php | 0 .../Dataform => Dataform/src}/V1/Folder.php | 0 .../src}/V1/GetFolderRequest.php | 0 .../src}/V1/GetTeamFolderRequest.php | 0 Dataform/src/V1/InvocationConfig.php | 52 + .../V1/InvocationConfig/QueryPriority.php | 0 .../src}/V1/MoveFolderMetadata.php | 0 .../src}/V1/MoveFolderMetadata/State.php | 0 .../src}/V1/MoveFolderRequest.php | 0 .../src}/V1/MoveRepositoryMetadata.php | 0 .../src}/V1/MoveRepositoryMetadata/State.php | 0 .../src}/V1/MoveRepositoryRequest.php | 0 .../src}/V1/PrivateResourceMetadata.php | 0 .../src/V1/QueryDirectoryContentsRequest.php | 46 + .../src}/V1/QueryFolderContentsRequest.php | 0 .../src}/V1/QueryFolderContentsResponse.php | 0 .../FolderContentsEntry.php | 0 .../V1/QueryTeamFolderContentsRequest.php | 0 .../V1/QueryTeamFolderContentsResponse.php | 0 .../TeamFolderContentsEntry.php | 0 .../src}/V1/QueryUserRootContentsRequest.php | 0 .../src}/V1/QueryUserRootContentsResponse.php | 0 .../RootContentsEntry.php | 0 Dataform/src/V1/Repository.php | 116 + .../src}/V1/SearchTeamFoldersRequest.php | 0 .../src}/V1/SearchTeamFoldersResponse.php | 0 .../TeamFolderSearchResult.php | 0 .../src}/V1/TeamFolder.php | 0 .../src}/V1/UpdateFolderRequest.php | 0 .../src}/V1/UpdateTeamFolderRequest.php | 0 Dataform/src/V1/WorkflowInvocation.php | 52 + Dataform/src/V1/Workspace.php | 96 + Dataform/src/V1/gapic_metadata.json | 120 +- .../V1/resources/dataform_client_config.json | 110 +- .../resources/dataform_descriptor_config.php | 373 +- .../resources/dataform_rest_client_config.php | 331 +- .../Unit/V1/Client/DataformClientTest.php | 3368 ++++++--- .../Google/Cloud/Dataform/V1/Dataform.php | 36 - .../V1/CancelWorkflowInvocationRequest.php | 67 - .../V1/CancelWorkflowInvocationResponse.php | 33 - .../Dataform/V1/CodeCompilationConfig.php | 403 -- .../Google/Cloud/Dataform/V1/CommitAuthor.php | 101 - .../Cloud/Dataform/V1/CommitLogEntry.php | 189 - .../Cloud/Dataform/V1/CommitMetadata.php | 111 - .../V1/CommitRepositoryChangesRequest.php | 191 - .../FileOperation.php | 108 - .../FileOperation/DeleteFile.php | 33 - .../FileOperation/WriteFile.php | 67 - .../V1/CommitRepositoryChangesResponse.php | 67 - .../V1/CommitWorkspaceChangesRequest.php | 183 - .../V1/CommitWorkspaceChangesResponse.php | 33 - .../Cloud/Dataform/V1/CompilationResult.php | 539 -- .../V1/CompilationResult/CompilationError.php | 187 - .../Dataform/V1/CompilationResultAction.php | 422 -- .../V1/CompilationResultAction/Assertion.php | 270 - .../DataPreparation.php | 213 - .../DataPreparation/ErrorTable.php | 116 - .../DataPreparation/SqlDefinition.php | 159 - .../CompilationResultAction/Declaration.php | 82 - .../IncrementalLoadMode.php | 67 - .../V1/CompilationResultAction/LoadConfig.php | 180 - .../V1/CompilationResultAction/Notebook.php | 169 - .../V1/CompilationResultAction/Operations.php | 255 - .../V1/CompilationResultAction/Relation.php | 709 -- .../Relation/IncrementalTableConfig.php | 269 - .../Relation/RelationType.php | 75 - .../SimpleLoadMode.php | 33 - ...puteRepositoryAccessTokenStatusRequest.php | 67 - ...uteRepositoryAccessTokenStatusResponse.php | 67 - .../TokenStatus.php | 76 - .../src/Google/Cloud/Dataform/V1/Config.php | 157 - .../V1/CreateCompilationResultRequest.php | 132 - .../V1/CreateReleaseConfigRequest.php | 173 - .../Dataform/V1/CreateRepositoryRequest.php | 173 - .../V1/CreateWorkflowConfigRequest.php | 173 - .../V1/CreateWorkflowInvocationRequest.php | 132 - .../Dataform/V1/CreateWorkspaceRequest.php | 173 - .../Cloud/Dataform/V1/DataEncryptionState.php | 71 - .../V1/DeleteReleaseConfigRequest.php | 81 - .../Dataform/V1/DeleteRepositoryRequest.php | 135 - .../V1/DeleteWorkflowConfigRequest.php | 81 - .../V1/DeleteWorkflowInvocationRequest.php | 81 - .../Dataform/V1/DeleteWorkspaceRequest.php | 81 - .../Cloud/Dataform/V1/DirectoryEntry.php | 152 - .../Dataform/V1/DirectorySearchResult.php | 67 - .../Dataform/V1/FetchFileDiffRequest.php | 105 - .../Dataform/V1/FetchFileDiffResponse.php | 67 - .../V1/FetchFileGitStatusesRequest.php | 67 - .../V1/FetchFileGitStatusesResponse.php | 71 - .../UncommittedFileChange.php | 101 - .../UncommittedFileChange/State.php | 75 - .../V1/FetchGitAheadBehindRequest.php | 109 - .../V1/FetchGitAheadBehindResponse.php | 101 - .../V1/FetchRemoteBranchesRequest.php | 67 - .../V1/FetchRemoteBranchesResponse.php | 67 - .../V1/FetchRepositoryHistoryRequest.php | 159 - .../V1/FetchRepositoryHistoryResponse.php | 105 - .../Cloud/Dataform/V1/FileSearchResult.php | 67 - .../V1/GetCompilationResultRequest.php | 81 - .../Cloud/Dataform/V1/GetConfigRequest.php | 81 - .../Dataform/V1/GetReleaseConfigRequest.php | 81 - .../Dataform/V1/GetRepositoryRequest.php | 81 - .../Dataform/V1/GetWorkflowConfigRequest.php | 81 - .../V1/GetWorkflowInvocationRequest.php | 81 - .../Cloud/Dataform/V1/GetWorkspaceRequest.php | 81 - .../Dataform/V1/InstallNpmPackagesRequest.php | 67 - .../V1/InstallNpmPackagesResponse.php | 33 - .../Cloud/Dataform/V1/InvocationConfig.php | 299 - .../V1/ListCompilationResultsRequest.php | 254 - .../V1/ListCompilationResultsResponse.php | 139 - .../Dataform/V1/ListReleaseConfigsRequest.php | 178 - .../V1/ListReleaseConfigsResponse.php | 139 - .../Dataform/V1/ListRepositoriesRequest.php | 254 - .../Dataform/V1/ListRepositoriesResponse.php | 139 - .../V1/ListWorkflowConfigsRequest.php | 178 - .../V1/ListWorkflowConfigsResponse.php | 139 - .../V1/ListWorkflowInvocationsRequest.php | 254 - .../V1/ListWorkflowInvocationsResponse.php | 139 - .../Dataform/V1/ListWorkspacesRequest.php | 254 - .../Dataform/V1/ListWorkspacesResponse.php | 139 - .../Dataform/V1/MakeDirectoryRequest.php | 105 - .../Dataform/V1/MakeDirectoryResponse.php | 33 - .../Dataform/V1/MoveDirectoryRequest.php | 143 - .../Dataform/V1/MoveDirectoryResponse.php | 33 - .../Cloud/Dataform/V1/MoveFileRequest.php | 143 - .../Cloud/Dataform/V1/MoveFileResponse.php | 33 - .../Dataform/V1/NotebookRuntimeOptions.php | 124 - .../Dataform/V1/PullGitCommitsRequest.php | 153 - .../Dataform/V1/PullGitCommitsResponse.php | 33 - .../Dataform/V1/PushGitCommitsRequest.php | 109 - .../Dataform/V1/PushGitCommitsResponse.php | 33 - .../QueryCompilationResultActionsRequest.php | 201 - .../QueryCompilationResultActionsResponse.php | 105 - .../V1/QueryDirectoryContentsRequest.php | 243 - .../V1/QueryDirectoryContentsResponse.php | 105 - ...ueryRepositoryDirectoryContentsRequest.php | 239 - ...eryRepositoryDirectoryContentsResponse.php | 105 - .../QueryWorkflowInvocationActionsRequest.php | 163 - ...QueryWorkflowInvocationActionsResponse.php | 105 - .../Cloud/Dataform/V1/ReadFileRequest.php | 143 - .../Cloud/Dataform/V1/ReadFileResponse.php | 67 - .../Dataform/V1/ReadRepositoryFileRequest.php | 139 - .../V1/ReadRepositoryFileResponse.php | 67 - .../Cloud/Dataform/V1/RelationDescriptor.php | 135 - .../RelationDescriptor/ColumnDescriptor.php | 139 - .../Cloud/Dataform/V1/ReleaseConfig.php | 435 -- .../ReleaseConfig/ScheduledReleaseRecord.php | 162 - .../Dataform/V1/RemoveDirectoryRequest.php | 105 - .../Dataform/V1/RemoveDirectoryResponse.php | 33 - .../Cloud/Dataform/V1/RemoveFileRequest.php | 105 - .../Cloud/Dataform/V1/RemoveFileResponse.php | 33 - .../Google/Cloud/Dataform/V1/Repository.php | 663 -- .../V1/Repository/GitRemoteSettings.php | 232 - .../SshAuthenticationConfig.php | 113 - .../GitRemoteSettings/TokenStatus.php | 69 - .../WorkspaceCompilationOverrides.php | 139 - .../V1/ResetWorkspaceChangesRequest.php | 139 - .../V1/ResetWorkspaceChangesResponse.php | 33 - .../Cloud/Dataform/V1/SearchFilesRequest.php | 201 - .../Cloud/Dataform/V1/SearchFilesResponse.php | 105 - .../Google/Cloud/Dataform/V1/SearchResult.php | 108 - .../src/Google/Cloud/Dataform/V1/Target.php | 136 - .../Cloud/Dataform/V1/UpdateConfigRequest.php | 136 - .../V1/UpdateReleaseConfigRequest.php | 141 - .../Dataform/V1/UpdateRepositoryRequest.php | 141 - .../V1/UpdateWorkflowConfigRequest.php | 141 - .../Cloud/Dataform/V1/WorkflowConfig.php | 453 -- .../ScheduledExecutionRecord.php | 162 - .../Cloud/Dataform/V1/WorkflowInvocation.php | 463 -- .../Dataform/V1/WorkflowInvocation/State.php | 83 - .../Dataform/V1/WorkflowInvocationAction.php | 421 -- .../BigQueryAction.php | 105 - .../DataPreparationAction.php | 190 - .../ActionErrorTable.php | 116 - .../ActionIncrementalLoadMode.php | 67 - .../ActionLoadConfig.php | 180 - .../ActionSimpleLoadMode.php | 33 - .../ActionSqlDefinition.php | 159 - .../NotebookAction.php | 109 - .../V1/WorkflowInvocationAction/State.php | 91 - .../Google/Cloud/Dataform/V1/Workspace.php | 307 - .../Cloud/Dataform/V1/WriteFileRequest.php | 135 - .../Cloud/Dataform/V1/WriteFileResponse.php | 33 - .../cancel_workflow_invocation.php | 76 - .../commit_repository_changes.php | 91 - .../commit_workspace_changes.php | 88 - ...compute_repository_access_token_status.php | 71 - .../create_compilation_result.php | 74 - .../DataformClient/create_release_config.php | 88 - .../V1/DataformClient/create_repository.php | 78 - .../DataformClient/create_workflow_config.php | 96 - .../create_workflow_invocation.php | 74 - .../V1/DataformClient/create_workspace.php | 78 - .../DataformClient/delete_release_config.php | 74 - .../V1/DataformClient/delete_repository.php | 69 - .../DataformClient/delete_workflow_config.php | 74 - .../delete_workflow_invocation.php | 74 - .../V1/DataformClient/delete_workspace.php | 74 - .../V1/DataformClient/fetch_file_diff.php | 80 - .../fetch_file_git_statuses.php | 76 - .../DataformClient/fetch_git_ahead_behind.php | 76 - .../DataformClient/fetch_remote_branches.php | 71 - .../fetch_repository_history.php | 77 - .../DataformClient/get_compilation_result.php | 76 - .../samples/V1/DataformClient/get_config.php | 71 - .../V1/DataformClient/get_iam_policy.php | 73 - .../V1/DataformClient/get_location.php | 57 - .../V1/DataformClient/get_release_config.php | 76 - .../V1/DataformClient/get_repository.php | 71 - .../V1/DataformClient/get_workflow_config.php | 76 - .../get_workflow_invocation.php | 76 - .../V1/DataformClient/get_workspace.php | 76 - .../DataformClient/install_npm_packages.php | 76 - .../list_compilation_results.php | 77 - .../V1/DataformClient/list_locations.php | 78 - .../DataformClient/list_release_configs.php | 77 - .../V1/DataformClient/list_repositories.php | 80 - .../DataformClient/list_workflow_configs.php | 77 - .../list_workflow_invocations.php | 77 - .../V1/DataformClient/list_workspaces.php | 77 - .../V1/DataformClient/make_directory.php | 80 - .../V1/DataformClient/move_directory.php | 85 - .../samples/V1/DataformClient/move_file.php | 84 - .../V1/DataformClient/pull_git_commits.php | 88 - .../V1/DataformClient/push_git_commits.php | 76 - .../query_compilation_result_actions.php | 81 - .../query_directory_contents.php | 81 - .../query_repository_directory_contents.php | 77 - .../query_workflow_invocation_actions.php | 81 - .../samples/V1/DataformClient/read_file.php | 80 - .../DataformClient/read_repository_file.php | 75 - .../V1/DataformClient/remove_directory.php | 80 - .../samples/V1/DataformClient/remove_file.php | 80 - .../reset_workspace_changes.php | 76 - .../V1/DataformClient/search_files.php | 81 - .../V1/DataformClient/set_iam_policy.php | 76 - .../DataformClient/test_iam_permissions.php | 84 - .../V1/DataformClient/update_config.php | 64 - .../DataformClient/update_release_config.php | 81 - .../V1/DataformClient/update_repository.php | 64 - .../DataformClient/update_workflow_config.php | 85 - .../samples/V1/DataformClient/write_file.php | 82 - .../v1/src/V1/Client/DataformClient.php | 2861 -------- .../Dataform/v1/src/V1/gapic_metadata.json | 413 -- .../V1/resources/dataform_client_config.json | 429 -- .../resources/dataform_descriptor_config.php | 1176 ---- .../resources/dataform_rest_client_config.php | 1002 --- .../Unit/V1/Client/DataformClientTest.php | 6042 ----------------- .../Cloud/Dataform/V1Beta1/Dataform.php | 36 - .../CancelWorkflowInvocationRequest.php | 67 - .../CancelWorkflowInvocationResponse.php | 33 - .../V1beta1/CodeCompilationConfig.php | 403 -- .../Cloud/Dataform/V1beta1/CommitAuthor.php | 101 - .../Cloud/Dataform/V1beta1/CommitLogEntry.php | 189 - .../Cloud/Dataform/V1beta1/CommitMetadata.php | 111 - .../CommitRepositoryChangesRequest.php | 191 - .../FileOperation.php | 108 - .../FileOperation/DeleteFile.php | 33 - .../FileOperation/WriteFile.php | 67 - .../CommitRepositoryChangesResponse.php | 67 - .../V1beta1/CommitWorkspaceChangesRequest.php | 183 - .../CommitWorkspaceChangesResponse.php | 33 - .../Dataform/V1beta1/CompilationResult.php | 539 -- .../CompilationResult/CompilationError.php | 187 - .../V1beta1/CompilationResultAction.php | 422 -- .../CompilationResultAction/Assertion.php | 270 - .../DataPreparation.php | 213 - .../DataPreparation/ErrorTable.php | 116 - .../DataPreparation/SqlDefinition.php | 159 - .../CompilationResultAction/Declaration.php | 82 - .../IncrementalLoadMode.php | 67 - .../CompilationResultAction/LoadConfig.php | 180 - .../CompilationResultAction/Notebook.php | 169 - .../CompilationResultAction/Operations.php | 255 - .../CompilationResultAction/Relation.php | 709 -- .../Relation/FileFormat.php | 54 - .../Relation/IncrementalTableConfig.php | 269 - .../Relation/RelationType.php | 75 - .../Relation/TableFormat.php | 54 - .../SimpleLoadMode.php | 33 - ...puteRepositoryAccessTokenStatusRequest.php | 67 - ...uteRepositoryAccessTokenStatusResponse.php | 67 - .../TokenStatus.php | 69 - .../Google/Cloud/Dataform/V1beta1/Config.php | 157 - .../CreateCompilationResultRequest.php | 132 - .../Dataform/V1beta1/CreateFolderRequest.php | 170 - .../V1beta1/CreateReleaseConfigRequest.php | 173 - .../V1beta1/CreateRepositoryRequest.php | 173 - .../V1beta1/CreateTeamFolderRequest.php | 170 - .../V1beta1/CreateWorkflowConfigRequest.php | 173 - .../CreateWorkflowInvocationRequest.php | 132 - .../V1beta1/CreateWorkspaceRequest.php | 173 - .../Dataform/V1beta1/DataEncryptionState.php | 71 - .../Dataform/V1beta1/DeleteFolderRequest.php | 81 - .../V1beta1/DeleteReleaseConfigRequest.php | 81 - .../V1beta1/DeleteRepositoryRequest.php | 135 - .../V1beta1/DeleteTeamFolderRequest.php | 81 - .../V1beta1/DeleteWorkflowConfigRequest.php | 81 - .../DeleteWorkflowInvocationRequest.php | 81 - .../V1beta1/DeleteWorkspaceRequest.php | 81 - .../Cloud/Dataform/V1beta1/DirectoryEntry.php | 108 - .../V1beta1/DirectorySearchResult.php | 67 - .../Dataform/V1beta1/FetchFileDiffRequest.php | 105 - .../V1beta1/FetchFileDiffResponse.php | 67 - .../V1beta1/FetchFileGitStatusesRequest.php | 67 - .../V1beta1/FetchFileGitStatusesResponse.php | 71 - .../UncommittedFileChange.php | 101 - .../UncommittedFileChange/State.php | 75 - .../V1beta1/FetchGitAheadBehindRequest.php | 109 - .../V1beta1/FetchGitAheadBehindResponse.php | 101 - .../V1beta1/FetchRemoteBranchesRequest.php | 67 - .../V1beta1/FetchRemoteBranchesResponse.php | 67 - .../V1beta1/FetchRepositoryHistoryRequest.php | 159 - .../FetchRepositoryHistoryResponse.php | 105 - .../Dataform/V1beta1/FileSearchResult.php | 67 - .../Google/Cloud/Dataform/V1beta1/Folder.php | 386 -- .../V1beta1/GetCompilationResultRequest.php | 81 - .../Dataform/V1beta1/GetConfigRequest.php | 81 - .../Dataform/V1beta1/GetFolderRequest.php | 81 - .../V1beta1/GetReleaseConfigRequest.php | 81 - .../Dataform/V1beta1/GetRepositoryRequest.php | 81 - .../Dataform/V1beta1/GetTeamFolderRequest.php | 81 - .../V1beta1/GetWorkflowConfigRequest.php | 81 - .../V1beta1/GetWorkflowInvocationRequest.php | 81 - .../Dataform/V1beta1/GetWorkspaceRequest.php | 81 - .../V1beta1/InstallNpmPackagesRequest.php | 67 - .../V1beta1/InstallNpmPackagesResponse.php | 33 - .../Dataform/V1beta1/InvocationConfig.php | 299 - .../InvocationConfig/QueryPriority.php | 65 - .../V1beta1/ListCompilationResultsRequest.php | 254 - .../ListCompilationResultsResponse.php | 139 - .../V1beta1/ListReleaseConfigsRequest.php | 178 - .../V1beta1/ListReleaseConfigsResponse.php | 139 - .../V1beta1/ListRepositoriesRequest.php | 254 - .../V1beta1/ListRepositoriesResponse.php | 139 - .../V1beta1/ListWorkflowConfigsRequest.php | 178 - .../V1beta1/ListWorkflowConfigsResponse.php | 139 - .../ListWorkflowInvocationsRequest.php | 254 - .../ListWorkflowInvocationsResponse.php | 139 - .../V1beta1/ListWorkspacesRequest.php | 254 - .../V1beta1/ListWorkspacesResponse.php | 139 - .../Dataform/V1beta1/MakeDirectoryRequest.php | 105 - .../V1beta1/MakeDirectoryResponse.php | 33 - .../Dataform/V1beta1/MoveDirectoryRequest.php | 143 - .../V1beta1/MoveDirectoryResponse.php | 33 - .../Dataform/V1beta1/MoveFileRequest.php | 143 - .../Dataform/V1beta1/MoveFileResponse.php | 33 - .../Dataform/V1beta1/MoveFolderMetadata.php | 224 - .../V1beta1/MoveFolderMetadata/State.php | 75 - .../Dataform/V1beta1/MoveFolderRequest.php | 137 - .../V1beta1/MoveRepositoryMetadata.php | 224 - .../V1beta1/MoveRepositoryMetadata/State.php | 75 - .../V1beta1/MoveRepositoryRequest.php | 142 - .../V1beta1/NotebookRuntimeOptions.php | 124 - .../V1beta1/PrivateResourceMetadata.php | 71 - .../V1beta1/PullGitCommitsRequest.php | 153 - .../V1beta1/PullGitCommitsResponse.php | 33 - .../V1beta1/PushGitCommitsRequest.php | 109 - .../V1beta1/PushGitCommitsResponse.php | 33 - .../QueryCompilationResultActionsRequest.php | 201 - .../QueryCompilationResultActionsResponse.php | 105 - .../V1beta1/QueryDirectoryContentsRequest.php | 197 - .../QueryDirectoryContentsResponse.php | 105 - .../V1beta1/QueryFolderContentsRequest.php | 282 - .../V1beta1/QueryFolderContentsResponse.php | 105 - .../FolderContentsEntry.php | 108 - ...ueryRepositoryDirectoryContentsRequest.php | 239 - ...eryRepositoryDirectoryContentsResponse.php | 105 - .../QueryTeamFolderContentsRequest.php | 282 - .../QueryTeamFolderContentsResponse.php | 105 - .../TeamFolderContentsEntry.php | 108 - .../V1beta1/QueryUserRootContentsRequest.php | 278 - .../V1beta1/QueryUserRootContentsResponse.php | 105 - .../RootContentsEntry.php | 108 - .../QueryWorkflowInvocationActionsRequest.php | 163 - ...QueryWorkflowInvocationActionsResponse.php | 105 - .../Dataform/V1beta1/ReadFileRequest.php | 143 - .../Dataform/V1beta1/ReadFileResponse.php | 67 - .../V1beta1/ReadRepositoryFileRequest.php | 139 - .../V1beta1/ReadRepositoryFileResponse.php | 67 - .../Dataform/V1beta1/RelationDescriptor.php | 135 - .../RelationDescriptor/ColumnDescriptor.php | 139 - .../Cloud/Dataform/V1beta1/ReleaseConfig.php | 435 -- .../ReleaseConfig/ScheduledReleaseRecord.php | 162 - .../V1beta1/RemoveDirectoryRequest.php | 105 - .../V1beta1/RemoveDirectoryResponse.php | 33 - .../Dataform/V1beta1/RemoveFileRequest.php | 105 - .../Dataform/V1beta1/RemoveFileResponse.php | 33 - .../Cloud/Dataform/V1beta1/Repository.php | 671 -- .../V1beta1/Repository/GitRemoteSettings.php | 236 - .../SshAuthenticationConfig.php | 113 - .../GitRemoteSettings/TokenStatus.php | 69 - .../WorkspaceCompilationOverrides.php | 146 - .../V1beta1/ResetWorkspaceChangesRequest.php | 139 - .../V1beta1/ResetWorkspaceChangesResponse.php | 33 - .../Dataform/V1beta1/SearchFilesRequest.php | 201 - .../Dataform/V1beta1/SearchFilesResponse.php | 105 - .../Cloud/Dataform/V1beta1/SearchResult.php | 108 - .../V1beta1/SearchTeamFoldersRequest.php | 259 - .../V1beta1/SearchTeamFoldersResponse.php | 105 - .../TeamFolderSearchResult.php | 75 - .../Google/Cloud/Dataform/V1beta1/Target.php | 136 - .../Cloud/Dataform/V1beta1/TeamFolder.php | 287 - .../Dataform/V1beta1/UpdateConfigRequest.php | 136 - .../Dataform/V1beta1/UpdateFolderRequest.php | 151 - .../V1beta1/UpdateReleaseConfigRequest.php | 141 - .../V1beta1/UpdateRepositoryRequest.php | 141 - .../V1beta1/UpdateTeamFolderRequest.php | 141 - .../V1beta1/UpdateWorkflowConfigRequest.php | 141 - .../Cloud/Dataform/V1beta1/WorkflowConfig.php | 453 -- .../ScheduledExecutionRecord.php | 162 - .../Dataform/V1beta1/WorkflowInvocation.php | 463 -- .../V1beta1/WorkflowInvocation/State.php | 83 - .../V1beta1/WorkflowInvocationAction.php | 421 -- .../BigQueryAction.php | 105 - .../DataPreparationAction.php | 190 - .../ActionErrorTable.php | 116 - .../ActionIncrementalLoadMode.php | 67 - .../ActionLoadConfig.php | 180 - .../ActionSimpleLoadMode.php | 33 - .../ActionSqlDefinition.php | 159 - .../NotebookAction.php | 109 - .../WorkflowInvocationAction/State.php | 91 - .../Cloud/Dataform/V1beta1/Workspace.php | 307 - .../Dataform/V1beta1/WriteFileRequest.php | 135 - .../Dataform/V1beta1/WriteFileResponse.php | 33 - .../DataformClient/cancel_operation.php | 78 - .../cancel_workflow_invocation.php | 76 - .../commit_repository_changes.php | 91 - .../commit_workspace_changes.php | 88 - ...compute_repository_access_token_status.php | 71 - .../create_compilation_result.php | 74 - .../V1beta1/DataformClient/create_folder.php | 77 - .../DataformClient/create_release_config.php | 88 - .../DataformClient/create_repository.php | 78 - .../DataformClient/create_team_folder.php | 77 - .../DataformClient/create_workflow_config.php | 96 - .../create_workflow_invocation.php | 74 - .../DataformClient/create_workspace.php | 78 - .../V1beta1/DataformClient/delete_folder.php | 69 - .../DataformClient/delete_operation.php | 71 - .../DataformClient/delete_release_config.php | 74 - .../DataformClient/delete_repository.php | 69 - .../DataformClient/delete_team_folder.php | 69 - .../DataformClient/delete_workflow_config.php | 74 - .../delete_workflow_invocation.php | 74 - .../DataformClient/delete_workspace.php | 74 - .../DataformClient/fetch_file_diff.php | 80 - .../fetch_file_git_statuses.php | 76 - .../DataformClient/fetch_git_ahead_behind.php | 76 - .../DataformClient/fetch_remote_branches.php | 71 - .../fetch_repository_history.php | 77 - .../DataformClient/get_compilation_result.php | 76 - .../V1beta1/DataformClient/get_config.php | 71 - .../V1beta1/DataformClient/get_folder.php | 71 - .../V1beta1/DataformClient/get_iam_policy.php | 73 - .../V1beta1/DataformClient/get_location.php | 57 - .../V1beta1/DataformClient/get_operation.php | 72 - .../DataformClient/get_release_config.php | 76 - .../V1beta1/DataformClient/get_repository.php | 71 - .../DataformClient/get_team_folder.php | 71 - .../DataformClient/get_workflow_config.php | 76 - .../get_workflow_invocation.php | 76 - .../V1beta1/DataformClient/get_workspace.php | 76 - .../DataformClient/install_npm_packages.php | 76 - .../list_compilation_results.php | 77 - .../V1beta1/DataformClient/list_locations.php | 69 - .../DataformClient/list_operations.php | 79 - .../DataformClient/list_release_configs.php | 77 - .../DataformClient/list_repositories.php | 80 - .../DataformClient/list_workflow_configs.php | 77 - .../list_workflow_invocations.php | 77 - .../DataformClient/list_workspaces.php | 77 - .../V1beta1/DataformClient/make_directory.php | 80 - .../V1beta1/DataformClient/move_directory.php | 85 - .../V1beta1/DataformClient/move_file.php | 84 - .../V1beta1/DataformClient/move_folder.php | 80 - .../DataformClient/move_repository.php | 80 - .../DataformClient/pull_git_commits.php | 88 - .../DataformClient/push_git_commits.php | 76 - .../query_compilation_result_actions.php | 81 - .../query_directory_contents.php | 81 - .../DataformClient/query_folder_contents.php | 77 - .../query_repository_directory_contents.php | 77 - .../query_team_folder_contents.php | 77 - .../query_user_root_contents.php | 79 - .../query_workflow_invocation_actions.php | 81 - .../V1beta1/DataformClient/read_file.php | 80 - .../DataformClient/read_repository_file.php | 75 - .../DataformClient/remove_directory.php | 80 - .../V1beta1/DataformClient/remove_file.php | 80 - .../reset_workspace_changes.php | 76 - .../V1beta1/DataformClient/search_files.php | 81 - .../DataformClient/search_team_folders.php | 78 - .../V1beta1/DataformClient/set_iam_policy.php | 76 - .../DataformClient/test_iam_permissions.php | 84 - .../V1beta1/DataformClient/update_config.php | 64 - .../V1beta1/DataformClient/update_folder.php | 72 - .../DataformClient/update_release_config.php | 81 - .../DataformClient/update_repository.php | 64 - .../DataformClient/update_team_folder.php | 72 - .../DataformClient/update_workflow_config.php | 85 - .../V1beta1/DataformClient/write_file.php | 82 - .../src/V1beta1/Client/DataformClient.php | 2988 -------- .../v1beta1/src/V1beta1/gapic_metadata.json | 403 -- .../resources/dataform_client_config.json | 419 -- .../resources/dataform_descriptor_config.php | 1138 ---- .../resources/dataform_rest_client_config.php | 978 --- .../V1beta1/Client/DataformClientTest.php | 5798 ---------------- 552 files changed, 4879 insertions(+), 82045 deletions(-) rename {owl-bot-staging/Dataform/v1 => Dataform}/samples/V1/DataformClient/cancel_operation.php (100%) rename {owl-bot-staging/Dataform/v1 => Dataform}/samples/V1/DataformClient/create_folder.php (100%) rename {owl-bot-staging/Dataform/v1 => Dataform}/samples/V1/DataformClient/create_team_folder.php (100%) rename {owl-bot-staging/Dataform/v1 => Dataform}/samples/V1/DataformClient/delete_folder.php (100%) rename {owl-bot-staging/Dataform/v1 => Dataform}/samples/V1/DataformClient/delete_folder_tree.php (100%) rename {owl-bot-staging/Dataform/v1 => Dataform}/samples/V1/DataformClient/delete_operation.php (100%) rename {owl-bot-staging/Dataform/v1 => Dataform}/samples/V1/DataformClient/delete_team_folder.php (100%) rename {owl-bot-staging/Dataform/v1 => Dataform}/samples/V1/DataformClient/delete_team_folder_tree.php (100%) rename {owl-bot-staging/Dataform/v1 => Dataform}/samples/V1/DataformClient/get_folder.php (100%) rename {owl-bot-staging/Dataform/v1 => Dataform}/samples/V1/DataformClient/get_operation.php (100%) rename {owl-bot-staging/Dataform/v1 => Dataform}/samples/V1/DataformClient/get_team_folder.php (100%) rename {owl-bot-staging/Dataform/v1 => Dataform}/samples/V1/DataformClient/list_operations.php (100%) rename {owl-bot-staging/Dataform/v1 => Dataform}/samples/V1/DataformClient/move_folder.php (100%) rename {owl-bot-staging/Dataform/v1 => Dataform}/samples/V1/DataformClient/move_repository.php (100%) rename {owl-bot-staging/Dataform/v1 => Dataform}/samples/V1/DataformClient/query_folder_contents.php (100%) rename {owl-bot-staging/Dataform/v1 => Dataform}/samples/V1/DataformClient/query_team_folder_contents.php (100%) rename {owl-bot-staging/Dataform/v1 => Dataform}/samples/V1/DataformClient/query_user_root_contents.php (100%) rename {owl-bot-staging/Dataform/v1 => Dataform}/samples/V1/DataformClient/search_team_folders.php (100%) rename {owl-bot-staging/Dataform/v1 => Dataform}/samples/V1/DataformClient/update_folder.php (100%) rename {owl-bot-staging/Dataform/v1 => Dataform}/samples/V1/DataformClient/update_team_folder.php (100%) rename {owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1/CompilationResultAction/Relation/FileFormat.php (100%) rename {owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1/CompilationResultAction/Relation/TableFormat.php (100%) rename {owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1/CreateFolderRequest.php (100%) rename {owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1/CreateTeamFolderRequest.php (100%) rename {owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1/DeleteFolderRequest.php (100%) rename {owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1/DeleteFolderTreeMetadata.php (100%) rename {owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1/DeleteFolderTreeMetadata/State.php (100%) rename {owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1/DeleteFolderTreeRequest.php (100%) rename {owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1/DeleteTeamFolderRequest.php (100%) rename {owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1/DeleteTeamFolderTreeRequest.php (100%) rename {owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1/DirectoryContentsView.php (100%) rename {owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1/FilesystemEntryMetadata.php (100%) rename {owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1/Folder.php (100%) rename {owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1/GetFolderRequest.php (100%) rename {owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1/GetTeamFolderRequest.php (100%) rename {owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1/InvocationConfig/QueryPriority.php (100%) rename {owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1/MoveFolderMetadata.php (100%) rename {owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1/MoveFolderMetadata/State.php (100%) rename {owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1/MoveFolderRequest.php (100%) rename {owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1/MoveRepositoryMetadata.php (100%) rename {owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1/MoveRepositoryMetadata/State.php (100%) rename {owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1/MoveRepositoryRequest.php (100%) rename {owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1/PrivateResourceMetadata.php (100%) rename {owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1/QueryFolderContentsRequest.php (100%) rename {owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1/QueryFolderContentsResponse.php (100%) rename {owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1/QueryFolderContentsResponse/FolderContentsEntry.php (100%) rename {owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1/QueryTeamFolderContentsRequest.php (100%) rename {owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1/QueryTeamFolderContentsResponse.php (100%) rename {owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1/QueryTeamFolderContentsResponse/TeamFolderContentsEntry.php (100%) rename {owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1/QueryUserRootContentsRequest.php (100%) rename {owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1/QueryUserRootContentsResponse.php (100%) rename {owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1/QueryUserRootContentsResponse/RootContentsEntry.php (100%) rename {owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1/SearchTeamFoldersRequest.php (100%) rename {owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1/SearchTeamFoldersResponse.php (100%) rename {owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1/SearchTeamFoldersResponse/TeamFolderSearchResult.php (100%) rename {owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1/TeamFolder.php (100%) rename {owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1/UpdateFolderRequest.php (100%) rename {owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1/UpdateTeamFolderRequest.php (100%) delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/GPBMetadata/Google/Cloud/Dataform/V1/Dataform.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CancelWorkflowInvocationRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CancelWorkflowInvocationResponse.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CodeCompilationConfig.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitAuthor.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitLogEntry.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitMetadata.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitRepositoryChangesRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitRepositoryChangesRequest/FileOperation.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitRepositoryChangesRequest/FileOperation/DeleteFile.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitRepositoryChangesRequest/FileOperation/WriteFile.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitRepositoryChangesResponse.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitWorkspaceChangesRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitWorkspaceChangesResponse.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResult.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResult/CompilationError.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Assertion.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/DataPreparation.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/DataPreparation/ErrorTable.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/DataPreparation/SqlDefinition.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Declaration.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/IncrementalLoadMode.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/LoadConfig.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Notebook.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Operations.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Relation.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Relation/IncrementalTableConfig.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Relation/RelationType.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/SimpleLoadMode.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ComputeRepositoryAccessTokenStatusRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ComputeRepositoryAccessTokenStatusResponse.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ComputeRepositoryAccessTokenStatusResponse/TokenStatus.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Config.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateCompilationResultRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateReleaseConfigRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateRepositoryRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateWorkflowConfigRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateWorkflowInvocationRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateWorkspaceRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DataEncryptionState.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteReleaseConfigRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteRepositoryRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteWorkflowConfigRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteWorkflowInvocationRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteWorkspaceRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DirectoryEntry.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DirectorySearchResult.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileDiffRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileDiffResponse.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileGitStatusesRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileGitStatusesResponse.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileGitStatusesResponse/UncommittedFileChange.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileGitStatusesResponse/UncommittedFileChange/State.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchGitAheadBehindRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchGitAheadBehindResponse.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchRemoteBranchesRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchRemoteBranchesResponse.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchRepositoryHistoryRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchRepositoryHistoryResponse.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FileSearchResult.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetCompilationResultRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetConfigRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetReleaseConfigRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetRepositoryRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetWorkflowConfigRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetWorkflowInvocationRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetWorkspaceRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/InstallNpmPackagesRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/InstallNpmPackagesResponse.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/InvocationConfig.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListCompilationResultsRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListCompilationResultsResponse.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListReleaseConfigsRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListReleaseConfigsResponse.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListRepositoriesRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListRepositoriesResponse.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkflowConfigsRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkflowConfigsResponse.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkflowInvocationsRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkflowInvocationsResponse.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkspacesRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkspacesResponse.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MakeDirectoryRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MakeDirectoryResponse.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveDirectoryRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveDirectoryResponse.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveFileRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveFileResponse.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/NotebookRuntimeOptions.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/PullGitCommitsRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/PullGitCommitsResponse.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/PushGitCommitsRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/PushGitCommitsResponse.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryCompilationResultActionsRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryCompilationResultActionsResponse.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryDirectoryContentsRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryDirectoryContentsResponse.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryRepositoryDirectoryContentsRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryRepositoryDirectoryContentsResponse.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryWorkflowInvocationActionsRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryWorkflowInvocationActionsResponse.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReadFileRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReadFileResponse.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReadRepositoryFileRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReadRepositoryFileResponse.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RelationDescriptor.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RelationDescriptor/ColumnDescriptor.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReleaseConfig.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReleaseConfig/ScheduledReleaseRecord.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RemoveDirectoryRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RemoveDirectoryResponse.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RemoveFileRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RemoveFileResponse.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Repository.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Repository/GitRemoteSettings.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Repository/GitRemoteSettings/SshAuthenticationConfig.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Repository/GitRemoteSettings/TokenStatus.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Repository/WorkspaceCompilationOverrides.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ResetWorkspaceChangesRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ResetWorkspaceChangesResponse.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/SearchFilesRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/SearchFilesResponse.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/SearchResult.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Target.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/UpdateConfigRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/UpdateReleaseConfigRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/UpdateRepositoryRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/UpdateWorkflowConfigRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowConfig.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowConfig/ScheduledExecutionRecord.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocation.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocation/State.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/BigQueryAction.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction/ActionErrorTable.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction/ActionIncrementalLoadMode.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction/ActionLoadConfig.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction/ActionSimpleLoadMode.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction/ActionSqlDefinition.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/NotebookAction.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/State.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Workspace.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WriteFileRequest.php delete mode 100644 owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WriteFileResponse.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/cancel_workflow_invocation.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/commit_repository_changes.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/commit_workspace_changes.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/compute_repository_access_token_status.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_compilation_result.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_release_config.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_repository.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_workflow_config.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_workflow_invocation.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_workspace.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_release_config.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_repository.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_workflow_config.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_workflow_invocation.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_workspace.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/fetch_file_diff.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/fetch_file_git_statuses.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/fetch_git_ahead_behind.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/fetch_remote_branches.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/fetch_repository_history.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_compilation_result.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_config.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_iam_policy.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_location.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_release_config.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_repository.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_workflow_config.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_workflow_invocation.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_workspace.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/install_npm_packages.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_compilation_results.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_locations.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_release_configs.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_repositories.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_workflow_configs.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_workflow_invocations.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_workspaces.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/make_directory.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/move_directory.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/move_file.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/pull_git_commits.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/push_git_commits.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/query_compilation_result_actions.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/query_directory_contents.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/query_repository_directory_contents.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/query_workflow_invocation_actions.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/read_file.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/read_repository_file.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/remove_directory.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/remove_file.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/reset_workspace_changes.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/search_files.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/set_iam_policy.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/test_iam_permissions.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/update_config.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/update_release_config.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/update_repository.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/update_workflow_config.php delete mode 100644 owl-bot-staging/Dataform/v1/samples/V1/DataformClient/write_file.php delete mode 100644 owl-bot-staging/Dataform/v1/src/V1/Client/DataformClient.php delete mode 100644 owl-bot-staging/Dataform/v1/src/V1/gapic_metadata.json delete mode 100644 owl-bot-staging/Dataform/v1/src/V1/resources/dataform_client_config.json delete mode 100644 owl-bot-staging/Dataform/v1/src/V1/resources/dataform_descriptor_config.php delete mode 100644 owl-bot-staging/Dataform/v1/src/V1/resources/dataform_rest_client_config.php delete mode 100644 owl-bot-staging/Dataform/v1/tests/Unit/V1/Client/DataformClientTest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/GPBMetadata/Google/Cloud/Dataform/V1Beta1/Dataform.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CancelWorkflowInvocationRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CancelWorkflowInvocationResponse.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CodeCompilationConfig.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitAuthor.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitLogEntry.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitMetadata.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesRequest/FileOperation.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesRequest/FileOperation/DeleteFile.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesRequest/FileOperation/WriteFile.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesResponse.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitWorkspaceChangesRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitWorkspaceChangesResponse.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResult.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResult/CompilationError.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Assertion.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/DataPreparation.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/DataPreparation/ErrorTable.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/DataPreparation/SqlDefinition.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Declaration.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/IncrementalLoadMode.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/LoadConfig.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Notebook.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Operations.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation/FileFormat.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation/IncrementalTableConfig.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation/RelationType.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation/TableFormat.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/SimpleLoadMode.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ComputeRepositoryAccessTokenStatusRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ComputeRepositoryAccessTokenStatusResponse.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ComputeRepositoryAccessTokenStatusResponse/TokenStatus.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Config.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateCompilationResultRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateFolderRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateReleaseConfigRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateRepositoryRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateTeamFolderRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateWorkflowConfigRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateWorkflowInvocationRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateWorkspaceRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DataEncryptionState.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteFolderRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteReleaseConfigRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteRepositoryRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteTeamFolderRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteWorkflowConfigRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteWorkflowInvocationRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteWorkspaceRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DirectoryEntry.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DirectorySearchResult.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileDiffRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileDiffResponse.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileGitStatusesRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileGitStatusesResponse.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileGitStatusesResponse/UncommittedFileChange.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileGitStatusesResponse/UncommittedFileChange/State.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchGitAheadBehindRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchGitAheadBehindResponse.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchRemoteBranchesRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchRemoteBranchesResponse.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchRepositoryHistoryRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchRepositoryHistoryResponse.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FileSearchResult.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Folder.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetCompilationResultRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetConfigRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetFolderRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetReleaseConfigRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetRepositoryRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetTeamFolderRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetWorkflowConfigRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetWorkflowInvocationRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetWorkspaceRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/InstallNpmPackagesRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/InstallNpmPackagesResponse.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/InvocationConfig.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/InvocationConfig/QueryPriority.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListCompilationResultsRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListCompilationResultsResponse.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListReleaseConfigsRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListReleaseConfigsResponse.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListRepositoriesRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListRepositoriesResponse.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkflowConfigsRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkflowConfigsResponse.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkflowInvocationsRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkflowInvocationsResponse.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkspacesRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkspacesResponse.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MakeDirectoryRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MakeDirectoryResponse.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveDirectoryRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveDirectoryResponse.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveFileRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveFileResponse.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveFolderMetadata.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveFolderMetadata/State.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveFolderRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveRepositoryMetadata.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveRepositoryMetadata/State.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveRepositoryRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/NotebookRuntimeOptions.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/PrivateResourceMetadata.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/PullGitCommitsRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/PullGitCommitsResponse.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/PushGitCommitsRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/PushGitCommitsResponse.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryCompilationResultActionsRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryCompilationResultActionsResponse.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryDirectoryContentsRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryDirectoryContentsResponse.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryFolderContentsRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryFolderContentsResponse.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryFolderContentsResponse/FolderContentsEntry.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryRepositoryDirectoryContentsRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryRepositoryDirectoryContentsResponse.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryTeamFolderContentsRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryTeamFolderContentsResponse.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryTeamFolderContentsResponse/TeamFolderContentsEntry.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryUserRootContentsRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryUserRootContentsResponse.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryUserRootContentsResponse/RootContentsEntry.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryWorkflowInvocationActionsRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryWorkflowInvocationActionsResponse.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReadFileRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReadFileResponse.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReadRepositoryFileRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReadRepositoryFileResponse.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RelationDescriptor.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RelationDescriptor/ColumnDescriptor.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReleaseConfig.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReleaseConfig/ScheduledReleaseRecord.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RemoveDirectoryRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RemoveDirectoryResponse.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RemoveFileRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RemoveFileResponse.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository/GitRemoteSettings.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository/GitRemoteSettings/SshAuthenticationConfig.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository/GitRemoteSettings/TokenStatus.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository/WorkspaceCompilationOverrides.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ResetWorkspaceChangesRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ResetWorkspaceChangesResponse.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchFilesRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchFilesResponse.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchResult.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchTeamFoldersRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchTeamFoldersResponse.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchTeamFoldersResponse/TeamFolderSearchResult.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Target.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/TeamFolder.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateConfigRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateFolderRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateReleaseConfigRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateRepositoryRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateTeamFolderRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateWorkflowConfigRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowConfig.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowConfig/ScheduledExecutionRecord.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocation.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocation/State.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/BigQueryAction.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionErrorTable.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionIncrementalLoadMode.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionLoadConfig.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionSimpleLoadMode.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionSqlDefinition.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/NotebookAction.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/State.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Workspace.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WriteFileRequest.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WriteFileResponse.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/cancel_operation.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/cancel_workflow_invocation.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/commit_repository_changes.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/commit_workspace_changes.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/compute_repository_access_token_status.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_compilation_result.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_folder.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_release_config.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_repository.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_team_folder.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_workflow_config.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_workflow_invocation.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_workspace.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_folder.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_operation.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_release_config.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_repository.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_team_folder.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_workflow_config.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_workflow_invocation.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_workspace.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/fetch_file_diff.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/fetch_file_git_statuses.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/fetch_git_ahead_behind.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/fetch_remote_branches.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/fetch_repository_history.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_compilation_result.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_config.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_folder.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_iam_policy.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_location.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_operation.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_release_config.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_repository.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_team_folder.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_workflow_config.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_workflow_invocation.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_workspace.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/install_npm_packages.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_compilation_results.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_locations.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_operations.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_release_configs.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_repositories.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_workflow_configs.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_workflow_invocations.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_workspaces.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/make_directory.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/move_directory.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/move_file.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/move_folder.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/move_repository.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/pull_git_commits.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/push_git_commits.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_compilation_result_actions.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_directory_contents.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_folder_contents.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_repository_directory_contents.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_team_folder_contents.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_user_root_contents.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_workflow_invocation_actions.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/read_file.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/read_repository_file.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/remove_directory.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/remove_file.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/reset_workspace_changes.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/search_files.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/search_team_folders.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/set_iam_policy.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/test_iam_permissions.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_config.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_folder.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_release_config.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_repository.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_team_folder.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_workflow_config.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/write_file.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/src/V1beta1/Client/DataformClient.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/src/V1beta1/gapic_metadata.json delete mode 100644 owl-bot-staging/Dataform/v1beta1/src/V1beta1/resources/dataform_client_config.json delete mode 100644 owl-bot-staging/Dataform/v1beta1/src/V1beta1/resources/dataform_descriptor_config.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/src/V1beta1/resources/dataform_rest_client_config.php delete mode 100644 owl-bot-staging/Dataform/v1beta1/tests/Unit/V1beta1/Client/DataformClientTest.php diff --git a/Dataform/metadata/V1/Dataform.php b/Dataform/metadata/V1/Dataform.php index 800508282fbb..3ed042e5f9d3 100644 --- a/Dataform/metadata/V1/Dataform.php +++ b/Dataform/metadata/V1/Dataform.php @@ -18,13 +18,16 @@ public static function initOnce() { \GPBMetadata\Google\Api\Client::initOnce(); \GPBMetadata\Google\Api\FieldBehavior::initOnce(); \GPBMetadata\Google\Api\Resource::initOnce(); + \GPBMetadata\Google\Iam\V1\IamPolicy::initOnce(); + \GPBMetadata\Google\Iam\V1\Policy::initOnce(); + \GPBMetadata\Google\Longrunning\Operations::initOnce(); \GPBMetadata\Google\Protobuf\GPBEmpty::initOnce(); \GPBMetadata\Google\Protobuf\FieldMask::initOnce(); \GPBMetadata\Google\Protobuf\Timestamp::initOnce(); \GPBMetadata\Google\Rpc\Status::initOnce(); \GPBMetadata\Google\Type\Interval::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\xC1\xA2\x02\x0A'google/cloud/dataform/v1/dataform.proto\x12\x18google.cloud.dataform.v1\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\x0A\x13DataEncryptionState\x12N\x0A\x14kms_key_version_name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(cloudkms.googleapis.com/CryptoKeyVersion\"\x9E\x0D\x0A\x0ARepository\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x124\x0A\x0Bcreate_time\x18\x0D \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x19\x0A\x0Cdisplay_name\x18\x08 \x01(\x09B\x03\xE0A\x01\x12X\x0A\x13git_remote_settings\x18\x02 \x01(\x0B26.google.cloud.dataform.v1.Repository.GitRemoteSettingsB\x03\xE0A\x01\x12f\x0A*npmrc_environment_variables_secret_version\x18\x03 \x01(\x09B2\xE0A\x01\xFAA,\x0A*secretmanager.googleapis.com/SecretVersion\x12p\x0A\x1Fworkspace_compilation_overrides\x18\x04 \x01(\x0B2B.google.cloud.dataform.v1.Repository.WorkspaceCompilationOverridesB\x03\xE0A\x01\x12E\x0A\x06labels\x18\x05 \x03(\x0B20.google.cloud.dataform.v1.Repository.LabelsEntryB\x03\xE0A\x01\x12,\x0A\x1Cset_authenticated_user_admin\x18\x09 \x01(\x08B\x06\xE0A\x01\xE0A\x04\x12\x1C\x0A\x0Fservice_account\x18\x0A \x01(\x09B\x03\xE0A\x01\x12?\x0A\x0Ckms_key_name\x18\x0B \x01(\x09B)\xE0A\x01\xFAA#\x0A!cloudkms.googleapis.com/CryptoKey\x12Q\x0A\x15data_encryption_state\x18\x0C \x01(\x0B2-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xE0A\x03\x12#\x0A\x11internal_metadata\x18\x0F \x01(\x09B\x03\xE0A\x03H\x00\x88\x01\x01\x1A\xE7\x04\x0A\x11GitRemoteSettings\x12\x10\x0A\x03url\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x1B\x0A\x0Edefault_branch\x18\x02 \x01(\x09B\x03\xE0A\x02\x12_\x0A#authentication_token_secret_version\x18\x03 \x01(\x09B2\xE0A\x01\xFAA,\x0A*secretmanager.googleapis.com/SecretVersion\x12v\x0A\x19ssh_authentication_config\x18\x05 \x01(\x0B2N.google.cloud.dataform.v1.Repository.GitRemoteSettings.SshAuthenticationConfigB\x03\xE0A\x01\x12_\x0A\x0Ctoken_status\x18\x04 \x01(\x0E2B.google.cloud.dataform.v1.Repository.GitRemoteSettings.TokenStatusB\x05\x18\x01\xE0A\x03\x1A\x94\x01\x0A\x17SshAuthenticationConfig\x12[\x0A\x1Fuser_private_key_secret_version\x18\x01 \x01(\x09B2\xE0A\x02\xFAA,\x0A*secretmanager.googleapis.com/SecretVersion\x12\x1C\x0A\x0Fhost_public_key\x18\x02 \x01(\x09B\x03\xE0A\x02\"R\x0A\x0BTokenStatus\x12\x1C\x0A\x18TOKEN_STATUS_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09NOT_FOUND\x10\x01\x12\x0B\x0A\x07INVALID\x10\x02\x12\x09\x0A\x05VALID\x10\x03\x1Au\x0A\x1DWorkspaceCompilationOverrides\x12\x1D\x0A\x10default_database\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Dschema_suffix\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Ctable_prefix\x18\x03 \x01(\x09B\x03\xE0A\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:\x85\x01\xEAA\x81\x01\x0A\"dataform.googleapis.com/Repository\x12Aprojects/{project}/locations/{location}/repositories/{repository}*\x0Crepositories2\x0ArepositoryB\x14\x0A\x12_internal_metadata\"\xB1\x01\x0A\x17ListRepositoriesRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\x84\x01\x0A\x18ListRepositoriesResponse\x12:\x0A\x0Crepositories\x18\x01 \x03(\x0B2\$.google.cloud.dataform.v1.Repository\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x13\x0A\x0Bunreachable\x18\x03 \x03(\x09\"P\x0A\x14GetRepositoryRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\"\xAF\x01\x0A\x17CreateRepositoryRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12=\x0A\x0Arepository\x18\x02 \x01(\x0B2\$.google.cloud.dataform.v1.RepositoryB\x03\xE0A\x02\x12\x1A\x0A\x0Drepository_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"\x8E\x01\x0A\x17UpdateRepositoryRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12=\x0A\x0Arepository\x18\x02 \x01(\x0B2\$.google.cloud.dataform.v1.RepositoryB\x03\xE0A\x02\"g\x0A\x17DeleteRepositoryRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x12\x0A\x05force\x18\x02 \x01(\x08B\x03\xE0A\x01\"\xD2\x05\x0A\x1ECommitRepositoryChangesRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12F\x0A\x0Fcommit_metadata\x18\x02 \x01(\x0B2(.google.cloud.dataform.v1.CommitMetadataB\x03\xE0A\x02\x12%\x0A\x18required_head_commit_sha\x18\x04 \x01(\x09B\x03\xE0A\x01\x12j\x0A\x0Ffile_operations\x18\x03 \x03(\x0B2L.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperationsEntryB\x03\xE0A\x01\x1A\x9B\x02\x0A\x0DFileOperation\x12f\x0A\x0Awrite_file\x18\x01 \x01(\x0B2P.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation.WriteFileH\x00\x12h\x0A\x0Bdelete_file\x18\x02 \x01(\x0B2Q.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation.DeleteFileH\x00\x1A\x1D\x0A\x09WriteFile\x12\x10\x0A\x08contents\x18\x01 \x01(\x0C\x1A\x0C\x0A\x0ADeleteFileB\x0B\x0A\x09operation\x1A}\x0A\x13FileOperationsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12U\x0A\x05value\x18\x02 \x01(\x0B2F.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation:\x028\x01\"5\x0A\x1FCommitRepositoryChangesResponse\x12\x12\x0A\x0Acommit_sha\x18\x01 \x01(\x09\"\x81\x01\x0A\x19ReadRepositoryFileRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x17\x0A\x0Acommit_sha\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04path\x18\x03 \x01(\x09B\x03\xE0A\x02\".\x0A\x1AReadRepositoryFileResponse\x12\x10\x0A\x08contents\x18\x01 \x01(\x0C\"\xC0\x01\x0A'QueryRepositoryDirectoryContentsRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x17\x0A\x0Acommit_sha\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04path\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09page_size\x18\x04 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x05 \x01(\x09B\x03\xE0A\x01\"\x88\x01\x0A(QueryRepositoryDirectoryContentsResponse\x12C\x0A\x11directory_entries\x18\x01 \x03(\x0B2(.google.cloud.dataform.v1.DirectoryEntry\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x8A\x01\x0A\x1DFetchRepositoryHistoryRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x05 \x01(\x09B\x03\xE0A\x01\"t\x0A\x1EFetchRepositoryHistoryResponse\x129\x0A\x07commits\x18\x01 \x03(\x0B2(.google.cloud.dataform.v1.CommitLogEntry\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xA5\x01\x0A\x0ECommitLogEntry\x12/\x0A\x0Bcommit_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x12\x0A\x0Acommit_sha\x18\x02 \x01(\x09\x126\x0A\x06author\x18\x03 \x01(\x0B2&.google.cloud.dataform.v1.CommitAuthor\x12\x16\x0A\x0Ecommit_message\x18\x04 \x01(\x09\"j\x0A\x0ECommitMetadata\x12;\x0A\x06author\x18\x01 \x01(\x0B2&.google.cloud.dataform.v1.CommitAuthorB\x03\xE0A\x02\x12\x1B\x0A\x0Ecommit_message\x18\x02 \x01(\x09B\x03\xE0A\x01\"e\x0A)ComputeRepositoryAccessTokenStatusRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\"\xE8\x01\x0A*ComputeRepositoryAccessTokenStatusResponse\x12f\x0A\x0Ctoken_status\x18\x01 \x01(\x0E2P.google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus\"R\x0A\x0BTokenStatus\x12\x1C\x0A\x18TOKEN_STATUS_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09NOT_FOUND\x10\x01\x12\x0B\x0A\x07INVALID\x10\x02\x12\x09\x0A\x05VALID\x10\x03\"V\x0A\x1AFetchRemoteBranchesRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\"/\x0A\x1BFetchRemoteBranchesResponse\x12\x10\x0A\x08branches\x18\x01 \x03(\x09\"\xFD\x02\x0A\x09Workspace\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12Q\x0A\x15data_encryption_state\x18\x02 \x01(\x0B2-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xE0A\x03\x12#\x0A\x11internal_metadata\x18\x05 \x01(\x09B\x03\xE0A\x03H\x00\x88\x01\x01:\x98\x01\xEAA\x94\x01\x0A!dataform.googleapis.com/Workspace\x12Xprojects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace}*\x0Aworkspaces2\x09workspaceB\x14\x0A\x12_internal_metadata\"\xB0\x01\x0A\x15ListWorkspacesRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\x7F\x0A\x16ListWorkspacesResponse\x127\x0A\x0Aworkspaces\x18\x01 \x03(\x0B2#.google.cloud.dataform.v1.Workspace\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x13\x0A\x0Bunreachable\x18\x03 \x03(\x09\"N\x0A\x13GetWorkspaceRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\"\xAC\x01\x0A\x16CreateWorkspaceRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12;\x0A\x09workspace\x18\x02 \x01(\x0B2#.google.cloud.dataform.v1.WorkspaceB\x03\xE0A\x02\x12\x19\x0A\x0Cworkspace_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"Q\x0A\x16DeleteWorkspaceRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\"=\x0A\x0CCommitAuthor\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x1A\x0A\x0Demail_address\x18\x02 \x01(\x09B\x03\xE0A\x02\"\xA9\x01\x0A\x15PullGitCommitsRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x1A\x0A\x0Dremote_branch\x18\x02 \x01(\x09B\x03\xE0A\x01\x12;\x0A\x06author\x18\x03 \x01(\x0B2&.google.cloud.dataform.v1.CommitAuthorB\x03\xE0A\x02\"\x18\x0A\x16PullGitCommitsResponse\"l\x0A\x15PushGitCommitsRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x1A\x0A\x0Dremote_branch\x18\x02 \x01(\x09B\x03\xE0A\x01\"\x18\x0A\x16PushGitCommitsResponse\"V\x0A\x1BFetchFileGitStatusesRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\"\xF7\x02\x0A\x1CFetchFileGitStatusesResponse\x12n\x0A\x18uncommitted_file_changes\x18\x01 \x03(\x0B2L.google.cloud.dataform.v1.FetchFileGitStatusesResponse.UncommittedFileChange\x1A\xE6\x01\x0A\x15UncommittedFileChange\x12\x0C\x0A\x04path\x18\x01 \x01(\x09\x12f\x0A\x05state\x18\x02 \x01(\x0E2R.google.cloud.dataform.v1.FetchFileGitStatusesResponse.UncommittedFileChange.StateB\x03\xE0A\x03\"W\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05ADDED\x10\x01\x12\x0B\x0A\x07DELETED\x10\x02\x12\x0C\x0A\x08MODIFIED\x10\x03\x12\x11\x0A\x0DHAS_CONFLICTS\x10\x04\"q\x0A\x1AFetchGitAheadBehindRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x1A\x0A\x0Dremote_branch\x18\x02 \x01(\x09B\x03\xE0A\x01\"L\x0A\x1BFetchGitAheadBehindResponse\x12\x15\x0A\x0Dcommits_ahead\x18\x01 \x01(\x05\x12\x16\x0A\x0Ecommits_behind\x18\x02 \x01(\x05\"\xC6\x01\x0A\x1DCommitWorkspaceChangesRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12;\x0A\x06author\x18\x04 \x01(\x0B2&.google.cloud.dataform.v1.CommitAuthorB\x03\xE0A\x02\x12\x1B\x0A\x0Ecommit_message\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x12\x0A\x05paths\x18\x03 \x03(\x09B\x03\xE0A\x01\" \x0A\x1ECommitWorkspaceChangesResponse\"\x7F\x0A\x1CResetWorkspaceChangesRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x12\x0A\x05paths\x18\x02 \x03(\x09B\x03\xE0A\x01\x12\x12\x0A\x05clean\x18\x03 \x01(\x08B\x03\xE0A\x01\"\x1F\x0A\x1DResetWorkspaceChangesResponse\"g\x0A\x14FetchFileDiffRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\"/\x0A\x15FetchFileDiffResponse\x12\x16\x0A\x0Eformatted_diff\x18\x01 \x01(\x09\"\xA1\x01\x0A\x1DQueryDirectoryContentsRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09page_size\x18\x03 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x04 \x01(\x09B\x03\xE0A\x01\"~\x0A\x1EQueryDirectoryContentsResponse\x12C\x0A\x11directory_entries\x18\x01 \x03(\x0B2(.google.cloud.dataform.v1.DirectoryEntry\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\">\x0A\x0EDirectoryEntry\x12\x0E\x0A\x04file\x18\x01 \x01(\x09H\x00\x12\x13\x0A\x09directory\x18\x02 \x01(\x09H\x00B\x07\x0A\x05entry\"\x98\x01\x0A\x12SearchFilesRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\"s\x0A\x13SearchFilesResponse\x12>\x0A\x0Esearch_results\x18\x01 \x03(\x0B2&.google.cloud.dataform.v1.SearchResult\x12\x1C\x0A\x0Fnext_page_token\x18\x02 \x01(\x09B\x03\xE0A\x01\"\x99\x01\x0A\x0CSearchResult\x12:\x0A\x04file\x18\x01 \x01(\x0B2*.google.cloud.dataform.v1.FileSearchResultH\x00\x12D\x0A\x09directory\x18\x02 \x01(\x0B2/.google.cloud.dataform.v1.DirectorySearchResultH\x00B\x07\x0A\x05entry\" \x0A\x10FileSearchResult\x12\x0C\x0A\x04path\x18\x01 \x01(\x09\"%\x0A\x15DirectorySearchResult\x12\x0C\x0A\x04path\x18\x01 \x01(\x09\"g\x0A\x14MakeDirectoryRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\"\x17\x0A\x15MakeDirectoryResponse\"i\x0A\x16RemoveDirectoryRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\"\x19\x0A\x17RemoveDirectoryResponse\"~\x0A\x14MoveDirectoryRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08new_path\x18\x03 \x01(\x09B\x03\xE0A\x02\"\x17\x0A\x15MoveDirectoryResponse\"y\x0A\x0FReadFileRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08revision\x18\x03 \x01(\x09B\x03\xE0A\x01\")\x0A\x10ReadFileResponse\x12\x15\x0A\x0Dfile_contents\x18\x01 \x01(\x0C\"d\x0A\x11RemoveFileRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\"\x14\x0A\x12RemoveFileResponse\"y\x0A\x0FMoveFileRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08new_path\x18\x03 \x01(\x09B\x03\xE0A\x02\"\x12\x0A\x10MoveFileResponse\"z\x0A\x10WriteFileRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08contents\x18\x03 \x01(\x0CB\x03\xE0A\x02\"\x13\x0A\x11WriteFileResponse\"Y\x0A\x19InstallNpmPackagesRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\"\x1C\x0A\x1AInstallNpmPackagesResponse\"\xE7\x06\x0A\x0DReleaseConfig\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x1A\x0A\x0Dgit_commitish\x18\x02 \x01(\x09B\x03\xE0A\x02\x12U\x0A\x17code_compilation_config\x18\x03 \x01(\x0B2/.google.cloud.dataform.v1.CodeCompilationConfigB\x03\xE0A\x01\x12\x1A\x0A\x0Dcron_schedule\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09time_zone\x18\x07 \x01(\x09B\x03\xE0A\x01\x12m\x0A recent_scheduled_release_records\x18\x05 \x03(\x0B2>.google.cloud.dataform.v1.ReleaseConfig.ScheduledReleaseRecordB\x03\xE0A\x03\x12U\x0A\x1Arelease_compilation_result\x18\x06 \x01(\x09B1\xE0A\x01\xFAA+\x0A)dataform.googleapis.com/CompilationResult\x12\x15\x0A\x08disabled\x18\x08 \x01(\x08B\x03\xE0A\x01\x12#\x0A\x11internal_metadata\x18\x09 \x01(\x09B\x03\xE0A\x03H\x00\x88\x01\x01\x1A\xD3\x01\x0A\x16ScheduledReleaseRecord\x12L\x0A\x12compilation_result\x18\x02 \x01(\x09B.\xFAA+\x0A)dataform.googleapis.com/CompilationResultH\x00\x12*\x0A\x0Cerror_status\x18\x03 \x01(\x0B2\x12.google.rpc.StatusH\x00\x125\x0A\x0Crelease_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03B\x08\x0A\x06result:\xAD\x01\xEAA\xA9\x01\x0A%dataform.googleapis.com/ReleaseConfig\x12aprojects/{project}/locations/{location}/repositories/{repository}/releaseConfigs/{release_config}*\x0EreleaseConfigs2\x0DreleaseConfigB\x14\x0A\x12_internal_metadata\"\x88\x01\x0A\x19ListReleaseConfigsRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"\x8C\x01\x0A\x1AListReleaseConfigsResponse\x12@\x0A\x0Frelease_configs\x18\x01 \x03(\x0B2'.google.cloud.dataform.v1.ReleaseConfig\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x13\x0A\x0Bunreachable\x18\x03 \x03(\x09\"V\x0A\x17GetReleaseConfigRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%dataform.googleapis.com/ReleaseConfig\"\xBE\x01\x0A\x1ACreateReleaseConfigRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12D\x0A\x0Erelease_config\x18\x02 \x01(\x0B2'.google.cloud.dataform.v1.ReleaseConfigB\x03\xE0A\x02\x12\x1E\x0A\x11release_config_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"\x98\x01\x0A\x1AUpdateReleaseConfigRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12D\x0A\x0Erelease_config\x18\x02 \x01(\x0B2'.google.cloud.dataform.v1.ReleaseConfigB\x03\xE0A\x02\"Y\x0A\x1ADeleteReleaseConfigRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%dataform.googleapis.com/ReleaseConfig\"\xEF\x07\x0A\x11CompilationResult\x12\x1C\x0A\x0Dgit_commitish\x18\x02 \x01(\x09B\x03\xE0A\x05H\x00\x12>\x0A\x09workspace\x18\x03 \x01(\x09B)\xE0A\x05\xFAA#\x0A!dataform.googleapis.com/WorkspaceH\x00\x12G\x0A\x0Erelease_config\x18\x07 \x01(\x09B-\xE0A\x05\xFAA'\x0A%dataform.googleapis.com/ReleaseConfigH\x00\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12U\x0A\x17code_compilation_config\x18\x04 \x01(\x0B2/.google.cloud.dataform.v1.CodeCompilationConfigB\x03\xE0A\x05\x12\$\x0A\x17resolved_git_commit_sha\x18\x08 \x01(\x09B\x03\xE0A\x03\x12\"\x0A\x15dataform_core_version\x18\x05 \x01(\x09B\x03\xE0A\x03\x12]\x0A\x12compilation_errors\x18\x06 \x03(\x0B2<.google.cloud.dataform.v1.CompilationResult.CompilationErrorB\x03\xE0A\x03\x12Q\x0A\x15data_encryption_state\x18\x09 \x01(\x0B2-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x0A \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12#\x0A\x11internal_metadata\x18\x0B \x01(\x09B\x03\xE0A\x03H\x01\x88\x01\x01\x1A\x8D\x01\x0A\x10CompilationError\x12\x14\x0A\x07message\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x12\x0A\x05stack\x18\x02 \x01(\x09B\x03\xE0A\x03\x12\x11\x0A\x04path\x18\x03 \x01(\x09B\x03\xE0A\x03\x12<\x0A\x0Daction_target\x18\x04 \x01(\x0B2 .google.cloud.dataform.v1.TargetB\x03\xE0A\x03:\xC1\x01\xEAA\xBD\x01\x0A)dataform.googleapis.com/CompilationResult\x12iprojects/{project}/locations/{location}/repositories/{repository}/compilationResults/{compilation_result}*\x12compilationResults2\x11compilationResultB\x08\x0A\x06sourceB\x14\x0A\x12_internal_metadata\"\xEE\x03\x0A\x15CodeCompilationConfig\x12\x1D\x0A\x10default_database\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x1B\x0A\x0Edefault_schema\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x1D\x0A\x10default_location\x18\x08 \x01(\x09B\x03\xE0A\x01\x12\x1D\x0A\x10assertion_schema\x18\x03 \x01(\x09B\x03\xE0A\x01\x12L\x0A\x04vars\x18\x04 \x03(\x0B29.google.cloud.dataform.v1.CodeCompilationConfig.VarsEntryB\x03\xE0A\x01\x12\x1C\x0A\x0Fdatabase_suffix\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Dschema_suffix\x18\x06 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Ctable_prefix\x18\x07 \x01(\x09B\x03\xE0A\x01\x12*\x0A\x1Dbuiltin_assertion_name_prefix\x18\x0A \x01(\x09B\x03\xE0A\x01\x12_\x0A default_notebook_runtime_options\x18\x09 \x01(\x0B20.google.cloud.dataform.v1.NotebookRuntimeOptionsB\x03\xE0A\x01\x1A+\x0A\x09VarsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\xB6\x01\x0A\x16NotebookRuntimeOptions\x12 \x0A\x11gcs_output_bucket\x18\x01 \x01(\x09B\x03\xE0A\x01H\x00\x12h\x0A%ai_platform_notebook_runtime_template\x18\x02 \x01(\x09B9\xE0A\x01\xFAA3\x0A1aiplatform.googleapis.com/NotebookRuntimeTemplateB\x10\x0A\x0Eexecution_sink\"\xB8\x01\x0A\x1DListCompilationResultsRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\x98\x01\x0A\x1EListCompilationResultsResponse\x12H\x0A\x13compilation_results\x18\x01 \x03(\x0B2+.google.cloud.dataform.v1.CompilationResult\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x13\x0A\x0Bunreachable\x18\x03 \x03(\x09\"^\x0A\x1BGetCompilationResultRequest\x12?\x0A\x04name\x18\x01 \x01(\x09B1\xE0A\x02\xFAA+\x0A)dataform.googleapis.com/CompilationResult\"\xAA\x01\x0A\x1ECreateCompilationResultRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12L\x0A\x12compilation_result\x18\x02 \x01(\x0B2+.google.cloud.dataform.v1.CompilationResultB\x03\xE0A\x02\"G\x0A\x06Target\x12\x15\x0A\x08database\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06schema\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04name\x18\x03 \x01(\x09B\x03\xE0A\x01\"\xE0\x02\x0A\x12RelationDescriptor\x12\x13\x0A\x0Bdescription\x18\x01 \x01(\x09\x12N\x0A\x07columns\x18\x02 \x03(\x0B2=.google.cloud.dataform.v1.RelationDescriptor.ColumnDescriptor\x12Y\x0A\x0Fbigquery_labels\x18\x03 \x03(\x0B2@.google.cloud.dataform.v1.RelationDescriptor.BigqueryLabelsEntry\x1AS\x0A\x10ColumnDescriptor\x12\x0C\x0A\x04path\x18\x01 \x03(\x09\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09\x12\x1C\x0A\x14bigquery_policy_tags\x18\x03 \x03(\x09\x1A5\x0A\x13BigqueryLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\xBA\x1B\x0A\x17CompilationResultAction\x12N\x0A\x08relation\x18\x04 \x01(\x0B2:.google.cloud.dataform.v1.CompilationResultAction.RelationH\x00\x12R\x0A\x0Aoperations\x18\x05 \x01(\x0B2<.google.cloud.dataform.v1.CompilationResultAction.OperationsH\x00\x12P\x0A\x09assertion\x18\x06 \x01(\x0B2;.google.cloud.dataform.v1.CompilationResultAction.AssertionH\x00\x12T\x0A\x0Bdeclaration\x18\x07 \x01(\x0B2=.google.cloud.dataform.v1.CompilationResultAction.DeclarationH\x00\x12N\x0A\x08notebook\x18\x08 \x01(\x0B2:.google.cloud.dataform.v1.CompilationResultAction.NotebookH\x00\x12]\x0A\x10data_preparation\x18\x09 \x01(\x0B2A.google.cloud.dataform.v1.CompilationResultAction.DataPreparationH\x00\x120\x0A\x06target\x18\x01 \x01(\x0B2 .google.cloud.dataform.v1.Target\x12:\x0A\x10canonical_target\x18\x02 \x01(\x0B2 .google.cloud.dataform.v1.Target\x12\x11\x0A\x09file_path\x18\x03 \x01(\x09\x12#\x0A\x11internal_metadata\x18\x0A \x01(\x09B\x03\xE0A\x03H\x01\x88\x01\x01\x1A\xC5\x08\x0A\x08Relation\x12<\x0A\x12dependency_targets\x18\x01 \x03(\x0B2 .google.cloud.dataform.v1.Target\x12\x10\x0A\x08disabled\x18\x02 \x01(\x08\x12\x0C\x0A\x04tags\x18\x03 \x03(\x09\x12I\x0A\x13relation_descriptor\x18\x04 \x01(\x0B2,.google.cloud.dataform.v1.RelationDescriptor\x12^\x0A\x0Drelation_type\x18\x05 \x01(\x0E2G.google.cloud.dataform.v1.CompilationResultAction.Relation.RelationType\x12\x14\x0A\x0Cselect_query\x18\x06 \x01(\x09\x12\x16\x0A\x0Epre_operations\x18\x07 \x03(\x09\x12\x17\x0A\x0Fpost_operations\x18\x08 \x03(\x09\x12s\x0A\x18incremental_table_config\x18\x09 \x01(\x0B2Q.google.cloud.dataform.v1.CompilationResultAction.Relation.IncrementalTableConfig\x12\x1C\x0A\x14partition_expression\x18\x0A \x01(\x09\x12\x1B\x0A\x13cluster_expressions\x18\x0B \x03(\x09\x12!\x0A\x19partition_expiration_days\x18\x0C \x01(\x05\x12 \x0A\x18require_partition_filter\x18\x0D \x01(\x08\x12m\x0A\x12additional_options\x18\x0E \x03(\x0B2Q.google.cloud.dataform.v1.CompilationResultAction.Relation.AdditionalOptionsEntry\x1A\xD8\x01\x0A\x16IncrementalTableConfig\x12 \x0A\x18incremental_select_query\x18\x01 \x01(\x09\x12\x18\x0A\x10refresh_disabled\x18\x02 \x01(\x08\x12\x18\x0A\x10unique_key_parts\x18\x03 \x03(\x09\x12\x1F\x0A\x17update_partition_filter\x18\x04 \x01(\x09\x12\"\x0A\x1Aincremental_pre_operations\x18\x05 \x03(\x09\x12#\x0A\x1Bincremental_post_operations\x18\x06 \x03(\x09\x1A8\x0A\x16AdditionalOptionsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"p\x0A\x0CRelationType\x12\x1D\x0A\x19RELATION_TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05TABLE\x10\x01\x12\x08\x0A\x04VIEW\x10\x02\x12\x15\x0A\x11INCREMENTAL_TABLE\x10\x03\x12\x15\x0A\x11MATERIALIZED_VIEW\x10\x04\x1A\xDA\x01\x0A\x0AOperations\x12<\x0A\x12dependency_targets\x18\x01 \x03(\x0B2 .google.cloud.dataform.v1.Target\x12\x10\x0A\x08disabled\x18\x02 \x01(\x08\x12\x0C\x0A\x04tags\x18\x03 \x03(\x09\x12I\x0A\x13relation_descriptor\x18\x06 \x01(\x0B2,.google.cloud.dataform.v1.RelationDescriptor\x12\x0F\x0A\x07queries\x18\x04 \x03(\x09\x12\x12\x0A\x0Ahas_output\x18\x05 \x01(\x08\x1A\x83\x02\x0A\x09Assertion\x12<\x0A\x12dependency_targets\x18\x01 \x03(\x0B2 .google.cloud.dataform.v1.Target\x127\x0A\x0Dparent_action\x18\x05 \x01(\x0B2 .google.cloud.dataform.v1.Target\x12\x10\x0A\x08disabled\x18\x02 \x01(\x08\x12\x0C\x0A\x04tags\x18\x03 \x03(\x09\x12\x14\x0A\x0Cselect_query\x18\x04 \x01(\x09\x12I\x0A\x13relation_descriptor\x18\x06 \x01(\x0B2,.google.cloud.dataform.v1.RelationDescriptor\x1AX\x0A\x0BDeclaration\x12I\x0A\x13relation_descriptor\x18\x01 \x01(\x0B2,.google.cloud.dataform.v1.RelationDescriptor\x1Az\x0A\x08Notebook\x12<\x0A\x12dependency_targets\x18\x01 \x03(\x0B2 .google.cloud.dataform.v1.Target\x12\x10\x0A\x08disabled\x18\x02 \x01(\x08\x12\x10\x0A\x08contents\x18\x03 \x01(\x09\x12\x0C\x0A\x04tags\x18\x04 \x03(\x09\x1A\xA7\x04\x0A\x0FDataPreparation\x12\x17\x0A\x0Dcontents_yaml\x18\x05 \x01(\x09H\x00\x12g\x0A\x0Ccontents_sql\x18\x06 \x01(\x0B2O.google.cloud.dataform.v1.CompilationResultAction.DataPreparation.SqlDefinitionH\x00\x12<\x0A\x12dependency_targets\x18\x01 \x03(\x0B2 .google.cloud.dataform.v1.Target\x12\x10\x0A\x08disabled\x18\x02 \x01(\x08\x12\x0C\x0A\x04tags\x18\x04 \x03(\x09\x1A\xCD\x01\x0A\x0DSqlDefinition\x12\x0D\x0A\x05query\x18\x01 \x01(\x09\x12a\x0A\x0Berror_table\x18\x02 \x01(\x0B2L.google.cloud.dataform.v1.CompilationResultAction.DataPreparation.ErrorTable\x12J\x0A\x04load\x18\x03 \x01(\x0B2<.google.cloud.dataform.v1.CompilationResultAction.LoadConfig\x1AV\x0A\x0AErrorTable\x120\x0A\x06target\x18\x01 \x01(\x0B2 .google.cloud.dataform.v1.Target\x12\x16\x0A\x0Eretention_days\x18\x02 \x01(\x05B\x0C\x0A\x0Adefinition\x1A\xF0\x02\x0A\x0ALoadConfig\x12S\x0A\x07replace\x18\x01 \x01(\x0B2@.google.cloud.dataform.v1.CompilationResultAction.SimpleLoadModeH\x00\x12R\x0A\x06append\x18\x02 \x01(\x0B2@.google.cloud.dataform.v1.CompilationResultAction.SimpleLoadModeH\x00\x12X\x0A\x07maximum\x18\x03 \x01(\x0B2E.google.cloud.dataform.v1.CompilationResultAction.IncrementalLoadModeH\x00\x12W\x0A\x06unique\x18\x04 \x01(\x0B2E.google.cloud.dataform.v1.CompilationResultAction.IncrementalLoadModeH\x00B\x06\x0A\x04mode\x1A\x10\x0A\x0ESimpleLoadMode\x1A%\x0A\x13IncrementalLoadMode\x12\x0E\x0A\x06column\x18\x01 \x01(\x09B\x11\x0A\x0Fcompiled_objectB\x14\x0A\x12_internal_metadata\"\xAD\x01\x0A\$QueryCompilationResultActionsRequest\x12?\x0A\x04name\x18\x01 \x01(\x09B1\xE0A\x02\xFAA+\x0A)dataform.googleapis.com/CompilationResult\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\"\x97\x01\x0A%QueryCompilationResultActionsResponse\x12U\x0A\x1Acompilation_result_actions\x18\x01 \x03(\x0B21.google.cloud.dataform.v1.CompilationResultAction\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xAD\x07\x0A\x0EWorkflowConfig\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12E\x0A\x0Erelease_config\x18\x02 \x01(\x09B-\xE0A\x02\xFAA'\x0A%dataform.googleapis.com/ReleaseConfig\x12J\x0A\x11invocation_config\x18\x03 \x01(\x0B2*.google.cloud.dataform.v1.InvocationConfigB\x03\xE0A\x01\x12\x1A\x0A\x0Dcron_schedule\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09time_zone\x18\x07 \x01(\x09B\x03\xE0A\x01\x12r\x0A\"recent_scheduled_execution_records\x18\x05 \x03(\x0B2A.google.cloud.dataform.v1.WorkflowConfig.ScheduledExecutionRecordB\x03\xE0A\x03\x12\x15\x0A\x08disabled\x18\x08 \x01(\x08B\x03\xE0A\x01\x124\x0A\x0Bcreate_time\x18\x09 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x0A \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12#\x0A\x11internal_metadata\x18\x0B \x01(\x09B\x03\xE0A\x03H\x00\x88\x01\x01\x1A\xD9\x01\x0A\x18ScheduledExecutionRecord\x12N\x0A\x13workflow_invocation\x18\x02 \x01(\x09B/\xFAA,\x0A*dataform.googleapis.com/WorkflowInvocationH\x00\x12*\x0A\x0Cerror_status\x18\x03 \x01(\x0B2\x12.google.rpc.StatusH\x00\x127\x0A\x0Eexecution_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03B\x08\x0A\x06result:\xB2\x01\xEAA\xAE\x01\x0A&dataform.googleapis.com/WorkflowConfig\x12cprojects/{project}/locations/{location}/repositories/{repository}/workflowConfigs/{workflow_config}*\x0FworkflowConfigs2\x0EworkflowConfigB\x14\x0A\x12_internal_metadata\"\xA0\x02\x0A\x10InvocationConfig\x12?\x0A\x10included_targets\x18\x01 \x03(\x0B2 .google.cloud.dataform.v1.TargetB\x03\xE0A\x01\x12\x1A\x0A\x0Dincluded_tags\x18\x02 \x03(\x09B\x03\xE0A\x01\x12-\x0A transitive_dependencies_included\x18\x03 \x01(\x08B\x03\xE0A\x01\x12+\x0A\x1Etransitive_dependents_included\x18\x04 \x01(\x08B\x03\xE0A\x01\x125\x0A(fully_refresh_incremental_tables_enabled\x18\x05 \x01(\x08B\x03\xE0A\x01\x12\x1C\x0A\x0Fservice_account\x18\x06 \x01(\x09B\x03\xE0A\x01\"\x89\x01\x0A\x1AListWorkflowConfigsRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"\x8F\x01\x0A\x1BListWorkflowConfigsResponse\x12B\x0A\x10workflow_configs\x18\x01 \x03(\x0B2(.google.cloud.dataform.v1.WorkflowConfig\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x13\x0A\x0Bunreachable\x18\x03 \x03(\x09\"X\x0A\x18GetWorkflowConfigRequest\x12<\x0A\x04name\x18\x01 \x01(\x09B.\xE0A\x02\xFAA(\x0A&dataform.googleapis.com/WorkflowConfig\"\xC2\x01\x0A\x1BCreateWorkflowConfigRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12F\x0A\x0Fworkflow_config\x18\x02 \x01(\x0B2(.google.cloud.dataform.v1.WorkflowConfigB\x03\xE0A\x02\x12\x1F\x0A\x12workflow_config_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"\x9B\x01\x0A\x1BUpdateWorkflowConfigRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12F\x0A\x0Fworkflow_config\x18\x02 \x01(\x0B2(.google.cloud.dataform.v1.WorkflowConfigB\x03\xE0A\x02\"[\x0A\x1BDeleteWorkflowConfigRequest\x12<\x0A\x04name\x18\x01 \x01(\x09B.\xE0A\x02\xFAA(\x0A&dataform.googleapis.com/WorkflowConfig\"\xB9\x07\x0A\x12WorkflowInvocation\x12O\x0A\x12compilation_result\x18\x02 \x01(\x09B1\xE0A\x05\xFAA+\x0A)dataform.googleapis.com/CompilationResultH\x00\x12I\x0A\x0Fworkflow_config\x18\x06 \x01(\x09B.\xE0A\x05\xFAA(\x0A&dataform.googleapis.com/WorkflowConfigH\x00\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12J\x0A\x11invocation_config\x18\x03 \x01(\x0B2*.google.cloud.dataform.v1.InvocationConfigB\x03\xE0A\x05\x12F\x0A\x05state\x18\x04 \x01(\x0E22.google.cloud.dataform.v1.WorkflowInvocation.StateB\x03\xE0A\x03\x125\x0A\x11invocation_timing\x18\x05 \x01(\x0B2\x15.google.type.IntervalB\x03\xE0A\x03\x12V\x0A\x1Bresolved_compilation_result\x18\x07 \x01(\x09B1\xE0A\x03\xFAA+\x0A)dataform.googleapis.com/CompilationResult\x12Q\x0A\x15data_encryption_state\x18\x08 \x01(\x0B2-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xE0A\x03\x12#\x0A\x11internal_metadata\x18\x09 \x01(\x09B\x03\xE0A\x03H\x01\x88\x01\x01\"d\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07RUNNING\x10\x01\x12\x0D\x0A\x09SUCCEEDED\x10\x02\x12\x0D\x0A\x09CANCELLED\x10\x03\x12\x0A\x0A\x06FAILED\x10\x04\x12\x0D\x0A\x09CANCELING\x10\x05:\xC6\x01\xEAA\xC2\x01\x0A*dataform.googleapis.com/WorkflowInvocation\x12kprojects/{project}/locations/{location}/repositories/{repository}/workflowInvocations/{workflow_invocation}*\x13workflowInvocations2\x12workflowInvocationB\x14\x0A\x12compilation_sourceB\x14\x0A\x12_internal_metadata\"\xB9\x01\x0A\x1EListWorkflowInvocationsRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\x9B\x01\x0A\x1FListWorkflowInvocationsResponse\x12J\x0A\x14workflow_invocations\x18\x01 \x03(\x0B2,.google.cloud.dataform.v1.WorkflowInvocation\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x13\x0A\x0Bunreachable\x18\x03 \x03(\x09\"`\x0A\x1CGetWorkflowInvocationRequest\x12@\x0A\x04name\x18\x01 \x01(\x09B2\xE0A\x02\xFAA,\x0A*dataform.googleapis.com/WorkflowInvocation\"\xAD\x01\x0A\x1FCreateWorkflowInvocationRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12N\x0A\x13workflow_invocation\x18\x02 \x01(\x0B2,.google.cloud.dataform.v1.WorkflowInvocationB\x03\xE0A\x02\"c\x0A\x1FDeleteWorkflowInvocationRequest\x12@\x0A\x04name\x18\x01 \x01(\x09B2\xE0A\x02\xFAA,\x0A*dataform.googleapis.com/WorkflowInvocation\"c\x0A\x1FCancelWorkflowInvocationRequest\x12@\x0A\x04name\x18\x01 \x01(\x09B2\xE0A\x02\xFAA,\x0A*dataform.googleapis.com/WorkflowInvocation\"\"\x0A CancelWorkflowInvocationResponse\"\x9B\x10\x0A\x18WorkflowInvocationAction\x12a\x0A\x0Fbigquery_action\x18\x06 \x01(\x0B2A.google.cloud.dataform.v1.WorkflowInvocationAction.BigQueryActionB\x03\xE0A\x03H\x00\x12a\x0A\x0Fnotebook_action\x18\x08 \x01(\x0B2A.google.cloud.dataform.v1.WorkflowInvocationAction.NotebookActionB\x03\xE0A\x03H\x00\x12p\x0A\x17data_preparation_action\x18\x09 \x01(\x0B2H.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationActionB\x03\xE0A\x03H\x00\x125\x0A\x06target\x18\x01 \x01(\x0B2 .google.cloud.dataform.v1.TargetB\x03\xE0A\x03\x12?\x0A\x10canonical_target\x18\x02 \x01(\x0B2 .google.cloud.dataform.v1.TargetB\x03\xE0A\x03\x12L\x0A\x05state\x18\x04 \x01(\x0E28.google.cloud.dataform.v1.WorkflowInvocationAction.StateB\x03\xE0A\x03\x12\x1B\x0A\x0Efailure_reason\x18\x07 \x01(\x09B\x03\xE0A\x03\x125\x0A\x11invocation_timing\x18\x05 \x01(\x0B2\x15.google.type.IntervalB\x03\xE0A\x03\x12#\x0A\x11internal_metadata\x18\x0A \x01(\x09B\x03\xE0A\x03H\x01\x88\x01\x01\x1A>\x0A\x0EBigQueryAction\x12\x17\x0A\x0Asql_script\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x13\x0A\x06job_id\x18\x02 \x01(\x09B\x03\xE0A\x03\x1A<\x0A\x0ENotebookAction\x12\x15\x0A\x08contents\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x13\x0A\x06job_id\x18\x02 \x01(\x09B\x03\xE0A\x03\x1A\x81\x09\x0A\x15DataPreparationAction\x12\x1C\x0A\x0Dcontents_yaml\x18\x02 \x01(\x09B\x03\xE0A\x03H\x00\x12t\x0A\x0Ccontents_sql\x18\x06 \x01(\x0B2\\.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSqlDefinitionH\x00\x12\x1A\x0A\x0Dgenerated_sql\x18\x03 \x01(\x09B\x03\xE0A\x03\x12\x13\x0A\x06job_id\x18\x04 \x01(\x09B\x03\xE0A\x03\x1A\x84\x02\x0A\x13ActionSqlDefinition\x12\x0D\x0A\x05query\x18\x01 \x01(\x09\x12n\x0A\x0Berror_table\x18\x02 \x01(\x0B2Y.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionErrorTable\x12n\x0A\x0Bload_config\x18\x03 \x01(\x0B2Y.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionLoadConfig\x1A\\\x0A\x10ActionErrorTable\x120\x0A\x06target\x18\x01 \x01(\x0B2 .google.cloud.dataform.v1.Target\x12\x16\x0A\x0Eretention_days\x18\x02 \x01(\x05\x1A\xEA\x03\x0A\x10ActionLoadConfig\x12p\x0A\x07replace\x18\x01 \x01(\x0B2].google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadModeH\x00\x12o\x0A\x06append\x18\x02 \x01(\x0B2].google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadModeH\x00\x12u\x0A\x07maximum\x18\x03 \x01(\x0B2b.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadModeH\x00\x12t\x0A\x06unique\x18\x04 \x01(\x0B2b.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadModeH\x00B\x06\x0A\x04mode\x1A\x16\x0A\x14ActionSimpleLoadMode\x1A+\x0A\x19ActionIncrementalLoadMode\x12\x0E\x0A\x06column\x18\x01 \x01(\x09B\x0C\x0A\x0Adefinition\"f\x0A\x05State\x12\x0B\x0A\x07PENDING\x10\x00\x12\x0B\x0A\x07RUNNING\x10\x01\x12\x0B\x0A\x07SKIPPED\x10\x02\x12\x0C\x0A\x08DISABLED\x10\x03\x12\x0D\x0A\x09SUCCEEDED\x10\x04\x12\x0D\x0A\x09CANCELLED\x10\x05\x12\x0A\x0A\x06FAILED\x10\x06B\x08\x0A\x06actionB\x14\x0A\x12_internal_metadata\"\x9A\x01\x0A%QueryWorkflowInvocationActionsRequest\x12@\x0A\x04name\x18\x01 \x01(\x09B2\xE0A\x02\xFAA,\x0A*dataform.googleapis.com/WorkflowInvocation\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"\x9A\x01\x0A&QueryWorkflowInvocationActionsResponse\x12W\x0A\x1Bworkflow_invocation_actions\x18\x01 \x03(\x0B22.google.cloud.dataform.v1.WorkflowInvocationAction\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xCA\x01\x0A\x06Config\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12G\x0A\x14default_kms_key_name\x18\x02 \x01(\x09B)\xE0A\x01\xFAA#\x0A!cloudkms.googleapis.com/CryptoKey:d\xEAAa\x0A\x1Edataform.googleapis.com/Config\x12.projects/{project}/locations/{location}/config*\x07configs2\x06config\"H\x0A\x10GetConfigRequest\x124\x0A\x04name\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Edataform.googleapis.com/Config\"\x82\x01\x0A\x13UpdateConfigRequest\x125\x0A\x06config\x18\x01 \x01(\x0B2 .google.cloud.dataform.v1.ConfigB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x012\x8B[\x0A\x08Dataform\x12\xBC\x01\x0A\x10ListRepositories\x121.google.cloud.dataform.v1.ListRepositoriesRequest\x1A2.google.cloud.dataform.v1.ListRepositoriesResponse\"A\xDAA\x06parent\x82\xD3\xE4\x93\x022\x120/v1/{parent=projects/*/locations/*}/repositories\x12\xA6\x01\x0A\x0DGetRepository\x12..google.cloud.dataform.v1.GetRepositoryRequest\x1A\$.google.cloud.dataform.v1.Repository\"?\xDAA\x04name\x82\xD3\xE4\x93\x022\x120/v1/{name=projects/*/locations/*/repositories/*}\x12\xD3\x01\x0A\x10CreateRepository\x121.google.cloud.dataform.v1.CreateRepositoryRequest\x1A\$.google.cloud.dataform.v1.Repository\"f\xDAA\x1Fparent,repository,repository_id\x82\xD3\xE4\x93\x02>\"0/v1/{parent=projects/*/locations/*}/repositories:\x0Arepository\x12\xD5\x01\x0A\x10UpdateRepository\x121.google.cloud.dataform.v1.UpdateRepositoryRequest\x1A\$.google.cloud.dataform.v1.Repository\"h\xDAA\x16repository,update_mask\x82\xD3\xE4\x93\x02I2;/v1/{repository.name=projects/*/locations/*/repositories/*}:\x0Arepository\x12\x9E\x01\x0A\x10DeleteRepository\x121.google.cloud.dataform.v1.DeleteRepositoryRequest\x1A\x16.google.protobuf.Empty\"?\xDAA\x04name\x82\xD3\xE4\x93\x022*0/v1/{name=projects/*/locations/*/repositories/*}\x12\xD2\x01\x0A\x17CommitRepositoryChanges\x128.google.cloud.dataform.v1.CommitRepositoryChangesRequest\x1A9.google.cloud.dataform.v1.CommitRepositoryChangesResponse\"B\x82\xD3\xE4\x93\x02<\"7/v1/{name=projects/*/locations/*/repositories/*}:commit:\x01*\x12\xC2\x01\x0A\x12ReadRepositoryFile\x123.google.cloud.dataform.v1.ReadRepositoryFileRequest\x1A4.google.cloud.dataform.v1.ReadRepositoryFileResponse\"A\x82\xD3\xE4\x93\x02;\x129/v1/{name=projects/*/locations/*/repositories/*}:readFile\x12\xFA\x01\x0A QueryRepositoryDirectoryContents\x12A.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsRequest\x1AB.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsResponse\"O\x82\xD3\xE4\x93\x02I\x12G/v1/{name=projects/*/locations/*/repositories/*}:queryDirectoryContents\x12\xD2\x01\x0A\x16FetchRepositoryHistory\x127.google.cloud.dataform.v1.FetchRepositoryHistoryRequest\x1A8.google.cloud.dataform.v1.FetchRepositoryHistoryResponse\"E\x82\xD3\xE4\x93\x02?\x12=/v1/{name=projects/*/locations/*/repositories/*}:fetchHistory\x12\x82\x02\x0A\"ComputeRepositoryAccessTokenStatus\x12C.google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusRequest\x1AD.google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusResponse\"Q\x82\xD3\xE4\x93\x02K\x12I/v1/{name=projects/*/locations/*/repositories/*}:computeAccessTokenStatus\x12\xD0\x01\x0A\x13FetchRemoteBranches\x124.google.cloud.dataform.v1.FetchRemoteBranchesRequest\x1A5.google.cloud.dataform.v1.FetchRemoteBranchesResponse\"L\x82\xD3\xE4\x93\x02F\x12D/v1/{name=projects/*/locations/*/repositories/*}:fetchRemoteBranches\x12\xC3\x01\x0A\x0EListWorkspaces\x12/.google.cloud.dataform.v1.ListWorkspacesRequest\x1A0.google.cloud.dataform.v1.ListWorkspacesResponse\"N\xDAA\x06parent\x82\xD3\xE4\x93\x02?\x12=/v1/{parent=projects/*/locations/*/repositories/*}/workspaces\x12\xB0\x01\x0A\x0CGetWorkspace\x12-.google.cloud.dataform.v1.GetWorkspaceRequest\x1A#.google.cloud.dataform.v1.Workspace\"L\xDAA\x04name\x82\xD3\xE4\x93\x02?\x12=/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}\x12\xDA\x01\x0A\x0FCreateWorkspace\x120.google.cloud.dataform.v1.CreateWorkspaceRequest\x1A#.google.cloud.dataform.v1.Workspace\"p\xDAA\x1Dparent,workspace,workspace_id\x82\xD3\xE4\x93\x02J\"=/v1/{parent=projects/*/locations/*/repositories/*}/workspaces:\x09workspace\x12\xA9\x01\x0A\x0FDeleteWorkspace\x120.google.cloud.dataform.v1.DeleteWorkspaceRequest\x1A\x16.google.protobuf.Empty\"L\xDAA\x04name\x82\xD3\xE4\x93\x02?*=/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}\x12\xE1\x01\x0A\x12InstallNpmPackages\x123.google.cloud.dataform.v1.InstallNpmPackagesRequest\x1A4.google.cloud.dataform.v1.InstallNpmPackagesResponse\"`\x82\xD3\xE4\x93\x02Z\"U/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:installNpmPackages:\x01*\x12\xC2\x01\x0A\x0EPullGitCommits\x12/.google.cloud.dataform.v1.PullGitCommitsRequest\x1A0.google.cloud.dataform.v1.PullGitCommitsResponse\"M\x82\xD3\xE4\x93\x02G\"B/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:pull:\x01*\x12\xC2\x01\x0A\x0EPushGitCommits\x12/.google.cloud.dataform.v1.PushGitCommitsRequest\x1A0.google.cloud.dataform.v1.PushGitCommitsResponse\"M\x82\xD3\xE4\x93\x02G\"B/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:push:\x01*\x12\xE1\x01\x0A\x14FetchFileGitStatuses\x125.google.cloud.dataform.v1.FetchFileGitStatusesRequest\x1A6.google.cloud.dataform.v1.FetchFileGitStatusesResponse\"Z\x82\xD3\xE4\x93\x02T\x12R/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:fetchFileGitStatuses\x12\xDD\x01\x0A\x13FetchGitAheadBehind\x124.google.cloud.dataform.v1.FetchGitAheadBehindRequest\x1A5.google.cloud.dataform.v1.FetchGitAheadBehindResponse\"Y\x82\xD3\xE4\x93\x02S\x12Q/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:fetchGitAheadBehind\x12\xDC\x01\x0A\x16CommitWorkspaceChanges\x127.google.cloud.dataform.v1.CommitWorkspaceChangesRequest\x1A8.google.cloud.dataform.v1.CommitWorkspaceChangesResponse\"O\x82\xD3\xE4\x93\x02I\"D/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:commit:\x01*\x12\xD8\x01\x0A\x15ResetWorkspaceChanges\x126.google.cloud.dataform.v1.ResetWorkspaceChangesRequest\x1A7.google.cloud.dataform.v1.ResetWorkspaceChangesResponse\"N\x82\xD3\xE4\x93\x02H\"C/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:reset:\x01*\x12\xCA\x01\x0A\x0DFetchFileDiff\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\x0A\x16QueryDirectoryContents\x127.google.cloud.dataform.v1.QueryDirectoryContentsRequest\x1A8.google.cloud.dataform.v1.QueryDirectoryContentsResponse\"a\x82\xD3\xE4\x93\x02[\x12Y/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:queryDirectoryContents\x12\xC2\x01\x0A\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\x0A\x0DMakeDirectory\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\x0A\x0FRemoveDirectory\x120.google.cloud.dataform.v1.RemoveDirectoryRequest\x1A1.google.cloud.dataform.v1.RemoveDirectoryResponse\"]\x82\xD3\xE4\x93\x02W\"R/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:removeDirectory:\x01*\x12\xCD\x01\x0A\x0DMoveDirectory\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\x0A\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\x0A\x0ARemoveFile\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\x0A\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\x0A\x09WriteFile\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\x0A\x12ListReleaseConfigs\x123.google.cloud.dataform.v1.ListReleaseConfigsRequest\x1A4.google.cloud.dataform.v1.ListReleaseConfigsResponse\"R\xDAA\x06parent\x82\xD3\xE4\x93\x02C\x12A/v1/{parent=projects/*/locations/*/repositories/*}/releaseConfigs\x12\xC0\x01\x0A\x10GetReleaseConfig\x121.google.cloud.dataform.v1.GetReleaseConfigRequest\x1A'.google.cloud.dataform.v1.ReleaseConfig\"P\xDAA\x04name\x82\xD3\xE4\x93\x02C\x12A/v1/{name=projects/*/locations/*/repositories/*/releaseConfigs/*}\x12\xFA\x01\x0A\x13CreateReleaseConfig\x124.google.cloud.dataform.v1.CreateReleaseConfigRequest\x1A'.google.cloud.dataform.v1.ReleaseConfig\"\x83\x01\xDAA'parent,release_config,release_config_id\x82\xD3\xE4\x93\x02S\"A/v1/{parent=projects/*/locations/*/repositories/*}/releaseConfigs:\x0Erelease_config\x12\xFC\x01\x0A\x13UpdateReleaseConfig\x124.google.cloud.dataform.v1.UpdateReleaseConfigRequest\x1A'.google.cloud.dataform.v1.ReleaseConfig\"\x85\x01\xDAA\x1Arelease_config,update_mask\x82\xD3\xE4\x93\x02b2P/v1/{release_config.name=projects/*/locations/*/repositories/*/releaseConfigs/*}:\x0Erelease_config\x12\xB5\x01\x0A\x13DeleteReleaseConfig\x124.google.cloud.dataform.v1.DeleteReleaseConfigRequest\x1A\x16.google.protobuf.Empty\"P\xDAA\x04name\x82\xD3\xE4\x93\x02C*A/v1/{name=projects/*/locations/*/repositories/*/releaseConfigs/*}\x12\xE3\x01\x0A\x16ListCompilationResults\x127.google.cloud.dataform.v1.ListCompilationResultsRequest\x1A8.google.cloud.dataform.v1.ListCompilationResultsResponse\"V\xDAA\x06parent\x82\xD3\xE4\x93\x02G\x12E/v1/{parent=projects/*/locations/*/repositories/*}/compilationResults\x12\xD0\x01\x0A\x14GetCompilationResult\x125.google.cloud.dataform.v1.GetCompilationResultRequest\x1A+.google.cloud.dataform.v1.CompilationResult\"T\xDAA\x04name\x82\xD3\xE4\x93\x02G\x12E/v1/{name=projects/*/locations/*/repositories/*/compilationResults/*}\x12\xFF\x01\x0A\x17CreateCompilationResult\x128.google.cloud.dataform.v1.CreateCompilationResultRequest\x1A+.google.cloud.dataform.v1.CompilationResult\"}\xDAA\x19parent,compilation_result\x82\xD3\xE4\x93\x02[\"E/v1/{parent=projects/*/locations/*/repositories/*}/compilationResults:\x12compilation_result\x12\xF5\x01\x0A\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\x0A\x13ListWorkflowConfigs\x124.google.cloud.dataform.v1.ListWorkflowConfigsRequest\x1A5.google.cloud.dataform.v1.ListWorkflowConfigsResponse\"S\xDAA\x06parent\x82\xD3\xE4\x93\x02D\x12B/v1/{parent=projects/*/locations/*/repositories/*}/workflowConfigs\x12\xC4\x01\x0A\x11GetWorkflowConfig\x122.google.cloud.dataform.v1.GetWorkflowConfigRequest\x1A(.google.cloud.dataform.v1.WorkflowConfig\"Q\xDAA\x04name\x82\xD3\xE4\x93\x02D\x12B/v1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}\x12\x81\x02\x0A\x14CreateWorkflowConfig\x125.google.cloud.dataform.v1.CreateWorkflowConfigRequest\x1A(.google.cloud.dataform.v1.WorkflowConfig\"\x87\x01\xDAA)parent,workflow_config,workflow_config_id\x82\xD3\xE4\x93\x02U\"B/v1/{parent=projects/*/locations/*/repositories/*}/workflowConfigs:\x0Fworkflow_config\x12\x83\x02\x0A\x14UpdateWorkflowConfig\x125.google.cloud.dataform.v1.UpdateWorkflowConfigRequest\x1A(.google.cloud.dataform.v1.WorkflowConfig\"\x89\x01\xDAA\x1Bworkflow_config,update_mask\x82\xD3\xE4\x93\x02e2R/v1/{workflow_config.name=projects/*/locations/*/repositories/*/workflowConfigs/*}:\x0Fworkflow_config\x12\xB8\x01\x0A\x14DeleteWorkflowConfig\x125.google.cloud.dataform.v1.DeleteWorkflowConfigRequest\x1A\x16.google.protobuf.Empty\"Q\xDAA\x04name\x82\xD3\xE4\x93\x02D*B/v1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}\x12\xE7\x01\x0A\x17ListWorkflowInvocations\x128.google.cloud.dataform.v1.ListWorkflowInvocationsRequest\x1A9.google.cloud.dataform.v1.ListWorkflowInvocationsResponse\"W\xDAA\x06parent\x82\xD3\xE4\x93\x02H\x12F/v1/{parent=projects/*/locations/*/repositories/*}/workflowInvocations\x12\xD4\x01\x0A\x15GetWorkflowInvocation\x126.google.cloud.dataform.v1.GetWorkflowInvocationRequest\x1A,.google.cloud.dataform.v1.WorkflowInvocation\"U\xDAA\x04name\x82\xD3\xE4\x93\x02H\x12F/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}\x12\x86\x02\x0A\x18CreateWorkflowInvocation\x129.google.cloud.dataform.v1.CreateWorkflowInvocationRequest\x1A,.google.cloud.dataform.v1.WorkflowInvocation\"\x80\x01\xDAA\x1Aparent,workflow_invocation\x82\xD3\xE4\x93\x02]\"F/v1/{parent=projects/*/locations/*/repositories/*}/workflowInvocations:\x13workflow_invocation\x12\xC4\x01\x0A\x18DeleteWorkflowInvocation\x129.google.cloud.dataform.v1.DeleteWorkflowInvocationRequest\x1A\x16.google.protobuf.Empty\"U\xDAA\x04name\x82\xD3\xE4\x93\x02H*F/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}\x12\xEB\x01\x0A\x18CancelWorkflowInvocation\x129.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\x0A\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\x0A\x09GetConfig\x12*.google.cloud.dataform.v1.GetConfigRequest\x1A .google.cloud.dataform.v1.Config\"7\xDAA\x04name\x82\xD3\xE4\x93\x02*\x12(/v1/{name=projects/*/locations/*/config}\x12\xB5\x01\x0A\x0CUpdateConfig\x12-.google.cloud.dataform.v1.UpdateConfigRequest\x1A .google.cloud.dataform.v1.Config\"T\xDAA\x12config,update_mask\x82\xD3\xE4\x93\x0292//v1/{config.name=projects/*/locations/*/config}:\x06config\x1At\xCAA\x17dataform.googleapis.com\xD2AWhttps://www.googleapis.com/auth/bigquery,https://www.googleapis.com/auth/cloud-platformB\xDE\x05\x0A\x1Ccom.google.cloud.dataform.v1B\x0DDataformProtoP\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\xEAAd\x0A*secretmanager.googleapis.com/SecretVersion\x126projects/{project}/secrets/{secret}/versions/{version}\xEAAx\x0A!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\xEAA\xA6\x01\x0A(cloudkms.googleapis.com/CryptoKeyVersion\x12zprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}\xEAA\x91\x01\x0A1aiplatform.googleapis.com/NotebookRuntimeTemplate\x12\\projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}b\x06proto3" + "\x0A\xD0\xFA\x02\x0A'google/cloud/dataform/v1/dataform.proto\x12\x18google.cloud.dataform.v1\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\x0A\x13DataEncryptionState\x12N\x0A\x14kms_key_version_name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(cloudkms.googleapis.com/CryptoKeyVersion\"\x92\x0E\x0A\x0ARepository\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12#\x0A\x11containing_folder\x18\x10 \x01(\x09B\x03\xE0A\x01H\x00\x88\x01\x01\x12\"\x0A\x10team_folder_name\x18\x12 \x01(\x09B\x03\xE0A\x03H\x01\x88\x01\x01\x124\x0A\x0Bcreate_time\x18\x0D \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x19\x0A\x0Cdisplay_name\x18\x08 \x01(\x09B\x03\xE0A\x01\x12X\x0A\x13git_remote_settings\x18\x02 \x01(\x0B26.google.cloud.dataform.v1.Repository.GitRemoteSettingsB\x03\xE0A\x01\x12f\x0A*npmrc_environment_variables_secret_version\x18\x03 \x01(\x09B2\xE0A\x01\xFAA,\x0A*secretmanager.googleapis.com/SecretVersion\x12p\x0A\x1Fworkspace_compilation_overrides\x18\x04 \x01(\x0B2B.google.cloud.dataform.v1.Repository.WorkspaceCompilationOverridesB\x03\xE0A\x01\x12E\x0A\x06labels\x18\x05 \x03(\x0B20.google.cloud.dataform.v1.Repository.LabelsEntryB\x03\xE0A\x01\x12,\x0A\x1Cset_authenticated_user_admin\x18\x09 \x01(\x08B\x06\xE0A\x01\xE0A\x04\x12\x1C\x0A\x0Fservice_account\x18\x0A \x01(\x09B\x03\xE0A\x01\x12?\x0A\x0Ckms_key_name\x18\x0B \x01(\x09B)\xE0A\x01\xFAA#\x0A!cloudkms.googleapis.com/CryptoKey\x12Q\x0A\x15data_encryption_state\x18\x0C \x01(\x0B2-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xE0A\x03\x12#\x0A\x11internal_metadata\x18\x0F \x01(\x09B\x03\xE0A\x03H\x02\x88\x01\x01\x1A\xE7\x04\x0A\x11GitRemoteSettings\x12\x10\x0A\x03url\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x1B\x0A\x0Edefault_branch\x18\x02 \x01(\x09B\x03\xE0A\x02\x12_\x0A#authentication_token_secret_version\x18\x03 \x01(\x09B2\xE0A\x01\xFAA,\x0A*secretmanager.googleapis.com/SecretVersion\x12v\x0A\x19ssh_authentication_config\x18\x05 \x01(\x0B2N.google.cloud.dataform.v1.Repository.GitRemoteSettings.SshAuthenticationConfigB\x03\xE0A\x01\x12_\x0A\x0Ctoken_status\x18\x04 \x01(\x0E2B.google.cloud.dataform.v1.Repository.GitRemoteSettings.TokenStatusB\x05\x18\x01\xE0A\x03\x1A\x94\x01\x0A\x17SshAuthenticationConfig\x12[\x0A\x1Fuser_private_key_secret_version\x18\x01 \x01(\x09B2\xE0A\x02\xFAA,\x0A*secretmanager.googleapis.com/SecretVersion\x12\x1C\x0A\x0Fhost_public_key\x18\x02 \x01(\x09B\x03\xE0A\x02\"R\x0A\x0BTokenStatus\x12\x1C\x0A\x18TOKEN_STATUS_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09NOT_FOUND\x10\x01\x12\x0B\x0A\x07INVALID\x10\x02\x12\x09\x0A\x05VALID\x10\x03\x1Au\x0A\x1DWorkspaceCompilationOverrides\x12\x1D\x0A\x10default_database\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Dschema_suffix\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Ctable_prefix\x18\x03 \x01(\x09B\x03\xE0A\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:\x85\x01\xEAA\x81\x01\x0A\"dataform.googleapis.com/Repository\x12Aprojects/{project}/locations/{location}/repositories/{repository}*\x0Crepositories2\x0ArepositoryB\x14\x0A\x12_containing_folderB\x13\x0A\x11_team_folder_nameB\x14\x0A\x12_internal_metadata\"3\x0A\x17PrivateResourceMetadata\x12\x18\x0A\x0Buser_scoped\x18\x01 \x01(\x08B\x03\xE0A\x03\"\xB1\x01\x0A\x17ListRepositoriesRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\x84\x01\x0A\x18ListRepositoriesResponse\x12:\x0A\x0Crepositories\x18\x01 \x03(\x0B2\$.google.cloud.dataform.v1.Repository\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x13\x0A\x0Bunreachable\x18\x03 \x03(\x09\"\xA4\x01\x0A\x15MoveRepositoryRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12/\x0A\x1Ddestination_containing_folder\x18\x02 \x01(\x09B\x03\xE0A\x01H\x00\x88\x01\x01B \x0A\x1E_destination_containing_folder\"P\x0A\x14GetRepositoryRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\"\xAF\x01\x0A\x17CreateRepositoryRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12=\x0A\x0Arepository\x18\x02 \x01(\x0B2\$.google.cloud.dataform.v1.RepositoryB\x03\xE0A\x02\x12\x1A\x0A\x0Drepository_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"\x8E\x01\x0A\x17UpdateRepositoryRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12=\x0A\x0Arepository\x18\x02 \x01(\x0B2\$.google.cloud.dataform.v1.RepositoryB\x03\xE0A\x02\"g\x0A\x17DeleteRepositoryRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x12\x0A\x05force\x18\x02 \x01(\x08B\x03\xE0A\x01\"\xD2\x05\x0A\x1ECommitRepositoryChangesRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12F\x0A\x0Fcommit_metadata\x18\x02 \x01(\x0B2(.google.cloud.dataform.v1.CommitMetadataB\x03\xE0A\x02\x12%\x0A\x18required_head_commit_sha\x18\x04 \x01(\x09B\x03\xE0A\x01\x12j\x0A\x0Ffile_operations\x18\x03 \x03(\x0B2L.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperationsEntryB\x03\xE0A\x01\x1A\x9B\x02\x0A\x0DFileOperation\x12f\x0A\x0Awrite_file\x18\x01 \x01(\x0B2P.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation.WriteFileH\x00\x12h\x0A\x0Bdelete_file\x18\x02 \x01(\x0B2Q.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation.DeleteFileH\x00\x1A\x1D\x0A\x09WriteFile\x12\x10\x0A\x08contents\x18\x01 \x01(\x0C\x1A\x0C\x0A\x0ADeleteFileB\x0B\x0A\x09operation\x1A}\x0A\x13FileOperationsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12U\x0A\x05value\x18\x02 \x01(\x0B2F.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation:\x028\x01\"5\x0A\x1FCommitRepositoryChangesResponse\x12\x12\x0A\x0Acommit_sha\x18\x01 \x01(\x09\"\x81\x01\x0A\x19ReadRepositoryFileRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x17\x0A\x0Acommit_sha\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04path\x18\x03 \x01(\x09B\x03\xE0A\x02\".\x0A\x1AReadRepositoryFileResponse\x12\x10\x0A\x08contents\x18\x01 \x01(\x0C\"\xC0\x01\x0A'QueryRepositoryDirectoryContentsRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x17\x0A\x0Acommit_sha\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04path\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09page_size\x18\x04 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x05 \x01(\x09B\x03\xE0A\x01\"\x88\x01\x0A(QueryRepositoryDirectoryContentsResponse\x12C\x0A\x11directory_entries\x18\x01 \x03(\x0B2(.google.cloud.dataform.v1.DirectoryEntry\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x8A\x01\x0A\x1DFetchRepositoryHistoryRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x05 \x01(\x09B\x03\xE0A\x01\"t\x0A\x1EFetchRepositoryHistoryResponse\x129\x0A\x07commits\x18\x01 \x03(\x0B2(.google.cloud.dataform.v1.CommitLogEntry\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xA5\x01\x0A\x0ECommitLogEntry\x12/\x0A\x0Bcommit_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x12\x0A\x0Acommit_sha\x18\x02 \x01(\x09\x126\x0A\x06author\x18\x03 \x01(\x0B2&.google.cloud.dataform.v1.CommitAuthor\x12\x16\x0A\x0Ecommit_message\x18\x04 \x01(\x09\"j\x0A\x0ECommitMetadata\x12;\x0A\x06author\x18\x01 \x01(\x0B2&.google.cloud.dataform.v1.CommitAuthorB\x03\xE0A\x02\x12\x1B\x0A\x0Ecommit_message\x18\x02 \x01(\x09B\x03\xE0A\x01\"e\x0A)ComputeRepositoryAccessTokenStatusRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\"\xFF\x01\x0A*ComputeRepositoryAccessTokenStatusResponse\x12f\x0A\x0Ctoken_status\x18\x01 \x01(\x0E2P.google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus\"i\x0A\x0BTokenStatus\x12\x1C\x0A\x18TOKEN_STATUS_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09NOT_FOUND\x10\x01\x12\x0B\x0A\x07INVALID\x10\x02\x12\x09\x0A\x05VALID\x10\x03\x12\x15\x0A\x11PERMISSION_DENIED\x10\x04\"V\x0A\x1AFetchRemoteBranchesRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\"/\x0A\x1BFetchRemoteBranchesResponse\x12\x10\x0A\x08branches\x18\x01 \x03(\x09\"\x8B\x04\x0A\x09Workspace\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12Q\x0A\x15data_encryption_state\x18\x02 \x01(\x0B2-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xE0A\x03\x12#\x0A\x11internal_metadata\x18\x05 \x01(\x09B\x03\xE0A\x03H\x00\x88\x01\x01\x12\x1F\x0A\x0Ddisable_moves\x18\x06 \x01(\x08B\x03\xE0A\x01H\x01\x88\x01\x01\x12Y\x0A\x19private_resource_metadata\x18\x08 \x01(\x0B21.google.cloud.dataform.v1.PrivateResourceMetadataB\x03\xE0A\x03:\x98\x01\xEAA\x94\x01\x0A!dataform.googleapis.com/Workspace\x12Xprojects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace}*\x0Aworkspaces2\x09workspaceB\x14\x0A\x12_internal_metadataB\x10\x0A\x0E_disable_moves\"\xB0\x01\x0A\x15ListWorkspacesRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\x7F\x0A\x16ListWorkspacesResponse\x127\x0A\x0Aworkspaces\x18\x01 \x03(\x0B2#.google.cloud.dataform.v1.Workspace\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x13\x0A\x0Bunreachable\x18\x03 \x03(\x09\"N\x0A\x13GetWorkspaceRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\"\xAC\x01\x0A\x16CreateWorkspaceRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12;\x0A\x09workspace\x18\x02 \x01(\x0B2#.google.cloud.dataform.v1.WorkspaceB\x03\xE0A\x02\x12\x19\x0A\x0Cworkspace_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"Q\x0A\x16DeleteWorkspaceRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\"=\x0A\x0CCommitAuthor\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x1A\x0A\x0Demail_address\x18\x02 \x01(\x09B\x03\xE0A\x02\"\xA9\x01\x0A\x15PullGitCommitsRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x1A\x0A\x0Dremote_branch\x18\x02 \x01(\x09B\x03\xE0A\x01\x12;\x0A\x06author\x18\x03 \x01(\x0B2&.google.cloud.dataform.v1.CommitAuthorB\x03\xE0A\x02\"\x18\x0A\x16PullGitCommitsResponse\"l\x0A\x15PushGitCommitsRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x1A\x0A\x0Dremote_branch\x18\x02 \x01(\x09B\x03\xE0A\x01\"\x18\x0A\x16PushGitCommitsResponse\"V\x0A\x1BFetchFileGitStatusesRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\"\xF7\x02\x0A\x1CFetchFileGitStatusesResponse\x12n\x0A\x18uncommitted_file_changes\x18\x01 \x03(\x0B2L.google.cloud.dataform.v1.FetchFileGitStatusesResponse.UncommittedFileChange\x1A\xE6\x01\x0A\x15UncommittedFileChange\x12\x0C\x0A\x04path\x18\x01 \x01(\x09\x12f\x0A\x05state\x18\x02 \x01(\x0E2R.google.cloud.dataform.v1.FetchFileGitStatusesResponse.UncommittedFileChange.StateB\x03\xE0A\x03\"W\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05ADDED\x10\x01\x12\x0B\x0A\x07DELETED\x10\x02\x12\x0C\x0A\x08MODIFIED\x10\x03\x12\x11\x0A\x0DHAS_CONFLICTS\x10\x04\"q\x0A\x1AFetchGitAheadBehindRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x1A\x0A\x0Dremote_branch\x18\x02 \x01(\x09B\x03\xE0A\x01\"L\x0A\x1BFetchGitAheadBehindResponse\x12\x15\x0A\x0Dcommits_ahead\x18\x01 \x01(\x05\x12\x16\x0A\x0Ecommits_behind\x18\x02 \x01(\x05\"\xC6\x01\x0A\x1DCommitWorkspaceChangesRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12;\x0A\x06author\x18\x04 \x01(\x0B2&.google.cloud.dataform.v1.CommitAuthorB\x03\xE0A\x02\x12\x1B\x0A\x0Ecommit_message\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x12\x0A\x05paths\x18\x03 \x03(\x09B\x03\xE0A\x01\" \x0A\x1ECommitWorkspaceChangesResponse\"\x7F\x0A\x1CResetWorkspaceChangesRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x12\x0A\x05paths\x18\x02 \x03(\x09B\x03\xE0A\x01\x12\x12\x0A\x05clean\x18\x03 \x01(\x08B\x03\xE0A\x01\"\x1F\x0A\x1DResetWorkspaceChangesResponse\"g\x0A\x14FetchFileDiffRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\"/\x0A\x15FetchFileDiffResponse\x12\x16\x0A\x0Eformatted_diff\x18\x01 \x01(\x09\"\xE5\x01\x0A\x1DQueryDirectoryContentsRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09page_size\x18\x03 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x04 \x01(\x09B\x03\xE0A\x01\x12B\x0A\x04view\x18\x05 \x01(\x0E2/.google.cloud.dataform.v1.DirectoryContentsViewB\x03\xE0A\x01\"~\x0A\x1EQueryDirectoryContentsResponse\x12C\x0A\x11directory_entries\x18\x01 \x03(\x0B2(.google.cloud.dataform.v1.DirectoryEntry\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x83\x01\x0A\x0EDirectoryEntry\x12\x0E\x0A\x04file\x18\x01 \x01(\x09H\x00\x12\x13\x0A\x09directory\x18\x02 \x01(\x09H\x00\x12C\x0A\x08metadata\x18\x03 \x01(\x0B21.google.cloud.dataform.v1.FilesystemEntryMetadataB\x07\x0A\x05entry\"h\x0A\x17FilesystemEntryMetadata\x12\x17\x0A\x0Asize_bytes\x18\x01 \x01(\x03B\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\"\x98\x01\x0A\x12SearchFilesRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\"s\x0A\x13SearchFilesResponse\x12>\x0A\x0Esearch_results\x18\x01 \x03(\x0B2&.google.cloud.dataform.v1.SearchResult\x12\x1C\x0A\x0Fnext_page_token\x18\x02 \x01(\x09B\x03\xE0A\x01\"\x99\x01\x0A\x0CSearchResult\x12:\x0A\x04file\x18\x01 \x01(\x0B2*.google.cloud.dataform.v1.FileSearchResultH\x00\x12D\x0A\x09directory\x18\x02 \x01(\x0B2/.google.cloud.dataform.v1.DirectorySearchResultH\x00B\x07\x0A\x05entry\" \x0A\x10FileSearchResult\x12\x0C\x0A\x04path\x18\x01 \x01(\x09\"%\x0A\x15DirectorySearchResult\x12\x0C\x0A\x04path\x18\x01 \x01(\x09\"g\x0A\x14MakeDirectoryRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\"\x17\x0A\x15MakeDirectoryResponse\"i\x0A\x16RemoveDirectoryRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\"\x19\x0A\x17RemoveDirectoryResponse\"~\x0A\x14MoveDirectoryRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08new_path\x18\x03 \x01(\x09B\x03\xE0A\x02\"\x17\x0A\x15MoveDirectoryResponse\"y\x0A\x0FReadFileRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08revision\x18\x03 \x01(\x09B\x03\xE0A\x01\")\x0A\x10ReadFileResponse\x12\x15\x0A\x0Dfile_contents\x18\x01 \x01(\x0C\"d\x0A\x11RemoveFileRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\"\x14\x0A\x12RemoveFileResponse\"y\x0A\x0FMoveFileRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08new_path\x18\x03 \x01(\x09B\x03\xE0A\x02\"\x12\x0A\x10MoveFileResponse\"z\x0A\x10WriteFileRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08contents\x18\x03 \x01(\x0CB\x03\xE0A\x02\"\x13\x0A\x11WriteFileResponse\"Y\x0A\x19InstallNpmPackagesRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\"\x1C\x0A\x1AInstallNpmPackagesResponse\"\xE7\x06\x0A\x0DReleaseConfig\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x1A\x0A\x0Dgit_commitish\x18\x02 \x01(\x09B\x03\xE0A\x02\x12U\x0A\x17code_compilation_config\x18\x03 \x01(\x0B2/.google.cloud.dataform.v1.CodeCompilationConfigB\x03\xE0A\x01\x12\x1A\x0A\x0Dcron_schedule\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09time_zone\x18\x07 \x01(\x09B\x03\xE0A\x01\x12m\x0A recent_scheduled_release_records\x18\x05 \x03(\x0B2>.google.cloud.dataform.v1.ReleaseConfig.ScheduledReleaseRecordB\x03\xE0A\x03\x12U\x0A\x1Arelease_compilation_result\x18\x06 \x01(\x09B1\xE0A\x01\xFAA+\x0A)dataform.googleapis.com/CompilationResult\x12\x15\x0A\x08disabled\x18\x08 \x01(\x08B\x03\xE0A\x01\x12#\x0A\x11internal_metadata\x18\x09 \x01(\x09B\x03\xE0A\x03H\x00\x88\x01\x01\x1A\xD3\x01\x0A\x16ScheduledReleaseRecord\x12L\x0A\x12compilation_result\x18\x02 \x01(\x09B.\xFAA+\x0A)dataform.googleapis.com/CompilationResultH\x00\x12*\x0A\x0Cerror_status\x18\x03 \x01(\x0B2\x12.google.rpc.StatusH\x00\x125\x0A\x0Crelease_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03B\x08\x0A\x06result:\xAD\x01\xEAA\xA9\x01\x0A%dataform.googleapis.com/ReleaseConfig\x12aprojects/{project}/locations/{location}/repositories/{repository}/releaseConfigs/{release_config}*\x0EreleaseConfigs2\x0DreleaseConfigB\x14\x0A\x12_internal_metadata\"\x88\x01\x0A\x19ListReleaseConfigsRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"\x8C\x01\x0A\x1AListReleaseConfigsResponse\x12@\x0A\x0Frelease_configs\x18\x01 \x03(\x0B2'.google.cloud.dataform.v1.ReleaseConfig\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x13\x0A\x0Bunreachable\x18\x03 \x03(\x09\"V\x0A\x17GetReleaseConfigRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%dataform.googleapis.com/ReleaseConfig\"\xBE\x01\x0A\x1ACreateReleaseConfigRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12D\x0A\x0Erelease_config\x18\x02 \x01(\x0B2'.google.cloud.dataform.v1.ReleaseConfigB\x03\xE0A\x02\x12\x1E\x0A\x11release_config_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"\x98\x01\x0A\x1AUpdateReleaseConfigRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12D\x0A\x0Erelease_config\x18\x02 \x01(\x0B2'.google.cloud.dataform.v1.ReleaseConfigB\x03\xE0A\x02\"Y\x0A\x1ADeleteReleaseConfigRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%dataform.googleapis.com/ReleaseConfig\"\xCA\x08\x0A\x11CompilationResult\x12\x1C\x0A\x0Dgit_commitish\x18\x02 \x01(\x09B\x03\xE0A\x05H\x00\x12>\x0A\x09workspace\x18\x03 \x01(\x09B)\xE0A\x05\xFAA#\x0A!dataform.googleapis.com/WorkspaceH\x00\x12G\x0A\x0Erelease_config\x18\x07 \x01(\x09B-\xE0A\x05\xFAA'\x0A%dataform.googleapis.com/ReleaseConfigH\x00\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12U\x0A\x17code_compilation_config\x18\x04 \x01(\x0B2/.google.cloud.dataform.v1.CodeCompilationConfigB\x03\xE0A\x05\x12\$\x0A\x17resolved_git_commit_sha\x18\x08 \x01(\x09B\x03\xE0A\x03\x12\"\x0A\x15dataform_core_version\x18\x05 \x01(\x09B\x03\xE0A\x03\x12]\x0A\x12compilation_errors\x18\x06 \x03(\x0B2<.google.cloud.dataform.v1.CompilationResult.CompilationErrorB\x03\xE0A\x03\x12Q\x0A\x15data_encryption_state\x18\x09 \x01(\x0B2-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x0A \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12#\x0A\x11internal_metadata\x18\x0B \x01(\x09B\x03\xE0A\x03H\x01\x88\x01\x01\x12Y\x0A\x19private_resource_metadata\x18\x0C \x01(\x0B21.google.cloud.dataform.v1.PrivateResourceMetadataB\x03\xE0A\x03\x1A\x8D\x01\x0A\x10CompilationError\x12\x14\x0A\x07message\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x12\x0A\x05stack\x18\x02 \x01(\x09B\x03\xE0A\x03\x12\x11\x0A\x04path\x18\x03 \x01(\x09B\x03\xE0A\x03\x12<\x0A\x0Daction_target\x18\x04 \x01(\x0B2 .google.cloud.dataform.v1.TargetB\x03\xE0A\x03:\xC1\x01\xEAA\xBD\x01\x0A)dataform.googleapis.com/CompilationResult\x12iprojects/{project}/locations/{location}/repositories/{repository}/compilationResults/{compilation_result}*\x12compilationResults2\x11compilationResultB\x08\x0A\x06sourceB\x14\x0A\x12_internal_metadata\"\xEE\x03\x0A\x15CodeCompilationConfig\x12\x1D\x0A\x10default_database\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x1B\x0A\x0Edefault_schema\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x1D\x0A\x10default_location\x18\x08 \x01(\x09B\x03\xE0A\x01\x12\x1D\x0A\x10assertion_schema\x18\x03 \x01(\x09B\x03\xE0A\x01\x12L\x0A\x04vars\x18\x04 \x03(\x0B29.google.cloud.dataform.v1.CodeCompilationConfig.VarsEntryB\x03\xE0A\x01\x12\x1C\x0A\x0Fdatabase_suffix\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Dschema_suffix\x18\x06 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Ctable_prefix\x18\x07 \x01(\x09B\x03\xE0A\x01\x12*\x0A\x1Dbuiltin_assertion_name_prefix\x18\x0A \x01(\x09B\x03\xE0A\x01\x12_\x0A default_notebook_runtime_options\x18\x09 \x01(\x0B20.google.cloud.dataform.v1.NotebookRuntimeOptionsB\x03\xE0A\x01\x1A+\x0A\x09VarsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\xB6\x01\x0A\x16NotebookRuntimeOptions\x12 \x0A\x11gcs_output_bucket\x18\x01 \x01(\x09B\x03\xE0A\x01H\x00\x12h\x0A%ai_platform_notebook_runtime_template\x18\x02 \x01(\x09B9\xE0A\x01\xFAA3\x0A1aiplatform.googleapis.com/NotebookRuntimeTemplateB\x10\x0A\x0Eexecution_sink\"\xB8\x01\x0A\x1DListCompilationResultsRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\x98\x01\x0A\x1EListCompilationResultsResponse\x12H\x0A\x13compilation_results\x18\x01 \x03(\x0B2+.google.cloud.dataform.v1.CompilationResult\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x13\x0A\x0Bunreachable\x18\x03 \x03(\x09\"^\x0A\x1BGetCompilationResultRequest\x12?\x0A\x04name\x18\x01 \x01(\x09B1\xE0A\x02\xFAA+\x0A)dataform.googleapis.com/CompilationResult\"\xAA\x01\x0A\x1ECreateCompilationResultRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12L\x0A\x12compilation_result\x18\x02 \x01(\x0B2+.google.cloud.dataform.v1.CompilationResultB\x03\xE0A\x02\"G\x0A\x06Target\x12\x15\x0A\x08database\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06schema\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04name\x18\x03 \x01(\x09B\x03\xE0A\x01\"\xE0\x02\x0A\x12RelationDescriptor\x12\x13\x0A\x0Bdescription\x18\x01 \x01(\x09\x12N\x0A\x07columns\x18\x02 \x03(\x0B2=.google.cloud.dataform.v1.RelationDescriptor.ColumnDescriptor\x12Y\x0A\x0Fbigquery_labels\x18\x03 \x03(\x0B2@.google.cloud.dataform.v1.RelationDescriptor.BigqueryLabelsEntry\x1AS\x0A\x10ColumnDescriptor\x12\x0C\x0A\x04path\x18\x01 \x03(\x09\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09\x12\x1C\x0A\x14bigquery_policy_tags\x18\x03 \x03(\x09\x1A5\x0A\x13BigqueryLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\xA3\x1E\x0A\x17CompilationResultAction\x12N\x0A\x08relation\x18\x04 \x01(\x0B2:.google.cloud.dataform.v1.CompilationResultAction.RelationH\x00\x12R\x0A\x0Aoperations\x18\x05 \x01(\x0B2<.google.cloud.dataform.v1.CompilationResultAction.OperationsH\x00\x12P\x0A\x09assertion\x18\x06 \x01(\x0B2;.google.cloud.dataform.v1.CompilationResultAction.AssertionH\x00\x12T\x0A\x0Bdeclaration\x18\x07 \x01(\x0B2=.google.cloud.dataform.v1.CompilationResultAction.DeclarationH\x00\x12N\x0A\x08notebook\x18\x08 \x01(\x0B2:.google.cloud.dataform.v1.CompilationResultAction.NotebookH\x00\x12]\x0A\x10data_preparation\x18\x09 \x01(\x0B2A.google.cloud.dataform.v1.CompilationResultAction.DataPreparationH\x00\x120\x0A\x06target\x18\x01 \x01(\x0B2 .google.cloud.dataform.v1.Target\x12:\x0A\x10canonical_target\x18\x02 \x01(\x0B2 .google.cloud.dataform.v1.Target\x12\x11\x0A\x09file_path\x18\x03 \x01(\x09\x12#\x0A\x11internal_metadata\x18\x0A \x01(\x09B\x03\xE0A\x03H\x01\x88\x01\x01\x1A\xAE\x0B\x0A\x08Relation\x12<\x0A\x12dependency_targets\x18\x01 \x03(\x0B2 .google.cloud.dataform.v1.Target\x12\x10\x0A\x08disabled\x18\x02 \x01(\x08\x12\x0C\x0A\x04tags\x18\x03 \x03(\x09\x12I\x0A\x13relation_descriptor\x18\x04 \x01(\x0B2,.google.cloud.dataform.v1.RelationDescriptor\x12^\x0A\x0Drelation_type\x18\x05 \x01(\x0E2G.google.cloud.dataform.v1.CompilationResultAction.Relation.RelationType\x12\x14\x0A\x0Cselect_query\x18\x06 \x01(\x09\x12\x16\x0A\x0Epre_operations\x18\x07 \x03(\x09\x12\x17\x0A\x0Fpost_operations\x18\x08 \x03(\x09\x12s\x0A\x18incremental_table_config\x18\x09 \x01(\x0B2Q.google.cloud.dataform.v1.CompilationResultAction.Relation.IncrementalTableConfig\x12\x1C\x0A\x14partition_expression\x18\x0A \x01(\x09\x12\x1B\x0A\x13cluster_expressions\x18\x0B \x03(\x09\x12!\x0A\x19partition_expiration_days\x18\x0C \x01(\x05\x12 \x0A\x18require_partition_filter\x18\x0D \x01(\x08\x12m\x0A\x12additional_options\x18\x0E \x03(\x0B2Q.google.cloud.dataform.v1.CompilationResultAction.Relation.AdditionalOptionsEntry\x12\x17\x0A\x0Aconnection\x18\x0F \x01(\x09B\x03\xE0A\x01\x12a\x0A\x0Ctable_format\x18\x10 \x01(\x0E2F.google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormatB\x03\xE0A\x01\x12_\x0A\x0Bfile_format\x18\x11 \x01(\x0E2E.google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormatB\x03\xE0A\x01\x12\x18\x0A\x0Bstorage_uri\x18\x12 \x01(\x09B\x03\xE0A\x01\x1A\xD8\x01\x0A\x16IncrementalTableConfig\x12 \x0A\x18incremental_select_query\x18\x01 \x01(\x09\x12\x18\x0A\x10refresh_disabled\x18\x02 \x01(\x08\x12\x18\x0A\x10unique_key_parts\x18\x03 \x03(\x09\x12\x1F\x0A\x17update_partition_filter\x18\x04 \x01(\x09\x12\"\x0A\x1Aincremental_pre_operations\x18\x05 \x03(\x09\x12#\x0A\x1Bincremental_post_operations\x18\x06 \x03(\x09\x1A8\x0A\x16AdditionalOptionsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"p\x0A\x0CRelationType\x12\x1D\x0A\x19RELATION_TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05TABLE\x10\x01\x12\x08\x0A\x04VIEW\x10\x02\x12\x15\x0A\x11INCREMENTAL_TABLE\x10\x03\x12\x15\x0A\x11MATERIALIZED_VIEW\x10\x04\"8\x0A\x0BTableFormat\x12\x1C\x0A\x18TABLE_FORMAT_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07ICEBERG\x10\x01\"6\x0A\x0AFileFormat\x12\x1B\x0A\x17FILE_FORMAT_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07PARQUET\x10\x01\x1A\xDA\x01\x0A\x0AOperations\x12<\x0A\x12dependency_targets\x18\x01 \x03(\x0B2 .google.cloud.dataform.v1.Target\x12\x10\x0A\x08disabled\x18\x02 \x01(\x08\x12\x0C\x0A\x04tags\x18\x03 \x03(\x09\x12I\x0A\x13relation_descriptor\x18\x06 \x01(\x0B2,.google.cloud.dataform.v1.RelationDescriptor\x12\x0F\x0A\x07queries\x18\x04 \x03(\x09\x12\x12\x0A\x0Ahas_output\x18\x05 \x01(\x08\x1A\x83\x02\x0A\x09Assertion\x12<\x0A\x12dependency_targets\x18\x01 \x03(\x0B2 .google.cloud.dataform.v1.Target\x127\x0A\x0Dparent_action\x18\x05 \x01(\x0B2 .google.cloud.dataform.v1.Target\x12\x10\x0A\x08disabled\x18\x02 \x01(\x08\x12\x0C\x0A\x04tags\x18\x03 \x03(\x09\x12\x14\x0A\x0Cselect_query\x18\x04 \x01(\x09\x12I\x0A\x13relation_descriptor\x18\x06 \x01(\x0B2,.google.cloud.dataform.v1.RelationDescriptor\x1AX\x0A\x0BDeclaration\x12I\x0A\x13relation_descriptor\x18\x01 \x01(\x0B2,.google.cloud.dataform.v1.RelationDescriptor\x1Az\x0A\x08Notebook\x12<\x0A\x12dependency_targets\x18\x01 \x03(\x0B2 .google.cloud.dataform.v1.Target\x12\x10\x0A\x08disabled\x18\x02 \x01(\x08\x12\x10\x0A\x08contents\x18\x03 \x01(\x09\x12\x0C\x0A\x04tags\x18\x04 \x03(\x09\x1A\xA7\x04\x0A\x0FDataPreparation\x12\x17\x0A\x0Dcontents_yaml\x18\x05 \x01(\x09H\x00\x12g\x0A\x0Ccontents_sql\x18\x06 \x01(\x0B2O.google.cloud.dataform.v1.CompilationResultAction.DataPreparation.SqlDefinitionH\x00\x12<\x0A\x12dependency_targets\x18\x01 \x03(\x0B2 .google.cloud.dataform.v1.Target\x12\x10\x0A\x08disabled\x18\x02 \x01(\x08\x12\x0C\x0A\x04tags\x18\x04 \x03(\x09\x1A\xCD\x01\x0A\x0DSqlDefinition\x12\x0D\x0A\x05query\x18\x01 \x01(\x09\x12a\x0A\x0Berror_table\x18\x02 \x01(\x0B2L.google.cloud.dataform.v1.CompilationResultAction.DataPreparation.ErrorTable\x12J\x0A\x04load\x18\x03 \x01(\x0B2<.google.cloud.dataform.v1.CompilationResultAction.LoadConfig\x1AV\x0A\x0AErrorTable\x120\x0A\x06target\x18\x01 \x01(\x0B2 .google.cloud.dataform.v1.Target\x12\x16\x0A\x0Eretention_days\x18\x02 \x01(\x05B\x0C\x0A\x0Adefinition\x1A\xF0\x02\x0A\x0ALoadConfig\x12S\x0A\x07replace\x18\x01 \x01(\x0B2@.google.cloud.dataform.v1.CompilationResultAction.SimpleLoadModeH\x00\x12R\x0A\x06append\x18\x02 \x01(\x0B2@.google.cloud.dataform.v1.CompilationResultAction.SimpleLoadModeH\x00\x12X\x0A\x07maximum\x18\x03 \x01(\x0B2E.google.cloud.dataform.v1.CompilationResultAction.IncrementalLoadModeH\x00\x12W\x0A\x06unique\x18\x04 \x01(\x0B2E.google.cloud.dataform.v1.CompilationResultAction.IncrementalLoadModeH\x00B\x06\x0A\x04mode\x1A\x10\x0A\x0ESimpleLoadMode\x1A%\x0A\x13IncrementalLoadMode\x12\x0E\x0A\x06column\x18\x01 \x01(\x09B\x11\x0A\x0Fcompiled_objectB\x14\x0A\x12_internal_metadata\"\xAD\x01\x0A\$QueryCompilationResultActionsRequest\x12?\x0A\x04name\x18\x01 \x01(\x09B1\xE0A\x02\xFAA+\x0A)dataform.googleapis.com/CompilationResult\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\"\x97\x01\x0A%QueryCompilationResultActionsResponse\x12U\x0A\x1Acompilation_result_actions\x18\x01 \x03(\x0B21.google.cloud.dataform.v1.CompilationResultAction\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xAD\x07\x0A\x0EWorkflowConfig\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12E\x0A\x0Erelease_config\x18\x02 \x01(\x09B-\xE0A\x02\xFAA'\x0A%dataform.googleapis.com/ReleaseConfig\x12J\x0A\x11invocation_config\x18\x03 \x01(\x0B2*.google.cloud.dataform.v1.InvocationConfigB\x03\xE0A\x01\x12\x1A\x0A\x0Dcron_schedule\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09time_zone\x18\x07 \x01(\x09B\x03\xE0A\x01\x12r\x0A\"recent_scheduled_execution_records\x18\x05 \x03(\x0B2A.google.cloud.dataform.v1.WorkflowConfig.ScheduledExecutionRecordB\x03\xE0A\x03\x12\x15\x0A\x08disabled\x18\x08 \x01(\x08B\x03\xE0A\x01\x124\x0A\x0Bcreate_time\x18\x09 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x0A \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12#\x0A\x11internal_metadata\x18\x0B \x01(\x09B\x03\xE0A\x03H\x00\x88\x01\x01\x1A\xD9\x01\x0A\x18ScheduledExecutionRecord\x12N\x0A\x13workflow_invocation\x18\x02 \x01(\x09B/\xFAA,\x0A*dataform.googleapis.com/WorkflowInvocationH\x00\x12*\x0A\x0Cerror_status\x18\x03 \x01(\x0B2\x12.google.rpc.StatusH\x00\x127\x0A\x0Eexecution_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03B\x08\x0A\x06result:\xB2\x01\xEAA\xAE\x01\x0A&dataform.googleapis.com/WorkflowConfig\x12cprojects/{project}/locations/{location}/repositories/{repository}/workflowConfigs/{workflow_config}*\x0FworkflowConfigs2\x0EworkflowConfigB\x14\x0A\x12_internal_metadata\"\xDC\x03\x0A\x10InvocationConfig\x12?\x0A\x10included_targets\x18\x01 \x03(\x0B2 .google.cloud.dataform.v1.TargetB\x03\xE0A\x01\x12\x1A\x0A\x0Dincluded_tags\x18\x02 \x03(\x09B\x03\xE0A\x01\x12-\x0A transitive_dependencies_included\x18\x03 \x01(\x08B\x03\xE0A\x01\x12+\x0A\x1Etransitive_dependents_included\x18\x04 \x01(\x08B\x03\xE0A\x01\x125\x0A(fully_refresh_incremental_tables_enabled\x18\x05 \x01(\x08B\x03\xE0A\x01\x12\x1C\x0A\x0Fservice_account\x18\x06 \x01(\x09B\x03\xE0A\x01\x12Z\x0A\x0Equery_priority\x18\x09 \x01(\x0E28.google.cloud.dataform.v1.InvocationConfig.QueryPriorityB\x03\xE0A\x01H\x00\x88\x01\x01\"K\x0A\x0DQueryPriority\x12\x1E\x0A\x1AQUERY_PRIORITY_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BINTERACTIVE\x10\x01\x12\x09\x0A\x05BATCH\x10\x02B\x11\x0A\x0F_query_priority\"\x89\x01\x0A\x1AListWorkflowConfigsRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"\x8F\x01\x0A\x1BListWorkflowConfigsResponse\x12B\x0A\x10workflow_configs\x18\x01 \x03(\x0B2(.google.cloud.dataform.v1.WorkflowConfig\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x13\x0A\x0Bunreachable\x18\x03 \x03(\x09\"X\x0A\x18GetWorkflowConfigRequest\x12<\x0A\x04name\x18\x01 \x01(\x09B.\xE0A\x02\xFAA(\x0A&dataform.googleapis.com/WorkflowConfig\"\xC2\x01\x0A\x1BCreateWorkflowConfigRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12F\x0A\x0Fworkflow_config\x18\x02 \x01(\x0B2(.google.cloud.dataform.v1.WorkflowConfigB\x03\xE0A\x02\x12\x1F\x0A\x12workflow_config_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"\x9B\x01\x0A\x1BUpdateWorkflowConfigRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12F\x0A\x0Fworkflow_config\x18\x02 \x01(\x0B2(.google.cloud.dataform.v1.WorkflowConfigB\x03\xE0A\x02\"[\x0A\x1BDeleteWorkflowConfigRequest\x12<\x0A\x04name\x18\x01 \x01(\x09B.\xE0A\x02\xFAA(\x0A&dataform.googleapis.com/WorkflowConfig\"\x94\x08\x0A\x12WorkflowInvocation\x12O\x0A\x12compilation_result\x18\x02 \x01(\x09B1\xE0A\x05\xFAA+\x0A)dataform.googleapis.com/CompilationResultH\x00\x12I\x0A\x0Fworkflow_config\x18\x06 \x01(\x09B.\xE0A\x05\xFAA(\x0A&dataform.googleapis.com/WorkflowConfigH\x00\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12J\x0A\x11invocation_config\x18\x03 \x01(\x0B2*.google.cloud.dataform.v1.InvocationConfigB\x03\xE0A\x05\x12F\x0A\x05state\x18\x04 \x01(\x0E22.google.cloud.dataform.v1.WorkflowInvocation.StateB\x03\xE0A\x03\x125\x0A\x11invocation_timing\x18\x05 \x01(\x0B2\x15.google.type.IntervalB\x03\xE0A\x03\x12V\x0A\x1Bresolved_compilation_result\x18\x07 \x01(\x09B1\xE0A\x03\xFAA+\x0A)dataform.googleapis.com/CompilationResult\x12Q\x0A\x15data_encryption_state\x18\x08 \x01(\x0B2-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xE0A\x03\x12#\x0A\x11internal_metadata\x18\x09 \x01(\x09B\x03\xE0A\x03H\x01\x88\x01\x01\x12Y\x0A\x19private_resource_metadata\x18\x0A \x01(\x0B21.google.cloud.dataform.v1.PrivateResourceMetadataB\x03\xE0A\x03\"d\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07RUNNING\x10\x01\x12\x0D\x0A\x09SUCCEEDED\x10\x02\x12\x0D\x0A\x09CANCELLED\x10\x03\x12\x0A\x0A\x06FAILED\x10\x04\x12\x0D\x0A\x09CANCELING\x10\x05:\xC6\x01\xEAA\xC2\x01\x0A*dataform.googleapis.com/WorkflowInvocation\x12kprojects/{project}/locations/{location}/repositories/{repository}/workflowInvocations/{workflow_invocation}*\x13workflowInvocations2\x12workflowInvocationB\x14\x0A\x12compilation_sourceB\x14\x0A\x12_internal_metadata\"\xB9\x01\x0A\x1EListWorkflowInvocationsRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\x9B\x01\x0A\x1FListWorkflowInvocationsResponse\x12J\x0A\x14workflow_invocations\x18\x01 \x03(\x0B2,.google.cloud.dataform.v1.WorkflowInvocation\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x13\x0A\x0Bunreachable\x18\x03 \x03(\x09\"`\x0A\x1CGetWorkflowInvocationRequest\x12@\x0A\x04name\x18\x01 \x01(\x09B2\xE0A\x02\xFAA,\x0A*dataform.googleapis.com/WorkflowInvocation\"\xAD\x01\x0A\x1FCreateWorkflowInvocationRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12N\x0A\x13workflow_invocation\x18\x02 \x01(\x0B2,.google.cloud.dataform.v1.WorkflowInvocationB\x03\xE0A\x02\"c\x0A\x1FDeleteWorkflowInvocationRequest\x12@\x0A\x04name\x18\x01 \x01(\x09B2\xE0A\x02\xFAA,\x0A*dataform.googleapis.com/WorkflowInvocation\"c\x0A\x1FCancelWorkflowInvocationRequest\x12@\x0A\x04name\x18\x01 \x01(\x09B2\xE0A\x02\xFAA,\x0A*dataform.googleapis.com/WorkflowInvocation\"\"\x0A CancelWorkflowInvocationResponse\"\x9B\x10\x0A\x18WorkflowInvocationAction\x12a\x0A\x0Fbigquery_action\x18\x06 \x01(\x0B2A.google.cloud.dataform.v1.WorkflowInvocationAction.BigQueryActionB\x03\xE0A\x03H\x00\x12a\x0A\x0Fnotebook_action\x18\x08 \x01(\x0B2A.google.cloud.dataform.v1.WorkflowInvocationAction.NotebookActionB\x03\xE0A\x03H\x00\x12p\x0A\x17data_preparation_action\x18\x09 \x01(\x0B2H.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationActionB\x03\xE0A\x03H\x00\x125\x0A\x06target\x18\x01 \x01(\x0B2 .google.cloud.dataform.v1.TargetB\x03\xE0A\x03\x12?\x0A\x10canonical_target\x18\x02 \x01(\x0B2 .google.cloud.dataform.v1.TargetB\x03\xE0A\x03\x12L\x0A\x05state\x18\x04 \x01(\x0E28.google.cloud.dataform.v1.WorkflowInvocationAction.StateB\x03\xE0A\x03\x12\x1B\x0A\x0Efailure_reason\x18\x07 \x01(\x09B\x03\xE0A\x03\x125\x0A\x11invocation_timing\x18\x05 \x01(\x0B2\x15.google.type.IntervalB\x03\xE0A\x03\x12#\x0A\x11internal_metadata\x18\x0A \x01(\x09B\x03\xE0A\x03H\x01\x88\x01\x01\x1A>\x0A\x0EBigQueryAction\x12\x17\x0A\x0Asql_script\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x13\x0A\x06job_id\x18\x02 \x01(\x09B\x03\xE0A\x03\x1A<\x0A\x0ENotebookAction\x12\x15\x0A\x08contents\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x13\x0A\x06job_id\x18\x02 \x01(\x09B\x03\xE0A\x03\x1A\x81\x09\x0A\x15DataPreparationAction\x12\x1C\x0A\x0Dcontents_yaml\x18\x02 \x01(\x09B\x03\xE0A\x03H\x00\x12t\x0A\x0Ccontents_sql\x18\x06 \x01(\x0B2\\.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSqlDefinitionH\x00\x12\x1A\x0A\x0Dgenerated_sql\x18\x03 \x01(\x09B\x03\xE0A\x03\x12\x13\x0A\x06job_id\x18\x04 \x01(\x09B\x03\xE0A\x03\x1A\x84\x02\x0A\x13ActionSqlDefinition\x12\x0D\x0A\x05query\x18\x01 \x01(\x09\x12n\x0A\x0Berror_table\x18\x02 \x01(\x0B2Y.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionErrorTable\x12n\x0A\x0Bload_config\x18\x03 \x01(\x0B2Y.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionLoadConfig\x1A\\\x0A\x10ActionErrorTable\x120\x0A\x06target\x18\x01 \x01(\x0B2 .google.cloud.dataform.v1.Target\x12\x16\x0A\x0Eretention_days\x18\x02 \x01(\x05\x1A\xEA\x03\x0A\x10ActionLoadConfig\x12p\x0A\x07replace\x18\x01 \x01(\x0B2].google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadModeH\x00\x12o\x0A\x06append\x18\x02 \x01(\x0B2].google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadModeH\x00\x12u\x0A\x07maximum\x18\x03 \x01(\x0B2b.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadModeH\x00\x12t\x0A\x06unique\x18\x04 \x01(\x0B2b.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadModeH\x00B\x06\x0A\x04mode\x1A\x16\x0A\x14ActionSimpleLoadMode\x1A+\x0A\x19ActionIncrementalLoadMode\x12\x0E\x0A\x06column\x18\x01 \x01(\x09B\x0C\x0A\x0Adefinition\"f\x0A\x05State\x12\x0B\x0A\x07PENDING\x10\x00\x12\x0B\x0A\x07RUNNING\x10\x01\x12\x0B\x0A\x07SKIPPED\x10\x02\x12\x0C\x0A\x08DISABLED\x10\x03\x12\x0D\x0A\x09SUCCEEDED\x10\x04\x12\x0D\x0A\x09CANCELLED\x10\x05\x12\x0A\x0A\x06FAILED\x10\x06B\x08\x0A\x06actionB\x14\x0A\x12_internal_metadata\"\x9A\x01\x0A%QueryWorkflowInvocationActionsRequest\x12@\x0A\x04name\x18\x01 \x01(\x09B2\xE0A\x02\xFAA,\x0A*dataform.googleapis.com/WorkflowInvocation\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"\x9A\x01\x0A&QueryWorkflowInvocationActionsResponse\x12W\x0A\x1Bworkflow_invocation_actions\x18\x01 \x03(\x0B22.google.cloud.dataform.v1.WorkflowInvocationAction\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x85\x02\x0A\x06Config\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12G\x0A\x14default_kms_key_name\x18\x02 \x01(\x09B)\xE0A\x01\xFAA#\x0A!cloudkms.googleapis.com/CryptoKey\x12#\x0A\x11internal_metadata\x18\x07 \x01(\x09B\x03\xE0A\x03H\x00\x88\x01\x01:d\xEAAa\x0A\x1Edataform.googleapis.com/Config\x12.projects/{project}/locations/{location}/config*\x07configs2\x06configB\x14\x0A\x12_internal_metadata\"H\x0A\x10GetConfigRequest\x124\x0A\x04name\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Edataform.googleapis.com/Config\"\x82\x01\x0A\x13UpdateConfigRequest\x125\x0A\x06config\x18\x01 \x01(\x0B2 .google.cloud.dataform.v1.ConfigB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\"\xCF\x03\x0A\x06Folder\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x1E\x0A\x11containing_folder\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x1D\x0A\x10team_folder_name\x18\x04 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12#\x0A\x11internal_metadata\x18\x07 \x01(\x09B\x03\xE0A\x03H\x00\x88\x01\x01\x12'\x0A\x15creator_iam_principal\x18\x08 \x01(\x09B\x03\xE0A\x03H\x01\x88\x01\x01:n\xEAAk\x0A\x1Edataform.googleapis.com/Folder\x128projects/{project}/locations/{location}/folders/{folder}*\x07folders2\x06folderB\x14\x0A\x12_internal_metadataB\x18\x0A\x16_creator_iam_principal\"\x87\x01\x0A\x13CreateFolderRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x125\x0A\x06folder\x18\x02 \x01(\x0B2 .google.cloud.dataform.v1.FolderB\x03\xE0A\x02\"\x9C\x01\x0A\x11MoveFolderRequest\x124\x0A\x04name\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Edataform.googleapis.com/Folder\x12/\x0A\x1Ddestination_containing_folder\x18\x02 \x01(\x09B\x03\xE0A\x01H\x00\x88\x01\x01B \x0A\x1E_destination_containing_folder\"H\x0A\x10GetFolderRequest\x124\x0A\x04name\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Edataform.googleapis.com/Folder\"\x82\x01\x0A\x13UpdateFolderRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x125\x0A\x06folder\x18\x02 \x01(\x0B2 .google.cloud.dataform.v1.FolderB\x03\xE0A\x02\"K\x0A\x13DeleteFolderRequest\x124\x0A\x04name\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Edataform.googleapis.com/Folder\"c\x0A\x17DeleteFolderTreeRequest\x124\x0A\x04name\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Edataform.googleapis.com/Folder\x12\x12\x0A\x05force\x18\x02 \x01(\x08B\x03\xE0A\x01\"k\x0A\x1BDeleteTeamFolderTreeRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/TeamFolder\x12\x12\x0A\x05force\x18\x02 \x01(\x08B\x03\xE0A\x01\"\xE2\x02\x0A\x18DeleteFolderTreeMetadata\x124\x0A\x0Bcreate_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x121\x0A\x08end_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x13\x0A\x06target\x18\x03 \x01(\x09B\x03\xE0A\x03\x12L\x0A\x05state\x18\x04 \x01(\x0E28.google.cloud.dataform.v1.DeleteFolderTreeMetadata.StateB\x03\xE0A\x03\x12\x1D\x0A\x10percent_complete\x18\x05 \x01(\x05B\x03\xE0A\x03\"[\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BINITIALIZED\x10\x01\x12\x0F\x0A\x0BIN_PROGRESS\x10\x02\x12\x0D\x0A\x09SUCCEEDED\x10\x03\x12\x0A\x0A\x06FAILED\x10\x04\"\xB1\x01\x0A\x1AQueryFolderContentsRequest\x126\x0A\x06folder\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Edataform.googleapis.com/Folder\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\xA3\x02\x0A\x1BQueryFolderContentsResponse\x12Z\x0A\x07entries\x18\x01 \x03(\x0B2I.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x1A\x8E\x01\x0A\x13FolderContentsEntry\x122\x0A\x06folder\x18\x01 \x01(\x0B2 .google.cloud.dataform.v1.FolderH\x00\x12:\x0A\x0Arepository\x18\x02 \x01(\x0B2\$.google.cloud.dataform.v1.RepositoryH\x00B\x07\x0A\x05entry\"\xB8\x01\x0A\x1CQueryUserRootContentsRequest\x12;\x0A\x08location\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\xA3\x02\x0A\x1DQueryUserRootContentsResponse\x12Z\x0A\x07entries\x18\x01 \x03(\x0B2I.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x1A\x8C\x01\x0A\x11RootContentsEntry\x122\x0A\x06folder\x18\x01 \x01(\x0B2 .google.cloud.dataform.v1.FolderH\x00\x12:\x0A\x0Arepository\x18\x02 \x01(\x0B2\$.google.cloud.dataform.v1.RepositoryH\x00B\x07\x0A\x05entry\"\xAB\x03\x0A\x0ATeamFolder\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x02\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12#\x0A\x11internal_metadata\x18\x05 \x01(\x09B\x03\xE0A\x03H\x00\x88\x01\x01\x12'\x0A\x15creator_iam_principal\x18\x06 \x01(\x09B\x03\xE0A\x03H\x01\x88\x01\x01:\x84\x01\xEAA\x80\x01\x0A\"dataform.googleapis.com/TeamFolder\x12Aprojects/{project}/locations/{location}/teamFolders/{team_folder}*\x0BteamFolders2\x0AteamFolderB\x14\x0A\x12_internal_metadataB\x18\x0A\x16_creator_iam_principal\"\x94\x01\x0A\x17CreateTeamFolderRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12>\x0A\x0Bteam_folder\x18\x02 \x01(\x0B2\$.google.cloud.dataform.v1.TeamFolderB\x03\xE0A\x02\"P\x0A\x14GetTeamFolderRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/TeamFolder\"\x8F\x01\x0A\x17UpdateTeamFolderRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12>\x0A\x0Bteam_folder\x18\x02 \x01(\x0B2\$.google.cloud.dataform.v1.TeamFolderB\x03\xE0A\x02\"S\x0A\x17DeleteTeamFolderRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/TeamFolder\"\xBE\x01\x0A\x1EQueryTeamFolderContentsRequest\x12?\x0A\x0Bteam_folder\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/TeamFolder\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\xB3\x02\x0A\x1FQueryTeamFolderContentsResponse\x12b\x0A\x07entries\x18\x01 \x03(\x0B2Q.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x1A\x92\x01\x0A\x17TeamFolderContentsEntry\x122\x0A\x06folder\x18\x01 \x01(\x0B2 .google.cloud.dataform.v1.FolderH\x00\x12:\x0A\x0Arepository\x18\x02 \x01(\x0B2\$.google.cloud.dataform.v1.RepositoryH\x00B\x07\x0A\x05entry\"\xB4\x01\x0A\x18SearchTeamFoldersRequest\x12;\x0A\x08location\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\xF1\x01\x0A\x19SearchTeamFoldersResponse\x12[\x0A\x07results\x18\x01 \x03(\x0B2J.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x1A^\x0A\x16TeamFolderSearchResult\x12;\x0A\x0Bteam_folder\x18\x02 \x01(\x0B2\$.google.cloud.dataform.v1.TeamFolderH\x00B\x07\x0A\x05entry\"\xCA\x02\x0A\x12MoveFolderMetadata\x124\x0A\x0Bcreate_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x121\x0A\x08end_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x13\x0A\x06target\x18\x03 \x01(\x09B\x03\xE0A\x03\x12A\x0A\x05state\x18\x04 \x01(\x0E22.google.cloud.dataform.v1.MoveFolderMetadata.State\x12\x18\x0A\x10percent_complete\x18\x05 \x01(\x05\"Y\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BINITIALIZED\x10\x01\x12\x0F\x0A\x0BIN_PROGRESS\x10\x02\x12\x0B\x0A\x07SUCCESS\x10\x03\x12\x0A\x0A\x06FAILED\x10\x04\"\xD2\x02\x0A\x16MoveRepositoryMetadata\x124\x0A\x0Bcreate_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x121\x0A\x08end_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x13\x0A\x06target\x18\x03 \x01(\x09B\x03\xE0A\x03\x12E\x0A\x05state\x18\x04 \x01(\x0E26.google.cloud.dataform.v1.MoveRepositoryMetadata.State\x12\x18\x0A\x10percent_complete\x18\x05 \x01(\x05\"Y\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BINITIALIZED\x10\x01\x12\x0F\x0A\x0BIN_PROGRESS\x10\x02\x12\x0B\x0A\x07SUCCESS\x10\x03\x12\x0A\x0A\x06FAILED\x10\x04*\x89\x01\x0A\x15DirectoryContentsView\x12'\x0A#DIRECTORY_CONTENTS_VIEW_UNSPECIFIED\x10\x00\x12!\x0A\x1DDIRECTORY_CONTENTS_VIEW_BASIC\x10\x01\x12\$\x0A DIRECTORY_CONTENTS_VIEW_METADATA\x10\x022\xE3}\x0A\x08Dataform\x12\xA5\x01\x0A\x0DGetTeamFolder\x12..google.cloud.dataform.v1.GetTeamFolderRequest\x1A\$.google.cloud.dataform.v1.TeamFolder\">\xDAA\x04name\x82\xD3\xE4\x93\x021\x12//v1/{name=projects/*/locations/*/teamFolders/*}\x12\xC6\x01\x0A\x10CreateTeamFolder\x121.google.cloud.dataform.v1.CreateTeamFolderRequest\x1A\$.google.cloud.dataform.v1.TeamFolder\"Y\xDAA\x12parent,team_folder\x82\xD3\xE4\x93\x02>\"//v1/{parent=projects/*/locations/*}/teamFolders:\x0Bteam_folder\x12\xD7\x01\x0A\x10UpdateTeamFolder\x121.google.cloud.dataform.v1.UpdateTeamFolderRequest\x1A\$.google.cloud.dataform.v1.TeamFolder\"j\xDAA\x17team_folder,update_mask\x82\xD3\xE4\x93\x02J2;/v1/{team_folder.name=projects/*/locations/*/teamFolders/*}:\x0Bteam_folder\x12\x9D\x01\x0A\x10DeleteTeamFolder\x121.google.cloud.dataform.v1.DeleteTeamFolderRequest\x1A\x16.google.protobuf.Empty\">\xDAA\x04name\x82\xD3\xE4\x93\x021*//v1/{name=projects/*/locations/*/teamFolders/*}\x12\xF5\x01\x0A\x14DeleteTeamFolderTree\x125.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest\x1A\x1D.google.longrunning.Operation\"\x86\x01\xCAA1\x0A\x15google.protobuf.Empty\x12\x18DeleteFolderTreeMetadata\xDAA\x0Aname,force\x82\xD3\xE4\x93\x02?\":/v1/{name=projects/*/locations/*/teamFolders/*}:deleteTree:\x01*\x12\xEA\x01\x0A\x17QueryTeamFolderContents\x128.google.cloud.dataform.v1.QueryTeamFolderContentsRequest\x1A9.google.cloud.dataform.v1.QueryTeamFolderContentsResponse\"Z\xDAA\x0Bteam_folder\x82\xD3\xE4\x93\x02F\x12D/v1/{team_folder=projects/*/locations/*/teamFolders/*}:queryContents\x12\xBE\x01\x0A\x11SearchTeamFolders\x122.google.cloud.dataform.v1.SearchTeamFoldersRequest\x1A3.google.cloud.dataform.v1.SearchTeamFoldersResponse\"@\x82\xD3\xE4\x93\x02:\x128/v1/{location=projects/*/locations/*}/teamFolders:search\x12\x95\x01\x0A\x09GetFolder\x12*.google.cloud.dataform.v1.GetFolderRequest\x1A .google.cloud.dataform.v1.Folder\":\xDAA\x04name\x82\xD3\xE4\x93\x02-\x12+/v1/{name=projects/*/locations/*/folders/*}\x12\xAC\x01\x0A\x0CCreateFolder\x12-.google.cloud.dataform.v1.CreateFolderRequest\x1A .google.cloud.dataform.v1.Folder\"K\xDAA\x0Dparent,folder\x82\xD3\xE4\x93\x025\"+/v1/{parent=projects/*/locations/*}/folders:\x06folder\x12\xB8\x01\x0A\x0CUpdateFolder\x12-.google.cloud.dataform.v1.UpdateFolderRequest\x1A .google.cloud.dataform.v1.Folder\"W\xDAA\x12folder,update_mask\x82\xD3\xE4\x93\x02<22/v1/{folder.name=projects/*/locations/*/folders/*}:\x06folder\x12\x91\x01\x0A\x0CDeleteFolder\x12-.google.cloud.dataform.v1.DeleteFolderRequest\x1A\x16.google.protobuf.Empty\":\xDAA\x04name\x82\xD3\xE4\x93\x02-*+/v1/{name=projects/*/locations/*/folders/*}\x12\xE9\x01\x0A\x10DeleteFolderTree\x121.google.cloud.dataform.v1.DeleteFolderTreeRequest\x1A\x1D.google.longrunning.Operation\"\x82\x01\xCAA1\x0A\x15google.protobuf.Empty\x12\x18DeleteFolderTreeMetadata\xDAA\x0Aname,force\x82\xD3\xE4\x93\x02;\"6/v1/{name=projects/*/locations/*/folders/*}:deleteTree:\x01*\x12\xD6\x01\x0A\x13QueryFolderContents\x124.google.cloud.dataform.v1.QueryFolderContentsRequest\x1A5.google.cloud.dataform.v1.QueryFolderContentsResponse\"R\xDAA\x06folder\x82\xD3\xE4\x93\x02C\x12A/v1/{folder=projects/*/locations/*/folders/*}:queryFolderContents\x12\xD8\x01\x0A\x15QueryUserRootContents\x126.google.cloud.dataform.v1.QueryUserRootContentsRequest\x1A7.google.cloud.dataform.v1.QueryUserRootContentsResponse\"N\xDAA\x08location\x82\xD3\xE4\x93\x02=\x12;/v1/{location=projects/*/locations/*}:queryUserRootContents\x12\xE9\x01\x0A\x0AMoveFolder\x12+.google.cloud.dataform.v1.MoveFolderRequest\x1A\x1D.google.longrunning.Operation\"\x8E\x01\xCAA+\x0A\x15google.protobuf.Empty\x12\x12MoveFolderMetadata\xDAA\"name,destination_containing_folder\x82\xD3\xE4\x93\x025\"0/v1/{name=projects/*/locations/*/folders/*}:move:\x01*\x12\xBC\x01\x0A\x10ListRepositories\x121.google.cloud.dataform.v1.ListRepositoriesRequest\x1A2.google.cloud.dataform.v1.ListRepositoriesResponse\"A\xDAA\x06parent\x82\xD3\xE4\x93\x022\x120/v1/{parent=projects/*/locations/*}/repositories\x12\xA6\x01\x0A\x0DGetRepository\x12..google.cloud.dataform.v1.GetRepositoryRequest\x1A\$.google.cloud.dataform.v1.Repository\"?\xDAA\x04name\x82\xD3\xE4\x93\x022\x120/v1/{name=projects/*/locations/*/repositories/*}\x12\xD3\x01\x0A\x10CreateRepository\x121.google.cloud.dataform.v1.CreateRepositoryRequest\x1A\$.google.cloud.dataform.v1.Repository\"f\xDAA\x1Fparent,repository,repository_id\x82\xD3\xE4\x93\x02>\"0/v1/{parent=projects/*/locations/*}/repositories:\x0Arepository\x12\xD5\x01\x0A\x10UpdateRepository\x121.google.cloud.dataform.v1.UpdateRepositoryRequest\x1A\$.google.cloud.dataform.v1.Repository\"h\xDAA\x16repository,update_mask\x82\xD3\xE4\x93\x02I2;/v1/{repository.name=projects/*/locations/*/repositories/*}:\x0Arepository\x12\x9E\x01\x0A\x10DeleteRepository\x121.google.cloud.dataform.v1.DeleteRepositoryRequest\x1A\x16.google.protobuf.Empty\"?\xDAA\x04name\x82\xD3\xE4\x93\x022*0/v1/{name=projects/*/locations/*/repositories/*}\x12\xFA\x01\x0A\x0EMoveRepository\x12/.google.cloud.dataform.v1.MoveRepositoryRequest\x1A\x1D.google.longrunning.Operation\"\x97\x01\xCAA/\x0A\x15google.protobuf.Empty\x12\x16MoveRepositoryMetadata\xDAA\"name,destination_containing_folder\x82\xD3\xE4\x93\x02:\"5/v1/{name=projects/*/locations/*/repositories/*}:move:\x01*\x12\xD2\x01\x0A\x17CommitRepositoryChanges\x128.google.cloud.dataform.v1.CommitRepositoryChangesRequest\x1A9.google.cloud.dataform.v1.CommitRepositoryChangesResponse\"B\x82\xD3\xE4\x93\x02<\"7/v1/{name=projects/*/locations/*/repositories/*}:commit:\x01*\x12\xC2\x01\x0A\x12ReadRepositoryFile\x123.google.cloud.dataform.v1.ReadRepositoryFileRequest\x1A4.google.cloud.dataform.v1.ReadRepositoryFileResponse\"A\x82\xD3\xE4\x93\x02;\x129/v1/{name=projects/*/locations/*/repositories/*}:readFile\x12\xFA\x01\x0A QueryRepositoryDirectoryContents\x12A.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsRequest\x1AB.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsResponse\"O\x82\xD3\xE4\x93\x02I\x12G/v1/{name=projects/*/locations/*/repositories/*}:queryDirectoryContents\x12\xD2\x01\x0A\x16FetchRepositoryHistory\x127.google.cloud.dataform.v1.FetchRepositoryHistoryRequest\x1A8.google.cloud.dataform.v1.FetchRepositoryHistoryResponse\"E\x82\xD3\xE4\x93\x02?\x12=/v1/{name=projects/*/locations/*/repositories/*}:fetchHistory\x12\x82\x02\x0A\"ComputeRepositoryAccessTokenStatus\x12C.google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusRequest\x1AD.google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusResponse\"Q\x82\xD3\xE4\x93\x02K\x12I/v1/{name=projects/*/locations/*/repositories/*}:computeAccessTokenStatus\x12\xD0\x01\x0A\x13FetchRemoteBranches\x124.google.cloud.dataform.v1.FetchRemoteBranchesRequest\x1A5.google.cloud.dataform.v1.FetchRemoteBranchesResponse\"L\x82\xD3\xE4\x93\x02F\x12D/v1/{name=projects/*/locations/*/repositories/*}:fetchRemoteBranches\x12\xC3\x01\x0A\x0EListWorkspaces\x12/.google.cloud.dataform.v1.ListWorkspacesRequest\x1A0.google.cloud.dataform.v1.ListWorkspacesResponse\"N\xDAA\x06parent\x82\xD3\xE4\x93\x02?\x12=/v1/{parent=projects/*/locations/*/repositories/*}/workspaces\x12\xB0\x01\x0A\x0CGetWorkspace\x12-.google.cloud.dataform.v1.GetWorkspaceRequest\x1A#.google.cloud.dataform.v1.Workspace\"L\xDAA\x04name\x82\xD3\xE4\x93\x02?\x12=/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}\x12\xDA\x01\x0A\x0FCreateWorkspace\x120.google.cloud.dataform.v1.CreateWorkspaceRequest\x1A#.google.cloud.dataform.v1.Workspace\"p\xDAA\x1Dparent,workspace,workspace_id\x82\xD3\xE4\x93\x02J\"=/v1/{parent=projects/*/locations/*/repositories/*}/workspaces:\x09workspace\x12\xA9\x01\x0A\x0FDeleteWorkspace\x120.google.cloud.dataform.v1.DeleteWorkspaceRequest\x1A\x16.google.protobuf.Empty\"L\xDAA\x04name\x82\xD3\xE4\x93\x02?*=/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}\x12\xE1\x01\x0A\x12InstallNpmPackages\x123.google.cloud.dataform.v1.InstallNpmPackagesRequest\x1A4.google.cloud.dataform.v1.InstallNpmPackagesResponse\"`\x82\xD3\xE4\x93\x02Z\"U/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:installNpmPackages:\x01*\x12\xC2\x01\x0A\x0EPullGitCommits\x12/.google.cloud.dataform.v1.PullGitCommitsRequest\x1A0.google.cloud.dataform.v1.PullGitCommitsResponse\"M\x82\xD3\xE4\x93\x02G\"B/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:pull:\x01*\x12\xC2\x01\x0A\x0EPushGitCommits\x12/.google.cloud.dataform.v1.PushGitCommitsRequest\x1A0.google.cloud.dataform.v1.PushGitCommitsResponse\"M\x82\xD3\xE4\x93\x02G\"B/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:push:\x01*\x12\xE1\x01\x0A\x14FetchFileGitStatuses\x125.google.cloud.dataform.v1.FetchFileGitStatusesRequest\x1A6.google.cloud.dataform.v1.FetchFileGitStatusesResponse\"Z\x82\xD3\xE4\x93\x02T\x12R/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:fetchFileGitStatuses\x12\xDD\x01\x0A\x13FetchGitAheadBehind\x124.google.cloud.dataform.v1.FetchGitAheadBehindRequest\x1A5.google.cloud.dataform.v1.FetchGitAheadBehindResponse\"Y\x82\xD3\xE4\x93\x02S\x12Q/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:fetchGitAheadBehind\x12\xDC\x01\x0A\x16CommitWorkspaceChanges\x127.google.cloud.dataform.v1.CommitWorkspaceChangesRequest\x1A8.google.cloud.dataform.v1.CommitWorkspaceChangesResponse\"O\x82\xD3\xE4\x93\x02I\"D/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:commit:\x01*\x12\xD8\x01\x0A\x15ResetWorkspaceChanges\x126.google.cloud.dataform.v1.ResetWorkspaceChangesRequest\x1A7.google.cloud.dataform.v1.ResetWorkspaceChangesResponse\"N\x82\xD3\xE4\x93\x02H\"C/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:reset:\x01*\x12\xCA\x01\x0A\x0DFetchFileDiff\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\x0A\x16QueryDirectoryContents\x127.google.cloud.dataform.v1.QueryDirectoryContentsRequest\x1A8.google.cloud.dataform.v1.QueryDirectoryContentsResponse\"a\x82\xD3\xE4\x93\x02[\x12Y/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:queryDirectoryContents\x12\xC2\x01\x0A\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\x0A\x0DMakeDirectory\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\x0A\x0FRemoveDirectory\x120.google.cloud.dataform.v1.RemoveDirectoryRequest\x1A1.google.cloud.dataform.v1.RemoveDirectoryResponse\"]\x82\xD3\xE4\x93\x02W\"R/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:removeDirectory:\x01*\x12\xCD\x01\x0A\x0DMoveDirectory\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\x0A\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\x0A\x0ARemoveFile\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\x0A\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\x0A\x09WriteFile\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\x0A\x12ListReleaseConfigs\x123.google.cloud.dataform.v1.ListReleaseConfigsRequest\x1A4.google.cloud.dataform.v1.ListReleaseConfigsResponse\"R\xDAA\x06parent\x82\xD3\xE4\x93\x02C\x12A/v1/{parent=projects/*/locations/*/repositories/*}/releaseConfigs\x12\xC0\x01\x0A\x10GetReleaseConfig\x121.google.cloud.dataform.v1.GetReleaseConfigRequest\x1A'.google.cloud.dataform.v1.ReleaseConfig\"P\xDAA\x04name\x82\xD3\xE4\x93\x02C\x12A/v1/{name=projects/*/locations/*/repositories/*/releaseConfigs/*}\x12\xFA\x01\x0A\x13CreateReleaseConfig\x124.google.cloud.dataform.v1.CreateReleaseConfigRequest\x1A'.google.cloud.dataform.v1.ReleaseConfig\"\x83\x01\xDAA'parent,release_config,release_config_id\x82\xD3\xE4\x93\x02S\"A/v1/{parent=projects/*/locations/*/repositories/*}/releaseConfigs:\x0Erelease_config\x12\xFC\x01\x0A\x13UpdateReleaseConfig\x124.google.cloud.dataform.v1.UpdateReleaseConfigRequest\x1A'.google.cloud.dataform.v1.ReleaseConfig\"\x85\x01\xDAA\x1Arelease_config,update_mask\x82\xD3\xE4\x93\x02b2P/v1/{release_config.name=projects/*/locations/*/repositories/*/releaseConfigs/*}:\x0Erelease_config\x12\xB5\x01\x0A\x13DeleteReleaseConfig\x124.google.cloud.dataform.v1.DeleteReleaseConfigRequest\x1A\x16.google.protobuf.Empty\"P\xDAA\x04name\x82\xD3\xE4\x93\x02C*A/v1/{name=projects/*/locations/*/repositories/*/releaseConfigs/*}\x12\xE3\x01\x0A\x16ListCompilationResults\x127.google.cloud.dataform.v1.ListCompilationResultsRequest\x1A8.google.cloud.dataform.v1.ListCompilationResultsResponse\"V\xDAA\x06parent\x82\xD3\xE4\x93\x02G\x12E/v1/{parent=projects/*/locations/*/repositories/*}/compilationResults\x12\xD0\x01\x0A\x14GetCompilationResult\x125.google.cloud.dataform.v1.GetCompilationResultRequest\x1A+.google.cloud.dataform.v1.CompilationResult\"T\xDAA\x04name\x82\xD3\xE4\x93\x02G\x12E/v1/{name=projects/*/locations/*/repositories/*/compilationResults/*}\x12\xFF\x01\x0A\x17CreateCompilationResult\x128.google.cloud.dataform.v1.CreateCompilationResultRequest\x1A+.google.cloud.dataform.v1.CompilationResult\"}\xDAA\x19parent,compilation_result\x82\xD3\xE4\x93\x02[\"E/v1/{parent=projects/*/locations/*/repositories/*}/compilationResults:\x12compilation_result\x12\xF5\x01\x0A\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\x0A\x13ListWorkflowConfigs\x124.google.cloud.dataform.v1.ListWorkflowConfigsRequest\x1A5.google.cloud.dataform.v1.ListWorkflowConfigsResponse\"S\xDAA\x06parent\x82\xD3\xE4\x93\x02D\x12B/v1/{parent=projects/*/locations/*/repositories/*}/workflowConfigs\x12\xC4\x01\x0A\x11GetWorkflowConfig\x122.google.cloud.dataform.v1.GetWorkflowConfigRequest\x1A(.google.cloud.dataform.v1.WorkflowConfig\"Q\xDAA\x04name\x82\xD3\xE4\x93\x02D\x12B/v1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}\x12\x81\x02\x0A\x14CreateWorkflowConfig\x125.google.cloud.dataform.v1.CreateWorkflowConfigRequest\x1A(.google.cloud.dataform.v1.WorkflowConfig\"\x87\x01\xDAA)parent,workflow_config,workflow_config_id\x82\xD3\xE4\x93\x02U\"B/v1/{parent=projects/*/locations/*/repositories/*}/workflowConfigs:\x0Fworkflow_config\x12\x83\x02\x0A\x14UpdateWorkflowConfig\x125.google.cloud.dataform.v1.UpdateWorkflowConfigRequest\x1A(.google.cloud.dataform.v1.WorkflowConfig\"\x89\x01\xDAA\x1Bworkflow_config,update_mask\x82\xD3\xE4\x93\x02e2R/v1/{workflow_config.name=projects/*/locations/*/repositories/*/workflowConfigs/*}:\x0Fworkflow_config\x12\xB8\x01\x0A\x14DeleteWorkflowConfig\x125.google.cloud.dataform.v1.DeleteWorkflowConfigRequest\x1A\x16.google.protobuf.Empty\"Q\xDAA\x04name\x82\xD3\xE4\x93\x02D*B/v1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}\x12\xE7\x01\x0A\x17ListWorkflowInvocations\x128.google.cloud.dataform.v1.ListWorkflowInvocationsRequest\x1A9.google.cloud.dataform.v1.ListWorkflowInvocationsResponse\"W\xDAA\x06parent\x82\xD3\xE4\x93\x02H\x12F/v1/{parent=projects/*/locations/*/repositories/*}/workflowInvocations\x12\xD4\x01\x0A\x15GetWorkflowInvocation\x126.google.cloud.dataform.v1.GetWorkflowInvocationRequest\x1A,.google.cloud.dataform.v1.WorkflowInvocation\"U\xDAA\x04name\x82\xD3\xE4\x93\x02H\x12F/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}\x12\x86\x02\x0A\x18CreateWorkflowInvocation\x129.google.cloud.dataform.v1.CreateWorkflowInvocationRequest\x1A,.google.cloud.dataform.v1.WorkflowInvocation\"\x80\x01\xDAA\x1Aparent,workflow_invocation\x82\xD3\xE4\x93\x02]\"F/v1/{parent=projects/*/locations/*/repositories/*}/workflowInvocations:\x13workflow_invocation\x12\xC4\x01\x0A\x18DeleteWorkflowInvocation\x129.google.cloud.dataform.v1.DeleteWorkflowInvocationRequest\x1A\x16.google.protobuf.Empty\"U\xDAA\x04name\x82\xD3\xE4\x93\x02H*F/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}\x12\xEB\x01\x0A\x18CancelWorkflowInvocation\x129.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\x0A\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\x0A\x09GetConfig\x12*.google.cloud.dataform.v1.GetConfigRequest\x1A .google.cloud.dataform.v1.Config\"7\xDAA\x04name\x82\xD3\xE4\x93\x02*\x12(/v1/{name=projects/*/locations/*/config}\x12\xB5\x01\x0A\x0CUpdateConfig\x12-.google.cloud.dataform.v1.UpdateConfigRequest\x1A .google.cloud.dataform.v1.Config\"T\xDAA\x12config,update_mask\x82\xD3\xE4\x93\x0292//v1/{config.name=projects/*/locations/*/config}:\x06config\x12\xF7\x02\x0A\x0CGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1A\x15.google.iam.v1.Policy\"\xAB\x02\xDAA\x08resource\x82\xD3\xE4\x93\x02\x99\x02\x12A/v1/{resource=projects/*/locations/*/repositories/*}:getIamPolicyZP\x12N/v1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:getIamPolicyZ>\x12 commitWorkspaceChangesAsync(CommitWorkspaceChangesRequest $request, array $optionalArgs = []) * @method PromiseInterface computeRepositoryAccessTokenStatusAsync(ComputeRepositoryAccessTokenStatusRequest $request, array $optionalArgs = []) * @method PromiseInterface createCompilationResultAsync(CreateCompilationResultRequest $request, array $optionalArgs = []) + * @method PromiseInterface createFolderAsync(CreateFolderRequest $request, array $optionalArgs = []) * @method PromiseInterface createReleaseConfigAsync(CreateReleaseConfigRequest $request, array $optionalArgs = []) * @method PromiseInterface createRepositoryAsync(CreateRepositoryRequest $request, array $optionalArgs = []) + * @method PromiseInterface createTeamFolderAsync(CreateTeamFolderRequest $request, array $optionalArgs = []) * @method PromiseInterface createWorkflowConfigAsync(CreateWorkflowConfigRequest $request, array $optionalArgs = []) * @method PromiseInterface createWorkflowInvocationAsync(CreateWorkflowInvocationRequest $request, array $optionalArgs = []) * @method PromiseInterface createWorkspaceAsync(CreateWorkspaceRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteFolderAsync(DeleteFolderRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteFolderTreeAsync(DeleteFolderTreeRequest $request, array $optionalArgs = []) * @method PromiseInterface deleteReleaseConfigAsync(DeleteReleaseConfigRequest $request, array $optionalArgs = []) * @method PromiseInterface deleteRepositoryAsync(DeleteRepositoryRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteTeamFolderAsync(DeleteTeamFolderRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteTeamFolderTreeAsync(DeleteTeamFolderTreeRequest $request, array $optionalArgs = []) * @method PromiseInterface deleteWorkflowConfigAsync(DeleteWorkflowConfigRequest $request, array $optionalArgs = []) * @method PromiseInterface deleteWorkflowInvocationAsync(DeleteWorkflowInvocationRequest $request, array $optionalArgs = []) * @method PromiseInterface deleteWorkspaceAsync(DeleteWorkspaceRequest $request, array $optionalArgs = []) @@ -160,8 +191,11 @@ * @method PromiseInterface fetchRepositoryHistoryAsync(FetchRepositoryHistoryRequest $request, array $optionalArgs = []) * @method PromiseInterface getCompilationResultAsync(GetCompilationResultRequest $request, array $optionalArgs = []) * @method PromiseInterface getConfigAsync(GetConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface getFolderAsync(GetFolderRequest $request, array $optionalArgs = []) + * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) * @method PromiseInterface getReleaseConfigAsync(GetReleaseConfigRequest $request, array $optionalArgs = []) * @method PromiseInterface getRepositoryAsync(GetRepositoryRequest $request, array $optionalArgs = []) + * @method PromiseInterface getTeamFolderAsync(GetTeamFolderRequest $request, array $optionalArgs = []) * @method PromiseInterface getWorkflowConfigAsync(GetWorkflowConfigRequest $request, array $optionalArgs = []) * @method PromiseInterface getWorkflowInvocationAsync(GetWorkflowInvocationRequest $request, array $optionalArgs = []) * @method PromiseInterface getWorkspaceAsync(GetWorkspaceRequest $request, array $optionalArgs = []) @@ -175,11 +209,16 @@ * @method PromiseInterface makeDirectoryAsync(MakeDirectoryRequest $request, array $optionalArgs = []) * @method PromiseInterface moveDirectoryAsync(MoveDirectoryRequest $request, array $optionalArgs = []) * @method PromiseInterface moveFileAsync(MoveFileRequest $request, array $optionalArgs = []) + * @method PromiseInterface moveFolderAsync(MoveFolderRequest $request, array $optionalArgs = []) + * @method PromiseInterface moveRepositoryAsync(MoveRepositoryRequest $request, array $optionalArgs = []) * @method PromiseInterface pullGitCommitsAsync(PullGitCommitsRequest $request, array $optionalArgs = []) * @method PromiseInterface pushGitCommitsAsync(PushGitCommitsRequest $request, array $optionalArgs = []) * @method PromiseInterface queryCompilationResultActionsAsync(QueryCompilationResultActionsRequest $request, array $optionalArgs = []) * @method PromiseInterface queryDirectoryContentsAsync(QueryDirectoryContentsRequest $request, array $optionalArgs = []) + * @method PromiseInterface queryFolderContentsAsync(QueryFolderContentsRequest $request, array $optionalArgs = []) * @method PromiseInterface queryRepositoryDirectoryContentsAsync(QueryRepositoryDirectoryContentsRequest $request, array $optionalArgs = []) + * @method PromiseInterface queryTeamFolderContentsAsync(QueryTeamFolderContentsRequest $request, array $optionalArgs = []) + * @method PromiseInterface queryUserRootContentsAsync(QueryUserRootContentsRequest $request, array $optionalArgs = []) * @method PromiseInterface queryWorkflowInvocationActionsAsync(QueryWorkflowInvocationActionsRequest $request, array $optionalArgs = []) * @method PromiseInterface readFileAsync(ReadFileRequest $request, array $optionalArgs = []) * @method PromiseInterface readRepositoryFileAsync(ReadRepositoryFileRequest $request, array $optionalArgs = []) @@ -187,16 +226,22 @@ * @method PromiseInterface removeFileAsync(RemoveFileRequest $request, array $optionalArgs = []) * @method PromiseInterface resetWorkspaceChangesAsync(ResetWorkspaceChangesRequest $request, array $optionalArgs = []) * @method PromiseInterface searchFilesAsync(SearchFilesRequest $request, array $optionalArgs = []) + * @method PromiseInterface searchTeamFoldersAsync(SearchTeamFoldersRequest $request, array $optionalArgs = []) + * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) * @method PromiseInterface updateConfigAsync(UpdateConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateFolderAsync(UpdateFolderRequest $request, array $optionalArgs = []) * @method PromiseInterface updateReleaseConfigAsync(UpdateReleaseConfigRequest $request, array $optionalArgs = []) * @method PromiseInterface updateRepositoryAsync(UpdateRepositoryRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateTeamFolderAsync(UpdateTeamFolderRequest $request, array $optionalArgs = []) * @method PromiseInterface updateWorkflowConfigAsync(UpdateWorkflowConfigRequest $request, array $optionalArgs = []) * @method PromiseInterface writeFileAsync(WriteFileRequest $request, array $optionalArgs = []) + * @method PromiseInterface cancelOperationAsync(CancelOperationRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteOperationAsync(DeleteOperationRequest $request, array $optionalArgs = []) + * @method PromiseInterface getOperationAsync(GetOperationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listOperationsAsync(ListOperationsRequest $request, array $optionalArgs = []) * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) */ final class DataformClient { @@ -228,6 +273,8 @@ final class DataformClient 'https://www.googleapis.com/auth/cloud-platform', ]; + private $operationsClient; + private static function getClientDefaults() { return [ @@ -247,6 +294,54 @@ private static function getClientDefaults() ]; } + /** + * Return an OperationsClient object with the same endpoint as $this. + * + * @return OperationsClient + */ + public function getOperationsClient() + { + return $this->operationsClient; + } + + /** + * Resume an existing long running operation that was previously started by a long + * running API method. If $methodName is not provided, or does not match a long + * running API method, then the operation can still be resumed, but the + * OperationResponse object will not deserialize the final response. + * + * @param string $operationName The name of the long running operation + * @param string $methodName The name of the method used to start the operation + * + * @return OperationResponse + */ + public function resumeOperation($operationName, $methodName = null) + { + $options = $this->descriptors[$methodName]['longRunning'] ?? []; + $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); + $operation->reload(); + return $operation; + } + + /** + * Create the default operation client for the service. + * + * @param array $options ClientOptions for the client. + * + * @return OperationsClient + */ + private function createOperationsClient(array $options) + { + // Unset client-specific configuration options + unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); + + if (isset($options['operationsClient'])) { + return $options['operationsClient']; + } + + return new OperationsClient($options); + } + /** * Formats a string containing the fully-qualified path to represent a * compilation_result resource. @@ -338,6 +433,25 @@ public static function cryptoKeyVersionName( ]); } + /** + * Formats a string containing the fully-qualified path to represent a folder + * resource. + * + * @param string $project + * @param string $location + * @param string $folder + * + * @return string The formatted folder resource. + */ + public static function folderName(string $project, string $location, string $folder): string + { + return self::getPathTemplate('folder')->render([ + 'project' => $project, + 'location' => $location, + 'folder' => $folder, + ]); + } + /** * Formats a string containing the fully-qualified path to represent a location * resource. @@ -440,6 +554,25 @@ public static function secretVersionName(string $project, string $secret, string ]); } + /** + * Formats a string containing the fully-qualified path to represent a team_folder + * resource. + * + * @param string $project + * @param string $location + * @param string $teamFolder + * + * @return string The formatted team_folder resource. + */ + public static function teamFolderName(string $project, string $location, string $teamFolder): string + { + return self::getPathTemplate('teamFolder')->render([ + 'project' => $project, + 'location' => $location, + 'team_folder' => $teamFolder, + ]); + } + /** * Formats a string containing the fully-qualified path to represent a * workflow_config resource. @@ -523,11 +656,13 @@ public static function workspaceName( * - config: projects/{project}/locations/{location}/config * - cryptoKey: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key} * - cryptoKeyVersion: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version} + * - folder: projects/{project}/locations/{location}/folders/{folder} * - location: projects/{project}/locations/{location} * - notebookRuntimeTemplate: projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template} * - releaseConfig: projects/{project}/locations/{location}/repositories/{repository}/releaseConfigs/{release_config} * - repository: projects/{project}/locations/{location}/repositories/{repository} * - secretVersion: projects/{project}/secrets/{secret}/versions/{version} + * - teamFolder: projects/{project}/locations/{location}/teamFolders/{team_folder} * - workflowConfig: projects/{project}/locations/{location}/repositories/{repository}/workflowConfigs/{workflow_config} * - workflowInvocation: projects/{project}/locations/{location}/repositories/{repository}/workflowInvocations/{workflow_invocation} * - workspace: projects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace} @@ -622,6 +757,7 @@ public function __construct(array|ClientOptions $options = []) { $clientOptions = $this->buildClientOptions($options); $this->setClientOptions($clientOptions); + $this->operationsClient = $this->createOperationsClient($clientOptions); } /** Handles execution of the async variants for each documented method. */ @@ -777,6 +913,32 @@ public function createCompilationResult( return $this->startApiCall('CreateCompilationResult', $request, $callOptions)->wait(); } + /** + * Creates a new Folder in a given project and location. + * + * The async variant is {@see DataformClient::createFolderAsync()} . + * + * @example samples/V1/DataformClient/create_folder.php + * + * @param CreateFolderRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Folder + * + * @throws ApiException Thrown if the API call fails. + */ + public function createFolder(CreateFolderRequest $request, array $callOptions = []): Folder + { + return $this->startApiCall('CreateFolder', $request, $callOptions)->wait(); + } + /** * Creates a new ReleaseConfig in a given Repository. * @@ -829,6 +991,32 @@ public function createRepository(CreateRepositoryRequest $request, array $callOp return $this->startApiCall('CreateRepository', $request, $callOptions)->wait(); } + /** + * Creates a new TeamFolder in a given project and location. + * + * The async variant is {@see DataformClient::createTeamFolderAsync()} . + * + * @example samples/V1/DataformClient/create_team_folder.php + * + * @param CreateTeamFolderRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return TeamFolder + * + * @throws ApiException Thrown if the API call fails. + */ + public function createTeamFolder(CreateTeamFolderRequest $request, array $callOptions = []): TeamFolder + { + return $this->startApiCall('CreateTeamFolder', $request, $callOptions)->wait(); + } + /** * Creates a new WorkflowConfig in a given Repository. * @@ -909,6 +1097,57 @@ public function createWorkspace(CreateWorkspaceRequest $request, array $callOpti return $this->startApiCall('CreateWorkspace', $request, $callOptions)->wait(); } + /** + * Deletes a single Folder. + * + * The async variant is {@see DataformClient::deleteFolderAsync()} . + * + * @example samples/V1/DataformClient/delete_folder.php + * + * @param DeleteFolderRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteFolder(DeleteFolderRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteFolder', $request, $callOptions)->wait(); + } + + /** + * Deletes a Folder with its contents (Folders, Repositories, Workspaces, + * ReleaseConfigs, and WorkflowConfigs). + * + * The async variant is {@see DataformClient::deleteFolderTreeAsync()} . + * + * @example samples/V1/DataformClient/delete_folder_tree.php + * + * @param DeleteFolderTreeRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteFolderTree(DeleteFolderTreeRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('DeleteFolderTree', $request, $callOptions)->wait(); + } + /** * Deletes a single ReleaseConfig. * @@ -957,6 +1196,59 @@ public function deleteRepository(DeleteRepositoryRequest $request, array $callOp $this->startApiCall('DeleteRepository', $request, $callOptions)->wait(); } + /** + * Deletes a single TeamFolder. + * + * The async variant is {@see DataformClient::deleteTeamFolderAsync()} . + * + * @example samples/V1/DataformClient/delete_team_folder.php + * + * @param DeleteTeamFolderRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteTeamFolder(DeleteTeamFolderRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteTeamFolder', $request, $callOptions)->wait(); + } + + /** + * Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces, + * ReleaseConfigs, and WorkflowConfigs). + * + * The async variant is {@see DataformClient::deleteTeamFolderTreeAsync()} . + * + * @example samples/V1/DataformClient/delete_team_folder_tree.php + * + * @param DeleteTeamFolderTreeRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteTeamFolderTree( + DeleteTeamFolderTreeRequest $request, + array $callOptions = [] + ): OperationResponse { + return $this->startApiCall('DeleteTeamFolderTree', $request, $callOptions)->wait(); + } + /** * Deletes a single WorkflowConfig. * @@ -1222,6 +1514,60 @@ public function getConfig(GetConfigRequest $request, array $callOptions = []): C return $this->startApiCall('GetConfig', $request, $callOptions)->wait(); } + /** + * Fetches a single Folder. + * + * The async variant is {@see DataformClient::getFolderAsync()} . + * + * @example samples/V1/DataformClient/get_folder.php + * + * @param GetFolderRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Folder + * + * @throws ApiException Thrown if the API call fails. + */ + public function getFolder(GetFolderRequest $request, array $callOptions = []): Folder + { + return $this->startApiCall('GetFolder', $request, $callOptions)->wait(); + } + + /** + * Gets the access control policy for a resource. + * Returns an empty policy if the resource exists and does not have a policy + * set. + * + * The async variant is {@see DataformClient::getIamPolicyAsync()} . + * + * @example samples/V1/DataformClient/get_iam_policy.php + * + * @param GetIamPolicyRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Policy + * + * @throws ApiException Thrown if the API call fails. + */ + public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy + { + return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait(); + } + /** * Fetches a single ReleaseConfig. * @@ -1274,6 +1620,32 @@ public function getRepository(GetRepositoryRequest $request, array $callOptions return $this->startApiCall('GetRepository', $request, $callOptions)->wait(); } + /** + * Fetches a single TeamFolder. + * + * The async variant is {@see DataformClient::getTeamFolderAsync()} . + * + * @example samples/V1/DataformClient/get_team_folder.php + * + * @param GetTeamFolderRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return TeamFolder + * + * @throws ApiException Thrown if the API call fails. + */ + public function getTeamFolder(GetTeamFolderRequest $request, array $callOptions = []): TeamFolder + { + return $this->startApiCall('GetTeamFolder', $request, $callOptions)->wait(); + } + /** * Fetches a single WorkflowConfig. * @@ -1625,14 +1997,14 @@ public function moveFile(MoveFileRequest $request, array $callOptions = []): Mov } /** - * Pulls Git commits from the Repository's remote into a Workspace. + * Moves a Folder to a new Folder, TeamFolder, or the root location. * - * The async variant is {@see DataformClient::pullGitCommitsAsync()} . + * The async variant is {@see DataformClient::moveFolderAsync()} . * - * @example samples/V1/DataformClient/pull_git_commits.php + * @example samples/V1/DataformClient/move_folder.php * - * @param PullGitCommitsRequest $request A request to house fields associated with the call. - * @param array $callOptions { + * @param MoveFolderRequest $request A request to house fields associated with the call. + * @param array $callOptions { * Optional. * * @type RetrySettings|array $retrySettings @@ -1641,23 +2013,23 @@ public function moveFile(MoveFileRequest $request, array $callOptions = []): Mov * {@see RetrySettings} for example usage. * } * - * @return PullGitCommitsResponse + * @return OperationResponse * * @throws ApiException Thrown if the API call fails. */ - public function pullGitCommits(PullGitCommitsRequest $request, array $callOptions = []): PullGitCommitsResponse + public function moveFolder(MoveFolderRequest $request, array $callOptions = []): OperationResponse { - return $this->startApiCall('PullGitCommits', $request, $callOptions)->wait(); + return $this->startApiCall('MoveFolder', $request, $callOptions)->wait(); } /** - * Pushes Git commits from a Workspace to the Repository's remote. + * Moves a Repository to a new location. * - * The async variant is {@see DataformClient::pushGitCommitsAsync()} . + * The async variant is {@see DataformClient::moveRepositoryAsync()} . * - * @example samples/V1/DataformClient/push_git_commits.php + * @example samples/V1/DataformClient/move_repository.php * - * @param PushGitCommitsRequest $request A request to house fields associated with the call. + * @param MoveRepositoryRequest $request A request to house fields associated with the call. * @param array $callOptions { * Optional. * @@ -1667,25 +2039,77 @@ public function pullGitCommits(PullGitCommitsRequest $request, array $callOption * {@see RetrySettings} for example usage. * } * - * @return PushGitCommitsResponse + * @return OperationResponse * * @throws ApiException Thrown if the API call fails. */ - public function pushGitCommits(PushGitCommitsRequest $request, array $callOptions = []): PushGitCommitsResponse + public function moveRepository(MoveRepositoryRequest $request, array $callOptions = []): OperationResponse { - return $this->startApiCall('PushGitCommits', $request, $callOptions)->wait(); + return $this->startApiCall('MoveRepository', $request, $callOptions)->wait(); } /** - * Returns CompilationResultActions in a given CompilationResult. + * Pulls Git commits from the Repository's remote into a Workspace. * - * The async variant is {@see DataformClient::queryCompilationResultActionsAsync()} - * . + * The async variant is {@see DataformClient::pullGitCommitsAsync()} . * - * @example samples/V1/DataformClient/query_compilation_result_actions.php + * @example samples/V1/DataformClient/pull_git_commits.php * - * @param QueryCompilationResultActionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { + * @param PullGitCommitsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PullGitCommitsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function pullGitCommits(PullGitCommitsRequest $request, array $callOptions = []): PullGitCommitsResponse + { + return $this->startApiCall('PullGitCommits', $request, $callOptions)->wait(); + } + + /** + * Pushes Git commits from a Workspace to the Repository's remote. + * + * The async variant is {@see DataformClient::pushGitCommitsAsync()} . + * + * @example samples/V1/DataformClient/push_git_commits.php + * + * @param PushGitCommitsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PushGitCommitsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function pushGitCommits(PushGitCommitsRequest $request, array $callOptions = []): PushGitCommitsResponse + { + return $this->startApiCall('PushGitCommits', $request, $callOptions)->wait(); + } + + /** + * Returns CompilationResultActions in a given CompilationResult. + * + * The async variant is {@see DataformClient::queryCompilationResultActionsAsync()} + * . + * + * @example samples/V1/DataformClient/query_compilation_result_actions.php + * + * @param QueryCompilationResultActionsRequest $request A request to house fields associated with the call. + * @param array $callOptions { * Optional. * * @type RetrySettings|array $retrySettings @@ -1733,6 +2157,32 @@ public function queryDirectoryContents( return $this->startApiCall('QueryDirectoryContents', $request, $callOptions); } + /** + * Returns the contents of a given Folder. + * + * The async variant is {@see DataformClient::queryFolderContentsAsync()} . + * + * @example samples/V1/DataformClient/query_folder_contents.php + * + * @param QueryFolderContentsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function queryFolderContents(QueryFolderContentsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('QueryFolderContents', $request, $callOptions); + } + /** * Returns the contents of a given Repository directory. The Repository must * not have a value for `git_remote_settings.url`. @@ -1763,6 +2213,64 @@ public function queryRepositoryDirectoryContents( return $this->startApiCall('QueryRepositoryDirectoryContents', $request, $callOptions); } + /** + * Returns the contents of a given TeamFolder. + * + * The async variant is {@see DataformClient::queryTeamFolderContentsAsync()} . + * + * @example samples/V1/DataformClient/query_team_folder_contents.php + * + * @param QueryTeamFolderContentsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function queryTeamFolderContents( + QueryTeamFolderContentsRequest $request, + array $callOptions = [] + ): PagedListResponse { + return $this->startApiCall('QueryTeamFolderContents', $request, $callOptions); + } + + /** + * 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. + * + * The async variant is {@see DataformClient::queryUserRootContentsAsync()} . + * + * @example samples/V1/DataformClient/query_user_root_contents.php + * + * @param QueryUserRootContentsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function queryUserRootContents( + QueryUserRootContentsRequest $request, + array $callOptions = [] + ): PagedListResponse { + return $this->startApiCall('QueryUserRootContents', $request, $callOptions); + } + /** * Returns WorkflowInvocationActions in a given WorkflowInvocation. * @@ -1953,6 +2461,96 @@ public function searchFiles(SearchFilesRequest $request, array $callOptions = [] return $this->startApiCall('SearchFiles', $request, $callOptions); } + /** + * Returns all TeamFolders in a given location that the caller has access to + * and match the provided filter. + * + * The async variant is {@see DataformClient::searchTeamFoldersAsync()} . + * + * @example samples/V1/DataformClient/search_team_folders.php + * + * @param SearchTeamFoldersRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function searchTeamFolders(SearchTeamFoldersRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('SearchTeamFolders', $request, $callOptions); + } + + /** + * Sets the access control policy on the specified resource. Replaces any + * existing policy. + * + * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * + * The async variant is {@see DataformClient::setIamPolicyAsync()} . + * + * @example samples/V1/DataformClient/set_iam_policy.php + * + * @param SetIamPolicyRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Policy + * + * @throws ApiException Thrown if the API call fails. + */ + public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy + { + return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait(); + } + + /** + * 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. + * + * The async variant is {@see DataformClient::testIamPermissionsAsync()} . + * + * @example samples/V1/DataformClient/test_iam_permissions.php + * + * @param TestIamPermissionsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return TestIamPermissionsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function testIamPermissions( + TestIamPermissionsRequest $request, + array $callOptions = [] + ): TestIamPermissionsResponse { + return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); + } + /** * Update default config for a given project and location. * @@ -1984,6 +2582,32 @@ public function updateConfig(UpdateConfigRequest $request, array $callOptions = return $this->startApiCall('UpdateConfig', $request, $callOptions)->wait(); } + /** + * Updates a single Folder. + * + * The async variant is {@see DataformClient::updateFolderAsync()} . + * + * @example samples/V1/DataformClient/update_folder.php + * + * @param UpdateFolderRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Folder + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateFolder(UpdateFolderRequest $request, array $callOptions = []): Folder + { + return $this->startApiCall('UpdateFolder', $request, $callOptions)->wait(); + } + /** * Updates a single ReleaseConfig. * @@ -2046,6 +2670,32 @@ public function updateRepository(UpdateRepositoryRequest $request, array $callOp return $this->startApiCall('UpdateRepository', $request, $callOptions)->wait(); } + /** + * Updates a single TeamFolder. + * + * The async variant is {@see DataformClient::updateTeamFolderAsync()} . + * + * @example samples/V1/DataformClient/update_team_folder.php + * + * @param UpdateTeamFolderRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return TeamFolder + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateTeamFolder(UpdateTeamFolderRequest $request, array $callOptions = []): TeamFolder + { + return $this->startApiCall('UpdateTeamFolder', $request, $callOptions)->wait(); + } + /** * Updates a single WorkflowConfig. * @@ -2104,14 +2754,24 @@ public function writeFile(WriteFileRequest $request, array $callOptions = []): W } /** - * Gets information about a location. + * 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][google.longrunning.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 [Operation.error][google.longrunning.Operation.error] value with a + * [google.rpc.Status.code][google.rpc.Status.code] of `1`, corresponding to + * `Code.CANCELLED`. * - * The async variant is {@see DataformClient::getLocationAsync()} . + * The async variant is {@see DataformClient::cancelOperationAsync()} . * - * @example samples/V1/DataformClient/get_location.php + * @example samples/V1/DataformClient/cancel_operation.php * - * @param GetLocationRequest $request A request to house fields associated with the call. - * @param array $callOptions { + * @param CancelOperationRequest $request A request to house fields associated with the call. + * @param array $callOptions { * Optional. * * @type RetrySettings|array $retrySettings @@ -2120,24 +2780,25 @@ public function writeFile(WriteFileRequest $request, array $callOptions = []): W * {@see RetrySettings} for example usage. * } * - * @return Location - * * @throws ApiException Thrown if the API call fails. */ - public function getLocation(GetLocationRequest $request, array $callOptions = []): Location + public function cancelOperation(CancelOperationRequest $request, array $callOptions = []): void { - return $this->startApiCall('GetLocation', $request, $callOptions)->wait(); + $this->startApiCall('CancelOperation', $request, $callOptions)->wait(); } /** - * Lists information about the supported locations for this service. + * 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`. * - * The async variant is {@see DataformClient::listLocationsAsync()} . + * The async variant is {@see DataformClient::deleteOperationAsync()} . * - * @example samples/V1/DataformClient/list_locations.php + * @example samples/V1/DataformClient/delete_operation.php * - * @param ListLocationsRequest $request A request to house fields associated with the call. - * @param array $callOptions { + * @param DeleteOperationRequest $request A request to house fields associated with the call. + * @param array $callOptions { * Optional. * * @type RetrySettings|array $retrySettings @@ -2146,24 +2807,23 @@ public function getLocation(GetLocationRequest $request, array $callOptions = [] * {@see RetrySettings} for example usage. * } * - * @return PagedListResponse - * * @throws ApiException Thrown if the API call fails. */ - public function listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse + public function deleteOperation(DeleteOperationRequest $request, array $callOptions = []): void { - return $this->startApiCall('ListLocations', $request, $callOptions); + $this->startApiCall('DeleteOperation', $request, $callOptions)->wait(); } /** - * Gets the access control policy for a resource. Returns an empty policy - if the resource exists and does not have a policy set. + * 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. * - * The async variant is {@see DataformClient::getIamPolicyAsync()} . + * The async variant is {@see DataformClient::getOperationAsync()} . * - * @example samples/V1/DataformClient/get_iam_policy.php + * @example samples/V1/DataformClient/get_operation.php * - * @param GetIamPolicyRequest $request A request to house fields associated with the call. + * @param GetOperationRequest $request A request to house fields associated with the call. * @param array $callOptions { * Optional. * @@ -2173,28 +2833,51 @@ public function listLocations(ListLocationsRequest $request, array $callOptions * {@see RetrySettings} for example usage. * } * - * @return Policy + * @return Operation * * @throws ApiException Thrown if the API call fails. */ - public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy + public function getOperation(GetOperationRequest $request, array $callOptions = []): Operation { - return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait(); + return $this->startApiCall('GetOperation', $request, $callOptions)->wait(); } /** - * Sets the access control policy on the specified resource. Replaces - any existing policy. + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. + * + * The async variant is {@see DataformClient::listOperationsAsync()} . + * + * @example samples/V1/DataformClient/list_operations.php + * + * @param ListOperationsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listOperations(ListOperationsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListOperations', $request, $callOptions); + } - Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` - errors. + /** + * Gets information about a location. * - * The async variant is {@see DataformClient::setIamPolicyAsync()} . + * The async variant is {@see DataformClient::getLocationAsync()} . * - * @example samples/V1/DataformClient/set_iam_policy.php + * @example samples/V1/DataformClient/get_location.php * - * @param SetIamPolicyRequest $request A request to house fields associated with the call. - * @param array $callOptions { + * @param GetLocationRequest $request A request to house fields associated with the call. + * @param array $callOptions { * Optional. * * @type RetrySettings|array $retrySettings @@ -2203,30 +2886,40 @@ public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = * {@see RetrySettings} for example usage. * } * - * @return Policy + * @return Location * * @throws ApiException Thrown if the API call fails. */ - public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy + public function getLocation(GetLocationRequest $request, array $callOptions = []): Location { - return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait(); + return $this->startApiCall('GetLocation', $request, $callOptions)->wait(); } /** - * 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. + * Lists information about the supported locations for this service. + + This method lists locations based on the resource scope provided in + the [ListLocationsRequest.name] field: - 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. + * **Global locations**: If `name` is empty, the method lists the + public locations available to all projects. * **Project-specific + locations**: If `name` follows the format + `projects/{project}`, the method lists locations visible to that + specific project. This includes public, private, or other + project-specific locations enabled for the project. + + For gRPC and client library implementations, the resource name is + passed as the `name` field. For direct service calls, the resource + name is + incorporated into the request path based on the specific service + implementation and version. * - * The async variant is {@see DataformClient::testIamPermissionsAsync()} . + * The async variant is {@see DataformClient::listLocationsAsync()} . * - * @example samples/V1/DataformClient/test_iam_permissions.php + * @example samples/V1/DataformClient/list_locations.php * - * @param TestIamPermissionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { + * @param ListLocationsRequest $request A request to house fields associated with the call. + * @param array $callOptions { * Optional. * * @type RetrySettings|array $retrySettings @@ -2235,14 +2928,12 @@ public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = * {@see RetrySettings} for example usage. * } * - * @return TestIamPermissionsResponse + * @return PagedListResponse * * @throws ApiException Thrown if the API call fails. */ - public function testIamPermissions( - TestIamPermissionsRequest $request, - array $callOptions = [] - ): TestIamPermissionsResponse { - return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); + public function listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListLocations', $request, $callOptions); } } diff --git a/Dataform/src/V1/CompilationResult.php b/Dataform/src/V1/CompilationResult.php index 237775440c1c..764e19b40e77 100644 --- a/Dataform/src/V1/CompilationResult.php +++ b/Dataform/src/V1/CompilationResult.php @@ -67,6 +67,14 @@ class CompilationResult extends \Google\Protobuf\Internal\Message * Generated from protobuf field optional string internal_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ protected $internal_metadata = null; + /** + * Output only. Metadata indicating whether this resource is user-scoped. + * `CompilationResult` resource is `user_scoped` only if it is sourced + * from a workspace. + * + * Generated from protobuf field .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $private_resource_metadata = null; protected $source; /** @@ -107,6 +115,10 @@ class CompilationResult extends \Google\Protobuf\Internal\Message * 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. + * @type \Google\Cloud\Dataform\V1\PrivateResourceMetadata $private_resource_metadata + * Output only. Metadata indicating whether this resource is user-scoped. + * `CompilationResult` resource is `user_scoped` only if it is sourced + * from a workspace. * } */ public function __construct($data = NULL) { @@ -475,6 +487,46 @@ public function setInternalMetadata($var) return $this; } + /** + * Output only. Metadata indicating whether this resource is user-scoped. + * `CompilationResult` resource is `user_scoped` only if it is sourced + * from a workspace. + * + * Generated from protobuf field .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataform\V1\PrivateResourceMetadata|null + */ + public function getPrivateResourceMetadata() + { + return $this->private_resource_metadata; + } + + public function hasPrivateResourceMetadata() + { + return isset($this->private_resource_metadata); + } + + public function clearPrivateResourceMetadata() + { + unset($this->private_resource_metadata); + } + + /** + * Output only. Metadata indicating whether this resource is user-scoped. + * `CompilationResult` resource is `user_scoped` only if it is sourced + * from a workspace. + * + * Generated from protobuf field .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataform\V1\PrivateResourceMetadata $var + * @return $this + */ + public function setPrivateResourceMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\PrivateResourceMetadata::class); + $this->private_resource_metadata = $var; + + return $this; + } + /** * @return string */ diff --git a/Dataform/src/V1/CompilationResultAction/Relation.php b/Dataform/src/V1/CompilationResultAction/Relation.php index 9b9934317568..86c8d4ccbfb9 100644 --- a/Dataform/src/V1/CompilationResultAction/Relation.php +++ b/Dataform/src/V1/CompilationResultAction/Relation.php @@ -104,6 +104,36 @@ class Relation extends \Google\Protobuf\Internal\Message * Generated from protobuf field map additional_options = 14; */ private $additional_options; + /** + * 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. + * + * Generated from protobuf field string connection = 15 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $connection = ''; + /** + * Optional. The table format for the BigQuery table. + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat table_format = 16 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $table_format = 0; + /** + * Optional. The file format for the BigQuery table. + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat file_format = 17 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $file_format = 0; + /** + * 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/`. + * + * Generated from protobuf field string storage_uri = 18 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $storage_uri = ''; /** * Constructor. @@ -144,6 +174,20 @@ class Relation extends \Google\Protobuf\Internal\Message * 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. + * @type string $connection + * 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. + * @type int $table_format + * Optional. The table format for the BigQuery table. + * @type int $file_format + * Optional. The file format for the BigQuery table. + * @type string $storage_uri + * 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/`. * } */ public function __construct($data = NULL) { @@ -545,5 +589,121 @@ public function setAdditionalOptions($var) return $this; } + /** + * 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. + * + * Generated from protobuf field string connection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getConnection() + { + return $this->connection; + } + + /** + * 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. + * + * Generated from protobuf field string connection = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setConnection($var) + { + GPBUtil::checkString($var, True); + $this->connection = $var; + + return $this; + } + + /** + * Optional. The table format for the BigQuery table. + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat table_format = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getTableFormat() + { + return $this->table_format; + } + + /** + * Optional. The table format for the BigQuery table. + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat table_format = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setTableFormat($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1\CompilationResultAction\Relation\TableFormat::class); + $this->table_format = $var; + + return $this; + } + + /** + * Optional. The file format for the BigQuery table. + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat file_format = 17 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getFileFormat() + { + return $this->file_format; + } + + /** + * Optional. The file format for the BigQuery table. + * + * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat file_format = 17 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setFileFormat($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1\CompilationResultAction\Relation\FileFormat::class); + $this->file_format = $var; + + return $this; + } + + /** + * 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/`. + * + * Generated from protobuf field string storage_uri = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getStorageUri() + { + return $this->storage_uri; + } + + /** + * 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/`. + * + * Generated from protobuf field string storage_uri = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setStorageUri($var) + { + GPBUtil::checkString($var, True); + $this->storage_uri = $var; + + return $this; + } + } diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Relation/FileFormat.php b/Dataform/src/V1/CompilationResultAction/Relation/FileFormat.php similarity index 100% rename from owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Relation/FileFormat.php rename to Dataform/src/V1/CompilationResultAction/Relation/FileFormat.php diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Relation/TableFormat.php b/Dataform/src/V1/CompilationResultAction/Relation/TableFormat.php similarity index 100% rename from owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Relation/TableFormat.php rename to Dataform/src/V1/CompilationResultAction/Relation/TableFormat.php diff --git a/Dataform/src/V1/ComputeRepositoryAccessTokenStatusResponse/TokenStatus.php b/Dataform/src/V1/ComputeRepositoryAccessTokenStatusResponse/TokenStatus.php index a0c71237d8f0..1c7a8c0b78d4 100644 --- a/Dataform/src/V1/ComputeRepositoryAccessTokenStatusResponse/TokenStatus.php +++ b/Dataform/src/V1/ComputeRepositoryAccessTokenStatusResponse/TokenStatus.php @@ -38,12 +38,19 @@ class TokenStatus * Generated from protobuf enum VALID = 3; */ const VALID = 3; + /** + * The token is not accessible due to permission issues. + * + * Generated from protobuf enum PERMISSION_DENIED = 4; + */ + const PERMISSION_DENIED = 4; private static $valueToName = [ self::TOKEN_STATUS_UNSPECIFIED => 'TOKEN_STATUS_UNSPECIFIED', self::NOT_FOUND => 'NOT_FOUND', self::INVALID => 'INVALID', self::VALID => 'VALID', + self::PERMISSION_DENIED => 'PERMISSION_DENIED', ]; public static function name($value) diff --git a/Dataform/src/V1/Config.php b/Dataform/src/V1/Config.php index 20071f332731..ac1170ec6718 100644 --- a/Dataform/src/V1/Config.php +++ b/Dataform/src/V1/Config.php @@ -28,6 +28,14 @@ class Config extends \Google\Protobuf\Internal\Message * Generated from protobuf field string default_kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { */ protected $default_kms_key_name = ''; + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $internal_metadata = null; /** * Constructor. @@ -40,6 +48,10 @@ class Config extends \Google\Protobuf\Internal\Message * @type string $default_kms_key_name * Optional. The default KMS key that is used if no encryption key is provided * when a repository is created. + * @type string $internal_metadata + * 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. * } */ public function __construct($data = NULL) { @@ -101,5 +113,45 @@ public function setDefaultKmsKeyName($var) return $this; } + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getInternalMetadata() + { + return isset($this->internal_metadata) ? $this->internal_metadata : ''; + } + + public function hasInternalMetadata() + { + return isset($this->internal_metadata); + } + + public function clearInternalMetadata() + { + unset($this->internal_metadata); + } + + /** + * 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. + * + * Generated from protobuf field optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setInternalMetadata($var) + { + GPBUtil::checkString($var, True); + $this->internal_metadata = $var; + + return $this; + } + } diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateFolderRequest.php b/Dataform/src/V1/CreateFolderRequest.php similarity index 100% rename from owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateFolderRequest.php rename to Dataform/src/V1/CreateFolderRequest.php diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateTeamFolderRequest.php b/Dataform/src/V1/CreateTeamFolderRequest.php similarity index 100% rename from owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateTeamFolderRequest.php rename to Dataform/src/V1/CreateTeamFolderRequest.php diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteFolderRequest.php b/Dataform/src/V1/DeleteFolderRequest.php similarity index 100% rename from owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteFolderRequest.php rename to Dataform/src/V1/DeleteFolderRequest.php diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteFolderTreeMetadata.php b/Dataform/src/V1/DeleteFolderTreeMetadata.php similarity index 100% rename from owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteFolderTreeMetadata.php rename to Dataform/src/V1/DeleteFolderTreeMetadata.php diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteFolderTreeMetadata/State.php b/Dataform/src/V1/DeleteFolderTreeMetadata/State.php similarity index 100% rename from owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteFolderTreeMetadata/State.php rename to Dataform/src/V1/DeleteFolderTreeMetadata/State.php diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteFolderTreeRequest.php b/Dataform/src/V1/DeleteFolderTreeRequest.php similarity index 100% rename from owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteFolderTreeRequest.php rename to Dataform/src/V1/DeleteFolderTreeRequest.php diff --git a/Dataform/src/V1/DeleteRepositoryRequest.php b/Dataform/src/V1/DeleteRepositoryRequest.php index 766640739a21..59733be1474b 100644 --- a/Dataform/src/V1/DeleteRepositoryRequest.php +++ b/Dataform/src/V1/DeleteRepositoryRequest.php @@ -22,9 +22,12 @@ class DeleteRepositoryRequest extends \Google\Protobuf\Internal\Message */ protected $name = ''; /** - * 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.*. * * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -53,9 +56,12 @@ public static function build(string $name): self * @type string $name * Required. The repository's name. * @type bool $force - * 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.*. * } */ public function __construct($data = NULL) { @@ -90,9 +96,12 @@ public function setName($var) } /** - * 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.*. * * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return bool @@ -103,9 +112,12 @@ public function getForce() } /** - * 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.*. * * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param bool $var diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteTeamFolderRequest.php b/Dataform/src/V1/DeleteTeamFolderRequest.php similarity index 100% rename from owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteTeamFolderRequest.php rename to Dataform/src/V1/DeleteTeamFolderRequest.php diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteTeamFolderTreeRequest.php b/Dataform/src/V1/DeleteTeamFolderTreeRequest.php similarity index 100% rename from owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteTeamFolderTreeRequest.php rename to Dataform/src/V1/DeleteTeamFolderTreeRequest.php diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DirectoryContentsView.php b/Dataform/src/V1/DirectoryContentsView.php similarity index 100% rename from owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DirectoryContentsView.php rename to Dataform/src/V1/DirectoryContentsView.php diff --git a/Dataform/src/V1/DirectoryEntry.php b/Dataform/src/V1/DirectoryEntry.php index ea32a5a651d2..ffbd681be53c 100644 --- a/Dataform/src/V1/DirectoryEntry.php +++ b/Dataform/src/V1/DirectoryEntry.php @@ -15,6 +15,12 @@ */ class DirectoryEntry extends \Google\Protobuf\Internal\Message { + /** + * Entry with metadata. + * + * Generated from protobuf field .google.cloud.dataform.v1.FilesystemEntryMetadata metadata = 3; + */ + protected $metadata = null; protected $entry; /** @@ -27,6 +33,8 @@ class DirectoryEntry extends \Google\Protobuf\Internal\Message * A file in the directory. * @type string $directory * A child directory in the directory. + * @type \Google\Cloud\Dataform\V1\FilesystemEntryMetadata $metadata + * Entry with metadata. * } */ public function __construct($data = NULL) { @@ -96,6 +104,42 @@ public function setDirectory($var) return $this; } + /** + * Entry with metadata. + * + * Generated from protobuf field .google.cloud.dataform.v1.FilesystemEntryMetadata metadata = 3; + * @return \Google\Cloud\Dataform\V1\FilesystemEntryMetadata|null + */ + public function getMetadata() + { + return $this->metadata; + } + + public function hasMetadata() + { + return isset($this->metadata); + } + + public function clearMetadata() + { + unset($this->metadata); + } + + /** + * Entry with metadata. + * + * Generated from protobuf field .google.cloud.dataform.v1.FilesystemEntryMetadata metadata = 3; + * @param \Google\Cloud\Dataform\V1\FilesystemEntryMetadata $var + * @return $this + */ + public function setMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\FilesystemEntryMetadata::class); + $this->metadata = $var; + + return $this; + } + /** * @return string */ diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FilesystemEntryMetadata.php b/Dataform/src/V1/FilesystemEntryMetadata.php similarity index 100% rename from owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FilesystemEntryMetadata.php rename to Dataform/src/V1/FilesystemEntryMetadata.php diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Folder.php b/Dataform/src/V1/Folder.php similarity index 100% rename from owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Folder.php rename to Dataform/src/V1/Folder.php diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetFolderRequest.php b/Dataform/src/V1/GetFolderRequest.php similarity index 100% rename from owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetFolderRequest.php rename to Dataform/src/V1/GetFolderRequest.php diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetTeamFolderRequest.php b/Dataform/src/V1/GetTeamFolderRequest.php similarity index 100% rename from owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetTeamFolderRequest.php rename to Dataform/src/V1/GetTeamFolderRequest.php diff --git a/Dataform/src/V1/InvocationConfig.php b/Dataform/src/V1/InvocationConfig.php index 402ad9e7e717..cf7a84b89b6d 100644 --- a/Dataform/src/V1/InvocationConfig.php +++ b/Dataform/src/V1/InvocationConfig.php @@ -55,6 +55,14 @@ class InvocationConfig extends \Google\Protobuf\Internal\Message * Generated from protobuf field string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; */ protected $service_account = ''; + /** + * Optional. Specifies the priority for query execution in BigQuery. + * More information can be found at + * https://cloud.google.com/bigquery/docs/running-queries#queries. + * + * Generated from protobuf field optional .google.cloud.dataform.v1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $query_priority = null; /** * Constructor. @@ -76,6 +84,10 @@ class InvocationConfig extends \Google\Protobuf\Internal\Message * Optional. When set to true, any incremental tables will be fully refreshed. * @type string $service_account * Optional. The service account to run workflow invocations under. + * @type int $query_priority + * Optional. Specifies the priority for query execution in BigQuery. + * More information can be found at + * https://cloud.google.com/bigquery/docs/running-queries#queries. * } */ public function __construct($data = NULL) { @@ -243,5 +255,45 @@ public function setServiceAccount($var) return $this; } + /** + * Optional. Specifies the priority for query execution in BigQuery. + * More information can be found at + * https://cloud.google.com/bigquery/docs/running-queries#queries. + * + * Generated from protobuf field optional .google.cloud.dataform.v1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getQueryPriority() + { + return isset($this->query_priority) ? $this->query_priority : 0; + } + + public function hasQueryPriority() + { + return isset($this->query_priority); + } + + public function clearQueryPriority() + { + unset($this->query_priority); + } + + /** + * Optional. Specifies the priority for query execution in BigQuery. + * More information can be found at + * https://cloud.google.com/bigquery/docs/running-queries#queries. + * + * Generated from protobuf field optional .google.cloud.dataform.v1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setQueryPriority($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1\InvocationConfig\QueryPriority::class); + $this->query_priority = $var; + + return $this; + } + } diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/InvocationConfig/QueryPriority.php b/Dataform/src/V1/InvocationConfig/QueryPriority.php similarity index 100% rename from owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/InvocationConfig/QueryPriority.php rename to Dataform/src/V1/InvocationConfig/QueryPriority.php diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveFolderMetadata.php b/Dataform/src/V1/MoveFolderMetadata.php similarity index 100% rename from owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveFolderMetadata.php rename to Dataform/src/V1/MoveFolderMetadata.php diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveFolderMetadata/State.php b/Dataform/src/V1/MoveFolderMetadata/State.php similarity index 100% rename from owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveFolderMetadata/State.php rename to Dataform/src/V1/MoveFolderMetadata/State.php diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveFolderRequest.php b/Dataform/src/V1/MoveFolderRequest.php similarity index 100% rename from owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveFolderRequest.php rename to Dataform/src/V1/MoveFolderRequest.php diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveRepositoryMetadata.php b/Dataform/src/V1/MoveRepositoryMetadata.php similarity index 100% rename from owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveRepositoryMetadata.php rename to Dataform/src/V1/MoveRepositoryMetadata.php diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveRepositoryMetadata/State.php b/Dataform/src/V1/MoveRepositoryMetadata/State.php similarity index 100% rename from owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveRepositoryMetadata/State.php rename to Dataform/src/V1/MoveRepositoryMetadata/State.php diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveRepositoryRequest.php b/Dataform/src/V1/MoveRepositoryRequest.php similarity index 100% rename from owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveRepositoryRequest.php rename to Dataform/src/V1/MoveRepositoryRequest.php diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/PrivateResourceMetadata.php b/Dataform/src/V1/PrivateResourceMetadata.php similarity index 100% rename from owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/PrivateResourceMetadata.php rename to Dataform/src/V1/PrivateResourceMetadata.php diff --git a/Dataform/src/V1/QueryDirectoryContentsRequest.php b/Dataform/src/V1/QueryDirectoryContentsRequest.php index de3406335901..0ebc5d354cba 100644 --- a/Dataform/src/V1/QueryDirectoryContentsRequest.php +++ b/Dataform/src/V1/QueryDirectoryContentsRequest.php @@ -46,6 +46,15 @@ class QueryDirectoryContentsRequest extends \Google\Protobuf\Internal\Message * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; */ protected $page_token = ''; + /** + * 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. + * + * Generated from protobuf field .google.cloud.dataform.v1.DirectoryContentsView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $view = 0; /** * Constructor. @@ -68,6 +77,11 @@ class QueryDirectoryContentsRequest extends \Google\Protobuf\Internal\Message * When paginating, all other parameters provided to * `QueryDirectoryContents`, with the exception of `page_size`, must match the * call that provided the page token. + * @type int $view + * 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. * } */ public function __construct($data = NULL) { @@ -193,5 +207,37 @@ public function setPageToken($var) return $this; } + /** + * 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. + * + * Generated from protobuf field .google.cloud.dataform.v1.DirectoryContentsView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getView() + { + return $this->view; + } + + /** + * 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. + * + * Generated from protobuf field .google.cloud.dataform.v1.DirectoryContentsView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setView($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1\DirectoryContentsView::class); + $this->view = $var; + + return $this; + } + } diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryFolderContentsRequest.php b/Dataform/src/V1/QueryFolderContentsRequest.php similarity index 100% rename from owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryFolderContentsRequest.php rename to Dataform/src/V1/QueryFolderContentsRequest.php diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryFolderContentsResponse.php b/Dataform/src/V1/QueryFolderContentsResponse.php similarity index 100% rename from owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryFolderContentsResponse.php rename to Dataform/src/V1/QueryFolderContentsResponse.php diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryFolderContentsResponse/FolderContentsEntry.php b/Dataform/src/V1/QueryFolderContentsResponse/FolderContentsEntry.php similarity index 100% rename from owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryFolderContentsResponse/FolderContentsEntry.php rename to Dataform/src/V1/QueryFolderContentsResponse/FolderContentsEntry.php diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryTeamFolderContentsRequest.php b/Dataform/src/V1/QueryTeamFolderContentsRequest.php similarity index 100% rename from owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryTeamFolderContentsRequest.php rename to Dataform/src/V1/QueryTeamFolderContentsRequest.php diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryTeamFolderContentsResponse.php b/Dataform/src/V1/QueryTeamFolderContentsResponse.php similarity index 100% rename from owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryTeamFolderContentsResponse.php rename to Dataform/src/V1/QueryTeamFolderContentsResponse.php diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryTeamFolderContentsResponse/TeamFolderContentsEntry.php b/Dataform/src/V1/QueryTeamFolderContentsResponse/TeamFolderContentsEntry.php similarity index 100% rename from owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryTeamFolderContentsResponse/TeamFolderContentsEntry.php rename to Dataform/src/V1/QueryTeamFolderContentsResponse/TeamFolderContentsEntry.php diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryUserRootContentsRequest.php b/Dataform/src/V1/QueryUserRootContentsRequest.php similarity index 100% rename from owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryUserRootContentsRequest.php rename to Dataform/src/V1/QueryUserRootContentsRequest.php diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryUserRootContentsResponse.php b/Dataform/src/V1/QueryUserRootContentsResponse.php similarity index 100% rename from owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryUserRootContentsResponse.php rename to Dataform/src/V1/QueryUserRootContentsResponse.php diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryUserRootContentsResponse/RootContentsEntry.php b/Dataform/src/V1/QueryUserRootContentsResponse/RootContentsEntry.php similarity index 100% rename from owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryUserRootContentsResponse/RootContentsEntry.php rename to Dataform/src/V1/QueryUserRootContentsResponse/RootContentsEntry.php diff --git a/Dataform/src/V1/Repository.php b/Dataform/src/V1/Repository.php index b82e83f204ca..9ba215fd29eb 100644 --- a/Dataform/src/V1/Repository.php +++ b/Dataform/src/V1/Repository.php @@ -21,6 +21,25 @@ class Repository extends \Google\Protobuf\Internal\Message * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; */ protected $name = ''; + /** + * 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/*`. + * + * Generated from protobuf field optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $containing_folder = null; + /** + * 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. + * + * Generated from protobuf field optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $team_folder_name = null; /** * Output only. The timestamp of when the repository was created. * @@ -110,6 +129,17 @@ class Repository extends \Google\Protobuf\Internal\Message * * @type string $name * Identifier. The repository's name. + * @type string $containing_folder + * 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/*`. + * @type string $team_folder_name + * 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. * @type \Google\Protobuf\Timestamp $create_time * Output only. The timestamp of when the repository was created. * @type string $display_name @@ -179,6 +209,92 @@ public function setName($var) return $this; } + /** + * 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/*`. + * + * Generated from protobuf field optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getContainingFolder() + { + return isset($this->containing_folder) ? $this->containing_folder : ''; + } + + public function hasContainingFolder() + { + return isset($this->containing_folder); + } + + public function clearContainingFolder() + { + unset($this->containing_folder); + } + + /** + * 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/*`. + * + * Generated from protobuf field optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setContainingFolder($var) + { + GPBUtil::checkString($var, True); + $this->containing_folder = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getTeamFolderName() + { + return isset($this->team_folder_name) ? $this->team_folder_name : ''; + } + + public function hasTeamFolderName() + { + return isset($this->team_folder_name); + } + + public function clearTeamFolderName() + { + unset($this->team_folder_name); + } + + /** + * 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. + * + * Generated from protobuf field optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setTeamFolderName($var) + { + GPBUtil::checkString($var, True); + $this->team_folder_name = $var; + + return $this; + } + /** * Output only. The timestamp of when the repository was created. * diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/SearchTeamFoldersRequest.php b/Dataform/src/V1/SearchTeamFoldersRequest.php similarity index 100% rename from owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/SearchTeamFoldersRequest.php rename to Dataform/src/V1/SearchTeamFoldersRequest.php diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/SearchTeamFoldersResponse.php b/Dataform/src/V1/SearchTeamFoldersResponse.php similarity index 100% rename from owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/SearchTeamFoldersResponse.php rename to Dataform/src/V1/SearchTeamFoldersResponse.php diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/SearchTeamFoldersResponse/TeamFolderSearchResult.php b/Dataform/src/V1/SearchTeamFoldersResponse/TeamFolderSearchResult.php similarity index 100% rename from owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/SearchTeamFoldersResponse/TeamFolderSearchResult.php rename to Dataform/src/V1/SearchTeamFoldersResponse/TeamFolderSearchResult.php diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/TeamFolder.php b/Dataform/src/V1/TeamFolder.php similarity index 100% rename from owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/TeamFolder.php rename to Dataform/src/V1/TeamFolder.php diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/UpdateFolderRequest.php b/Dataform/src/V1/UpdateFolderRequest.php similarity index 100% rename from owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/UpdateFolderRequest.php rename to Dataform/src/V1/UpdateFolderRequest.php diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/UpdateTeamFolderRequest.php b/Dataform/src/V1/UpdateTeamFolderRequest.php similarity index 100% rename from owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/UpdateTeamFolderRequest.php rename to Dataform/src/V1/UpdateTeamFolderRequest.php diff --git a/Dataform/src/V1/WorkflowInvocation.php b/Dataform/src/V1/WorkflowInvocation.php index d841c5eeafbf..72c84712767e 100644 --- a/Dataform/src/V1/WorkflowInvocation.php +++ b/Dataform/src/V1/WorkflowInvocation.php @@ -61,6 +61,14 @@ class WorkflowInvocation extends \Google\Protobuf\Internal\Message * Generated from protobuf field optional string internal_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ protected $internal_metadata = null; + /** + * 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. + * + * Generated from protobuf field .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $private_resource_metadata = null; protected $compilation_source; /** @@ -94,6 +102,10 @@ class WorkflowInvocation extends \Google\Protobuf\Internal\Message * 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. + * @type \Google\Cloud\Dataform\V1\PrivateResourceMetadata $private_resource_metadata + * 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. * } */ public function __construct($data = NULL) { @@ -399,6 +411,46 @@ public function setInternalMetadata($var) return $this; } + /** + * 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. + * + * Generated from protobuf field .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataform\V1\PrivateResourceMetadata|null + */ + public function getPrivateResourceMetadata() + { + return $this->private_resource_metadata; + } + + public function hasPrivateResourceMetadata() + { + return isset($this->private_resource_metadata); + } + + public function clearPrivateResourceMetadata() + { + unset($this->private_resource_metadata); + } + + /** + * 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. + * + * Generated from protobuf field .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataform\V1\PrivateResourceMetadata $var + * @return $this + */ + public function setPrivateResourceMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\PrivateResourceMetadata::class); + $this->private_resource_metadata = $var; + + return $this; + } + /** * @return string */ diff --git a/Dataform/src/V1/Workspace.php b/Dataform/src/V1/Workspace.php index 592de187bfd4..faf340c6da16 100644 --- a/Dataform/src/V1/Workspace.php +++ b/Dataform/src/V1/Workspace.php @@ -42,6 +42,20 @@ class Workspace extends \Google\Protobuf\Internal\Message * Generated from protobuf field optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ protected $internal_metadata = null; + /** + * Optional. If set to true, workspaces will not be moved if its linked + * Repository is moved. Instead, it will be deleted. + * + * Generated from protobuf field optional bool disable_moves = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $disable_moves = null; + /** + * Output only. Metadata indicating whether this resource is user-scoped. For + * `Workspace` resources, the `user_scoped` field is always `true`. + * + * Generated from protobuf field .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $private_resource_metadata = null; /** * Constructor. @@ -60,6 +74,12 @@ class Workspace extends \Google\Protobuf\Internal\Message * 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. + * @type bool $disable_moves + * Optional. If set to true, workspaces will not be moved if its linked + * Repository is moved. Instead, it will be deleted. + * @type \Google\Cloud\Dataform\V1\PrivateResourceMetadata $private_resource_metadata + * Output only. Metadata indicating whether this resource is user-scoped. For + * `Workspace` resources, the `user_scoped` field is always `true`. * } */ public function __construct($data = NULL) { @@ -207,5 +227,81 @@ public function setInternalMetadata($var) return $this; } + /** + * Optional. If set to true, workspaces will not be moved if its linked + * Repository is moved. Instead, it will be deleted. + * + * Generated from protobuf field optional bool disable_moves = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getDisableMoves() + { + return isset($this->disable_moves) ? $this->disable_moves : false; + } + + public function hasDisableMoves() + { + return isset($this->disable_moves); + } + + public function clearDisableMoves() + { + unset($this->disable_moves); + } + + /** + * Optional. If set to true, workspaces will not be moved if its linked + * Repository is moved. Instead, it will be deleted. + * + * Generated from protobuf field optional bool disable_moves = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setDisableMoves($var) + { + GPBUtil::checkBool($var); + $this->disable_moves = $var; + + return $this; + } + + /** + * Output only. Metadata indicating whether this resource is user-scoped. For + * `Workspace` resources, the `user_scoped` field is always `true`. + * + * Generated from protobuf field .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataform\V1\PrivateResourceMetadata|null + */ + public function getPrivateResourceMetadata() + { + return $this->private_resource_metadata; + } + + public function hasPrivateResourceMetadata() + { + return isset($this->private_resource_metadata); + } + + public function clearPrivateResourceMetadata() + { + unset($this->private_resource_metadata); + } + + /** + * Output only. Metadata indicating whether this resource is user-scoped. For + * `Workspace` resources, the `user_scoped` field is always `true`. + * + * Generated from protobuf field .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataform\V1\PrivateResourceMetadata $var + * @return $this + */ + public function setPrivateResourceMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\PrivateResourceMetadata::class); + $this->private_resource_metadata = $var; + + return $this; + } + } diff --git a/Dataform/src/V1/gapic_metadata.json b/Dataform/src/V1/gapic_metadata.json index 339652a3664c..eef79e941f70 100644 --- a/Dataform/src/V1/gapic_metadata.json +++ b/Dataform/src/V1/gapic_metadata.json @@ -35,6 +35,11 @@ "createCompilationResult" ] }, + "CreateFolder": { + "methods": [ + "createFolder" + ] + }, "CreateReleaseConfig": { "methods": [ "createReleaseConfig" @@ -45,6 +50,11 @@ "createRepository" ] }, + "CreateTeamFolder": { + "methods": [ + "createTeamFolder" + ] + }, "CreateWorkflowConfig": { "methods": [ "createWorkflowConfig" @@ -60,6 +70,16 @@ "createWorkspace" ] }, + "DeleteFolder": { + "methods": [ + "deleteFolder" + ] + }, + "DeleteFolderTree": { + "methods": [ + "deleteFolderTree" + ] + }, "DeleteReleaseConfig": { "methods": [ "deleteReleaseConfig" @@ -70,6 +90,16 @@ "deleteRepository" ] }, + "DeleteTeamFolder": { + "methods": [ + "deleteTeamFolder" + ] + }, + "DeleteTeamFolderTree": { + "methods": [ + "deleteTeamFolderTree" + ] + }, "DeleteWorkflowConfig": { "methods": [ "deleteWorkflowConfig" @@ -120,6 +150,16 @@ "getConfig" ] }, + "GetFolder": { + "methods": [ + "getFolder" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, "GetReleaseConfig": { "methods": [ "getReleaseConfig" @@ -130,6 +170,11 @@ "getRepository" ] }, + "GetTeamFolder": { + "methods": [ + "getTeamFolder" + ] + }, "GetWorkflowConfig": { "methods": [ "getWorkflowConfig" @@ -195,6 +240,16 @@ "moveFile" ] }, + "MoveFolder": { + "methods": [ + "moveFolder" + ] + }, + "MoveRepository": { + "methods": [ + "moveRepository" + ] + }, "PullGitCommits": { "methods": [ "pullGitCommits" @@ -215,11 +270,26 @@ "queryDirectoryContents" ] }, + "QueryFolderContents": { + "methods": [ + "queryFolderContents" + ] + }, "QueryRepositoryDirectoryContents": { "methods": [ "queryRepositoryDirectoryContents" ] }, + "QueryTeamFolderContents": { + "methods": [ + "queryTeamFolderContents" + ] + }, + "QueryUserRootContents": { + "methods": [ + "queryUserRootContents" + ] + }, "QueryWorkflowInvocationActions": { "methods": [ "queryWorkflowInvocationActions" @@ -255,11 +325,31 @@ "searchFiles" ] }, + "SearchTeamFolders": { + "methods": [ + "searchTeamFolders" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + }, "UpdateConfig": { "methods": [ "updateConfig" ] }, + "UpdateFolder": { + "methods": [ + "updateFolder" + ] + }, "UpdateReleaseConfig": { "methods": [ "updateReleaseConfig" @@ -270,6 +360,11 @@ "updateRepository" ] }, + "UpdateTeamFolder": { + "methods": [ + "updateTeamFolder" + ] + }, "UpdateWorkflowConfig": { "methods": [ "updateWorkflowConfig" @@ -280,29 +375,34 @@ "writeFile" ] }, - "GetLocation": { + "CancelOperation": { "methods": [ - "getLocation" + "cancelOperation" ] }, - "ListLocations": { + "DeleteOperation": { "methods": [ - "listLocations" + "deleteOperation" ] }, - "GetIamPolicy": { + "GetOperation": { "methods": [ - "getIamPolicy" + "getOperation" ] }, - "SetIamPolicy": { + "ListOperations": { "methods": [ - "setIamPolicy" + "listOperations" ] }, - "TestIamPermissions": { + "GetLocation": { "methods": [ - "testIamPermissions" + "getLocation" + ] + }, + "ListLocations": { + "methods": [ + "listLocations" ] } } diff --git a/Dataform/src/V1/resources/dataform_client_config.json b/Dataform/src/V1/resources/dataform_client_config.json index 23fc9c021d2c..49882f361ea1 100644 --- a/Dataform/src/V1/resources/dataform_client_config.json +++ b/Dataform/src/V1/resources/dataform_client_config.json @@ -53,6 +53,11 @@ "retry_codes_name": "no_retry_codes", "retry_params_name": "no_retry_params" }, + "CreateFolder": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, "CreateReleaseConfig": { "timeout_millis": 60000, "retry_codes_name": "no_retry_codes", @@ -63,6 +68,11 @@ "retry_codes_name": "no_retry_codes", "retry_params_name": "no_retry_params" }, + "CreateTeamFolder": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, "CreateWorkflowConfig": { "timeout_millis": 60000, "retry_codes_name": "no_retry_codes", @@ -78,6 +88,16 @@ "retry_codes_name": "no_retry_codes", "retry_params_name": "no_retry_params" }, + "DeleteFolder": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "DeleteFolderTree": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, "DeleteReleaseConfig": { "timeout_millis": 60000, "retry_codes_name": "no_retry_codes", @@ -88,6 +108,16 @@ "retry_codes_name": "no_retry_codes", "retry_params_name": "no_retry_params" }, + "DeleteTeamFolder": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "DeleteTeamFolderTree": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, "DeleteWorkflowConfig": { "timeout_millis": 60000, "retry_codes_name": "no_retry_codes", @@ -138,6 +168,16 @@ "retry_codes_name": "no_retry_codes", "retry_params_name": "no_retry_params" }, + "GetFolder": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetIamPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, "GetReleaseConfig": { "timeout_millis": 60000, "retry_codes_name": "no_retry_codes", @@ -148,6 +188,11 @@ "retry_codes_name": "no_retry_codes", "retry_params_name": "no_retry_params" }, + "GetTeamFolder": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, "GetWorkflowConfig": { "timeout_millis": 60000, "retry_codes_name": "no_retry_codes", @@ -213,6 +258,16 @@ "retry_codes_name": "no_retry_codes", "retry_params_name": "no_retry_params" }, + "MoveFolder": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "MoveRepository": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, "PullGitCommits": { "timeout_millis": 60000, "retry_codes_name": "no_retry_codes", @@ -233,11 +288,26 @@ "retry_codes_name": "no_retry_codes", "retry_params_name": "no_retry_params" }, + "QueryFolderContents": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, "QueryRepositoryDirectoryContents": { "timeout_millis": 60000, "retry_codes_name": "no_retry_codes", "retry_params_name": "no_retry_params" }, + "QueryTeamFolderContents": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "QueryUserRootContents": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, "QueryWorkflowInvocationActions": { "timeout_millis": 60000, "retry_codes_name": "no_retry_codes", @@ -273,11 +343,31 @@ "retry_codes_name": "no_retry_codes", "retry_params_name": "no_retry_params" }, + "SearchTeamFolders": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "SetIamPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "TestIamPermissions": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, "UpdateConfig": { "timeout_millis": 60000, "retry_codes_name": "no_retry_codes", "retry_params_name": "no_retry_params" }, + "UpdateFolder": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, "UpdateReleaseConfig": { "timeout_millis": 60000, "retry_codes_name": "no_retry_codes", @@ -288,6 +378,11 @@ "retry_codes_name": "no_retry_codes", "retry_params_name": "no_retry_params" }, + "UpdateTeamFolder": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, "UpdateWorkflowConfig": { "timeout_millis": 60000, "retry_codes_name": "no_retry_codes", @@ -298,27 +393,32 @@ "retry_codes_name": "no_retry_codes", "retry_params_name": "no_retry_params" }, - "GetLocation": { + "CancelOperation": { "timeout_millis": 60000, "retry_codes_name": "no_retry_codes", "retry_params_name": "no_retry_params" }, - "ListLocations": { + "DeleteOperation": { "timeout_millis": 60000, "retry_codes_name": "no_retry_codes", "retry_params_name": "no_retry_params" }, - "GetIamPolicy": { + "GetOperation": { "timeout_millis": 60000, "retry_codes_name": "no_retry_codes", "retry_params_name": "no_retry_params" }, - "SetIamPolicy": { + "ListOperations": { "timeout_millis": 60000, "retry_codes_name": "no_retry_codes", "retry_params_name": "no_retry_params" }, - "TestIamPermissions": { + "GetLocation": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListLocations": { "timeout_millis": 60000, "retry_codes_name": "no_retry_codes", "retry_params_name": "no_retry_params" diff --git a/Dataform/src/V1/resources/dataform_descriptor_config.php b/Dataform/src/V1/resources/dataform_descriptor_config.php index 0f44f4646bf7..1daa72932b5d 100644 --- a/Dataform/src/V1/resources/dataform_descriptor_config.php +++ b/Dataform/src/V1/resources/dataform_descriptor_config.php @@ -23,6 +23,82 @@ return [ 'interfaces' => [ 'google.cloud.dataform.v1.Dataform' => [ + 'DeleteFolderTree' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\Dataform\V1\DeleteFolderTreeMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteTeamFolderTree' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\Dataform\V1\DeleteFolderTreeMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'MoveFolder' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\Dataform\V1\MoveFolderMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'MoveRepository' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\Dataform\V1\MoveRepositoryMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], 'CancelWorkflowInvocation' => [ 'callType' => \Google\ApiCore\Call::UNARY_CALL, 'responseType' => 'Google\Cloud\Dataform\V1\CancelWorkflowInvocationResponse', @@ -83,6 +159,18 @@ ], ], ], + 'CreateFolder' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\Folder', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], 'CreateReleaseConfig' => [ 'callType' => \Google\ApiCore\Call::UNARY_CALL, 'responseType' => 'Google\Cloud\Dataform\V1\ReleaseConfig', @@ -107,6 +195,18 @@ ], ], ], + 'CreateTeamFolder' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\TeamFolder', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], 'CreateWorkflowConfig' => [ 'callType' => \Google\ApiCore\Call::UNARY_CALL, 'responseType' => 'Google\Cloud\Dataform\V1\WorkflowConfig', @@ -143,6 +243,18 @@ ], ], ], + 'DeleteFolder' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], 'DeleteReleaseConfig' => [ 'callType' => \Google\ApiCore\Call::UNARY_CALL, 'responseType' => 'Google\Protobuf\GPBEmpty', @@ -167,6 +279,18 @@ ], ], ], + 'DeleteTeamFolder' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], 'DeleteWorkflowConfig' => [ 'callType' => \Google\ApiCore\Call::UNARY_CALL, 'responseType' => 'Google\Protobuf\GPBEmpty', @@ -295,6 +419,30 @@ ], ], ], + 'GetFolder' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\Folder', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + ], 'GetReleaseConfig' => [ 'callType' => \Google\ApiCore\Call::UNARY_CALL, 'responseType' => 'Google\Cloud\Dataform\V1\ReleaseConfig', @@ -319,6 +467,18 @@ ], ], ], + 'GetTeamFolder' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\TeamFolder', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], 'GetWorkflowConfig' => [ 'callType' => \Google\ApiCore\Call::UNARY_CALL, 'responseType' => 'Google\Cloud\Dataform\V1\WorkflowConfig', @@ -587,6 +747,26 @@ ], ], ], + 'QueryFolderContents' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getEntries', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\QueryFolderContentsResponse', + 'headerParams' => [ + [ + 'keyName' => 'folder', + 'fieldAccessors' => [ + 'getFolder', + ], + ], + ], + ], 'QueryRepositoryDirectoryContents' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', @@ -607,6 +787,46 @@ ], ], ], + 'QueryTeamFolderContents' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getEntries', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\QueryTeamFolderContentsResponse', + 'headerParams' => [ + [ + 'keyName' => 'team_folder', + 'fieldAccessors' => [ + 'getTeamFolder', + ], + ], + ], + ], + 'QueryUserRootContents' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getEntries', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\QueryUserRootContentsResponse', + 'headerParams' => [ + [ + 'keyName' => 'location', + 'fieldAccessors' => [ + 'getLocation', + ], + ], + ], + ], 'QueryWorkflowInvocationActions' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', @@ -707,6 +927,50 @@ ], ], ], + 'SearchTeamFolders' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getResults', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\SearchTeamFoldersResponse', + 'headerParams' => [ + [ + 'keyName' => 'location', + 'fieldAccessors' => [ + 'getLocation', + ], + ], + ], + ], + 'SetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + ], + 'TestIamPermissions' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + ], 'UpdateConfig' => [ 'callType' => \Google\ApiCore\Call::UNARY_CALL, 'responseType' => 'Google\Cloud\Dataform\V1\Config', @@ -720,6 +984,19 @@ ], ], ], + 'UpdateFolder' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\Folder', + 'headerParams' => [ + [ + 'keyName' => 'folder.name', + 'fieldAccessors' => [ + 'getFolder', + 'getName', + ], + ], + ], + ], 'UpdateReleaseConfig' => [ 'callType' => \Google\ApiCore\Call::UNARY_CALL, 'responseType' => 'Google\Cloud\Dataform\V1\ReleaseConfig', @@ -746,6 +1023,19 @@ ], ], ], + 'UpdateTeamFolder' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1\TeamFolder', + 'headerParams' => [ + [ + 'keyName' => 'team_folder.name', + 'fieldAccessors' => [ + 'getTeamFolder', + 'getName', + ], + ], + ], + ], 'UpdateWorkflowConfig' => [ 'callType' => \Google\ApiCore\Call::UNARY_CALL, 'responseType' => 'Google\Cloud\Dataform\V1\WorkflowConfig', @@ -771,9 +1061,9 @@ ], ], ], - 'GetLocation' => [ + 'CancelOperation' => [ 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Location\Location', + 'responseType' => 'Google\Protobuf\GPBEmpty', 'headerParams' => [ [ 'keyName' => 'name', @@ -782,19 +1072,45 @@ ], ], ], - 'interfaceOverride' => 'google.cloud.location.Locations', + 'interfaceOverride' => 'google.longrunning.Operations', ], - 'ListLocations' => [ + 'DeleteOperation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + 'interfaceOverride' => 'google.longrunning.Operations', + ], + 'GetOperation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\LongRunning\Operation', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + 'interfaceOverride' => 'google.longrunning.Operations', + ], + 'ListOperations' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', 'requestPageTokenSetMethod' => 'setPageToken', 'requestPageSizeGetMethod' => 'getPageSize', 'requestPageSizeSetMethod' => 'setPageSize', 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getLocations', + 'resourcesGetMethod' => 'getOperations', ], 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', + 'responseType' => 'Google\LongRunning\ListOperationsResponse', 'headerParams' => [ [ 'keyName' => 'name', @@ -803,57 +1119,54 @@ ], ], ], - 'interfaceOverride' => 'google.cloud.location.Locations', + 'interfaceOverride' => 'google.longrunning.Operations', ], - 'GetIamPolicy' => [ + 'GetLocation' => [ 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'responseType' => 'Google\Cloud\Location\Location', 'headerParams' => [ [ - 'keyName' => 'resource', + 'keyName' => 'name', 'fieldAccessors' => [ - 'getResource', + 'getName', ], ], ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + 'interfaceOverride' => 'google.cloud.location.Locations', ], - 'SetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], + 'ListLocations' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getLocations', ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'TestIamPermissions' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', 'headerParams' => [ [ - 'keyName' => 'resource', + 'keyName' => 'name', 'fieldAccessors' => [ - 'getResource', + 'getName', ], ], ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + 'interfaceOverride' => 'google.cloud.location.Locations', ], 'templateMap' => [ 'compilationResult' => 'projects/{project}/locations/{location}/repositories/{repository}/compilationResults/{compilation_result}', 'config' => 'projects/{project}/locations/{location}/config', 'cryptoKey' => 'projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}', 'cryptoKeyVersion' => 'projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}', + 'folder' => 'projects/{project}/locations/{location}/folders/{folder}', 'location' => 'projects/{project}/locations/{location}', 'notebookRuntimeTemplate' => 'projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}', 'releaseConfig' => 'projects/{project}/locations/{location}/repositories/{repository}/releaseConfigs/{release_config}', 'repository' => 'projects/{project}/locations/{location}/repositories/{repository}', 'secretVersion' => 'projects/{project}/secrets/{secret}/versions/{version}', + 'teamFolder' => 'projects/{project}/locations/{location}/teamFolders/{team_folder}', 'workflowConfig' => 'projects/{project}/locations/{location}/repositories/{repository}/workflowConfigs/{workflow_config}', 'workflowInvocation' => 'projects/{project}/locations/{location}/repositories/{repository}/workflowInvocations/{workflow_invocation}', 'workspace' => 'projects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace}', diff --git a/Dataform/src/V1/resources/dataform_rest_client_config.php b/Dataform/src/V1/resources/dataform_rest_client_config.php index 8cae5ce6020f..011deebe861d 100644 --- a/Dataform/src/V1/resources/dataform_rest_client_config.php +++ b/Dataform/src/V1/resources/dataform_rest_client_config.php @@ -82,6 +82,18 @@ ], ], ], + 'CreateFolder' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/folders', + 'body' => 'folder', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], 'CreateReleaseConfig' => [ 'method' => 'post', 'uriTemplate' => '/v1/{parent=projects/*/locations/*/repositories/*}/releaseConfigs', @@ -112,6 +124,18 @@ 'repository_id', ], ], + 'CreateTeamFolder' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/teamFolders', + 'body' => 'team_folder', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], 'CreateWorkflowConfig' => [ 'method' => 'post', 'uriTemplate' => '/v1/{parent=projects/*/locations/*/repositories/*}/workflowConfigs', @@ -154,6 +178,29 @@ 'workspace_id', ], ], + 'DeleteFolder' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/folders/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteFolderTree' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/folders/*}:deleteTree', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], 'DeleteReleaseConfig' => [ 'method' => 'delete', 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/releaseConfigs/*}', @@ -176,6 +223,29 @@ ], ], ], + 'DeleteTeamFolder' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/teamFolders/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteTeamFolderTree' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/teamFolders/*}:deleteTree', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], 'DeleteWorkflowConfig' => [ 'method' => 'delete', 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}', @@ -286,6 +356,42 @@ ], ], ], + 'GetFolder' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/folders/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetIamPolicy' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/repositories/*}:getIamPolicy', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/folders/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/teamFolders/*}:getIamPolicy', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], 'GetReleaseConfig' => [ 'method' => 'get', 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/releaseConfigs/*}', @@ -308,6 +414,17 @@ ], ], ], + 'GetTeamFolder' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/teamFolders/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], 'GetWorkflowConfig' => [ 'method' => 'get', 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}', @@ -455,6 +572,30 @@ ], ], ], + 'MoveFolder' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/folders/*}:move', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'MoveRepository' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*}:move', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], 'PullGitCommits' => [ 'method' => 'post', 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:pull', @@ -501,6 +642,17 @@ ], ], ], + 'QueryFolderContents' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{folder=projects/*/locations/*/folders/*}:queryFolderContents', + 'placeholders' => [ + 'folder' => [ + 'getters' => [ + 'getFolder', + ], + ], + ], + ], 'QueryRepositoryDirectoryContents' => [ 'method' => 'get', 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*}:queryDirectoryContents', @@ -512,6 +664,28 @@ ], ], ], + 'QueryTeamFolderContents' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{team_folder=projects/*/locations/*/teamFolders/*}:queryContents', + 'placeholders' => [ + 'team_folder' => [ + 'getters' => [ + 'getTeamFolder', + ], + ], + ], + ], + 'QueryUserRootContents' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{location=projects/*/locations/*}:queryUserRootContents', + 'placeholders' => [ + 'location' => [ + 'getters' => [ + 'getLocation', + ], + ], + ], + ], 'QueryWorkflowInvocationActions' => [ 'method' => 'get', 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}:query', @@ -592,6 +766,75 @@ ], ], ], + 'SearchTeamFolders' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{location=projects/*/locations/*}/teamFolders:search', + 'placeholders' => [ + 'location' => [ + 'getters' => [ + 'getLocation', + ], + ], + ], + ], + 'SetIamPolicy' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/repositories/*}:setIamPolicy', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/folders/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/teamFolders/*}:setIamPolicy', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'TestIamPermissions' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/repositories/*}:testIamPermissions', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/folders/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/teamFolders/*}:testIamPermissions', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], 'UpdateConfig' => [ 'method' => 'patch', 'uriTemplate' => '/v1/{config.name=projects/*/locations/*/config}', @@ -605,6 +848,19 @@ ], ], ], + 'UpdateFolder' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{folder.name=projects/*/locations/*/folders/*}', + 'body' => 'folder', + 'placeholders' => [ + 'folder.name' => [ + 'getters' => [ + 'getFolder', + 'getName', + ], + ], + ], + ], 'UpdateReleaseConfig' => [ 'method' => 'patch', 'uriTemplate' => '/v1/{release_config.name=projects/*/locations/*/repositories/*/releaseConfigs/*}', @@ -631,6 +887,19 @@ ], ], ], + 'UpdateTeamFolder' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{team_folder.name=projects/*/locations/*/teamFolders/*}', + 'body' => 'team_folder', + 'placeholders' => [ + 'team_folder.name' => [ + 'getters' => [ + 'getTeamFolder', + 'getName', + ], + ], + ], + ], 'UpdateWorkflowConfig' => [ 'method' => 'patch', 'uriTemplate' => '/v1/{workflow_config.name=projects/*/locations/*/repositories/*/workflowConfigs/*}', @@ -681,58 +950,48 @@ ], ], ], - 'google.iam.v1.IAMPolicy' => [ - 'GetIamPolicy' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/repositories/*}:getIamPolicy', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:getIamPolicy', - ], - ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', + 'body' => '*', 'placeholders' => [ - 'resource' => [ + 'name' => [ 'getters' => [ - 'getResource', + 'getName', ], ], ], ], - 'SetIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/repositories/*}:setIamPolicy', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:setIamPolicy', - 'body' => '*', - ], - ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', 'placeholders' => [ - 'resource' => [ + 'name' => [ 'getters' => [ - 'getResource', + 'getName', ], ], ], ], - 'TestIamPermissions' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/repositories/*}:testIamPermissions', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:testIamPermissions', - 'body' => '*', + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], ], ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', 'placeholders' => [ - 'resource' => [ + 'name' => [ 'getters' => [ - 'getResource', + 'getName', ], ], ], diff --git a/Dataform/tests/Unit/V1/Client/DataformClientTest.php b/Dataform/tests/Unit/V1/Client/DataformClientTest.php index 6b56ba318464..753c3674c885 100644 --- a/Dataform/tests/Unit/V1/Client/DataformClientTest.php +++ b/Dataform/tests/Unit/V1/Client/DataformClientTest.php @@ -42,13 +42,19 @@ use Google\Cloud\Dataform\V1\ComputeRepositoryAccessTokenStatusResponse; use Google\Cloud\Dataform\V1\Config; use Google\Cloud\Dataform\V1\CreateCompilationResultRequest; +use Google\Cloud\Dataform\V1\CreateFolderRequest; use Google\Cloud\Dataform\V1\CreateReleaseConfigRequest; use Google\Cloud\Dataform\V1\CreateRepositoryRequest; +use Google\Cloud\Dataform\V1\CreateTeamFolderRequest; use Google\Cloud\Dataform\V1\CreateWorkflowConfigRequest; use Google\Cloud\Dataform\V1\CreateWorkflowInvocationRequest; use Google\Cloud\Dataform\V1\CreateWorkspaceRequest; +use Google\Cloud\Dataform\V1\DeleteFolderRequest; +use Google\Cloud\Dataform\V1\DeleteFolderTreeRequest; use Google\Cloud\Dataform\V1\DeleteReleaseConfigRequest; use Google\Cloud\Dataform\V1\DeleteRepositoryRequest; +use Google\Cloud\Dataform\V1\DeleteTeamFolderRequest; +use Google\Cloud\Dataform\V1\DeleteTeamFolderTreeRequest; use Google\Cloud\Dataform\V1\DeleteWorkflowConfigRequest; use Google\Cloud\Dataform\V1\DeleteWorkflowInvocationRequest; use Google\Cloud\Dataform\V1\DeleteWorkspaceRequest; @@ -63,10 +69,13 @@ use Google\Cloud\Dataform\V1\FetchRemoteBranchesResponse; use Google\Cloud\Dataform\V1\FetchRepositoryHistoryRequest; use Google\Cloud\Dataform\V1\FetchRepositoryHistoryResponse; +use Google\Cloud\Dataform\V1\Folder; use Google\Cloud\Dataform\V1\GetCompilationResultRequest; use Google\Cloud\Dataform\V1\GetConfigRequest; +use Google\Cloud\Dataform\V1\GetFolderRequest; use Google\Cloud\Dataform\V1\GetReleaseConfigRequest; use Google\Cloud\Dataform\V1\GetRepositoryRequest; +use Google\Cloud\Dataform\V1\GetTeamFolderRequest; use Google\Cloud\Dataform\V1\GetWorkflowConfigRequest; use Google\Cloud\Dataform\V1\GetWorkflowInvocationRequest; use Google\Cloud\Dataform\V1\GetWorkspaceRequest; @@ -90,6 +99,8 @@ use Google\Cloud\Dataform\V1\MoveDirectoryResponse; use Google\Cloud\Dataform\V1\MoveFileRequest; use Google\Cloud\Dataform\V1\MoveFileResponse; +use Google\Cloud\Dataform\V1\MoveFolderRequest; +use Google\Cloud\Dataform\V1\MoveRepositoryRequest; use Google\Cloud\Dataform\V1\PullGitCommitsRequest; use Google\Cloud\Dataform\V1\PullGitCommitsResponse; use Google\Cloud\Dataform\V1\PushGitCommitsRequest; @@ -98,8 +109,17 @@ use Google\Cloud\Dataform\V1\QueryCompilationResultActionsResponse; use Google\Cloud\Dataform\V1\QueryDirectoryContentsRequest; use Google\Cloud\Dataform\V1\QueryDirectoryContentsResponse; +use Google\Cloud\Dataform\V1\QueryFolderContentsRequest; +use Google\Cloud\Dataform\V1\QueryFolderContentsResponse; +use Google\Cloud\Dataform\V1\QueryFolderContentsResponse\FolderContentsEntry; use Google\Cloud\Dataform\V1\QueryRepositoryDirectoryContentsRequest; use Google\Cloud\Dataform\V1\QueryRepositoryDirectoryContentsResponse; +use Google\Cloud\Dataform\V1\QueryTeamFolderContentsRequest; +use Google\Cloud\Dataform\V1\QueryTeamFolderContentsResponse; +use Google\Cloud\Dataform\V1\QueryTeamFolderContentsResponse\TeamFolderContentsEntry; +use Google\Cloud\Dataform\V1\QueryUserRootContentsRequest; +use Google\Cloud\Dataform\V1\QueryUserRootContentsResponse; +use Google\Cloud\Dataform\V1\QueryUserRootContentsResponse\RootContentsEntry; use Google\Cloud\Dataform\V1\QueryWorkflowInvocationActionsRequest; use Google\Cloud\Dataform\V1\QueryWorkflowInvocationActionsResponse; use Google\Cloud\Dataform\V1\ReadFileRequest; @@ -117,9 +137,15 @@ use Google\Cloud\Dataform\V1\SearchFilesRequest; use Google\Cloud\Dataform\V1\SearchFilesResponse; use Google\Cloud\Dataform\V1\SearchResult; +use Google\Cloud\Dataform\V1\SearchTeamFoldersRequest; +use Google\Cloud\Dataform\V1\SearchTeamFoldersResponse; +use Google\Cloud\Dataform\V1\SearchTeamFoldersResponse\TeamFolderSearchResult; +use Google\Cloud\Dataform\V1\TeamFolder; use Google\Cloud\Dataform\V1\UpdateConfigRequest; +use Google\Cloud\Dataform\V1\UpdateFolderRequest; use Google\Cloud\Dataform\V1\UpdateReleaseConfigRequest; use Google\Cloud\Dataform\V1\UpdateRepositoryRequest; +use Google\Cloud\Dataform\V1\UpdateTeamFolderRequest; use Google\Cloud\Dataform\V1\UpdateWorkflowConfigRequest; use Google\Cloud\Dataform\V1\WorkflowConfig; use Google\Cloud\Dataform\V1\WorkflowInvocation; @@ -136,6 +162,14 @@ use Google\Cloud\Location\ListLocationsRequest; use Google\Cloud\Location\ListLocationsResponse; use Google\Cloud\Location\Location; +use Google\LongRunning\CancelOperationRequest; +use Google\LongRunning\Client\OperationsClient; +use Google\LongRunning\DeleteOperationRequest; +use Google\LongRunning\GetOperationRequest; +use Google\LongRunning\ListOperationsRequest; +use Google\LongRunning\ListOperationsResponse; +use Google\LongRunning\Operation; +use Google\Protobuf\Any; use Google\Protobuf\GPBEmpty; use Google\Rpc\Code; use stdClass; @@ -543,6 +577,89 @@ public function createCompilationResultExceptionTest() $this->assertTrue($transport->isExhausted()); } + /** @test */ + public function createFolderTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $containingFolder = 'containingFolder2137746239'; + $teamFolderName = 'teamFolderName-1375688486'; + $internalMetadata = 'internalMetadata-1087755663'; + $creatorIamPrincipal = 'creatorIamPrincipal866086897'; + $expectedResponse = new Folder(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setContainingFolder($containingFolder); + $expectedResponse->setTeamFolderName($teamFolderName); + $expectedResponse->setInternalMetadata($internalMetadata); + $expectedResponse->setCreatorIamPrincipal($creatorIamPrincipal); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $folder = new Folder(); + $folderDisplayName = 'folderDisplayName1703145759'; + $folder->setDisplayName($folderDisplayName); + $request = (new CreateFolderRequest())->setParent($formattedParent)->setFolder($folder); + $response = $gapicClient->createFolder($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/CreateFolder', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getFolder(); + $this->assertProtobufEquals($folder, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createFolderExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $folder = new Folder(); + $folderDisplayName = 'folderDisplayName1703145759'; + $folder->setDisplayName($folderDisplayName); + $request = (new CreateFolderRequest())->setParent($formattedParent)->setFolder($folder); + try { + $gapicClient->createFolder($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + /** @test */ public function createReleaseConfigTest() { @@ -648,6 +765,8 @@ public function createRepositoryTest() $this->assertTrue($transport->isExhausted()); // Mock response $name = 'name3373707'; + $containingFolder = 'containingFolder2137746239'; + $teamFolderName = 'teamFolderName-1375688486'; $displayName = 'displayName1615086568'; $npmrcEnvironmentVariablesSecretVersion = 'npmrcEnvironmentVariablesSecretVersion-2118517056'; $setAuthenticatedUserAdmin = true; @@ -656,6 +775,8 @@ public function createRepositoryTest() $internalMetadata = 'internalMetadata-1087755663'; $expectedResponse = new Repository(); $expectedResponse->setName($name); + $expectedResponse->setContainingFolder($containingFolder); + $expectedResponse->setTeamFolderName($teamFolderName); $expectedResponse->setDisplayName($displayName); $expectedResponse->setNpmrcEnvironmentVariablesSecretVersion($npmrcEnvironmentVariablesSecretVersion); $expectedResponse->setSetAuthenticatedUserAdmin($setAuthenticatedUserAdmin); @@ -729,6 +850,85 @@ public function createRepositoryExceptionTest() $this->assertTrue($transport->isExhausted()); } + /** @test */ + public function createTeamFolderTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $internalMetadata = 'internalMetadata-1087755663'; + $creatorIamPrincipal = 'creatorIamPrincipal866086897'; + $expectedResponse = new TeamFolder(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setInternalMetadata($internalMetadata); + $expectedResponse->setCreatorIamPrincipal($creatorIamPrincipal); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $teamFolder = new TeamFolder(); + $teamFolderDisplayName = 'teamFolderDisplayName136139842'; + $teamFolder->setDisplayName($teamFolderDisplayName); + $request = (new CreateTeamFolderRequest())->setParent($formattedParent)->setTeamFolder($teamFolder); + $response = $gapicClient->createTeamFolder($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/CreateTeamFolder', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getTeamFolder(); + $this->assertProtobufEquals($teamFolder, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createTeamFolderExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $teamFolder = new TeamFolder(); + $teamFolderDisplayName = 'teamFolderDisplayName136139842'; + $teamFolder->setDisplayName($teamFolderDisplayName); + $request = (new CreateTeamFolderRequest())->setParent($formattedParent)->setTeamFolder($teamFolder); + try { + $gapicClient->createTeamFolder($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + /** @test */ public function createWorkflowConfigTest() { @@ -922,9 +1122,11 @@ public function createWorkspaceTest() // Mock response $name = 'name3373707'; $internalMetadata = 'internalMetadata-1087755663'; + $disableMoves = false; $expectedResponse = new Workspace(); $expectedResponse->setName($name); $expectedResponse->setInternalMetadata($internalMetadata); + $expectedResponse->setDisableMoves($disableMoves); $transport->addResponse($expectedResponse); // Mock request $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); @@ -993,7 +1195,7 @@ public function createWorkspaceExceptionTest() } /** @test */ - public function deleteReleaseConfigTest() + public function deleteFolderTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -1004,21 +1206,21 @@ public function deleteReleaseConfigTest() $expectedResponse = new GPBEmpty(); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $gapicClient->releaseConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[RELEASE_CONFIG]'); - $request = (new DeleteReleaseConfigRequest())->setName($formattedName); - $gapicClient->deleteReleaseConfig($request); + $formattedName = $gapicClient->folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); + $request = (new DeleteFolderRequest())->setName($formattedName); + $gapicClient->deleteFolder($request); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/DeleteReleaseConfig', $actualFuncCall); + $this->assertSame('/google.cloud.dataform.v1.Dataform/DeleteFolder', $actualFuncCall); $actualValue = $actualRequestObject->getName(); $this->assertProtobufEquals($formattedName, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function deleteReleaseConfigExceptionTest() + public function deleteFolderExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -1039,10 +1241,10 @@ public function deleteReleaseConfigExceptionTest() ); $transport->addResponse(null, $status); // Mock request - $formattedName = $gapicClient->releaseConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[RELEASE_CONFIG]'); - $request = (new DeleteReleaseConfigRequest())->setName($formattedName); + $formattedName = $gapicClient->folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); + $request = (new DeleteFolderRequest())->setName($formattedName); try { - $gapicClient->deleteReleaseConfig($request); + $gapicClient->deleteFolder($request); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -1055,38 +1257,89 @@ public function deleteReleaseConfigExceptionTest() } /** @test */ - public function deleteRepositoryTest() + public function deleteFolderTreeTest() { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); $transport = $this->createTransport(); $gapicClient = $this->createClient([ 'transport' => $transport, + 'operationsClient' => $operationsClient, ]); $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/deleteFolderTreeTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteFolderTreeTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new DeleteRepositoryRequest())->setName($formattedName); - $gapicClient->deleteRepository($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/DeleteRepository', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); + $formattedName = $gapicClient->folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); + $request = (new DeleteFolderTreeRequest())->setName($formattedName); + $response = $gapicClient->deleteFolderTree($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/DeleteFolderTree', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteFolderTreeTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); } /** @test */ - public function deleteRepositoryExceptionTest() + public function deleteFolderTreeExceptionTest() { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); $transport = $this->createTransport(); $gapicClient = $this->createClient([ 'transport' => $transport, + 'operationsClient' => $operationsClient, ]); $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/deleteFolderTreeTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; @@ -1099,25 +1352,34 @@ public function deleteRepositoryExceptionTest() ], JSON_PRETTY_PRINT ); - $transport->addResponse(null, $status); + $operationsTransport->addResponse(null, $status); // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new DeleteRepositoryRequest())->setName($formattedName); + $formattedName = $gapicClient->folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); + $request = (new DeleteFolderTreeRequest())->setName($formattedName); + $response = $gapicClient->deleteFolderTree($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteFolderTreeTest'); try { - $gapicClient->deleteRepository($request); - // If the $gapicClient method call did not throw, fail the test + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); } - // Call popReceivedCalls to ensure the stub is exhausted + // Call popReceivedCalls to ensure the stubs are exhausted $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); } /** @test */ - public function deleteWorkflowConfigTest() + public function deleteReleaseConfigTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -1128,26 +1390,21 @@ public function deleteWorkflowConfigTest() $expectedResponse = new GPBEmpty(); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $gapicClient->workflowConfigName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKFLOW_CONFIG]' - ); - $request = (new DeleteWorkflowConfigRequest())->setName($formattedName); - $gapicClient->deleteWorkflowConfig($request); + $formattedName = $gapicClient->releaseConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[RELEASE_CONFIG]'); + $request = (new DeleteReleaseConfigRequest())->setName($formattedName); + $gapicClient->deleteReleaseConfig($request); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/DeleteWorkflowConfig', $actualFuncCall); + $this->assertSame('/google.cloud.dataform.v1.Dataform/DeleteReleaseConfig', $actualFuncCall); $actualValue = $actualRequestObject->getName(); $this->assertProtobufEquals($formattedName, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function deleteWorkflowConfigExceptionTest() + public function deleteReleaseConfigExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -1168,15 +1425,10 @@ public function deleteWorkflowConfigExceptionTest() ); $transport->addResponse(null, $status); // Mock request - $formattedName = $gapicClient->workflowConfigName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKFLOW_CONFIG]' - ); - $request = (new DeleteWorkflowConfigRequest())->setName($formattedName); + $formattedName = $gapicClient->releaseConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[RELEASE_CONFIG]'); + $request = (new DeleteReleaseConfigRequest())->setName($formattedName); try { - $gapicClient->deleteWorkflowConfig($request); + $gapicClient->deleteReleaseConfig($request); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -1189,7 +1441,7 @@ public function deleteWorkflowConfigExceptionTest() } /** @test */ - public function deleteWorkflowInvocationTest() + public function deleteRepositoryTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -1200,26 +1452,21 @@ public function deleteWorkflowInvocationTest() $expectedResponse = new GPBEmpty(); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $gapicClient->workflowInvocationName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKFLOW_INVOCATION]' - ); - $request = (new DeleteWorkflowInvocationRequest())->setName($formattedName); - $gapicClient->deleteWorkflowInvocation($request); + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new DeleteRepositoryRequest())->setName($formattedName); + $gapicClient->deleteRepository($request); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/DeleteWorkflowInvocation', $actualFuncCall); + $this->assertSame('/google.cloud.dataform.v1.Dataform/DeleteRepository', $actualFuncCall); $actualValue = $actualRequestObject->getName(); $this->assertProtobufEquals($formattedName, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function deleteWorkflowInvocationExceptionTest() + public function deleteRepositoryExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -1240,15 +1487,10 @@ public function deleteWorkflowInvocationExceptionTest() ); $transport->addResponse(null, $status); // Mock request - $formattedName = $gapicClient->workflowInvocationName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKFLOW_INVOCATION]' - ); - $request = (new DeleteWorkflowInvocationRequest())->setName($formattedName); + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new DeleteRepositoryRequest())->setName($formattedName); try { - $gapicClient->deleteWorkflowInvocation($request); + $gapicClient->deleteRepository($request); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -1261,7 +1503,7 @@ public function deleteWorkflowInvocationExceptionTest() } /** @test */ - public function deleteWorkspaceTest() + public function deleteTeamFolderTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -1272,21 +1514,21 @@ public function deleteWorkspaceTest() $expectedResponse = new GPBEmpty(); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new DeleteWorkspaceRequest())->setName($formattedName); - $gapicClient->deleteWorkspace($request); + $formattedName = $gapicClient->teamFolderName('[PROJECT]', '[LOCATION]', '[TEAM_FOLDER]'); + $request = (new DeleteTeamFolderRequest())->setName($formattedName); + $gapicClient->deleteTeamFolder($request); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/DeleteWorkspace', $actualFuncCall); + $this->assertSame('/google.cloud.dataform.v1.Dataform/DeleteTeamFolder', $actualFuncCall); $actualValue = $actualRequestObject->getName(); $this->assertProtobufEquals($formattedName, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function deleteWorkspaceExceptionTest() + public function deleteTeamFolderExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -1307,10 +1549,10 @@ public function deleteWorkspaceExceptionTest() ); $transport->addResponse(null, $status); // Mock request - $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new DeleteWorkspaceRequest())->setName($formattedName); + $formattedName = $gapicClient->teamFolderName('[PROJECT]', '[LOCATION]', '[TEAM_FOLDER]'); + $request = (new DeleteTeamFolderRequest())->setName($formattedName); try { - $gapicClient->deleteWorkspace($request); + $gapicClient->deleteTeamFolder($request); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -1323,44 +1565,89 @@ public function deleteWorkspaceExceptionTest() } /** @test */ - public function fetchFileDiffTest() + public function deleteTeamFolderTreeTest() { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); $transport = $this->createTransport(); $gapicClient = $this->createClient([ 'transport' => $transport, + 'operationsClient' => $operationsClient, ]); $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); // Mock response - $formattedDiff = 'formattedDiff-1687410264'; - $expectedResponse = new FetchFileDiffResponse(); - $expectedResponse->setFormattedDiff($formattedDiff); - $transport->addResponse($expectedResponse); + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/deleteTeamFolderTreeTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteTeamFolderTreeTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $path = 'path3433509'; - $request = (new FetchFileDiffRequest())->setWorkspace($formattedWorkspace)->setPath($path); - $response = $gapicClient->fetchFileDiff($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/FetchFileDiff', $actualFuncCall); - $actualValue = $actualRequestObject->getWorkspace(); - $this->assertProtobufEquals($formattedWorkspace, $actualValue); - $actualValue = $actualRequestObject->getPath(); - $this->assertProtobufEquals($path, $actualValue); - $this->assertTrue($transport->isExhausted()); + $formattedName = $gapicClient->teamFolderName('[PROJECT]', '[LOCATION]', '[TEAM_FOLDER]'); + $request = (new DeleteTeamFolderTreeRequest())->setName($formattedName); + $response = $gapicClient->deleteTeamFolderTree($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/DeleteTeamFolderTree', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteTeamFolderTreeTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); } /** @test */ - public function fetchFileDiffExceptionTest() + public function deleteTeamFolderTreeExceptionTest() { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); $transport = $this->createTransport(); $gapicClient = $this->createClient([ 'transport' => $transport, + 'operationsClient' => $operationsClient, ]); $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/deleteTeamFolderTreeTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); $status = new stdClass(); $status->code = Code::DATA_LOSS; $status->details = 'internal error'; @@ -1373,26 +1660,34 @@ public function fetchFileDiffExceptionTest() ], JSON_PRETTY_PRINT ); - $transport->addResponse(null, $status); + $operationsTransport->addResponse(null, $status); // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $path = 'path3433509'; - $request = (new FetchFileDiffRequest())->setWorkspace($formattedWorkspace)->setPath($path); + $formattedName = $gapicClient->teamFolderName('[PROJECT]', '[LOCATION]', '[TEAM_FOLDER]'); + $request = (new DeleteTeamFolderTreeRequest())->setName($formattedName); + $response = $gapicClient->deleteTeamFolderTree($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteTeamFolderTreeTest'); try { - $gapicClient->fetchFileDiff($request); - // If the $gapicClient method call did not throw, fail the test + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); } - // Call popReceivedCalls to ensure the stub is exhausted + // Call popReceivedCalls to ensure the stubs are exhausted $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); } /** @test */ - public function fetchFileGitStatusesTest() + public function deleteWorkflowConfigTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -1400,25 +1695,29 @@ public function fetchFileGitStatusesTest() ]); $this->assertTrue($transport->isExhausted()); // Mock response - $expectedResponse = new FetchFileGitStatusesResponse(); + $expectedResponse = new GPBEmpty(); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new FetchFileGitStatusesRequest())->setName($formattedName); - $response = $gapicClient->fetchFileGitStatuses($request); - $this->assertEquals($expectedResponse, $response); + $formattedName = $gapicClient->workflowConfigName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKFLOW_CONFIG]' + ); + $request = (new DeleteWorkflowConfigRequest())->setName($formattedName); + $gapicClient->deleteWorkflowConfig($request); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/FetchFileGitStatuses', $actualFuncCall); + $this->assertSame('/google.cloud.dataform.v1.Dataform/DeleteWorkflowConfig', $actualFuncCall); $actualValue = $actualRequestObject->getName(); $this->assertProtobufEquals($formattedName, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function fetchFileGitStatusesExceptionTest() + public function deleteWorkflowConfigExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -1439,10 +1738,15 @@ public function fetchFileGitStatusesExceptionTest() ); $transport->addResponse(null, $status); // Mock request - $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new FetchFileGitStatusesRequest())->setName($formattedName); + $formattedName = $gapicClient->workflowConfigName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKFLOW_CONFIG]' + ); + $request = (new DeleteWorkflowConfigRequest())->setName($formattedName); try { - $gapicClient->fetchFileGitStatuses($request); + $gapicClient->deleteWorkflowConfig($request); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -1455,7 +1759,7 @@ public function fetchFileGitStatusesExceptionTest() } /** @test */ - public function fetchGitAheadBehindTest() + public function deleteWorkflowInvocationTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -1463,29 +1767,29 @@ public function fetchGitAheadBehindTest() ]); $this->assertTrue($transport->isExhausted()); // Mock response - $commitsAhead = 1216483806; - $commitsBehind = 917751619; - $expectedResponse = new FetchGitAheadBehindResponse(); - $expectedResponse->setCommitsAhead($commitsAhead); - $expectedResponse->setCommitsBehind($commitsBehind); + $expectedResponse = new GPBEmpty(); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new FetchGitAheadBehindRequest())->setName($formattedName); - $response = $gapicClient->fetchGitAheadBehind($request); - $this->assertEquals($expectedResponse, $response); + $formattedName = $gapicClient->workflowInvocationName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKFLOW_INVOCATION]' + ); + $request = (new DeleteWorkflowInvocationRequest())->setName($formattedName); + $gapicClient->deleteWorkflowInvocation($request); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/FetchGitAheadBehind', $actualFuncCall); + $this->assertSame('/google.cloud.dataform.v1.Dataform/DeleteWorkflowInvocation', $actualFuncCall); $actualValue = $actualRequestObject->getName(); $this->assertProtobufEquals($formattedName, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function fetchGitAheadBehindExceptionTest() + public function deleteWorkflowInvocationExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -1506,10 +1810,15 @@ public function fetchGitAheadBehindExceptionTest() ); $transport->addResponse(null, $status); // Mock request - $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new FetchGitAheadBehindRequest())->setName($formattedName); + $formattedName = $gapicClient->workflowInvocationName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKFLOW_INVOCATION]' + ); + $request = (new DeleteWorkflowInvocationRequest())->setName($formattedName); try { - $gapicClient->fetchGitAheadBehind($request); + $gapicClient->deleteWorkflowInvocation($request); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -1522,7 +1831,7 @@ public function fetchGitAheadBehindExceptionTest() } /** @test */ - public function fetchRemoteBranchesTest() + public function deleteWorkspaceTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -1530,25 +1839,24 @@ public function fetchRemoteBranchesTest() ]); $this->assertTrue($transport->isExhausted()); // Mock response - $expectedResponse = new FetchRemoteBranchesResponse(); + $expectedResponse = new GPBEmpty(); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new FetchRemoteBranchesRequest())->setName($formattedName); - $response = $gapicClient->fetchRemoteBranches($request); - $this->assertEquals($expectedResponse, $response); + $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new DeleteWorkspaceRequest())->setName($formattedName); + $gapicClient->deleteWorkspace($request); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/FetchRemoteBranches', $actualFuncCall); + $this->assertSame('/google.cloud.dataform.v1.Dataform/DeleteWorkspace', $actualFuncCall); $actualValue = $actualRequestObject->getName(); $this->assertProtobufEquals($formattedName, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function fetchRemoteBranchesExceptionTest() + public function deleteWorkspaceExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -1569,10 +1877,10 @@ public function fetchRemoteBranchesExceptionTest() ); $transport->addResponse(null, $status); // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new FetchRemoteBranchesRequest())->setName($formattedName); + $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new DeleteWorkspaceRequest())->setName($formattedName); try { - $gapicClient->fetchRemoteBranches($request); + $gapicClient->deleteWorkspace($request); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -1585,7 +1893,7 @@ public function fetchRemoteBranchesExceptionTest() } /** @test */ - public function fetchRepositoryHistoryTest() + public function fetchFileDiffTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -1593,33 +1901,30 @@ public function fetchRepositoryHistoryTest() ]); $this->assertTrue($transport->isExhausted()); // Mock response - $nextPageToken = ''; - $commitsElement = new CommitLogEntry(); - $commits = [$commitsElement]; - $expectedResponse = new FetchRepositoryHistoryResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setCommits($commits); + $formattedDiff = 'formattedDiff-1687410264'; + $expectedResponse = new FetchFileDiffResponse(); + $expectedResponse->setFormattedDiff($formattedDiff); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new FetchRepositoryHistoryRequest())->setName($formattedName); - $response = $gapicClient->fetchRepositoryHistory($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getCommits()[0], $resources[0]); + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $path = 'path3433509'; + $request = (new FetchFileDiffRequest())->setWorkspace($formattedWorkspace)->setPath($path); + $response = $gapicClient->fetchFileDiff($request); + $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/FetchRepositoryHistory', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertSame('/google.cloud.dataform.v1.Dataform/FetchFileDiff', $actualFuncCall); + $actualValue = $actualRequestObject->getWorkspace(); + $this->assertProtobufEquals($formattedWorkspace, $actualValue); + $actualValue = $actualRequestObject->getPath(); + $this->assertProtobufEquals($path, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function fetchRepositoryHistoryExceptionTest() + public function fetchFileDiffExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -1640,10 +1945,11 @@ public function fetchRepositoryHistoryExceptionTest() ); $transport->addResponse(null, $status); // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new FetchRepositoryHistoryRequest())->setName($formattedName); + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $path = 'path3433509'; + $request = (new FetchFileDiffRequest())->setWorkspace($formattedWorkspace)->setPath($path); try { - $gapicClient->fetchRepositoryHistory($request); + $gapicClient->fetchFileDiff($request); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -1656,7 +1962,7 @@ public function fetchRepositoryHistoryExceptionTest() } /** @test */ - public function getCompilationResultTest() + public function fetchFileGitStatusesTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -1664,40 +1970,25 @@ public function getCompilationResultTest() ]); $this->assertTrue($transport->isExhausted()); // Mock response - $gitCommitish = 'gitCommitish-459981894'; - $name2 = 'name2-1052831874'; - $resolvedGitCommitSha = 'resolvedGitCommitSha-1974209704'; - $dataformCoreVersion = 'dataformCoreVersion1918089577'; - $internalMetadata = 'internalMetadata-1087755663'; - $expectedResponse = new CompilationResult(); - $expectedResponse->setGitCommitish($gitCommitish); - $expectedResponse->setName($name2); - $expectedResponse->setResolvedGitCommitSha($resolvedGitCommitSha); - $expectedResponse->setDataformCoreVersion($dataformCoreVersion); - $expectedResponse->setInternalMetadata($internalMetadata); + $expectedResponse = new FetchFileGitStatusesResponse(); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $gapicClient->compilationResultName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[COMPILATION_RESULT]' - ); - $request = (new GetCompilationResultRequest())->setName($formattedName); - $response = $gapicClient->getCompilationResult($request); + $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new FetchFileGitStatusesRequest())->setName($formattedName); + $response = $gapicClient->fetchFileGitStatuses($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/GetCompilationResult', $actualFuncCall); + $this->assertSame('/google.cloud.dataform.v1.Dataform/FetchFileGitStatuses', $actualFuncCall); $actualValue = $actualRequestObject->getName(); $this->assertProtobufEquals($formattedName, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function getCompilationResultExceptionTest() + public function fetchFileGitStatusesExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -1718,15 +2009,10 @@ public function getCompilationResultExceptionTest() ); $transport->addResponse(null, $status); // Mock request - $formattedName = $gapicClient->compilationResultName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[COMPILATION_RESULT]' - ); - $request = (new GetCompilationResultRequest())->setName($formattedName); + $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new FetchFileGitStatusesRequest())->setName($formattedName); try { - $gapicClient->getCompilationResult($request); + $gapicClient->fetchFileGitStatuses($request); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -1739,7 +2025,7 @@ public function getCompilationResultExceptionTest() } /** @test */ - public function getConfigTest() + public function fetchGitAheadBehindTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -1747,29 +2033,29 @@ public function getConfigTest() ]); $this->assertTrue($transport->isExhausted()); // Mock response - $name2 = 'name2-1052831874'; - $defaultKmsKeyName = 'defaultKmsKeyName-635012393'; - $expectedResponse = new Config(); - $expectedResponse->setName($name2); - $expectedResponse->setDefaultKmsKeyName($defaultKmsKeyName); + $commitsAhead = 1216483806; + $commitsBehind = 917751619; + $expectedResponse = new FetchGitAheadBehindResponse(); + $expectedResponse->setCommitsAhead($commitsAhead); + $expectedResponse->setCommitsBehind($commitsBehind); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $gapicClient->configName('[PROJECT]', '[LOCATION]'); - $request = (new GetConfigRequest())->setName($formattedName); - $response = $gapicClient->getConfig($request); + $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new FetchGitAheadBehindRequest())->setName($formattedName); + $response = $gapicClient->fetchGitAheadBehind($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/GetConfig', $actualFuncCall); + $this->assertSame('/google.cloud.dataform.v1.Dataform/FetchGitAheadBehind', $actualFuncCall); $actualValue = $actualRequestObject->getName(); $this->assertProtobufEquals($formattedName, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function getConfigExceptionTest() + public function fetchGitAheadBehindExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -1790,10 +2076,10 @@ public function getConfigExceptionTest() ); $transport->addResponse(null, $status); // Mock request - $formattedName = $gapicClient->configName('[PROJECT]', '[LOCATION]'); - $request = (new GetConfigRequest())->setName($formattedName); + $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new FetchGitAheadBehindRequest())->setName($formattedName); try { - $gapicClient->getConfig($request); + $gapicClient->fetchGitAheadBehind($request); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -1806,7 +2092,7 @@ public function getConfigExceptionTest() } /** @test */ - public function getReleaseConfigTest() + public function fetchRemoteBranchesTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -1814,39 +2100,25 @@ public function getReleaseConfigTest() ]); $this->assertTrue($transport->isExhausted()); // Mock response - $name2 = 'name2-1052831874'; - $gitCommitish = 'gitCommitish-459981894'; - $cronSchedule = 'cronSchedule206244136'; - $timeZone = 'timeZone36848094'; - $releaseCompilationResult = 'releaseCompilationResult1831489873'; - $disabled = true; - $internalMetadata = 'internalMetadata-1087755663'; - $expectedResponse = new ReleaseConfig(); - $expectedResponse->setName($name2); - $expectedResponse->setGitCommitish($gitCommitish); - $expectedResponse->setCronSchedule($cronSchedule); - $expectedResponse->setTimeZone($timeZone); - $expectedResponse->setReleaseCompilationResult($releaseCompilationResult); - $expectedResponse->setDisabled($disabled); - $expectedResponse->setInternalMetadata($internalMetadata); + $expectedResponse = new FetchRemoteBranchesResponse(); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $gapicClient->releaseConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[RELEASE_CONFIG]'); - $request = (new GetReleaseConfigRequest())->setName($formattedName); - $response = $gapicClient->getReleaseConfig($request); + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new FetchRemoteBranchesRequest())->setName($formattedName); + $response = $gapicClient->fetchRemoteBranches($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/GetReleaseConfig', $actualFuncCall); + $this->assertSame('/google.cloud.dataform.v1.Dataform/FetchRemoteBranches', $actualFuncCall); $actualValue = $actualRequestObject->getName(); $this->assertProtobufEquals($formattedName, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function getReleaseConfigExceptionTest() + public function fetchRemoteBranchesExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -1867,10 +2139,10 @@ public function getReleaseConfigExceptionTest() ); $transport->addResponse(null, $status); // Mock request - $formattedName = $gapicClient->releaseConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[RELEASE_CONFIG]'); - $request = (new GetReleaseConfigRequest())->setName($formattedName); + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new FetchRemoteBranchesRequest())->setName($formattedName); try { - $gapicClient->getReleaseConfig($request); + $gapicClient->fetchRemoteBranches($request); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -1883,7 +2155,7 @@ public function getReleaseConfigExceptionTest() } /** @test */ - public function getRepositoryTest() + public function fetchRepositoryHistoryTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -1891,39 +2163,33 @@ public function getRepositoryTest() ]); $this->assertTrue($transport->isExhausted()); // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $npmrcEnvironmentVariablesSecretVersion = 'npmrcEnvironmentVariablesSecretVersion-2118517056'; - $setAuthenticatedUserAdmin = true; - $serviceAccount = 'serviceAccount-1948028253'; - $kmsKeyName = 'kmsKeyName2094986649'; - $internalMetadata = 'internalMetadata-1087755663'; - $expectedResponse = new Repository(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setNpmrcEnvironmentVariablesSecretVersion($npmrcEnvironmentVariablesSecretVersion); - $expectedResponse->setSetAuthenticatedUserAdmin($setAuthenticatedUserAdmin); - $expectedResponse->setServiceAccount($serviceAccount); - $expectedResponse->setKmsKeyName($kmsKeyName); - $expectedResponse->setInternalMetadata($internalMetadata); + $nextPageToken = ''; + $commitsElement = new CommitLogEntry(); + $commits = [$commitsElement]; + $expectedResponse = new FetchRepositoryHistoryResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setCommits($commits); $transport->addResponse($expectedResponse); // Mock request $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new GetRepositoryRequest())->setName($formattedName); - $response = $gapicClient->getRepository($request); - $this->assertEquals($expectedResponse, $response); + $request = (new FetchRepositoryHistoryRequest())->setName($formattedName); + $response = $gapicClient->fetchRepositoryHistory($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getCommits()[0], $resources[0]); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/GetRepository', $actualFuncCall); + $this->assertSame('/google.cloud.dataform.v1.Dataform/FetchRepositoryHistory', $actualFuncCall); $actualValue = $actualRequestObject->getName(); $this->assertProtobufEquals($formattedName, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function getRepositoryExceptionTest() + public function fetchRepositoryHistoryExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -1945,9 +2211,9 @@ public function getRepositoryExceptionTest() $transport->addResponse(null, $status); // Mock request $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new GetRepositoryRequest())->setName($formattedName); + $request = (new FetchRepositoryHistoryRequest())->setName($formattedName); try { - $gapicClient->getRepository($request); + $gapicClient->fetchRepositoryHistory($request); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -1960,7 +2226,7 @@ public function getRepositoryExceptionTest() } /** @test */ - public function getWorkflowConfigTest() + public function getCompilationResultTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -1968,42 +2234,40 @@ public function getWorkflowConfigTest() ]); $this->assertTrue($transport->isExhausted()); // Mock response + $gitCommitish = 'gitCommitish-459981894'; $name2 = 'name2-1052831874'; - $releaseConfig = 'releaseConfig582587002'; - $cronSchedule = 'cronSchedule206244136'; - $timeZone = 'timeZone36848094'; - $disabled = true; + $resolvedGitCommitSha = 'resolvedGitCommitSha-1974209704'; + $dataformCoreVersion = 'dataformCoreVersion1918089577'; $internalMetadata = 'internalMetadata-1087755663'; - $expectedResponse = new WorkflowConfig(); + $expectedResponse = new CompilationResult(); + $expectedResponse->setGitCommitish($gitCommitish); $expectedResponse->setName($name2); - $expectedResponse->setReleaseConfig($releaseConfig); - $expectedResponse->setCronSchedule($cronSchedule); - $expectedResponse->setTimeZone($timeZone); - $expectedResponse->setDisabled($disabled); + $expectedResponse->setResolvedGitCommitSha($resolvedGitCommitSha); + $expectedResponse->setDataformCoreVersion($dataformCoreVersion); $expectedResponse->setInternalMetadata($internalMetadata); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $gapicClient->workflowConfigName( + $formattedName = $gapicClient->compilationResultName( '[PROJECT]', '[LOCATION]', '[REPOSITORY]', - '[WORKFLOW_CONFIG]' + '[COMPILATION_RESULT]' ); - $request = (new GetWorkflowConfigRequest())->setName($formattedName); - $response = $gapicClient->getWorkflowConfig($request); + $request = (new GetCompilationResultRequest())->setName($formattedName); + $response = $gapicClient->getCompilationResult($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/GetWorkflowConfig', $actualFuncCall); + $this->assertSame('/google.cloud.dataform.v1.Dataform/GetCompilationResult', $actualFuncCall); $actualValue = $actualRequestObject->getName(); $this->assertProtobufEquals($formattedName, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function getWorkflowConfigExceptionTest() + public function getCompilationResultExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -2024,15 +2288,15 @@ public function getWorkflowConfigExceptionTest() ); $transport->addResponse(null, $status); // Mock request - $formattedName = $gapicClient->workflowConfigName( + $formattedName = $gapicClient->compilationResultName( '[PROJECT]', '[LOCATION]', '[REPOSITORY]', - '[WORKFLOW_CONFIG]' + '[COMPILATION_RESULT]' ); - $request = (new GetWorkflowConfigRequest())->setName($formattedName); + $request = (new GetCompilationResultRequest())->setName($formattedName); try { - $gapicClient->getWorkflowConfig($request); + $gapicClient->getCompilationResult($request); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -2045,7 +2309,7 @@ public function getWorkflowConfigExceptionTest() } /** @test */ - public function getWorkflowInvocationTest() + public function getConfigTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -2053,38 +2317,31 @@ public function getWorkflowInvocationTest() ]); $this->assertTrue($transport->isExhausted()); // Mock response - $compilationResult = 'compilationResult-2035984871'; $name2 = 'name2-1052831874'; - $resolvedCompilationResult = 'resolvedCompilationResult-2110280256'; + $defaultKmsKeyName = 'defaultKmsKeyName-635012393'; $internalMetadata = 'internalMetadata-1087755663'; - $expectedResponse = new WorkflowInvocation(); - $expectedResponse->setCompilationResult($compilationResult); + $expectedResponse = new Config(); $expectedResponse->setName($name2); - $expectedResponse->setResolvedCompilationResult($resolvedCompilationResult); + $expectedResponse->setDefaultKmsKeyName($defaultKmsKeyName); $expectedResponse->setInternalMetadata($internalMetadata); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $gapicClient->workflowInvocationName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKFLOW_INVOCATION]' - ); - $request = (new GetWorkflowInvocationRequest())->setName($formattedName); - $response = $gapicClient->getWorkflowInvocation($request); + $formattedName = $gapicClient->configName('[PROJECT]', '[LOCATION]'); + $request = (new GetConfigRequest())->setName($formattedName); + $response = $gapicClient->getConfig($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/GetWorkflowInvocation', $actualFuncCall); + $this->assertSame('/google.cloud.dataform.v1.Dataform/GetConfig', $actualFuncCall); $actualValue = $actualRequestObject->getName(); $this->assertProtobufEquals($formattedName, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function getWorkflowInvocationExceptionTest() + public function getConfigExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -2105,15 +2362,10 @@ public function getWorkflowInvocationExceptionTest() ); $transport->addResponse(null, $status); // Mock request - $formattedName = $gapicClient->workflowInvocationName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKFLOW_INVOCATION]' - ); - $request = (new GetWorkflowInvocationRequest())->setName($formattedName); + $formattedName = $gapicClient->configName('[PROJECT]', '[LOCATION]'); + $request = (new GetConfigRequest())->setName($formattedName); try { - $gapicClient->getWorkflowInvocation($request); + $gapicClient->getConfig($request); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -2126,7 +2378,7 @@ public function getWorkflowInvocationExceptionTest() } /** @test */ - public function getWorkspaceTest() + public function getFolderTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -2135,28 +2387,36 @@ public function getWorkspaceTest() $this->assertTrue($transport->isExhausted()); // Mock response $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $containingFolder = 'containingFolder2137746239'; + $teamFolderName = 'teamFolderName-1375688486'; $internalMetadata = 'internalMetadata-1087755663'; - $expectedResponse = new Workspace(); + $creatorIamPrincipal = 'creatorIamPrincipal866086897'; + $expectedResponse = new Folder(); $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setContainingFolder($containingFolder); + $expectedResponse->setTeamFolderName($teamFolderName); $expectedResponse->setInternalMetadata($internalMetadata); + $expectedResponse->setCreatorIamPrincipal($creatorIamPrincipal); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new GetWorkspaceRequest())->setName($formattedName); - $response = $gapicClient->getWorkspace($request); + $formattedName = $gapicClient->folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); + $request = (new GetFolderRequest())->setName($formattedName); + $response = $gapicClient->getFolder($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/GetWorkspace', $actualFuncCall); + $this->assertSame('/google.cloud.dataform.v1.Dataform/GetFolder', $actualFuncCall); $actualValue = $actualRequestObject->getName(); $this->assertProtobufEquals($formattedName, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function getWorkspaceExceptionTest() + public function getFolderExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -2177,10 +2437,10 @@ public function getWorkspaceExceptionTest() ); $transport->addResponse(null, $status); // Mock request - $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new GetWorkspaceRequest())->setName($formattedName); + $formattedName = $gapicClient->folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); + $request = (new GetFolderRequest())->setName($formattedName); try { - $gapicClient->getWorkspace($request); + $gapicClient->getFolder($request); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -2193,7 +2453,7 @@ public function getWorkspaceExceptionTest() } /** @test */ - public function installNpmPackagesTest() + public function getIamPolicyTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -2201,25 +2461,29 @@ public function installNpmPackagesTest() ]); $this->assertTrue($transport->isExhausted()); // Mock response - $expectedResponse = new InstallNpmPackagesResponse(); + $version = 351608024; + $etag = '21'; + $expectedResponse = new Policy(); + $expectedResponse->setVersion($version); + $expectedResponse->setEtag($etag); $transport->addResponse($expectedResponse); // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new InstallNpmPackagesRequest())->setWorkspace($formattedWorkspace); - $response = $gapicClient->installNpmPackages($request); + $resource = 'resource-341064690'; + $request = (new GetIamPolicyRequest())->setResource($resource); + $response = $gapicClient->getIamPolicy($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/InstallNpmPackages', $actualFuncCall); - $actualValue = $actualRequestObject->getWorkspace(); - $this->assertProtobufEquals($formattedWorkspace, $actualValue); + $this->assertSame('/google.cloud.dataform.v1.Dataform/GetIamPolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function installNpmPackagesExceptionTest() + public function getIamPolicyExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -2240,10 +2504,10 @@ public function installNpmPackagesExceptionTest() ); $transport->addResponse(null, $status); // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new InstallNpmPackagesRequest())->setWorkspace($formattedWorkspace); + $resource = 'resource-341064690'; + $request = (new GetIamPolicyRequest())->setResource($resource); try { - $gapicClient->installNpmPackages($request); + $gapicClient->getIamPolicy($request); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -2256,7 +2520,7 @@ public function installNpmPackagesExceptionTest() } /** @test */ - public function listCompilationResultsTest() + public function getReleaseConfigTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -2264,33 +2528,39 @@ public function listCompilationResultsTest() ]); $this->assertTrue($transport->isExhausted()); // Mock response - $nextPageToken = ''; - $compilationResultsElement = new CompilationResult(); - $compilationResults = [$compilationResultsElement]; - $expectedResponse = new ListCompilationResultsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setCompilationResults($compilationResults); + $name2 = 'name2-1052831874'; + $gitCommitish = 'gitCommitish-459981894'; + $cronSchedule = 'cronSchedule206244136'; + $timeZone = 'timeZone36848094'; + $releaseCompilationResult = 'releaseCompilationResult1831489873'; + $disabled = true; + $internalMetadata = 'internalMetadata-1087755663'; + $expectedResponse = new ReleaseConfig(); + $expectedResponse->setName($name2); + $expectedResponse->setGitCommitish($gitCommitish); + $expectedResponse->setCronSchedule($cronSchedule); + $expectedResponse->setTimeZone($timeZone); + $expectedResponse->setReleaseCompilationResult($releaseCompilationResult); + $expectedResponse->setDisabled($disabled); + $expectedResponse->setInternalMetadata($internalMetadata); $transport->addResponse($expectedResponse); // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ListCompilationResultsRequest())->setParent($formattedParent); - $response = $gapicClient->listCompilationResults($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getCompilationResults()[0], $resources[0]); + $formattedName = $gapicClient->releaseConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[RELEASE_CONFIG]'); + $request = (new GetReleaseConfigRequest())->setName($formattedName); + $response = $gapicClient->getReleaseConfig($request); + $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/ListCompilationResults', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertSame('/google.cloud.dataform.v1.Dataform/GetReleaseConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function listCompilationResultsExceptionTest() + public function getReleaseConfigExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -2311,10 +2581,10 @@ public function listCompilationResultsExceptionTest() ); $transport->addResponse(null, $status); // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ListCompilationResultsRequest())->setParent($formattedParent); + $formattedName = $gapicClient->releaseConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[RELEASE_CONFIG]'); + $request = (new GetReleaseConfigRequest())->setName($formattedName); try { - $gapicClient->listCompilationResults($request); + $gapicClient->getReleaseConfig($request); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -2327,7 +2597,7 @@ public function listCompilationResultsExceptionTest() } /** @test */ - public function listReleaseConfigsTest() + public function getRepositoryTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -2335,33 +2605,43 @@ public function listReleaseConfigsTest() ]); $this->assertTrue($transport->isExhausted()); // Mock response - $nextPageToken = ''; - $releaseConfigsElement = new ReleaseConfig(); - $releaseConfigs = [$releaseConfigsElement]; - $expectedResponse = new ListReleaseConfigsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setReleaseConfigs($releaseConfigs); + $name2 = 'name2-1052831874'; + $containingFolder = 'containingFolder2137746239'; + $teamFolderName = 'teamFolderName-1375688486'; + $displayName = 'displayName1615086568'; + $npmrcEnvironmentVariablesSecretVersion = 'npmrcEnvironmentVariablesSecretVersion-2118517056'; + $setAuthenticatedUserAdmin = true; + $serviceAccount = 'serviceAccount-1948028253'; + $kmsKeyName = 'kmsKeyName2094986649'; + $internalMetadata = 'internalMetadata-1087755663'; + $expectedResponse = new Repository(); + $expectedResponse->setName($name2); + $expectedResponse->setContainingFolder($containingFolder); + $expectedResponse->setTeamFolderName($teamFolderName); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setNpmrcEnvironmentVariablesSecretVersion($npmrcEnvironmentVariablesSecretVersion); + $expectedResponse->setSetAuthenticatedUserAdmin($setAuthenticatedUserAdmin); + $expectedResponse->setServiceAccount($serviceAccount); + $expectedResponse->setKmsKeyName($kmsKeyName); + $expectedResponse->setInternalMetadata($internalMetadata); $transport->addResponse($expectedResponse); // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ListReleaseConfigsRequest())->setParent($formattedParent); - $response = $gapicClient->listReleaseConfigs($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getReleaseConfigs()[0], $resources[0]); + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new GetRepositoryRequest())->setName($formattedName); + $response = $gapicClient->getRepository($request); + $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/ListReleaseConfigs', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertSame('/google.cloud.dataform.v1.Dataform/GetRepository', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function listReleaseConfigsExceptionTest() + public function getRepositoryExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -2382,10 +2662,10 @@ public function listReleaseConfigsExceptionTest() ); $transport->addResponse(null, $status); // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ListReleaseConfigsRequest())->setParent($formattedParent); + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new GetRepositoryRequest())->setName($formattedName); try { - $gapicClient->listReleaseConfigs($request); + $gapicClient->getRepository($request); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -2398,7 +2678,7 @@ public function listReleaseConfigsExceptionTest() } /** @test */ - public function listRepositoriesTest() + public function getTeamFolderTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -2406,33 +2686,33 @@ public function listRepositoriesTest() ]); $this->assertTrue($transport->isExhausted()); // Mock response - $nextPageToken = ''; - $repositoriesElement = new Repository(); - $repositories = [$repositoriesElement]; - $expectedResponse = new ListRepositoriesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setRepositories($repositories); + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $internalMetadata = 'internalMetadata-1087755663'; + $creatorIamPrincipal = 'creatorIamPrincipal866086897'; + $expectedResponse = new TeamFolder(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setInternalMetadata($internalMetadata); + $expectedResponse->setCreatorIamPrincipal($creatorIamPrincipal); $transport->addResponse($expectedResponse); // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListRepositoriesRequest())->setParent($formattedParent); - $response = $gapicClient->listRepositories($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getRepositories()[0], $resources[0]); + $formattedName = $gapicClient->teamFolderName('[PROJECT]', '[LOCATION]', '[TEAM_FOLDER]'); + $request = (new GetTeamFolderRequest())->setName($formattedName); + $response = $gapicClient->getTeamFolder($request); + $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/ListRepositories', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertSame('/google.cloud.dataform.v1.Dataform/GetTeamFolder', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function listRepositoriesExceptionTest() + public function getTeamFolderExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -2453,10 +2733,10 @@ public function listRepositoriesExceptionTest() ); $transport->addResponse(null, $status); // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListRepositoriesRequest())->setParent($formattedParent); + $formattedName = $gapicClient->teamFolderName('[PROJECT]', '[LOCATION]', '[TEAM_FOLDER]'); + $request = (new GetTeamFolderRequest())->setName($formattedName); try { - $gapicClient->listRepositories($request); + $gapicClient->getTeamFolder($request); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -2469,7 +2749,7 @@ public function listRepositoriesExceptionTest() } /** @test */ - public function listWorkflowConfigsTest() + public function getWorkflowConfigTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -2477,7 +2757,518 @@ public function listWorkflowConfigsTest() ]); $this->assertTrue($transport->isExhausted()); // Mock response - $nextPageToken = ''; + $name2 = 'name2-1052831874'; + $releaseConfig = 'releaseConfig582587002'; + $cronSchedule = 'cronSchedule206244136'; + $timeZone = 'timeZone36848094'; + $disabled = true; + $internalMetadata = 'internalMetadata-1087755663'; + $expectedResponse = new WorkflowConfig(); + $expectedResponse->setName($name2); + $expectedResponse->setReleaseConfig($releaseConfig); + $expectedResponse->setCronSchedule($cronSchedule); + $expectedResponse->setTimeZone($timeZone); + $expectedResponse->setDisabled($disabled); + $expectedResponse->setInternalMetadata($internalMetadata); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->workflowConfigName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKFLOW_CONFIG]' + ); + $request = (new GetWorkflowConfigRequest())->setName($formattedName); + $response = $gapicClient->getWorkflowConfig($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/GetWorkflowConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getWorkflowConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->workflowConfigName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKFLOW_CONFIG]' + ); + $request = (new GetWorkflowConfigRequest())->setName($formattedName); + try { + $gapicClient->getWorkflowConfig($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getWorkflowInvocationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $compilationResult = 'compilationResult-2035984871'; + $name2 = 'name2-1052831874'; + $resolvedCompilationResult = 'resolvedCompilationResult-2110280256'; + $internalMetadata = 'internalMetadata-1087755663'; + $expectedResponse = new WorkflowInvocation(); + $expectedResponse->setCompilationResult($compilationResult); + $expectedResponse->setName($name2); + $expectedResponse->setResolvedCompilationResult($resolvedCompilationResult); + $expectedResponse->setInternalMetadata($internalMetadata); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->workflowInvocationName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKFLOW_INVOCATION]' + ); + $request = (new GetWorkflowInvocationRequest())->setName($formattedName); + $response = $gapicClient->getWorkflowInvocation($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/GetWorkflowInvocation', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getWorkflowInvocationExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->workflowInvocationName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKFLOW_INVOCATION]' + ); + $request = (new GetWorkflowInvocationRequest())->setName($formattedName); + try { + $gapicClient->getWorkflowInvocation($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getWorkspaceTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $internalMetadata = 'internalMetadata-1087755663'; + $disableMoves = false; + $expectedResponse = new Workspace(); + $expectedResponse->setName($name2); + $expectedResponse->setInternalMetadata($internalMetadata); + $expectedResponse->setDisableMoves($disableMoves); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new GetWorkspaceRequest())->setName($formattedName); + $response = $gapicClient->getWorkspace($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/GetWorkspace', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getWorkspaceExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new GetWorkspaceRequest())->setName($formattedName); + try { + $gapicClient->getWorkspace($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function installNpmPackagesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new InstallNpmPackagesResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new InstallNpmPackagesRequest())->setWorkspace($formattedWorkspace); + $response = $gapicClient->installNpmPackages($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/InstallNpmPackages', $actualFuncCall); + $actualValue = $actualRequestObject->getWorkspace(); + $this->assertProtobufEquals($formattedWorkspace, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function installNpmPackagesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new InstallNpmPackagesRequest())->setWorkspace($formattedWorkspace); + try { + $gapicClient->installNpmPackages($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCompilationResultsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $compilationResultsElement = new CompilationResult(); + $compilationResults = [$compilationResultsElement]; + $expectedResponse = new ListCompilationResultsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setCompilationResults($compilationResults); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new ListCompilationResultsRequest())->setParent($formattedParent); + $response = $gapicClient->listCompilationResults($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getCompilationResults()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/ListCompilationResults', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCompilationResultsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new ListCompilationResultsRequest())->setParent($formattedParent); + try { + $gapicClient->listCompilationResults($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listReleaseConfigsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $releaseConfigsElement = new ReleaseConfig(); + $releaseConfigs = [$releaseConfigsElement]; + $expectedResponse = new ListReleaseConfigsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setReleaseConfigs($releaseConfigs); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new ListReleaseConfigsRequest())->setParent($formattedParent); + $response = $gapicClient->listReleaseConfigs($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getReleaseConfigs()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/ListReleaseConfigs', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listReleaseConfigsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new ListReleaseConfigsRequest())->setParent($formattedParent); + try { + $gapicClient->listReleaseConfigs($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listRepositoriesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $repositoriesElement = new Repository(); + $repositories = [$repositoriesElement]; + $expectedResponse = new ListRepositoriesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setRepositories($repositories); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListRepositoriesRequest())->setParent($formattedParent); + $response = $gapicClient->listRepositories($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getRepositories()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/ListRepositories', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listRepositoriesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListRepositoriesRequest())->setParent($formattedParent); + try { + $gapicClient->listRepositories($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listWorkflowConfigsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; $workflowConfigsElement = new WorkflowConfig(); $workflowConfigs = [$workflowConfigsElement]; $expectedResponse = new ListWorkflowConfigsResponse(); @@ -2485,25 +3276,702 @@ public function listWorkflowConfigsTest() $expectedResponse->setWorkflowConfigs($workflowConfigs); $transport->addResponse($expectedResponse); // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ListWorkflowConfigsRequest())->setParent($formattedParent); - $response = $gapicClient->listWorkflowConfigs($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getWorkflowConfigs()[0], $resources[0]); + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new ListWorkflowConfigsRequest())->setParent($formattedParent); + $response = $gapicClient->listWorkflowConfigs($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getWorkflowConfigs()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/ListWorkflowConfigs', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listWorkflowConfigsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new ListWorkflowConfigsRequest())->setParent($formattedParent); + try { + $gapicClient->listWorkflowConfigs($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listWorkflowInvocationsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $workflowInvocationsElement = new WorkflowInvocation(); + $workflowInvocations = [$workflowInvocationsElement]; + $expectedResponse = new ListWorkflowInvocationsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setWorkflowInvocations($workflowInvocations); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new ListWorkflowInvocationsRequest())->setParent($formattedParent); + $response = $gapicClient->listWorkflowInvocations($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getWorkflowInvocations()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/ListWorkflowInvocations', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listWorkflowInvocationsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new ListWorkflowInvocationsRequest())->setParent($formattedParent); + try { + $gapicClient->listWorkflowInvocations($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listWorkspacesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $workspacesElement = new Workspace(); + $workspaces = [$workspacesElement]; + $expectedResponse = new ListWorkspacesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setWorkspaces($workspaces); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new ListWorkspacesRequest())->setParent($formattedParent); + $response = $gapicClient->listWorkspaces($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getWorkspaces()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/ListWorkspaces', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listWorkspacesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new ListWorkspacesRequest())->setParent($formattedParent); + try { + $gapicClient->listWorkspaces($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function makeDirectoryTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new MakeDirectoryResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $path = 'path3433509'; + $request = (new MakeDirectoryRequest())->setWorkspace($formattedWorkspace)->setPath($path); + $response = $gapicClient->makeDirectory($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/MakeDirectory', $actualFuncCall); + $actualValue = $actualRequestObject->getWorkspace(); + $this->assertProtobufEquals($formattedWorkspace, $actualValue); + $actualValue = $actualRequestObject->getPath(); + $this->assertProtobufEquals($path, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function makeDirectoryExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $path = 'path3433509'; + $request = (new MakeDirectoryRequest())->setWorkspace($formattedWorkspace)->setPath($path); + try { + $gapicClient->makeDirectory($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function moveDirectoryTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new MoveDirectoryResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $path = 'path3433509'; + $newPath = 'newPath1377204068'; + $request = (new MoveDirectoryRequest()) + ->setWorkspace($formattedWorkspace) + ->setPath($path) + ->setNewPath($newPath); + $response = $gapicClient->moveDirectory($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/MoveDirectory', $actualFuncCall); + $actualValue = $actualRequestObject->getWorkspace(); + $this->assertProtobufEquals($formattedWorkspace, $actualValue); + $actualValue = $actualRequestObject->getPath(); + $this->assertProtobufEquals($path, $actualValue); + $actualValue = $actualRequestObject->getNewPath(); + $this->assertProtobufEquals($newPath, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function moveDirectoryExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $path = 'path3433509'; + $newPath = 'newPath1377204068'; + $request = (new MoveDirectoryRequest()) + ->setWorkspace($formattedWorkspace) + ->setPath($path) + ->setNewPath($newPath); + try { + $gapicClient->moveDirectory($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function moveFileTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new MoveFileResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $path = 'path3433509'; + $newPath = 'newPath1377204068'; + $request = (new MoveFileRequest()) + ->setWorkspace($formattedWorkspace) + ->setPath($path) + ->setNewPath($newPath); + $response = $gapicClient->moveFile($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/MoveFile', $actualFuncCall); + $actualValue = $actualRequestObject->getWorkspace(); + $this->assertProtobufEquals($formattedWorkspace, $actualValue); + $actualValue = $actualRequestObject->getPath(); + $this->assertProtobufEquals($path, $actualValue); + $actualValue = $actualRequestObject->getNewPath(); + $this->assertProtobufEquals($newPath, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function moveFileExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $path = 'path3433509'; + $newPath = 'newPath1377204068'; + $request = (new MoveFileRequest()) + ->setWorkspace($formattedWorkspace) + ->setPath($path) + ->setNewPath($newPath); + try { + $gapicClient->moveFile($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function moveFolderTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/moveFolderTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/moveFolderTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); + $request = (new MoveFolderRequest())->setName($formattedName); + $response = $gapicClient->moveFolder($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/MoveFolder', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/moveFolderTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function moveFolderExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/moveFolderTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); + $request = (new MoveFolderRequest())->setName($formattedName); + $response = $gapicClient->moveFolder($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/moveFolderTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function moveRepositoryTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/moveRepositoryTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/moveRepositoryTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new MoveRepositoryRequest())->setName($formattedName); + $response = $gapicClient->moveRepository($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/MoveRepository', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/moveRepositoryTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function moveRepositoryExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/moveRepositoryTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new MoveRepositoryRequest())->setName($formattedName); + $response = $gapicClient->moveRepository($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/moveRepositoryTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function pullGitCommitsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new PullGitCommitsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $author = new CommitAuthor(); + $authorName = 'authorName-1501539658'; + $author->setName($authorName); + $authorEmailAddress = 'authorEmailAddress-6398493'; + $author->setEmailAddress($authorEmailAddress); + $request = (new PullGitCommitsRequest())->setName($formattedName)->setAuthor($author); + $response = $gapicClient->pullGitCommits($request); + $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/ListWorkflowConfigs', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertSame('/google.cloud.dataform.v1.Dataform/PullGitCommits', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualRequestObject->getAuthor(); + $this->assertProtobufEquals($author, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function listWorkflowConfigsExceptionTest() + public function pullGitCommitsExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -2524,10 +3992,15 @@ public function listWorkflowConfigsExceptionTest() ); $transport->addResponse(null, $status); // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ListWorkflowConfigsRequest())->setParent($formattedParent); + $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $author = new CommitAuthor(); + $authorName = 'authorName-1501539658'; + $author->setName($authorName); + $authorEmailAddress = 'authorEmailAddress-6398493'; + $author->setEmailAddress($authorEmailAddress); + $request = (new PullGitCommitsRequest())->setName($formattedName)->setAuthor($author); try { - $gapicClient->listWorkflowConfigs($request); + $gapicClient->pullGitCommits($request); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -2540,7 +4013,7 @@ public function listWorkflowConfigsExceptionTest() } /** @test */ - public function listWorkflowInvocationsTest() + public function pushGitCommitsTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -2548,33 +4021,25 @@ public function listWorkflowInvocationsTest() ]); $this->assertTrue($transport->isExhausted()); // Mock response - $nextPageToken = ''; - $workflowInvocationsElement = new WorkflowInvocation(); - $workflowInvocations = [$workflowInvocationsElement]; - $expectedResponse = new ListWorkflowInvocationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setWorkflowInvocations($workflowInvocations); + $expectedResponse = new PushGitCommitsResponse(); $transport->addResponse($expectedResponse); // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ListWorkflowInvocationsRequest())->setParent($formattedParent); - $response = $gapicClient->listWorkflowInvocations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getWorkflowInvocations()[0], $resources[0]); + $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new PushGitCommitsRequest())->setName($formattedName); + $response = $gapicClient->pushGitCommits($request); + $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/ListWorkflowInvocations', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertSame('/google.cloud.dataform.v1.Dataform/PushGitCommits', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function listWorkflowInvocationsExceptionTest() + public function pushGitCommitsExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -2595,10 +4060,10 @@ public function listWorkflowInvocationsExceptionTest() ); $transport->addResponse(null, $status); // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ListWorkflowInvocationsRequest())->setParent($formattedParent); + $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new PushGitCommitsRequest())->setName($formattedName); try { - $gapicClient->listWorkflowInvocations($request); + $gapicClient->pushGitCommits($request); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -2611,7 +4076,7 @@ public function listWorkflowInvocationsExceptionTest() } /** @test */ - public function listWorkspacesTest() + public function queryCompilationResultActionsTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -2620,32 +4085,37 @@ public function listWorkspacesTest() $this->assertTrue($transport->isExhausted()); // Mock response $nextPageToken = ''; - $workspacesElement = new Workspace(); - $workspaces = [$workspacesElement]; - $expectedResponse = new ListWorkspacesResponse(); + $compilationResultActionsElement = new CompilationResultAction(); + $compilationResultActions = [$compilationResultActionsElement]; + $expectedResponse = new QueryCompilationResultActionsResponse(); $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setWorkspaces($workspaces); + $expectedResponse->setCompilationResultActions($compilationResultActions); $transport->addResponse($expectedResponse); // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ListWorkspacesRequest())->setParent($formattedParent); - $response = $gapicClient->listWorkspaces($request); + $formattedName = $gapicClient->compilationResultName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[COMPILATION_RESULT]' + ); + $request = (new QueryCompilationResultActionsRequest())->setName($formattedName); + $response = $gapicClient->queryCompilationResultActions($request); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getWorkspaces()[0], $resources[0]); + $this->assertEquals($expectedResponse->getCompilationResultActions()[0], $resources[0]); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/ListWorkspaces', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertSame('/google.cloud.dataform.v1.Dataform/QueryCompilationResultActions', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function listWorkspacesExceptionTest() + public function queryCompilationResultActionsExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -2666,10 +4136,15 @@ public function listWorkspacesExceptionTest() ); $transport->addResponse(null, $status); // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ListWorkspacesRequest())->setParent($formattedParent); + $formattedName = $gapicClient->compilationResultName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[COMPILATION_RESULT]' + ); + $request = (new QueryCompilationResultActionsRequest())->setName($formattedName); try { - $gapicClient->listWorkspaces($request); + $gapicClient->queryCompilationResultActions($request); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -2682,7 +4157,7 @@ public function listWorkspacesExceptionTest() } /** @test */ - public function makeDirectoryTest() + public function queryDirectoryContentsTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -2690,28 +4165,33 @@ public function makeDirectoryTest() ]); $this->assertTrue($transport->isExhausted()); // Mock response - $expectedResponse = new MakeDirectoryResponse(); + $nextPageToken = ''; + $directoryEntriesElement = new DirectoryEntry(); + $directoryEntries = [$directoryEntriesElement]; + $expectedResponse = new QueryDirectoryContentsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setDirectoryEntries($directoryEntries); $transport->addResponse($expectedResponse); // Mock request $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $path = 'path3433509'; - $request = (new MakeDirectoryRequest())->setWorkspace($formattedWorkspace)->setPath($path); - $response = $gapicClient->makeDirectory($request); - $this->assertEquals($expectedResponse, $response); + $request = (new QueryDirectoryContentsRequest())->setWorkspace($formattedWorkspace); + $response = $gapicClient->queryDirectoryContents($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getDirectoryEntries()[0], $resources[0]); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/MakeDirectory', $actualFuncCall); + $this->assertSame('/google.cloud.dataform.v1.Dataform/QueryDirectoryContents', $actualFuncCall); $actualValue = $actualRequestObject->getWorkspace(); $this->assertProtobufEquals($formattedWorkspace, $actualValue); - $actualValue = $actualRequestObject->getPath(); - $this->assertProtobufEquals($path, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function makeDirectoryExceptionTest() + public function queryDirectoryContentsExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -2733,10 +4213,9 @@ public function makeDirectoryExceptionTest() $transport->addResponse(null, $status); // Mock request $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $path = 'path3433509'; - $request = (new MakeDirectoryRequest())->setWorkspace($formattedWorkspace)->setPath($path); + $request = (new QueryDirectoryContentsRequest())->setWorkspace($formattedWorkspace); try { - $gapicClient->makeDirectory($request); + $gapicClient->queryDirectoryContents($request); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -2749,7 +4228,7 @@ public function makeDirectoryExceptionTest() } /** @test */ - public function moveDirectoryTest() + public function queryFolderContentsTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -2757,34 +4236,104 @@ public function moveDirectoryTest() ]); $this->assertTrue($transport->isExhausted()); // Mock response - $expectedResponse = new MoveDirectoryResponse(); + $nextPageToken = ''; + $entriesElement = new FolderContentsEntry(); + $entries = [$entriesElement]; + $expectedResponse = new QueryFolderContentsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setEntries($entries); $transport->addResponse($expectedResponse); // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $path = 'path3433509'; - $newPath = 'newPath1377204068'; - $request = (new MoveDirectoryRequest()) - ->setWorkspace($formattedWorkspace) - ->setPath($path) - ->setNewPath($newPath); - $response = $gapicClient->moveDirectory($request); - $this->assertEquals($expectedResponse, $response); + $formattedFolder = $gapicClient->folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); + $request = (new QueryFolderContentsRequest())->setFolder($formattedFolder); + $response = $gapicClient->queryFolderContents($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getEntries()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/QueryFolderContents', $actualFuncCall); + $actualValue = $actualRequestObject->getFolder(); + $this->assertProtobufEquals($formattedFolder, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function queryFolderContentsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedFolder = $gapicClient->folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); + $request = (new QueryFolderContentsRequest())->setFolder($formattedFolder); + try { + $gapicClient->queryFolderContents($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function queryRepositoryDirectoryContentsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $directoryEntriesElement = new DirectoryEntry(); + $directoryEntries = [$directoryEntriesElement]; + $expectedResponse = new QueryRepositoryDirectoryContentsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setDirectoryEntries($directoryEntries); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new QueryRepositoryDirectoryContentsRequest())->setName($formattedName); + $response = $gapicClient->queryRepositoryDirectoryContents($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getDirectoryEntries()[0], $resources[0]); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/MoveDirectory', $actualFuncCall); - $actualValue = $actualRequestObject->getWorkspace(); - $this->assertProtobufEquals($formattedWorkspace, $actualValue); - $actualValue = $actualRequestObject->getPath(); - $this->assertProtobufEquals($path, $actualValue); - $actualValue = $actualRequestObject->getNewPath(); - $this->assertProtobufEquals($newPath, $actualValue); + $this->assertSame('/google.cloud.dataform.v1.Dataform/QueryRepositoryDirectoryContents', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function moveDirectoryExceptionTest() + public function queryRepositoryDirectoryContentsExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -2805,15 +4354,10 @@ public function moveDirectoryExceptionTest() ); $transport->addResponse(null, $status); // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $path = 'path3433509'; - $newPath = 'newPath1377204068'; - $request = (new MoveDirectoryRequest()) - ->setWorkspace($formattedWorkspace) - ->setPath($path) - ->setNewPath($newPath); + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $request = (new QueryRepositoryDirectoryContentsRequest())->setName($formattedName); try { - $gapicClient->moveDirectory($request); + $gapicClient->queryRepositoryDirectoryContents($request); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -2826,7 +4370,7 @@ public function moveDirectoryExceptionTest() } /** @test */ - public function moveFileTest() + public function queryTeamFolderContentsTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -2834,34 +4378,33 @@ public function moveFileTest() ]); $this->assertTrue($transport->isExhausted()); // Mock response - $expectedResponse = new MoveFileResponse(); + $nextPageToken = ''; + $entriesElement = new TeamFolderContentsEntry(); + $entries = [$entriesElement]; + $expectedResponse = new QueryTeamFolderContentsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setEntries($entries); $transport->addResponse($expectedResponse); // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $path = 'path3433509'; - $newPath = 'newPath1377204068'; - $request = (new MoveFileRequest()) - ->setWorkspace($formattedWorkspace) - ->setPath($path) - ->setNewPath($newPath); - $response = $gapicClient->moveFile($request); - $this->assertEquals($expectedResponse, $response); + $formattedTeamFolder = $gapicClient->teamFolderName('[PROJECT]', '[LOCATION]', '[TEAM_FOLDER]'); + $request = (new QueryTeamFolderContentsRequest())->setTeamFolder($formattedTeamFolder); + $response = $gapicClient->queryTeamFolderContents($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getEntries()[0], $resources[0]); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/MoveFile', $actualFuncCall); - $actualValue = $actualRequestObject->getWorkspace(); - $this->assertProtobufEquals($formattedWorkspace, $actualValue); - $actualValue = $actualRequestObject->getPath(); - $this->assertProtobufEquals($path, $actualValue); - $actualValue = $actualRequestObject->getNewPath(); - $this->assertProtobufEquals($newPath, $actualValue); + $this->assertSame('/google.cloud.dataform.v1.Dataform/QueryTeamFolderContents', $actualFuncCall); + $actualValue = $actualRequestObject->getTeamFolder(); + $this->assertProtobufEquals($formattedTeamFolder, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function moveFileExceptionTest() + public function queryTeamFolderContentsExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -2882,15 +4425,10 @@ public function moveFileExceptionTest() ); $transport->addResponse(null, $status); // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $path = 'path3433509'; - $newPath = 'newPath1377204068'; - $request = (new MoveFileRequest()) - ->setWorkspace($formattedWorkspace) - ->setPath($path) - ->setNewPath($newPath); + $formattedTeamFolder = $gapicClient->teamFolderName('[PROJECT]', '[LOCATION]', '[TEAM_FOLDER]'); + $request = (new QueryTeamFolderContentsRequest())->setTeamFolder($formattedTeamFolder); try { - $gapicClient->moveFile($request); + $gapicClient->queryTeamFolderContents($request); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -2903,7 +4441,7 @@ public function moveFileExceptionTest() } /** @test */ - public function pullGitCommitsTest() + public function queryUserRootContentsTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -2911,32 +4449,33 @@ public function pullGitCommitsTest() ]); $this->assertTrue($transport->isExhausted()); // Mock response - $expectedResponse = new PullGitCommitsResponse(); + $nextPageToken = ''; + $entriesElement = new RootContentsEntry(); + $entries = [$entriesElement]; + $expectedResponse = new QueryUserRootContentsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setEntries($entries); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $author = new CommitAuthor(); - $authorName = 'authorName-1501539658'; - $author->setName($authorName); - $authorEmailAddress = 'authorEmailAddress-6398493'; - $author->setEmailAddress($authorEmailAddress); - $request = (new PullGitCommitsRequest())->setName($formattedName)->setAuthor($author); - $response = $gapicClient->pullGitCommits($request); - $this->assertEquals($expectedResponse, $response); + $formattedLocation = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new QueryUserRootContentsRequest())->setLocation($formattedLocation); + $response = $gapicClient->queryUserRootContents($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getEntries()[0], $resources[0]); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/PullGitCommits', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualRequestObject->getAuthor(); - $this->assertProtobufEquals($author, $actualValue); + $this->assertSame('/google.cloud.dataform.v1.Dataform/QueryUserRootContents', $actualFuncCall); + $actualValue = $actualRequestObject->getLocation(); + $this->assertProtobufEquals($formattedLocation, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function pullGitCommitsExceptionTest() + public function queryUserRootContentsExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -2957,15 +4496,10 @@ public function pullGitCommitsExceptionTest() ); $transport->addResponse(null, $status); // Mock request - $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $author = new CommitAuthor(); - $authorName = 'authorName-1501539658'; - $author->setName($authorName); - $authorEmailAddress = 'authorEmailAddress-6398493'; - $author->setEmailAddress($authorEmailAddress); - $request = (new PullGitCommitsRequest())->setName($formattedName)->setAuthor($author); + $formattedLocation = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new QueryUserRootContentsRequest())->setLocation($formattedLocation); try { - $gapicClient->pullGitCommits($request); + $gapicClient->queryUserRootContents($request); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -2978,7 +4512,7 @@ public function pullGitCommitsExceptionTest() } /** @test */ - public function pushGitCommitsTest() + public function queryWorkflowInvocationActionsTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -2986,25 +4520,38 @@ public function pushGitCommitsTest() ]); $this->assertTrue($transport->isExhausted()); // Mock response - $expectedResponse = new PushGitCommitsResponse(); + $nextPageToken = ''; + $workflowInvocationActionsElement = new WorkflowInvocationAction(); + $workflowInvocationActions = [$workflowInvocationActionsElement]; + $expectedResponse = new QueryWorkflowInvocationActionsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setWorkflowInvocationActions($workflowInvocationActions); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new PushGitCommitsRequest())->setName($formattedName); - $response = $gapicClient->pushGitCommits($request); - $this->assertEquals($expectedResponse, $response); + $formattedName = $gapicClient->workflowInvocationName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKFLOW_INVOCATION]' + ); + $request = (new QueryWorkflowInvocationActionsRequest())->setName($formattedName); + $response = $gapicClient->queryWorkflowInvocationActions($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getWorkflowInvocationActions()[0], $resources[0]); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/PushGitCommits', $actualFuncCall); + $this->assertSame('/google.cloud.dataform.v1.Dataform/QueryWorkflowInvocationActions', $actualFuncCall); $actualValue = $actualRequestObject->getName(); $this->assertProtobufEquals($formattedName, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function pushGitCommitsExceptionTest() + public function queryWorkflowInvocationActionsExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -3025,10 +4572,15 @@ public function pushGitCommitsExceptionTest() ); $transport->addResponse(null, $status); // Mock request - $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new PushGitCommitsRequest())->setName($formattedName); + $formattedName = $gapicClient->workflowInvocationName( + '[PROJECT]', + '[LOCATION]', + '[REPOSITORY]', + '[WORKFLOW_INVOCATION]' + ); + $request = (new QueryWorkflowInvocationActionsRequest())->setName($formattedName); try { - $gapicClient->pushGitCommits($request); + $gapicClient->queryWorkflowInvocationActions($request); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -3041,7 +4593,7 @@ public function pushGitCommitsExceptionTest() } /** @test */ - public function queryCompilationResultActionsTest() + public function readFileTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -3049,38 +4601,30 @@ public function queryCompilationResultActionsTest() ]); $this->assertTrue($transport->isExhausted()); // Mock response - $nextPageToken = ''; - $compilationResultActionsElement = new CompilationResultAction(); - $compilationResultActions = [$compilationResultActionsElement]; - $expectedResponse = new QueryCompilationResultActionsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setCompilationResultActions($compilationResultActions); + $fileContents = '125'; + $expectedResponse = new ReadFileResponse(); + $expectedResponse->setFileContents($fileContents); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $gapicClient->compilationResultName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[COMPILATION_RESULT]' - ); - $request = (new QueryCompilationResultActionsRequest())->setName($formattedName); - $response = $gapicClient->queryCompilationResultActions($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getCompilationResultActions()[0], $resources[0]); + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $path = 'path3433509'; + $request = (new ReadFileRequest())->setWorkspace($formattedWorkspace)->setPath($path); + $response = $gapicClient->readFile($request); + $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/QueryCompilationResultActions', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertSame('/google.cloud.dataform.v1.Dataform/ReadFile', $actualFuncCall); + $actualValue = $actualRequestObject->getWorkspace(); + $this->assertProtobufEquals($formattedWorkspace, $actualValue); + $actualValue = $actualRequestObject->getPath(); + $this->assertProtobufEquals($path, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function queryCompilationResultActionsExceptionTest() + public function readFileExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -3101,15 +4645,11 @@ public function queryCompilationResultActionsExceptionTest() ); $transport->addResponse(null, $status); // Mock request - $formattedName = $gapicClient->compilationResultName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[COMPILATION_RESULT]' - ); - $request = (new QueryCompilationResultActionsRequest())->setName($formattedName); + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $path = 'path3433509'; + $request = (new ReadFileRequest())->setWorkspace($formattedWorkspace)->setPath($path); try { - $gapicClient->queryCompilationResultActions($request); + $gapicClient->readFile($request); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -3122,7 +4662,7 @@ public function queryCompilationResultActionsExceptionTest() } /** @test */ - public function queryDirectoryContentsTest() + public function readRepositoryFileTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -3130,33 +4670,30 @@ public function queryDirectoryContentsTest() ]); $this->assertTrue($transport->isExhausted()); // Mock response - $nextPageToken = ''; - $directoryEntriesElement = new DirectoryEntry(); - $directoryEntries = [$directoryEntriesElement]; - $expectedResponse = new QueryDirectoryContentsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDirectoryEntries($directoryEntries); + $contents = '26'; + $expectedResponse = new ReadRepositoryFileResponse(); + $expectedResponse->setContents($contents); $transport->addResponse($expectedResponse); // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new QueryDirectoryContentsRequest())->setWorkspace($formattedWorkspace); - $response = $gapicClient->queryDirectoryContents($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDirectoryEntries()[0], $resources[0]); + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $path = 'path3433509'; + $request = (new ReadRepositoryFileRequest())->setName($formattedName)->setPath($path); + $response = $gapicClient->readRepositoryFile($request); + $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/QueryDirectoryContents', $actualFuncCall); - $actualValue = $actualRequestObject->getWorkspace(); - $this->assertProtobufEquals($formattedWorkspace, $actualValue); + $this->assertSame('/google.cloud.dataform.v1.Dataform/ReadRepositoryFile', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualRequestObject->getPath(); + $this->assertProtobufEquals($path, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function queryDirectoryContentsExceptionTest() + public function readRepositoryFileExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -3177,10 +4714,11 @@ public function queryDirectoryContentsExceptionTest() ); $transport->addResponse(null, $status); // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new QueryDirectoryContentsRequest())->setWorkspace($formattedWorkspace); + $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); + $path = 'path3433509'; + $request = (new ReadRepositoryFileRequest())->setName($formattedName)->setPath($path); try { - $gapicClient->queryDirectoryContents($request); + $gapicClient->readRepositoryFile($request); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -3193,7 +4731,7 @@ public function queryDirectoryContentsExceptionTest() } /** @test */ - public function queryRepositoryDirectoryContentsTest() + public function removeDirectoryTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -3201,33 +4739,28 @@ public function queryRepositoryDirectoryContentsTest() ]); $this->assertTrue($transport->isExhausted()); // Mock response - $nextPageToken = ''; - $directoryEntriesElement = new DirectoryEntry(); - $directoryEntries = [$directoryEntriesElement]; - $expectedResponse = new QueryRepositoryDirectoryContentsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDirectoryEntries($directoryEntries); + $expectedResponse = new RemoveDirectoryResponse(); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new QueryRepositoryDirectoryContentsRequest())->setName($formattedName); - $response = $gapicClient->queryRepositoryDirectoryContents($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDirectoryEntries()[0], $resources[0]); + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $path = 'path3433509'; + $request = (new RemoveDirectoryRequest())->setWorkspace($formattedWorkspace)->setPath($path); + $response = $gapicClient->removeDirectory($request); + $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/QueryRepositoryDirectoryContents', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertSame('/google.cloud.dataform.v1.Dataform/RemoveDirectory', $actualFuncCall); + $actualValue = $actualRequestObject->getWorkspace(); + $this->assertProtobufEquals($formattedWorkspace, $actualValue); + $actualValue = $actualRequestObject->getPath(); + $this->assertProtobufEquals($path, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function queryRepositoryDirectoryContentsExceptionTest() + public function removeDirectoryExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -3248,10 +4781,11 @@ public function queryRepositoryDirectoryContentsExceptionTest() ); $transport->addResponse(null, $status); // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new QueryRepositoryDirectoryContentsRequest())->setName($formattedName); + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $path = 'path3433509'; + $request = (new RemoveDirectoryRequest())->setWorkspace($formattedWorkspace)->setPath($path); try { - $gapicClient->queryRepositoryDirectoryContents($request); + $gapicClient->removeDirectory($request); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -3264,7 +4798,7 @@ public function queryRepositoryDirectoryContentsExceptionTest() } /** @test */ - public function queryWorkflowInvocationActionsTest() + public function removeFileTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -3272,38 +4806,28 @@ public function queryWorkflowInvocationActionsTest() ]); $this->assertTrue($transport->isExhausted()); // Mock response - $nextPageToken = ''; - $workflowInvocationActionsElement = new WorkflowInvocationAction(); - $workflowInvocationActions = [$workflowInvocationActionsElement]; - $expectedResponse = new QueryWorkflowInvocationActionsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setWorkflowInvocationActions($workflowInvocationActions); + $expectedResponse = new RemoveFileResponse(); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $gapicClient->workflowInvocationName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKFLOW_INVOCATION]' - ); - $request = (new QueryWorkflowInvocationActionsRequest())->setName($formattedName); - $response = $gapicClient->queryWorkflowInvocationActions($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getWorkflowInvocationActions()[0], $resources[0]); + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $path = 'path3433509'; + $request = (new RemoveFileRequest())->setWorkspace($formattedWorkspace)->setPath($path); + $response = $gapicClient->removeFile($request); + $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/QueryWorkflowInvocationActions', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertSame('/google.cloud.dataform.v1.Dataform/RemoveFile', $actualFuncCall); + $actualValue = $actualRequestObject->getWorkspace(); + $this->assertProtobufEquals($formattedWorkspace, $actualValue); + $actualValue = $actualRequestObject->getPath(); + $this->assertProtobufEquals($path, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function queryWorkflowInvocationActionsExceptionTest() + public function removeFileExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -3324,15 +4848,11 @@ public function queryWorkflowInvocationActionsExceptionTest() ); $transport->addResponse(null, $status); // Mock request - $formattedName = $gapicClient->workflowInvocationName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKFLOW_INVOCATION]' - ); - $request = (new QueryWorkflowInvocationActionsRequest())->setName($formattedName); + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $path = 'path3433509'; + $request = (new RemoveFileRequest())->setWorkspace($formattedWorkspace)->setPath($path); try { - $gapicClient->queryWorkflowInvocationActions($request); + $gapicClient->removeFile($request); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -3345,7 +4865,7 @@ public function queryWorkflowInvocationActionsExceptionTest() } /** @test */ - public function readFileTest() + public function resetWorkspaceChangesTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -3353,30 +4873,25 @@ public function readFileTest() ]); $this->assertTrue($transport->isExhausted()); // Mock response - $fileContents = '125'; - $expectedResponse = new ReadFileResponse(); - $expectedResponse->setFileContents($fileContents); + $expectedResponse = new ResetWorkspaceChangesResponse(); $transport->addResponse($expectedResponse); // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $path = 'path3433509'; - $request = (new ReadFileRequest())->setWorkspace($formattedWorkspace)->setPath($path); - $response = $gapicClient->readFile($request); + $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new ResetWorkspaceChangesRequest())->setName($formattedName); + $response = $gapicClient->resetWorkspaceChanges($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/ReadFile', $actualFuncCall); - $actualValue = $actualRequestObject->getWorkspace(); - $this->assertProtobufEquals($formattedWorkspace, $actualValue); - $actualValue = $actualRequestObject->getPath(); - $this->assertProtobufEquals($path, $actualValue); + $this->assertSame('/google.cloud.dataform.v1.Dataform/ResetWorkspaceChanges', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function readFileExceptionTest() + public function resetWorkspaceChangesExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -3397,11 +4912,10 @@ public function readFileExceptionTest() ); $transport->addResponse(null, $status); // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $path = 'path3433509'; - $request = (new ReadFileRequest())->setWorkspace($formattedWorkspace)->setPath($path); + $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new ResetWorkspaceChangesRequest())->setName($formattedName); try { - $gapicClient->readFile($request); + $gapicClient->resetWorkspaceChanges($request); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -3414,7 +4928,7 @@ public function readFileExceptionTest() } /** @test */ - public function readRepositoryFileTest() + public function searchFilesTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -3422,30 +4936,33 @@ public function readRepositoryFileTest() ]); $this->assertTrue($transport->isExhausted()); // Mock response - $contents = '26'; - $expectedResponse = new ReadRepositoryFileResponse(); - $expectedResponse->setContents($contents); + $nextPageToken = ''; + $searchResultsElement = new SearchResult(); + $searchResults = [$searchResultsElement]; + $expectedResponse = new SearchFilesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setSearchResults($searchResults); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $path = 'path3433509'; - $request = (new ReadRepositoryFileRequest())->setName($formattedName)->setPath($path); - $response = $gapicClient->readRepositoryFile($request); - $this->assertEquals($expectedResponse, $response); + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new SearchFilesRequest())->setWorkspace($formattedWorkspace); + $response = $gapicClient->searchFiles($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getSearchResults()[0], $resources[0]); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/ReadRepositoryFile', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualRequestObject->getPath(); - $this->assertProtobufEquals($path, $actualValue); + $this->assertSame('/google.cloud.dataform.v1.Dataform/SearchFiles', $actualFuncCall); + $actualValue = $actualRequestObject->getWorkspace(); + $this->assertProtobufEquals($formattedWorkspace, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function readRepositoryFileExceptionTest() + public function searchFilesExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -3466,11 +4983,10 @@ public function readRepositoryFileExceptionTest() ); $transport->addResponse(null, $status); // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $path = 'path3433509'; - $request = (new ReadRepositoryFileRequest())->setName($formattedName)->setPath($path); + $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); + $request = (new SearchFilesRequest())->setWorkspace($formattedWorkspace); try { - $gapicClient->readRepositoryFile($request); + $gapicClient->searchFiles($request); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -3483,7 +4999,7 @@ public function readRepositoryFileExceptionTest() } /** @test */ - public function removeDirectoryTest() + public function searchTeamFoldersTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -3491,28 +5007,33 @@ public function removeDirectoryTest() ]); $this->assertTrue($transport->isExhausted()); // Mock response - $expectedResponse = new RemoveDirectoryResponse(); + $nextPageToken = ''; + $resultsElement = new TeamFolderSearchResult(); + $results = [$resultsElement]; + $expectedResponse = new SearchTeamFoldersResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setResults($results); $transport->addResponse($expectedResponse); // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $path = 'path3433509'; - $request = (new RemoveDirectoryRequest())->setWorkspace($formattedWorkspace)->setPath($path); - $response = $gapicClient->removeDirectory($request); - $this->assertEquals($expectedResponse, $response); + $formattedLocation = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new SearchTeamFoldersRequest())->setLocation($formattedLocation); + $response = $gapicClient->searchTeamFolders($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getResults()[0], $resources[0]); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/RemoveDirectory', $actualFuncCall); - $actualValue = $actualRequestObject->getWorkspace(); - $this->assertProtobufEquals($formattedWorkspace, $actualValue); - $actualValue = $actualRequestObject->getPath(); - $this->assertProtobufEquals($path, $actualValue); + $this->assertSame('/google.cloud.dataform.v1.Dataform/SearchTeamFolders', $actualFuncCall); + $actualValue = $actualRequestObject->getLocation(); + $this->assertProtobufEquals($formattedLocation, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function removeDirectoryExceptionTest() + public function searchTeamFoldersExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -3533,11 +5054,10 @@ public function removeDirectoryExceptionTest() ); $transport->addResponse(null, $status); // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $path = 'path3433509'; - $request = (new RemoveDirectoryRequest())->setWorkspace($formattedWorkspace)->setPath($path); + $formattedLocation = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new SearchTeamFoldersRequest())->setLocation($formattedLocation); try { - $gapicClient->removeDirectory($request); + $gapicClient->searchTeamFolders($request); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -3550,7 +5070,7 @@ public function removeDirectoryExceptionTest() } /** @test */ - public function removeFileTest() + public function setIamPolicyTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -3558,28 +5078,32 @@ public function removeFileTest() ]); $this->assertTrue($transport->isExhausted()); // Mock response - $expectedResponse = new RemoveFileResponse(); + $version = 351608024; + $etag = '21'; + $expectedResponse = new Policy(); + $expectedResponse->setVersion($version); + $expectedResponse->setEtag($etag); $transport->addResponse($expectedResponse); // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $path = 'path3433509'; - $request = (new RemoveFileRequest())->setWorkspace($formattedWorkspace)->setPath($path); - $response = $gapicClient->removeFile($request); + $resource = 'resource-341064690'; + $policy = new Policy(); + $request = (new SetIamPolicyRequest())->setResource($resource)->setPolicy($policy); + $response = $gapicClient->setIamPolicy($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/RemoveFile', $actualFuncCall); - $actualValue = $actualRequestObject->getWorkspace(); - $this->assertProtobufEquals($formattedWorkspace, $actualValue); - $actualValue = $actualRequestObject->getPath(); - $this->assertProtobufEquals($path, $actualValue); + $this->assertSame('/google.cloud.dataform.v1.Dataform/SetIamPolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $actualValue = $actualRequestObject->getPolicy(); + $this->assertProtobufEquals($policy, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function removeFileExceptionTest() + public function setIamPolicyExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -3600,11 +5124,11 @@ public function removeFileExceptionTest() ); $transport->addResponse(null, $status); // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $path = 'path3433509'; - $request = (new RemoveFileRequest())->setWorkspace($formattedWorkspace)->setPath($path); + $resource = 'resource-341064690'; + $policy = new Policy(); + $request = (new SetIamPolicyRequest())->setResource($resource)->setPolicy($policy); try { - $gapicClient->removeFile($request); + $gapicClient->setIamPolicy($request); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -3617,7 +5141,7 @@ public function removeFileExceptionTest() } /** @test */ - public function resetWorkspaceChangesTest() + public function testIamPermissionsTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -3625,25 +5149,28 @@ public function resetWorkspaceChangesTest() ]); $this->assertTrue($transport->isExhausted()); // Mock response - $expectedResponse = new ResetWorkspaceChangesResponse(); + $expectedResponse = new TestIamPermissionsResponse(); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new ResetWorkspaceChangesRequest())->setName($formattedName); - $response = $gapicClient->resetWorkspaceChanges($request); + $resource = 'resource-341064690'; + $permissions = []; + $request = (new TestIamPermissionsRequest())->setResource($resource)->setPermissions($permissions); + $response = $gapicClient->testIamPermissions($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/ResetWorkspaceChanges', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertSame('/google.cloud.dataform.v1.Dataform/TestIamPermissions', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $actualValue = $actualRequestObject->getPermissions(); + $this->assertProtobufEquals($permissions, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function resetWorkspaceChangesExceptionTest() + public function testIamPermissionsExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -3664,10 +5191,11 @@ public function resetWorkspaceChangesExceptionTest() ); $transport->addResponse(null, $status); // Mock request - $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new ResetWorkspaceChangesRequest())->setName($formattedName); + $resource = 'resource-341064690'; + $permissions = []; + $request = (new TestIamPermissionsRequest())->setResource($resource)->setPermissions($permissions); try { - $gapicClient->resetWorkspaceChanges($request); + $gapicClient->testIamPermissions($request); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -3680,7 +5208,7 @@ public function resetWorkspaceChangesExceptionTest() } /** @test */ - public function searchFilesTest() + public function updateConfigTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -3688,33 +5216,31 @@ public function searchFilesTest() ]); $this->assertTrue($transport->isExhausted()); // Mock response - $nextPageToken = ''; - $searchResultsElement = new SearchResult(); - $searchResults = [$searchResultsElement]; - $expectedResponse = new SearchFilesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setSearchResults($searchResults); + $name = 'name3373707'; + $defaultKmsKeyName = 'defaultKmsKeyName-635012393'; + $internalMetadata = 'internalMetadata-1087755663'; + $expectedResponse = new Config(); + $expectedResponse->setName($name); + $expectedResponse->setDefaultKmsKeyName($defaultKmsKeyName); + $expectedResponse->setInternalMetadata($internalMetadata); $transport->addResponse($expectedResponse); // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new SearchFilesRequest())->setWorkspace($formattedWorkspace); - $response = $gapicClient->searchFiles($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getSearchResults()[0], $resources[0]); + $config = new Config(); + $request = (new UpdateConfigRequest())->setConfig($config); + $response = $gapicClient->updateConfig($request); + $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/SearchFiles', $actualFuncCall); - $actualValue = $actualRequestObject->getWorkspace(); - $this->assertProtobufEquals($formattedWorkspace, $actualValue); + $this->assertSame('/google.cloud.dataform.v1.Dataform/UpdateConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getConfig(); + $this->assertProtobufEquals($config, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function searchFilesExceptionTest() + public function updateConfigExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -3735,10 +5261,10 @@ public function searchFilesExceptionTest() ); $transport->addResponse(null, $status); // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new SearchFilesRequest())->setWorkspace($formattedWorkspace); + $config = new Config(); + $request = (new UpdateConfigRequest())->setConfig($config); try { - $gapicClient->searchFiles($request); + $gapicClient->updateConfig($request); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -3751,7 +5277,7 @@ public function searchFilesExceptionTest() } /** @test */ - public function updateConfigTest() + public function updateFolderTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -3760,28 +5286,38 @@ public function updateConfigTest() $this->assertTrue($transport->isExhausted()); // Mock response $name = 'name3373707'; - $defaultKmsKeyName = 'defaultKmsKeyName-635012393'; - $expectedResponse = new Config(); + $displayName = 'displayName1615086568'; + $containingFolder = 'containingFolder2137746239'; + $teamFolderName = 'teamFolderName-1375688486'; + $internalMetadata = 'internalMetadata-1087755663'; + $creatorIamPrincipal = 'creatorIamPrincipal866086897'; + $expectedResponse = new Folder(); $expectedResponse->setName($name); - $expectedResponse->setDefaultKmsKeyName($defaultKmsKeyName); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setContainingFolder($containingFolder); + $expectedResponse->setTeamFolderName($teamFolderName); + $expectedResponse->setInternalMetadata($internalMetadata); + $expectedResponse->setCreatorIamPrincipal($creatorIamPrincipal); $transport->addResponse($expectedResponse); // Mock request - $config = new Config(); - $request = (new UpdateConfigRequest())->setConfig($config); - $response = $gapicClient->updateConfig($request); + $folder = new Folder(); + $folderDisplayName = 'folderDisplayName1703145759'; + $folder->setDisplayName($folderDisplayName); + $request = (new UpdateFolderRequest())->setFolder($folder); + $response = $gapicClient->updateFolder($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/UpdateConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getConfig(); - $this->assertProtobufEquals($config, $actualValue); + $this->assertSame('/google.cloud.dataform.v1.Dataform/UpdateFolder', $actualFuncCall); + $actualValue = $actualRequestObject->getFolder(); + $this->assertProtobufEquals($folder, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function updateConfigExceptionTest() + public function updateFolderExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -3802,10 +5338,12 @@ public function updateConfigExceptionTest() ); $transport->addResponse(null, $status); // Mock request - $config = new Config(); - $request = (new UpdateConfigRequest())->setConfig($config); + $folder = new Folder(); + $folderDisplayName = 'folderDisplayName1703145759'; + $folder->setDisplayName($folderDisplayName); + $request = (new UpdateFolderRequest())->setFolder($folder); try { - $gapicClient->updateConfig($request); + $gapicClient->updateFolder($request); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -3908,6 +5446,8 @@ public function updateRepositoryTest() $this->assertTrue($transport->isExhausted()); // Mock response $name = 'name3373707'; + $containingFolder = 'containingFolder2137746239'; + $teamFolderName = 'teamFolderName-1375688486'; $displayName = 'displayName1615086568'; $npmrcEnvironmentVariablesSecretVersion = 'npmrcEnvironmentVariablesSecretVersion-2118517056'; $setAuthenticatedUserAdmin = true; @@ -3916,6 +5456,8 @@ public function updateRepositoryTest() $internalMetadata = 'internalMetadata-1087755663'; $expectedResponse = new Repository(); $expectedResponse->setName($name); + $expectedResponse->setContainingFolder($containingFolder); + $expectedResponse->setTeamFolderName($teamFolderName); $expectedResponse->setDisplayName($displayName); $expectedResponse->setNpmrcEnvironmentVariablesSecretVersion($npmrcEnvironmentVariablesSecretVersion); $expectedResponse->setSetAuthenticatedUserAdmin($setAuthenticatedUserAdmin); @@ -3975,6 +5517,81 @@ public function updateRepositoryExceptionTest() $this->assertTrue($transport->isExhausted()); } + /** @test */ + public function updateTeamFolderTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $internalMetadata = 'internalMetadata-1087755663'; + $creatorIamPrincipal = 'creatorIamPrincipal866086897'; + $expectedResponse = new TeamFolder(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setInternalMetadata($internalMetadata); + $expectedResponse->setCreatorIamPrincipal($creatorIamPrincipal); + $transport->addResponse($expectedResponse); + // Mock request + $teamFolder = new TeamFolder(); + $teamFolderDisplayName = 'teamFolderDisplayName136139842'; + $teamFolder->setDisplayName($teamFolderDisplayName); + $request = (new UpdateTeamFolderRequest())->setTeamFolder($teamFolder); + $response = $gapicClient->updateTeamFolder($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataform.v1.Dataform/UpdateTeamFolder', $actualFuncCall); + $actualValue = $actualRequestObject->getTeamFolder(); + $this->assertProtobufEquals($teamFolder, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateTeamFolderExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $teamFolder = new TeamFolder(); + $teamFolderDisplayName = 'teamFolderDisplayName136139842'; + $teamFolder->setDisplayName($teamFolderDisplayName); + $request = (new UpdateTeamFolderRequest())->setTeamFolder($teamFolder); + try { + $gapicClient->updateTeamFolder($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + /** @test */ public function updateWorkflowConfigTest() { @@ -4142,7 +5759,7 @@ public function writeFileExceptionTest() } /** @test */ - public function getLocationTest() + public function cancelOperationTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -4150,27 +5767,24 @@ public function getLocationTest() ]); $this->assertTrue($transport->isExhausted()); // Mock response - $name2 = 'name2-1052831874'; - $locationId = 'locationId552319461'; - $displayName = 'displayName1615086568'; - $expectedResponse = new Location(); - $expectedResponse->setName($name2); - $expectedResponse->setLocationId($locationId); - $expectedResponse->setDisplayName($displayName); + $expectedResponse = new GPBEmpty(); $transport->addResponse($expectedResponse); - $request = new GetLocationRequest(); - $response = $gapicClient->getLocation($request); - $this->assertEquals($expectedResponse, $response); + // Mock request + $name = 'name3373707'; + $request = (new CancelOperationRequest())->setName($name); + $gapicClient->cancelOperation($request); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/GetLocation', $actualFuncCall); + $this->assertSame('/google.longrunning.Operations/CancelOperation', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($name, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function getLocationExceptionTest() + public function cancelOperationExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -4190,9 +5804,11 @@ public function getLocationExceptionTest() JSON_PRETTY_PRINT ); $transport->addResponse(null, $status); - $request = new GetLocationRequest(); + // Mock request + $name = 'name3373707'; + $request = (new CancelOperationRequest())->setName($name); try { - $gapicClient->getLocation($request); + $gapicClient->cancelOperation($request); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -4205,7 +5821,7 @@ public function getLocationExceptionTest() } /** @test */ - public function listLocationsTest() + public function deleteOperationTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -4213,29 +5829,24 @@ public function listLocationsTest() ]); $this->assertTrue($transport->isExhausted()); // Mock response - $nextPageToken = ''; - $locationsElement = new Location(); - $locations = [$locationsElement]; - $expectedResponse = new ListLocationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setLocations($locations); + $expectedResponse = new GPBEmpty(); $transport->addResponse($expectedResponse); - $request = new ListLocationsRequest(); - $response = $gapicClient->listLocations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]); + // Mock request + $name = 'name3373707'; + $request = (new DeleteOperationRequest())->setName($name); + $gapicClient->deleteOperation($request); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall); + $this->assertSame('/google.longrunning.Operations/DeleteOperation', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($name, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function listLocationsExceptionTest() + public function deleteOperationExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -4255,9 +5866,11 @@ public function listLocationsExceptionTest() JSON_PRETTY_PRINT ); $transport->addResponse(null, $status); - $request = new ListLocationsRequest(); + // Mock request + $name = 'name3373707'; + $request = (new DeleteOperationRequest())->setName($name); try { - $gapicClient->listLocations($request); + $gapicClient->deleteOperation($request); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -4270,7 +5883,7 @@ public function listLocationsExceptionTest() } /** @test */ - public function getIamPolicyTest() + public function getOperationTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -4278,29 +5891,29 @@ public function getIamPolicyTest() ]); $this->assertTrue($transport->isExhausted()); // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); + $name2 = 'name2-1052831874'; + $done = true; + $expectedResponse = new Operation(); + $expectedResponse->setName($name2); + $expectedResponse->setDone($done); $transport->addResponse($expectedResponse); // Mock request - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest())->setResource($resource); - $response = $gapicClient->getIamPolicy($request); + $name = 'name3373707'; + $request = (new GetOperationRequest())->setName($name); + $response = $gapicClient->getOperation($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/GetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($name, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function getIamPolicyExceptionTest() + public function getOperationExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -4321,10 +5934,10 @@ public function getIamPolicyExceptionTest() ); $transport->addResponse(null, $status); // Mock request - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest())->setResource($resource); + $name = 'name3373707'; + $request = (new GetOperationRequest())->setName($name); try { - $gapicClient->getIamPolicy($request); + $gapicClient->getOperation($request); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -4337,7 +5950,7 @@ public function getIamPolicyExceptionTest() } /** @test */ - public function setIamPolicyTest() + public function listOperationsTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -4345,32 +5958,36 @@ public function setIamPolicyTest() ]); $this->assertTrue($transport->isExhausted()); // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); + $nextPageToken = ''; + $operationsElement = new Operation(); + $operations = [$operationsElement]; + $expectedResponse = new ListOperationsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setOperations($operations); $transport->addResponse($expectedResponse); // Mock request - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest())->setResource($resource)->setPolicy($policy); - $response = $gapicClient->setIamPolicy($request); - $this->assertEquals($expectedResponse, $response); + $name = 'name3373707'; + $filter = 'filter-1274492040'; + $request = (new ListOperationsRequest())->setName($name)->setFilter($filter); + $response = $gapicClient->listOperations($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getOperations()[0], $resources[0]); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/SetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPolicy(); - $this->assertProtobufEquals($policy, $actualValue); + $this->assertSame('/google.longrunning.Operations/ListOperations', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($name, $actualValue); + $actualValue = $actualRequestObject->getFilter(); + $this->assertProtobufEquals($filter, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function setIamPolicyExceptionTest() + public function listOperationsExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -4391,11 +6008,11 @@ public function setIamPolicyExceptionTest() ); $transport->addResponse(null, $status); // Mock request - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest())->setResource($resource)->setPolicy($policy); + $name = 'name3373707'; + $filter = 'filter-1274492040'; + $request = (new ListOperationsRequest())->setName($name)->setFilter($filter); try { - $gapicClient->setIamPolicy($request); + $gapicClient->listOperations($request); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -4408,7 +6025,7 @@ public function setIamPolicyExceptionTest() } /** @test */ - public function testIamPermissionsTest() + public function getLocationTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -4416,28 +6033,27 @@ public function testIamPermissionsTest() ]); $this->assertTrue($transport->isExhausted()); // Mock response - $expectedResponse = new TestIamPermissionsResponse(); + $name2 = 'name2-1052831874'; + $locationId = 'locationId552319461'; + $displayName = 'displayName1615086568'; + $expectedResponse = new Location(); + $expectedResponse->setName($name2); + $expectedResponse->setLocationId($locationId); + $expectedResponse->setDisplayName($displayName); $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $permissions = []; - $request = (new TestIamPermissionsRequest())->setResource($resource)->setPermissions($permissions); - $response = $gapicClient->testIamPermissions($request); + $request = new GetLocationRequest(); + $response = $gapicClient->getLocation($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/TestIamPermissions', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPermissions(); - $this->assertProtobufEquals($permissions, $actualValue); + $this->assertSame('/google.cloud.location.Locations/GetLocation', $actualFuncCall); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function testIamPermissionsExceptionTest() + public function getLocationExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -4457,12 +6073,74 @@ public function testIamPermissionsExceptionTest() JSON_PRETTY_PRINT ); $transport->addResponse(null, $status); - // Mock request - $resource = 'resource-341064690'; - $permissions = []; - $request = (new TestIamPermissionsRequest())->setResource($resource)->setPermissions($permissions); + $request = new GetLocationRequest(); try { - $gapicClient->testIamPermissions($request); + $gapicClient->getLocation($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listLocationsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $locationsElement = new Location(); + $locations = [$locationsElement]; + $expectedResponse = new ListLocationsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setLocations($locations); + $transport->addResponse($expectedResponse); + $request = new ListLocationsRequest(); + $response = $gapicClient->listLocations($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listLocationsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + $request = new ListLocationsRequest(); + try { + $gapicClient->listLocations($request); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { diff --git a/owl-bot-staging/Dataform/v1/proto/src/GPBMetadata/Google/Cloud/Dataform/V1/Dataform.php b/owl-bot-staging/Dataform/v1/proto/src/GPBMetadata/Google/Cloud/Dataform/V1/Dataform.php deleted file mode 100644 index 3ed042e5f9d3..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/GPBMetadata/Google/Cloud/Dataform/V1/Dataform.php +++ /dev/null @@ -1,36 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xD0\xFA\x02\x0A'google/cloud/dataform/v1/dataform.proto\x12\x18google.cloud.dataform.v1\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\x0A\x13DataEncryptionState\x12N\x0A\x14kms_key_version_name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(cloudkms.googleapis.com/CryptoKeyVersion\"\x92\x0E\x0A\x0ARepository\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12#\x0A\x11containing_folder\x18\x10 \x01(\x09B\x03\xE0A\x01H\x00\x88\x01\x01\x12\"\x0A\x10team_folder_name\x18\x12 \x01(\x09B\x03\xE0A\x03H\x01\x88\x01\x01\x124\x0A\x0Bcreate_time\x18\x0D \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x19\x0A\x0Cdisplay_name\x18\x08 \x01(\x09B\x03\xE0A\x01\x12X\x0A\x13git_remote_settings\x18\x02 \x01(\x0B26.google.cloud.dataform.v1.Repository.GitRemoteSettingsB\x03\xE0A\x01\x12f\x0A*npmrc_environment_variables_secret_version\x18\x03 \x01(\x09B2\xE0A\x01\xFAA,\x0A*secretmanager.googleapis.com/SecretVersion\x12p\x0A\x1Fworkspace_compilation_overrides\x18\x04 \x01(\x0B2B.google.cloud.dataform.v1.Repository.WorkspaceCompilationOverridesB\x03\xE0A\x01\x12E\x0A\x06labels\x18\x05 \x03(\x0B20.google.cloud.dataform.v1.Repository.LabelsEntryB\x03\xE0A\x01\x12,\x0A\x1Cset_authenticated_user_admin\x18\x09 \x01(\x08B\x06\xE0A\x01\xE0A\x04\x12\x1C\x0A\x0Fservice_account\x18\x0A \x01(\x09B\x03\xE0A\x01\x12?\x0A\x0Ckms_key_name\x18\x0B \x01(\x09B)\xE0A\x01\xFAA#\x0A!cloudkms.googleapis.com/CryptoKey\x12Q\x0A\x15data_encryption_state\x18\x0C \x01(\x0B2-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xE0A\x03\x12#\x0A\x11internal_metadata\x18\x0F \x01(\x09B\x03\xE0A\x03H\x02\x88\x01\x01\x1A\xE7\x04\x0A\x11GitRemoteSettings\x12\x10\x0A\x03url\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x1B\x0A\x0Edefault_branch\x18\x02 \x01(\x09B\x03\xE0A\x02\x12_\x0A#authentication_token_secret_version\x18\x03 \x01(\x09B2\xE0A\x01\xFAA,\x0A*secretmanager.googleapis.com/SecretVersion\x12v\x0A\x19ssh_authentication_config\x18\x05 \x01(\x0B2N.google.cloud.dataform.v1.Repository.GitRemoteSettings.SshAuthenticationConfigB\x03\xE0A\x01\x12_\x0A\x0Ctoken_status\x18\x04 \x01(\x0E2B.google.cloud.dataform.v1.Repository.GitRemoteSettings.TokenStatusB\x05\x18\x01\xE0A\x03\x1A\x94\x01\x0A\x17SshAuthenticationConfig\x12[\x0A\x1Fuser_private_key_secret_version\x18\x01 \x01(\x09B2\xE0A\x02\xFAA,\x0A*secretmanager.googleapis.com/SecretVersion\x12\x1C\x0A\x0Fhost_public_key\x18\x02 \x01(\x09B\x03\xE0A\x02\"R\x0A\x0BTokenStatus\x12\x1C\x0A\x18TOKEN_STATUS_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09NOT_FOUND\x10\x01\x12\x0B\x0A\x07INVALID\x10\x02\x12\x09\x0A\x05VALID\x10\x03\x1Au\x0A\x1DWorkspaceCompilationOverrides\x12\x1D\x0A\x10default_database\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Dschema_suffix\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Ctable_prefix\x18\x03 \x01(\x09B\x03\xE0A\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:\x85\x01\xEAA\x81\x01\x0A\"dataform.googleapis.com/Repository\x12Aprojects/{project}/locations/{location}/repositories/{repository}*\x0Crepositories2\x0ArepositoryB\x14\x0A\x12_containing_folderB\x13\x0A\x11_team_folder_nameB\x14\x0A\x12_internal_metadata\"3\x0A\x17PrivateResourceMetadata\x12\x18\x0A\x0Buser_scoped\x18\x01 \x01(\x08B\x03\xE0A\x03\"\xB1\x01\x0A\x17ListRepositoriesRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\x84\x01\x0A\x18ListRepositoriesResponse\x12:\x0A\x0Crepositories\x18\x01 \x03(\x0B2\$.google.cloud.dataform.v1.Repository\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x13\x0A\x0Bunreachable\x18\x03 \x03(\x09\"\xA4\x01\x0A\x15MoveRepositoryRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12/\x0A\x1Ddestination_containing_folder\x18\x02 \x01(\x09B\x03\xE0A\x01H\x00\x88\x01\x01B \x0A\x1E_destination_containing_folder\"P\x0A\x14GetRepositoryRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\"\xAF\x01\x0A\x17CreateRepositoryRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12=\x0A\x0Arepository\x18\x02 \x01(\x0B2\$.google.cloud.dataform.v1.RepositoryB\x03\xE0A\x02\x12\x1A\x0A\x0Drepository_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"\x8E\x01\x0A\x17UpdateRepositoryRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12=\x0A\x0Arepository\x18\x02 \x01(\x0B2\$.google.cloud.dataform.v1.RepositoryB\x03\xE0A\x02\"g\x0A\x17DeleteRepositoryRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x12\x0A\x05force\x18\x02 \x01(\x08B\x03\xE0A\x01\"\xD2\x05\x0A\x1ECommitRepositoryChangesRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12F\x0A\x0Fcommit_metadata\x18\x02 \x01(\x0B2(.google.cloud.dataform.v1.CommitMetadataB\x03\xE0A\x02\x12%\x0A\x18required_head_commit_sha\x18\x04 \x01(\x09B\x03\xE0A\x01\x12j\x0A\x0Ffile_operations\x18\x03 \x03(\x0B2L.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperationsEntryB\x03\xE0A\x01\x1A\x9B\x02\x0A\x0DFileOperation\x12f\x0A\x0Awrite_file\x18\x01 \x01(\x0B2P.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation.WriteFileH\x00\x12h\x0A\x0Bdelete_file\x18\x02 \x01(\x0B2Q.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation.DeleteFileH\x00\x1A\x1D\x0A\x09WriteFile\x12\x10\x0A\x08contents\x18\x01 \x01(\x0C\x1A\x0C\x0A\x0ADeleteFileB\x0B\x0A\x09operation\x1A}\x0A\x13FileOperationsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12U\x0A\x05value\x18\x02 \x01(\x0B2F.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation:\x028\x01\"5\x0A\x1FCommitRepositoryChangesResponse\x12\x12\x0A\x0Acommit_sha\x18\x01 \x01(\x09\"\x81\x01\x0A\x19ReadRepositoryFileRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x17\x0A\x0Acommit_sha\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04path\x18\x03 \x01(\x09B\x03\xE0A\x02\".\x0A\x1AReadRepositoryFileResponse\x12\x10\x0A\x08contents\x18\x01 \x01(\x0C\"\xC0\x01\x0A'QueryRepositoryDirectoryContentsRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x17\x0A\x0Acommit_sha\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04path\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09page_size\x18\x04 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x05 \x01(\x09B\x03\xE0A\x01\"\x88\x01\x0A(QueryRepositoryDirectoryContentsResponse\x12C\x0A\x11directory_entries\x18\x01 \x03(\x0B2(.google.cloud.dataform.v1.DirectoryEntry\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x8A\x01\x0A\x1DFetchRepositoryHistoryRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x05 \x01(\x09B\x03\xE0A\x01\"t\x0A\x1EFetchRepositoryHistoryResponse\x129\x0A\x07commits\x18\x01 \x03(\x0B2(.google.cloud.dataform.v1.CommitLogEntry\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xA5\x01\x0A\x0ECommitLogEntry\x12/\x0A\x0Bcommit_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x12\x0A\x0Acommit_sha\x18\x02 \x01(\x09\x126\x0A\x06author\x18\x03 \x01(\x0B2&.google.cloud.dataform.v1.CommitAuthor\x12\x16\x0A\x0Ecommit_message\x18\x04 \x01(\x09\"j\x0A\x0ECommitMetadata\x12;\x0A\x06author\x18\x01 \x01(\x0B2&.google.cloud.dataform.v1.CommitAuthorB\x03\xE0A\x02\x12\x1B\x0A\x0Ecommit_message\x18\x02 \x01(\x09B\x03\xE0A\x01\"e\x0A)ComputeRepositoryAccessTokenStatusRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\"\xFF\x01\x0A*ComputeRepositoryAccessTokenStatusResponse\x12f\x0A\x0Ctoken_status\x18\x01 \x01(\x0E2P.google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus\"i\x0A\x0BTokenStatus\x12\x1C\x0A\x18TOKEN_STATUS_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09NOT_FOUND\x10\x01\x12\x0B\x0A\x07INVALID\x10\x02\x12\x09\x0A\x05VALID\x10\x03\x12\x15\x0A\x11PERMISSION_DENIED\x10\x04\"V\x0A\x1AFetchRemoteBranchesRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\"/\x0A\x1BFetchRemoteBranchesResponse\x12\x10\x0A\x08branches\x18\x01 \x03(\x09\"\x8B\x04\x0A\x09Workspace\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12Q\x0A\x15data_encryption_state\x18\x02 \x01(\x0B2-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xE0A\x03\x12#\x0A\x11internal_metadata\x18\x05 \x01(\x09B\x03\xE0A\x03H\x00\x88\x01\x01\x12\x1F\x0A\x0Ddisable_moves\x18\x06 \x01(\x08B\x03\xE0A\x01H\x01\x88\x01\x01\x12Y\x0A\x19private_resource_metadata\x18\x08 \x01(\x0B21.google.cloud.dataform.v1.PrivateResourceMetadataB\x03\xE0A\x03:\x98\x01\xEAA\x94\x01\x0A!dataform.googleapis.com/Workspace\x12Xprojects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace}*\x0Aworkspaces2\x09workspaceB\x14\x0A\x12_internal_metadataB\x10\x0A\x0E_disable_moves\"\xB0\x01\x0A\x15ListWorkspacesRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\x7F\x0A\x16ListWorkspacesResponse\x127\x0A\x0Aworkspaces\x18\x01 \x03(\x0B2#.google.cloud.dataform.v1.Workspace\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x13\x0A\x0Bunreachable\x18\x03 \x03(\x09\"N\x0A\x13GetWorkspaceRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\"\xAC\x01\x0A\x16CreateWorkspaceRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12;\x0A\x09workspace\x18\x02 \x01(\x0B2#.google.cloud.dataform.v1.WorkspaceB\x03\xE0A\x02\x12\x19\x0A\x0Cworkspace_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"Q\x0A\x16DeleteWorkspaceRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\"=\x0A\x0CCommitAuthor\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x1A\x0A\x0Demail_address\x18\x02 \x01(\x09B\x03\xE0A\x02\"\xA9\x01\x0A\x15PullGitCommitsRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x1A\x0A\x0Dremote_branch\x18\x02 \x01(\x09B\x03\xE0A\x01\x12;\x0A\x06author\x18\x03 \x01(\x0B2&.google.cloud.dataform.v1.CommitAuthorB\x03\xE0A\x02\"\x18\x0A\x16PullGitCommitsResponse\"l\x0A\x15PushGitCommitsRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x1A\x0A\x0Dremote_branch\x18\x02 \x01(\x09B\x03\xE0A\x01\"\x18\x0A\x16PushGitCommitsResponse\"V\x0A\x1BFetchFileGitStatusesRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\"\xF7\x02\x0A\x1CFetchFileGitStatusesResponse\x12n\x0A\x18uncommitted_file_changes\x18\x01 \x03(\x0B2L.google.cloud.dataform.v1.FetchFileGitStatusesResponse.UncommittedFileChange\x1A\xE6\x01\x0A\x15UncommittedFileChange\x12\x0C\x0A\x04path\x18\x01 \x01(\x09\x12f\x0A\x05state\x18\x02 \x01(\x0E2R.google.cloud.dataform.v1.FetchFileGitStatusesResponse.UncommittedFileChange.StateB\x03\xE0A\x03\"W\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05ADDED\x10\x01\x12\x0B\x0A\x07DELETED\x10\x02\x12\x0C\x0A\x08MODIFIED\x10\x03\x12\x11\x0A\x0DHAS_CONFLICTS\x10\x04\"q\x0A\x1AFetchGitAheadBehindRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x1A\x0A\x0Dremote_branch\x18\x02 \x01(\x09B\x03\xE0A\x01\"L\x0A\x1BFetchGitAheadBehindResponse\x12\x15\x0A\x0Dcommits_ahead\x18\x01 \x01(\x05\x12\x16\x0A\x0Ecommits_behind\x18\x02 \x01(\x05\"\xC6\x01\x0A\x1DCommitWorkspaceChangesRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12;\x0A\x06author\x18\x04 \x01(\x0B2&.google.cloud.dataform.v1.CommitAuthorB\x03\xE0A\x02\x12\x1B\x0A\x0Ecommit_message\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x12\x0A\x05paths\x18\x03 \x03(\x09B\x03\xE0A\x01\" \x0A\x1ECommitWorkspaceChangesResponse\"\x7F\x0A\x1CResetWorkspaceChangesRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x12\x0A\x05paths\x18\x02 \x03(\x09B\x03\xE0A\x01\x12\x12\x0A\x05clean\x18\x03 \x01(\x08B\x03\xE0A\x01\"\x1F\x0A\x1DResetWorkspaceChangesResponse\"g\x0A\x14FetchFileDiffRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\"/\x0A\x15FetchFileDiffResponse\x12\x16\x0A\x0Eformatted_diff\x18\x01 \x01(\x09\"\xE5\x01\x0A\x1DQueryDirectoryContentsRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09page_size\x18\x03 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x04 \x01(\x09B\x03\xE0A\x01\x12B\x0A\x04view\x18\x05 \x01(\x0E2/.google.cloud.dataform.v1.DirectoryContentsViewB\x03\xE0A\x01\"~\x0A\x1EQueryDirectoryContentsResponse\x12C\x0A\x11directory_entries\x18\x01 \x03(\x0B2(.google.cloud.dataform.v1.DirectoryEntry\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x83\x01\x0A\x0EDirectoryEntry\x12\x0E\x0A\x04file\x18\x01 \x01(\x09H\x00\x12\x13\x0A\x09directory\x18\x02 \x01(\x09H\x00\x12C\x0A\x08metadata\x18\x03 \x01(\x0B21.google.cloud.dataform.v1.FilesystemEntryMetadataB\x07\x0A\x05entry\"h\x0A\x17FilesystemEntryMetadata\x12\x17\x0A\x0Asize_bytes\x18\x01 \x01(\x03B\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\"\x98\x01\x0A\x12SearchFilesRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\"s\x0A\x13SearchFilesResponse\x12>\x0A\x0Esearch_results\x18\x01 \x03(\x0B2&.google.cloud.dataform.v1.SearchResult\x12\x1C\x0A\x0Fnext_page_token\x18\x02 \x01(\x09B\x03\xE0A\x01\"\x99\x01\x0A\x0CSearchResult\x12:\x0A\x04file\x18\x01 \x01(\x0B2*.google.cloud.dataform.v1.FileSearchResultH\x00\x12D\x0A\x09directory\x18\x02 \x01(\x0B2/.google.cloud.dataform.v1.DirectorySearchResultH\x00B\x07\x0A\x05entry\" \x0A\x10FileSearchResult\x12\x0C\x0A\x04path\x18\x01 \x01(\x09\"%\x0A\x15DirectorySearchResult\x12\x0C\x0A\x04path\x18\x01 \x01(\x09\"g\x0A\x14MakeDirectoryRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\"\x17\x0A\x15MakeDirectoryResponse\"i\x0A\x16RemoveDirectoryRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\"\x19\x0A\x17RemoveDirectoryResponse\"~\x0A\x14MoveDirectoryRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08new_path\x18\x03 \x01(\x09B\x03\xE0A\x02\"\x17\x0A\x15MoveDirectoryResponse\"y\x0A\x0FReadFileRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08revision\x18\x03 \x01(\x09B\x03\xE0A\x01\")\x0A\x10ReadFileResponse\x12\x15\x0A\x0Dfile_contents\x18\x01 \x01(\x0C\"d\x0A\x11RemoveFileRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\"\x14\x0A\x12RemoveFileResponse\"y\x0A\x0FMoveFileRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08new_path\x18\x03 \x01(\x09B\x03\xE0A\x02\"\x12\x0A\x10MoveFileResponse\"z\x0A\x10WriteFileRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08contents\x18\x03 \x01(\x0CB\x03\xE0A\x02\"\x13\x0A\x11WriteFileResponse\"Y\x0A\x19InstallNpmPackagesRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\"\x1C\x0A\x1AInstallNpmPackagesResponse\"\xE7\x06\x0A\x0DReleaseConfig\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x1A\x0A\x0Dgit_commitish\x18\x02 \x01(\x09B\x03\xE0A\x02\x12U\x0A\x17code_compilation_config\x18\x03 \x01(\x0B2/.google.cloud.dataform.v1.CodeCompilationConfigB\x03\xE0A\x01\x12\x1A\x0A\x0Dcron_schedule\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09time_zone\x18\x07 \x01(\x09B\x03\xE0A\x01\x12m\x0A recent_scheduled_release_records\x18\x05 \x03(\x0B2>.google.cloud.dataform.v1.ReleaseConfig.ScheduledReleaseRecordB\x03\xE0A\x03\x12U\x0A\x1Arelease_compilation_result\x18\x06 \x01(\x09B1\xE0A\x01\xFAA+\x0A)dataform.googleapis.com/CompilationResult\x12\x15\x0A\x08disabled\x18\x08 \x01(\x08B\x03\xE0A\x01\x12#\x0A\x11internal_metadata\x18\x09 \x01(\x09B\x03\xE0A\x03H\x00\x88\x01\x01\x1A\xD3\x01\x0A\x16ScheduledReleaseRecord\x12L\x0A\x12compilation_result\x18\x02 \x01(\x09B.\xFAA+\x0A)dataform.googleapis.com/CompilationResultH\x00\x12*\x0A\x0Cerror_status\x18\x03 \x01(\x0B2\x12.google.rpc.StatusH\x00\x125\x0A\x0Crelease_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03B\x08\x0A\x06result:\xAD\x01\xEAA\xA9\x01\x0A%dataform.googleapis.com/ReleaseConfig\x12aprojects/{project}/locations/{location}/repositories/{repository}/releaseConfigs/{release_config}*\x0EreleaseConfigs2\x0DreleaseConfigB\x14\x0A\x12_internal_metadata\"\x88\x01\x0A\x19ListReleaseConfigsRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"\x8C\x01\x0A\x1AListReleaseConfigsResponse\x12@\x0A\x0Frelease_configs\x18\x01 \x03(\x0B2'.google.cloud.dataform.v1.ReleaseConfig\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x13\x0A\x0Bunreachable\x18\x03 \x03(\x09\"V\x0A\x17GetReleaseConfigRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%dataform.googleapis.com/ReleaseConfig\"\xBE\x01\x0A\x1ACreateReleaseConfigRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12D\x0A\x0Erelease_config\x18\x02 \x01(\x0B2'.google.cloud.dataform.v1.ReleaseConfigB\x03\xE0A\x02\x12\x1E\x0A\x11release_config_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"\x98\x01\x0A\x1AUpdateReleaseConfigRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12D\x0A\x0Erelease_config\x18\x02 \x01(\x0B2'.google.cloud.dataform.v1.ReleaseConfigB\x03\xE0A\x02\"Y\x0A\x1ADeleteReleaseConfigRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%dataform.googleapis.com/ReleaseConfig\"\xCA\x08\x0A\x11CompilationResult\x12\x1C\x0A\x0Dgit_commitish\x18\x02 \x01(\x09B\x03\xE0A\x05H\x00\x12>\x0A\x09workspace\x18\x03 \x01(\x09B)\xE0A\x05\xFAA#\x0A!dataform.googleapis.com/WorkspaceH\x00\x12G\x0A\x0Erelease_config\x18\x07 \x01(\x09B-\xE0A\x05\xFAA'\x0A%dataform.googleapis.com/ReleaseConfigH\x00\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12U\x0A\x17code_compilation_config\x18\x04 \x01(\x0B2/.google.cloud.dataform.v1.CodeCompilationConfigB\x03\xE0A\x05\x12\$\x0A\x17resolved_git_commit_sha\x18\x08 \x01(\x09B\x03\xE0A\x03\x12\"\x0A\x15dataform_core_version\x18\x05 \x01(\x09B\x03\xE0A\x03\x12]\x0A\x12compilation_errors\x18\x06 \x03(\x0B2<.google.cloud.dataform.v1.CompilationResult.CompilationErrorB\x03\xE0A\x03\x12Q\x0A\x15data_encryption_state\x18\x09 \x01(\x0B2-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x0A \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12#\x0A\x11internal_metadata\x18\x0B \x01(\x09B\x03\xE0A\x03H\x01\x88\x01\x01\x12Y\x0A\x19private_resource_metadata\x18\x0C \x01(\x0B21.google.cloud.dataform.v1.PrivateResourceMetadataB\x03\xE0A\x03\x1A\x8D\x01\x0A\x10CompilationError\x12\x14\x0A\x07message\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x12\x0A\x05stack\x18\x02 \x01(\x09B\x03\xE0A\x03\x12\x11\x0A\x04path\x18\x03 \x01(\x09B\x03\xE0A\x03\x12<\x0A\x0Daction_target\x18\x04 \x01(\x0B2 .google.cloud.dataform.v1.TargetB\x03\xE0A\x03:\xC1\x01\xEAA\xBD\x01\x0A)dataform.googleapis.com/CompilationResult\x12iprojects/{project}/locations/{location}/repositories/{repository}/compilationResults/{compilation_result}*\x12compilationResults2\x11compilationResultB\x08\x0A\x06sourceB\x14\x0A\x12_internal_metadata\"\xEE\x03\x0A\x15CodeCompilationConfig\x12\x1D\x0A\x10default_database\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x1B\x0A\x0Edefault_schema\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x1D\x0A\x10default_location\x18\x08 \x01(\x09B\x03\xE0A\x01\x12\x1D\x0A\x10assertion_schema\x18\x03 \x01(\x09B\x03\xE0A\x01\x12L\x0A\x04vars\x18\x04 \x03(\x0B29.google.cloud.dataform.v1.CodeCompilationConfig.VarsEntryB\x03\xE0A\x01\x12\x1C\x0A\x0Fdatabase_suffix\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Dschema_suffix\x18\x06 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Ctable_prefix\x18\x07 \x01(\x09B\x03\xE0A\x01\x12*\x0A\x1Dbuiltin_assertion_name_prefix\x18\x0A \x01(\x09B\x03\xE0A\x01\x12_\x0A default_notebook_runtime_options\x18\x09 \x01(\x0B20.google.cloud.dataform.v1.NotebookRuntimeOptionsB\x03\xE0A\x01\x1A+\x0A\x09VarsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\xB6\x01\x0A\x16NotebookRuntimeOptions\x12 \x0A\x11gcs_output_bucket\x18\x01 \x01(\x09B\x03\xE0A\x01H\x00\x12h\x0A%ai_platform_notebook_runtime_template\x18\x02 \x01(\x09B9\xE0A\x01\xFAA3\x0A1aiplatform.googleapis.com/NotebookRuntimeTemplateB\x10\x0A\x0Eexecution_sink\"\xB8\x01\x0A\x1DListCompilationResultsRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\x98\x01\x0A\x1EListCompilationResultsResponse\x12H\x0A\x13compilation_results\x18\x01 \x03(\x0B2+.google.cloud.dataform.v1.CompilationResult\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x13\x0A\x0Bunreachable\x18\x03 \x03(\x09\"^\x0A\x1BGetCompilationResultRequest\x12?\x0A\x04name\x18\x01 \x01(\x09B1\xE0A\x02\xFAA+\x0A)dataform.googleapis.com/CompilationResult\"\xAA\x01\x0A\x1ECreateCompilationResultRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12L\x0A\x12compilation_result\x18\x02 \x01(\x0B2+.google.cloud.dataform.v1.CompilationResultB\x03\xE0A\x02\"G\x0A\x06Target\x12\x15\x0A\x08database\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06schema\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04name\x18\x03 \x01(\x09B\x03\xE0A\x01\"\xE0\x02\x0A\x12RelationDescriptor\x12\x13\x0A\x0Bdescription\x18\x01 \x01(\x09\x12N\x0A\x07columns\x18\x02 \x03(\x0B2=.google.cloud.dataform.v1.RelationDescriptor.ColumnDescriptor\x12Y\x0A\x0Fbigquery_labels\x18\x03 \x03(\x0B2@.google.cloud.dataform.v1.RelationDescriptor.BigqueryLabelsEntry\x1AS\x0A\x10ColumnDescriptor\x12\x0C\x0A\x04path\x18\x01 \x03(\x09\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09\x12\x1C\x0A\x14bigquery_policy_tags\x18\x03 \x03(\x09\x1A5\x0A\x13BigqueryLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\xA3\x1E\x0A\x17CompilationResultAction\x12N\x0A\x08relation\x18\x04 \x01(\x0B2:.google.cloud.dataform.v1.CompilationResultAction.RelationH\x00\x12R\x0A\x0Aoperations\x18\x05 \x01(\x0B2<.google.cloud.dataform.v1.CompilationResultAction.OperationsH\x00\x12P\x0A\x09assertion\x18\x06 \x01(\x0B2;.google.cloud.dataform.v1.CompilationResultAction.AssertionH\x00\x12T\x0A\x0Bdeclaration\x18\x07 \x01(\x0B2=.google.cloud.dataform.v1.CompilationResultAction.DeclarationH\x00\x12N\x0A\x08notebook\x18\x08 \x01(\x0B2:.google.cloud.dataform.v1.CompilationResultAction.NotebookH\x00\x12]\x0A\x10data_preparation\x18\x09 \x01(\x0B2A.google.cloud.dataform.v1.CompilationResultAction.DataPreparationH\x00\x120\x0A\x06target\x18\x01 \x01(\x0B2 .google.cloud.dataform.v1.Target\x12:\x0A\x10canonical_target\x18\x02 \x01(\x0B2 .google.cloud.dataform.v1.Target\x12\x11\x0A\x09file_path\x18\x03 \x01(\x09\x12#\x0A\x11internal_metadata\x18\x0A \x01(\x09B\x03\xE0A\x03H\x01\x88\x01\x01\x1A\xAE\x0B\x0A\x08Relation\x12<\x0A\x12dependency_targets\x18\x01 \x03(\x0B2 .google.cloud.dataform.v1.Target\x12\x10\x0A\x08disabled\x18\x02 \x01(\x08\x12\x0C\x0A\x04tags\x18\x03 \x03(\x09\x12I\x0A\x13relation_descriptor\x18\x04 \x01(\x0B2,.google.cloud.dataform.v1.RelationDescriptor\x12^\x0A\x0Drelation_type\x18\x05 \x01(\x0E2G.google.cloud.dataform.v1.CompilationResultAction.Relation.RelationType\x12\x14\x0A\x0Cselect_query\x18\x06 \x01(\x09\x12\x16\x0A\x0Epre_operations\x18\x07 \x03(\x09\x12\x17\x0A\x0Fpost_operations\x18\x08 \x03(\x09\x12s\x0A\x18incremental_table_config\x18\x09 \x01(\x0B2Q.google.cloud.dataform.v1.CompilationResultAction.Relation.IncrementalTableConfig\x12\x1C\x0A\x14partition_expression\x18\x0A \x01(\x09\x12\x1B\x0A\x13cluster_expressions\x18\x0B \x03(\x09\x12!\x0A\x19partition_expiration_days\x18\x0C \x01(\x05\x12 \x0A\x18require_partition_filter\x18\x0D \x01(\x08\x12m\x0A\x12additional_options\x18\x0E \x03(\x0B2Q.google.cloud.dataform.v1.CompilationResultAction.Relation.AdditionalOptionsEntry\x12\x17\x0A\x0Aconnection\x18\x0F \x01(\x09B\x03\xE0A\x01\x12a\x0A\x0Ctable_format\x18\x10 \x01(\x0E2F.google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormatB\x03\xE0A\x01\x12_\x0A\x0Bfile_format\x18\x11 \x01(\x0E2E.google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormatB\x03\xE0A\x01\x12\x18\x0A\x0Bstorage_uri\x18\x12 \x01(\x09B\x03\xE0A\x01\x1A\xD8\x01\x0A\x16IncrementalTableConfig\x12 \x0A\x18incremental_select_query\x18\x01 \x01(\x09\x12\x18\x0A\x10refresh_disabled\x18\x02 \x01(\x08\x12\x18\x0A\x10unique_key_parts\x18\x03 \x03(\x09\x12\x1F\x0A\x17update_partition_filter\x18\x04 \x01(\x09\x12\"\x0A\x1Aincremental_pre_operations\x18\x05 \x03(\x09\x12#\x0A\x1Bincremental_post_operations\x18\x06 \x03(\x09\x1A8\x0A\x16AdditionalOptionsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"p\x0A\x0CRelationType\x12\x1D\x0A\x19RELATION_TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05TABLE\x10\x01\x12\x08\x0A\x04VIEW\x10\x02\x12\x15\x0A\x11INCREMENTAL_TABLE\x10\x03\x12\x15\x0A\x11MATERIALIZED_VIEW\x10\x04\"8\x0A\x0BTableFormat\x12\x1C\x0A\x18TABLE_FORMAT_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07ICEBERG\x10\x01\"6\x0A\x0AFileFormat\x12\x1B\x0A\x17FILE_FORMAT_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07PARQUET\x10\x01\x1A\xDA\x01\x0A\x0AOperations\x12<\x0A\x12dependency_targets\x18\x01 \x03(\x0B2 .google.cloud.dataform.v1.Target\x12\x10\x0A\x08disabled\x18\x02 \x01(\x08\x12\x0C\x0A\x04tags\x18\x03 \x03(\x09\x12I\x0A\x13relation_descriptor\x18\x06 \x01(\x0B2,.google.cloud.dataform.v1.RelationDescriptor\x12\x0F\x0A\x07queries\x18\x04 \x03(\x09\x12\x12\x0A\x0Ahas_output\x18\x05 \x01(\x08\x1A\x83\x02\x0A\x09Assertion\x12<\x0A\x12dependency_targets\x18\x01 \x03(\x0B2 .google.cloud.dataform.v1.Target\x127\x0A\x0Dparent_action\x18\x05 \x01(\x0B2 .google.cloud.dataform.v1.Target\x12\x10\x0A\x08disabled\x18\x02 \x01(\x08\x12\x0C\x0A\x04tags\x18\x03 \x03(\x09\x12\x14\x0A\x0Cselect_query\x18\x04 \x01(\x09\x12I\x0A\x13relation_descriptor\x18\x06 \x01(\x0B2,.google.cloud.dataform.v1.RelationDescriptor\x1AX\x0A\x0BDeclaration\x12I\x0A\x13relation_descriptor\x18\x01 \x01(\x0B2,.google.cloud.dataform.v1.RelationDescriptor\x1Az\x0A\x08Notebook\x12<\x0A\x12dependency_targets\x18\x01 \x03(\x0B2 .google.cloud.dataform.v1.Target\x12\x10\x0A\x08disabled\x18\x02 \x01(\x08\x12\x10\x0A\x08contents\x18\x03 \x01(\x09\x12\x0C\x0A\x04tags\x18\x04 \x03(\x09\x1A\xA7\x04\x0A\x0FDataPreparation\x12\x17\x0A\x0Dcontents_yaml\x18\x05 \x01(\x09H\x00\x12g\x0A\x0Ccontents_sql\x18\x06 \x01(\x0B2O.google.cloud.dataform.v1.CompilationResultAction.DataPreparation.SqlDefinitionH\x00\x12<\x0A\x12dependency_targets\x18\x01 \x03(\x0B2 .google.cloud.dataform.v1.Target\x12\x10\x0A\x08disabled\x18\x02 \x01(\x08\x12\x0C\x0A\x04tags\x18\x04 \x03(\x09\x1A\xCD\x01\x0A\x0DSqlDefinition\x12\x0D\x0A\x05query\x18\x01 \x01(\x09\x12a\x0A\x0Berror_table\x18\x02 \x01(\x0B2L.google.cloud.dataform.v1.CompilationResultAction.DataPreparation.ErrorTable\x12J\x0A\x04load\x18\x03 \x01(\x0B2<.google.cloud.dataform.v1.CompilationResultAction.LoadConfig\x1AV\x0A\x0AErrorTable\x120\x0A\x06target\x18\x01 \x01(\x0B2 .google.cloud.dataform.v1.Target\x12\x16\x0A\x0Eretention_days\x18\x02 \x01(\x05B\x0C\x0A\x0Adefinition\x1A\xF0\x02\x0A\x0ALoadConfig\x12S\x0A\x07replace\x18\x01 \x01(\x0B2@.google.cloud.dataform.v1.CompilationResultAction.SimpleLoadModeH\x00\x12R\x0A\x06append\x18\x02 \x01(\x0B2@.google.cloud.dataform.v1.CompilationResultAction.SimpleLoadModeH\x00\x12X\x0A\x07maximum\x18\x03 \x01(\x0B2E.google.cloud.dataform.v1.CompilationResultAction.IncrementalLoadModeH\x00\x12W\x0A\x06unique\x18\x04 \x01(\x0B2E.google.cloud.dataform.v1.CompilationResultAction.IncrementalLoadModeH\x00B\x06\x0A\x04mode\x1A\x10\x0A\x0ESimpleLoadMode\x1A%\x0A\x13IncrementalLoadMode\x12\x0E\x0A\x06column\x18\x01 \x01(\x09B\x11\x0A\x0Fcompiled_objectB\x14\x0A\x12_internal_metadata\"\xAD\x01\x0A\$QueryCompilationResultActionsRequest\x12?\x0A\x04name\x18\x01 \x01(\x09B1\xE0A\x02\xFAA+\x0A)dataform.googleapis.com/CompilationResult\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\"\x97\x01\x0A%QueryCompilationResultActionsResponse\x12U\x0A\x1Acompilation_result_actions\x18\x01 \x03(\x0B21.google.cloud.dataform.v1.CompilationResultAction\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xAD\x07\x0A\x0EWorkflowConfig\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12E\x0A\x0Erelease_config\x18\x02 \x01(\x09B-\xE0A\x02\xFAA'\x0A%dataform.googleapis.com/ReleaseConfig\x12J\x0A\x11invocation_config\x18\x03 \x01(\x0B2*.google.cloud.dataform.v1.InvocationConfigB\x03\xE0A\x01\x12\x1A\x0A\x0Dcron_schedule\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09time_zone\x18\x07 \x01(\x09B\x03\xE0A\x01\x12r\x0A\"recent_scheduled_execution_records\x18\x05 \x03(\x0B2A.google.cloud.dataform.v1.WorkflowConfig.ScheduledExecutionRecordB\x03\xE0A\x03\x12\x15\x0A\x08disabled\x18\x08 \x01(\x08B\x03\xE0A\x01\x124\x0A\x0Bcreate_time\x18\x09 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x0A \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12#\x0A\x11internal_metadata\x18\x0B \x01(\x09B\x03\xE0A\x03H\x00\x88\x01\x01\x1A\xD9\x01\x0A\x18ScheduledExecutionRecord\x12N\x0A\x13workflow_invocation\x18\x02 \x01(\x09B/\xFAA,\x0A*dataform.googleapis.com/WorkflowInvocationH\x00\x12*\x0A\x0Cerror_status\x18\x03 \x01(\x0B2\x12.google.rpc.StatusH\x00\x127\x0A\x0Eexecution_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03B\x08\x0A\x06result:\xB2\x01\xEAA\xAE\x01\x0A&dataform.googleapis.com/WorkflowConfig\x12cprojects/{project}/locations/{location}/repositories/{repository}/workflowConfigs/{workflow_config}*\x0FworkflowConfigs2\x0EworkflowConfigB\x14\x0A\x12_internal_metadata\"\xDC\x03\x0A\x10InvocationConfig\x12?\x0A\x10included_targets\x18\x01 \x03(\x0B2 .google.cloud.dataform.v1.TargetB\x03\xE0A\x01\x12\x1A\x0A\x0Dincluded_tags\x18\x02 \x03(\x09B\x03\xE0A\x01\x12-\x0A transitive_dependencies_included\x18\x03 \x01(\x08B\x03\xE0A\x01\x12+\x0A\x1Etransitive_dependents_included\x18\x04 \x01(\x08B\x03\xE0A\x01\x125\x0A(fully_refresh_incremental_tables_enabled\x18\x05 \x01(\x08B\x03\xE0A\x01\x12\x1C\x0A\x0Fservice_account\x18\x06 \x01(\x09B\x03\xE0A\x01\x12Z\x0A\x0Equery_priority\x18\x09 \x01(\x0E28.google.cloud.dataform.v1.InvocationConfig.QueryPriorityB\x03\xE0A\x01H\x00\x88\x01\x01\"K\x0A\x0DQueryPriority\x12\x1E\x0A\x1AQUERY_PRIORITY_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BINTERACTIVE\x10\x01\x12\x09\x0A\x05BATCH\x10\x02B\x11\x0A\x0F_query_priority\"\x89\x01\x0A\x1AListWorkflowConfigsRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"\x8F\x01\x0A\x1BListWorkflowConfigsResponse\x12B\x0A\x10workflow_configs\x18\x01 \x03(\x0B2(.google.cloud.dataform.v1.WorkflowConfig\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x13\x0A\x0Bunreachable\x18\x03 \x03(\x09\"X\x0A\x18GetWorkflowConfigRequest\x12<\x0A\x04name\x18\x01 \x01(\x09B.\xE0A\x02\xFAA(\x0A&dataform.googleapis.com/WorkflowConfig\"\xC2\x01\x0A\x1BCreateWorkflowConfigRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12F\x0A\x0Fworkflow_config\x18\x02 \x01(\x0B2(.google.cloud.dataform.v1.WorkflowConfigB\x03\xE0A\x02\x12\x1F\x0A\x12workflow_config_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"\x9B\x01\x0A\x1BUpdateWorkflowConfigRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12F\x0A\x0Fworkflow_config\x18\x02 \x01(\x0B2(.google.cloud.dataform.v1.WorkflowConfigB\x03\xE0A\x02\"[\x0A\x1BDeleteWorkflowConfigRequest\x12<\x0A\x04name\x18\x01 \x01(\x09B.\xE0A\x02\xFAA(\x0A&dataform.googleapis.com/WorkflowConfig\"\x94\x08\x0A\x12WorkflowInvocation\x12O\x0A\x12compilation_result\x18\x02 \x01(\x09B1\xE0A\x05\xFAA+\x0A)dataform.googleapis.com/CompilationResultH\x00\x12I\x0A\x0Fworkflow_config\x18\x06 \x01(\x09B.\xE0A\x05\xFAA(\x0A&dataform.googleapis.com/WorkflowConfigH\x00\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12J\x0A\x11invocation_config\x18\x03 \x01(\x0B2*.google.cloud.dataform.v1.InvocationConfigB\x03\xE0A\x05\x12F\x0A\x05state\x18\x04 \x01(\x0E22.google.cloud.dataform.v1.WorkflowInvocation.StateB\x03\xE0A\x03\x125\x0A\x11invocation_timing\x18\x05 \x01(\x0B2\x15.google.type.IntervalB\x03\xE0A\x03\x12V\x0A\x1Bresolved_compilation_result\x18\x07 \x01(\x09B1\xE0A\x03\xFAA+\x0A)dataform.googleapis.com/CompilationResult\x12Q\x0A\x15data_encryption_state\x18\x08 \x01(\x0B2-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xE0A\x03\x12#\x0A\x11internal_metadata\x18\x09 \x01(\x09B\x03\xE0A\x03H\x01\x88\x01\x01\x12Y\x0A\x19private_resource_metadata\x18\x0A \x01(\x0B21.google.cloud.dataform.v1.PrivateResourceMetadataB\x03\xE0A\x03\"d\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07RUNNING\x10\x01\x12\x0D\x0A\x09SUCCEEDED\x10\x02\x12\x0D\x0A\x09CANCELLED\x10\x03\x12\x0A\x0A\x06FAILED\x10\x04\x12\x0D\x0A\x09CANCELING\x10\x05:\xC6\x01\xEAA\xC2\x01\x0A*dataform.googleapis.com/WorkflowInvocation\x12kprojects/{project}/locations/{location}/repositories/{repository}/workflowInvocations/{workflow_invocation}*\x13workflowInvocations2\x12workflowInvocationB\x14\x0A\x12compilation_sourceB\x14\x0A\x12_internal_metadata\"\xB9\x01\x0A\x1EListWorkflowInvocationsRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\x9B\x01\x0A\x1FListWorkflowInvocationsResponse\x12J\x0A\x14workflow_invocations\x18\x01 \x03(\x0B2,.google.cloud.dataform.v1.WorkflowInvocation\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x13\x0A\x0Bunreachable\x18\x03 \x03(\x09\"`\x0A\x1CGetWorkflowInvocationRequest\x12@\x0A\x04name\x18\x01 \x01(\x09B2\xE0A\x02\xFAA,\x0A*dataform.googleapis.com/WorkflowInvocation\"\xAD\x01\x0A\x1FCreateWorkflowInvocationRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12N\x0A\x13workflow_invocation\x18\x02 \x01(\x0B2,.google.cloud.dataform.v1.WorkflowInvocationB\x03\xE0A\x02\"c\x0A\x1FDeleteWorkflowInvocationRequest\x12@\x0A\x04name\x18\x01 \x01(\x09B2\xE0A\x02\xFAA,\x0A*dataform.googleapis.com/WorkflowInvocation\"c\x0A\x1FCancelWorkflowInvocationRequest\x12@\x0A\x04name\x18\x01 \x01(\x09B2\xE0A\x02\xFAA,\x0A*dataform.googleapis.com/WorkflowInvocation\"\"\x0A CancelWorkflowInvocationResponse\"\x9B\x10\x0A\x18WorkflowInvocationAction\x12a\x0A\x0Fbigquery_action\x18\x06 \x01(\x0B2A.google.cloud.dataform.v1.WorkflowInvocationAction.BigQueryActionB\x03\xE0A\x03H\x00\x12a\x0A\x0Fnotebook_action\x18\x08 \x01(\x0B2A.google.cloud.dataform.v1.WorkflowInvocationAction.NotebookActionB\x03\xE0A\x03H\x00\x12p\x0A\x17data_preparation_action\x18\x09 \x01(\x0B2H.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationActionB\x03\xE0A\x03H\x00\x125\x0A\x06target\x18\x01 \x01(\x0B2 .google.cloud.dataform.v1.TargetB\x03\xE0A\x03\x12?\x0A\x10canonical_target\x18\x02 \x01(\x0B2 .google.cloud.dataform.v1.TargetB\x03\xE0A\x03\x12L\x0A\x05state\x18\x04 \x01(\x0E28.google.cloud.dataform.v1.WorkflowInvocationAction.StateB\x03\xE0A\x03\x12\x1B\x0A\x0Efailure_reason\x18\x07 \x01(\x09B\x03\xE0A\x03\x125\x0A\x11invocation_timing\x18\x05 \x01(\x0B2\x15.google.type.IntervalB\x03\xE0A\x03\x12#\x0A\x11internal_metadata\x18\x0A \x01(\x09B\x03\xE0A\x03H\x01\x88\x01\x01\x1A>\x0A\x0EBigQueryAction\x12\x17\x0A\x0Asql_script\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x13\x0A\x06job_id\x18\x02 \x01(\x09B\x03\xE0A\x03\x1A<\x0A\x0ENotebookAction\x12\x15\x0A\x08contents\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x13\x0A\x06job_id\x18\x02 \x01(\x09B\x03\xE0A\x03\x1A\x81\x09\x0A\x15DataPreparationAction\x12\x1C\x0A\x0Dcontents_yaml\x18\x02 \x01(\x09B\x03\xE0A\x03H\x00\x12t\x0A\x0Ccontents_sql\x18\x06 \x01(\x0B2\\.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSqlDefinitionH\x00\x12\x1A\x0A\x0Dgenerated_sql\x18\x03 \x01(\x09B\x03\xE0A\x03\x12\x13\x0A\x06job_id\x18\x04 \x01(\x09B\x03\xE0A\x03\x1A\x84\x02\x0A\x13ActionSqlDefinition\x12\x0D\x0A\x05query\x18\x01 \x01(\x09\x12n\x0A\x0Berror_table\x18\x02 \x01(\x0B2Y.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionErrorTable\x12n\x0A\x0Bload_config\x18\x03 \x01(\x0B2Y.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionLoadConfig\x1A\\\x0A\x10ActionErrorTable\x120\x0A\x06target\x18\x01 \x01(\x0B2 .google.cloud.dataform.v1.Target\x12\x16\x0A\x0Eretention_days\x18\x02 \x01(\x05\x1A\xEA\x03\x0A\x10ActionLoadConfig\x12p\x0A\x07replace\x18\x01 \x01(\x0B2].google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadModeH\x00\x12o\x0A\x06append\x18\x02 \x01(\x0B2].google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadModeH\x00\x12u\x0A\x07maximum\x18\x03 \x01(\x0B2b.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadModeH\x00\x12t\x0A\x06unique\x18\x04 \x01(\x0B2b.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadModeH\x00B\x06\x0A\x04mode\x1A\x16\x0A\x14ActionSimpleLoadMode\x1A+\x0A\x19ActionIncrementalLoadMode\x12\x0E\x0A\x06column\x18\x01 \x01(\x09B\x0C\x0A\x0Adefinition\"f\x0A\x05State\x12\x0B\x0A\x07PENDING\x10\x00\x12\x0B\x0A\x07RUNNING\x10\x01\x12\x0B\x0A\x07SKIPPED\x10\x02\x12\x0C\x0A\x08DISABLED\x10\x03\x12\x0D\x0A\x09SUCCEEDED\x10\x04\x12\x0D\x0A\x09CANCELLED\x10\x05\x12\x0A\x0A\x06FAILED\x10\x06B\x08\x0A\x06actionB\x14\x0A\x12_internal_metadata\"\x9A\x01\x0A%QueryWorkflowInvocationActionsRequest\x12@\x0A\x04name\x18\x01 \x01(\x09B2\xE0A\x02\xFAA,\x0A*dataform.googleapis.com/WorkflowInvocation\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"\x9A\x01\x0A&QueryWorkflowInvocationActionsResponse\x12W\x0A\x1Bworkflow_invocation_actions\x18\x01 \x03(\x0B22.google.cloud.dataform.v1.WorkflowInvocationAction\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x85\x02\x0A\x06Config\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12G\x0A\x14default_kms_key_name\x18\x02 \x01(\x09B)\xE0A\x01\xFAA#\x0A!cloudkms.googleapis.com/CryptoKey\x12#\x0A\x11internal_metadata\x18\x07 \x01(\x09B\x03\xE0A\x03H\x00\x88\x01\x01:d\xEAAa\x0A\x1Edataform.googleapis.com/Config\x12.projects/{project}/locations/{location}/config*\x07configs2\x06configB\x14\x0A\x12_internal_metadata\"H\x0A\x10GetConfigRequest\x124\x0A\x04name\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Edataform.googleapis.com/Config\"\x82\x01\x0A\x13UpdateConfigRequest\x125\x0A\x06config\x18\x01 \x01(\x0B2 .google.cloud.dataform.v1.ConfigB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\"\xCF\x03\x0A\x06Folder\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x1E\x0A\x11containing_folder\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x1D\x0A\x10team_folder_name\x18\x04 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12#\x0A\x11internal_metadata\x18\x07 \x01(\x09B\x03\xE0A\x03H\x00\x88\x01\x01\x12'\x0A\x15creator_iam_principal\x18\x08 \x01(\x09B\x03\xE0A\x03H\x01\x88\x01\x01:n\xEAAk\x0A\x1Edataform.googleapis.com/Folder\x128projects/{project}/locations/{location}/folders/{folder}*\x07folders2\x06folderB\x14\x0A\x12_internal_metadataB\x18\x0A\x16_creator_iam_principal\"\x87\x01\x0A\x13CreateFolderRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x125\x0A\x06folder\x18\x02 \x01(\x0B2 .google.cloud.dataform.v1.FolderB\x03\xE0A\x02\"\x9C\x01\x0A\x11MoveFolderRequest\x124\x0A\x04name\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Edataform.googleapis.com/Folder\x12/\x0A\x1Ddestination_containing_folder\x18\x02 \x01(\x09B\x03\xE0A\x01H\x00\x88\x01\x01B \x0A\x1E_destination_containing_folder\"H\x0A\x10GetFolderRequest\x124\x0A\x04name\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Edataform.googleapis.com/Folder\"\x82\x01\x0A\x13UpdateFolderRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x125\x0A\x06folder\x18\x02 \x01(\x0B2 .google.cloud.dataform.v1.FolderB\x03\xE0A\x02\"K\x0A\x13DeleteFolderRequest\x124\x0A\x04name\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Edataform.googleapis.com/Folder\"c\x0A\x17DeleteFolderTreeRequest\x124\x0A\x04name\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Edataform.googleapis.com/Folder\x12\x12\x0A\x05force\x18\x02 \x01(\x08B\x03\xE0A\x01\"k\x0A\x1BDeleteTeamFolderTreeRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/TeamFolder\x12\x12\x0A\x05force\x18\x02 \x01(\x08B\x03\xE0A\x01\"\xE2\x02\x0A\x18DeleteFolderTreeMetadata\x124\x0A\x0Bcreate_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x121\x0A\x08end_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x13\x0A\x06target\x18\x03 \x01(\x09B\x03\xE0A\x03\x12L\x0A\x05state\x18\x04 \x01(\x0E28.google.cloud.dataform.v1.DeleteFolderTreeMetadata.StateB\x03\xE0A\x03\x12\x1D\x0A\x10percent_complete\x18\x05 \x01(\x05B\x03\xE0A\x03\"[\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BINITIALIZED\x10\x01\x12\x0F\x0A\x0BIN_PROGRESS\x10\x02\x12\x0D\x0A\x09SUCCEEDED\x10\x03\x12\x0A\x0A\x06FAILED\x10\x04\"\xB1\x01\x0A\x1AQueryFolderContentsRequest\x126\x0A\x06folder\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Edataform.googleapis.com/Folder\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\xA3\x02\x0A\x1BQueryFolderContentsResponse\x12Z\x0A\x07entries\x18\x01 \x03(\x0B2I.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x1A\x8E\x01\x0A\x13FolderContentsEntry\x122\x0A\x06folder\x18\x01 \x01(\x0B2 .google.cloud.dataform.v1.FolderH\x00\x12:\x0A\x0Arepository\x18\x02 \x01(\x0B2\$.google.cloud.dataform.v1.RepositoryH\x00B\x07\x0A\x05entry\"\xB8\x01\x0A\x1CQueryUserRootContentsRequest\x12;\x0A\x08location\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\xA3\x02\x0A\x1DQueryUserRootContentsResponse\x12Z\x0A\x07entries\x18\x01 \x03(\x0B2I.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x1A\x8C\x01\x0A\x11RootContentsEntry\x122\x0A\x06folder\x18\x01 \x01(\x0B2 .google.cloud.dataform.v1.FolderH\x00\x12:\x0A\x0Arepository\x18\x02 \x01(\x0B2\$.google.cloud.dataform.v1.RepositoryH\x00B\x07\x0A\x05entry\"\xAB\x03\x0A\x0ATeamFolder\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x02\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12#\x0A\x11internal_metadata\x18\x05 \x01(\x09B\x03\xE0A\x03H\x00\x88\x01\x01\x12'\x0A\x15creator_iam_principal\x18\x06 \x01(\x09B\x03\xE0A\x03H\x01\x88\x01\x01:\x84\x01\xEAA\x80\x01\x0A\"dataform.googleapis.com/TeamFolder\x12Aprojects/{project}/locations/{location}/teamFolders/{team_folder}*\x0BteamFolders2\x0AteamFolderB\x14\x0A\x12_internal_metadataB\x18\x0A\x16_creator_iam_principal\"\x94\x01\x0A\x17CreateTeamFolderRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12>\x0A\x0Bteam_folder\x18\x02 \x01(\x0B2\$.google.cloud.dataform.v1.TeamFolderB\x03\xE0A\x02\"P\x0A\x14GetTeamFolderRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/TeamFolder\"\x8F\x01\x0A\x17UpdateTeamFolderRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12>\x0A\x0Bteam_folder\x18\x02 \x01(\x0B2\$.google.cloud.dataform.v1.TeamFolderB\x03\xE0A\x02\"S\x0A\x17DeleteTeamFolderRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/TeamFolder\"\xBE\x01\x0A\x1EQueryTeamFolderContentsRequest\x12?\x0A\x0Bteam_folder\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/TeamFolder\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\xB3\x02\x0A\x1FQueryTeamFolderContentsResponse\x12b\x0A\x07entries\x18\x01 \x03(\x0B2Q.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x1A\x92\x01\x0A\x17TeamFolderContentsEntry\x122\x0A\x06folder\x18\x01 \x01(\x0B2 .google.cloud.dataform.v1.FolderH\x00\x12:\x0A\x0Arepository\x18\x02 \x01(\x0B2\$.google.cloud.dataform.v1.RepositoryH\x00B\x07\x0A\x05entry\"\xB4\x01\x0A\x18SearchTeamFoldersRequest\x12;\x0A\x08location\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\xF1\x01\x0A\x19SearchTeamFoldersResponse\x12[\x0A\x07results\x18\x01 \x03(\x0B2J.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x1A^\x0A\x16TeamFolderSearchResult\x12;\x0A\x0Bteam_folder\x18\x02 \x01(\x0B2\$.google.cloud.dataform.v1.TeamFolderH\x00B\x07\x0A\x05entry\"\xCA\x02\x0A\x12MoveFolderMetadata\x124\x0A\x0Bcreate_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x121\x0A\x08end_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x13\x0A\x06target\x18\x03 \x01(\x09B\x03\xE0A\x03\x12A\x0A\x05state\x18\x04 \x01(\x0E22.google.cloud.dataform.v1.MoveFolderMetadata.State\x12\x18\x0A\x10percent_complete\x18\x05 \x01(\x05\"Y\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BINITIALIZED\x10\x01\x12\x0F\x0A\x0BIN_PROGRESS\x10\x02\x12\x0B\x0A\x07SUCCESS\x10\x03\x12\x0A\x0A\x06FAILED\x10\x04\"\xD2\x02\x0A\x16MoveRepositoryMetadata\x124\x0A\x0Bcreate_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x121\x0A\x08end_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x13\x0A\x06target\x18\x03 \x01(\x09B\x03\xE0A\x03\x12E\x0A\x05state\x18\x04 \x01(\x0E26.google.cloud.dataform.v1.MoveRepositoryMetadata.State\x12\x18\x0A\x10percent_complete\x18\x05 \x01(\x05\"Y\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BINITIALIZED\x10\x01\x12\x0F\x0A\x0BIN_PROGRESS\x10\x02\x12\x0B\x0A\x07SUCCESS\x10\x03\x12\x0A\x0A\x06FAILED\x10\x04*\x89\x01\x0A\x15DirectoryContentsView\x12'\x0A#DIRECTORY_CONTENTS_VIEW_UNSPECIFIED\x10\x00\x12!\x0A\x1DDIRECTORY_CONTENTS_VIEW_BASIC\x10\x01\x12\$\x0A DIRECTORY_CONTENTS_VIEW_METADATA\x10\x022\xE3}\x0A\x08Dataform\x12\xA5\x01\x0A\x0DGetTeamFolder\x12..google.cloud.dataform.v1.GetTeamFolderRequest\x1A\$.google.cloud.dataform.v1.TeamFolder\">\xDAA\x04name\x82\xD3\xE4\x93\x021\x12//v1/{name=projects/*/locations/*/teamFolders/*}\x12\xC6\x01\x0A\x10CreateTeamFolder\x121.google.cloud.dataform.v1.CreateTeamFolderRequest\x1A\$.google.cloud.dataform.v1.TeamFolder\"Y\xDAA\x12parent,team_folder\x82\xD3\xE4\x93\x02>\"//v1/{parent=projects/*/locations/*}/teamFolders:\x0Bteam_folder\x12\xD7\x01\x0A\x10UpdateTeamFolder\x121.google.cloud.dataform.v1.UpdateTeamFolderRequest\x1A\$.google.cloud.dataform.v1.TeamFolder\"j\xDAA\x17team_folder,update_mask\x82\xD3\xE4\x93\x02J2;/v1/{team_folder.name=projects/*/locations/*/teamFolders/*}:\x0Bteam_folder\x12\x9D\x01\x0A\x10DeleteTeamFolder\x121.google.cloud.dataform.v1.DeleteTeamFolderRequest\x1A\x16.google.protobuf.Empty\">\xDAA\x04name\x82\xD3\xE4\x93\x021*//v1/{name=projects/*/locations/*/teamFolders/*}\x12\xF5\x01\x0A\x14DeleteTeamFolderTree\x125.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest\x1A\x1D.google.longrunning.Operation\"\x86\x01\xCAA1\x0A\x15google.protobuf.Empty\x12\x18DeleteFolderTreeMetadata\xDAA\x0Aname,force\x82\xD3\xE4\x93\x02?\":/v1/{name=projects/*/locations/*/teamFolders/*}:deleteTree:\x01*\x12\xEA\x01\x0A\x17QueryTeamFolderContents\x128.google.cloud.dataform.v1.QueryTeamFolderContentsRequest\x1A9.google.cloud.dataform.v1.QueryTeamFolderContentsResponse\"Z\xDAA\x0Bteam_folder\x82\xD3\xE4\x93\x02F\x12D/v1/{team_folder=projects/*/locations/*/teamFolders/*}:queryContents\x12\xBE\x01\x0A\x11SearchTeamFolders\x122.google.cloud.dataform.v1.SearchTeamFoldersRequest\x1A3.google.cloud.dataform.v1.SearchTeamFoldersResponse\"@\x82\xD3\xE4\x93\x02:\x128/v1/{location=projects/*/locations/*}/teamFolders:search\x12\x95\x01\x0A\x09GetFolder\x12*.google.cloud.dataform.v1.GetFolderRequest\x1A .google.cloud.dataform.v1.Folder\":\xDAA\x04name\x82\xD3\xE4\x93\x02-\x12+/v1/{name=projects/*/locations/*/folders/*}\x12\xAC\x01\x0A\x0CCreateFolder\x12-.google.cloud.dataform.v1.CreateFolderRequest\x1A .google.cloud.dataform.v1.Folder\"K\xDAA\x0Dparent,folder\x82\xD3\xE4\x93\x025\"+/v1/{parent=projects/*/locations/*}/folders:\x06folder\x12\xB8\x01\x0A\x0CUpdateFolder\x12-.google.cloud.dataform.v1.UpdateFolderRequest\x1A .google.cloud.dataform.v1.Folder\"W\xDAA\x12folder,update_mask\x82\xD3\xE4\x93\x02<22/v1/{folder.name=projects/*/locations/*/folders/*}:\x06folder\x12\x91\x01\x0A\x0CDeleteFolder\x12-.google.cloud.dataform.v1.DeleteFolderRequest\x1A\x16.google.protobuf.Empty\":\xDAA\x04name\x82\xD3\xE4\x93\x02-*+/v1/{name=projects/*/locations/*/folders/*}\x12\xE9\x01\x0A\x10DeleteFolderTree\x121.google.cloud.dataform.v1.DeleteFolderTreeRequest\x1A\x1D.google.longrunning.Operation\"\x82\x01\xCAA1\x0A\x15google.protobuf.Empty\x12\x18DeleteFolderTreeMetadata\xDAA\x0Aname,force\x82\xD3\xE4\x93\x02;\"6/v1/{name=projects/*/locations/*/folders/*}:deleteTree:\x01*\x12\xD6\x01\x0A\x13QueryFolderContents\x124.google.cloud.dataform.v1.QueryFolderContentsRequest\x1A5.google.cloud.dataform.v1.QueryFolderContentsResponse\"R\xDAA\x06folder\x82\xD3\xE4\x93\x02C\x12A/v1/{folder=projects/*/locations/*/folders/*}:queryFolderContents\x12\xD8\x01\x0A\x15QueryUserRootContents\x126.google.cloud.dataform.v1.QueryUserRootContentsRequest\x1A7.google.cloud.dataform.v1.QueryUserRootContentsResponse\"N\xDAA\x08location\x82\xD3\xE4\x93\x02=\x12;/v1/{location=projects/*/locations/*}:queryUserRootContents\x12\xE9\x01\x0A\x0AMoveFolder\x12+.google.cloud.dataform.v1.MoveFolderRequest\x1A\x1D.google.longrunning.Operation\"\x8E\x01\xCAA+\x0A\x15google.protobuf.Empty\x12\x12MoveFolderMetadata\xDAA\"name,destination_containing_folder\x82\xD3\xE4\x93\x025\"0/v1/{name=projects/*/locations/*/folders/*}:move:\x01*\x12\xBC\x01\x0A\x10ListRepositories\x121.google.cloud.dataform.v1.ListRepositoriesRequest\x1A2.google.cloud.dataform.v1.ListRepositoriesResponse\"A\xDAA\x06parent\x82\xD3\xE4\x93\x022\x120/v1/{parent=projects/*/locations/*}/repositories\x12\xA6\x01\x0A\x0DGetRepository\x12..google.cloud.dataform.v1.GetRepositoryRequest\x1A\$.google.cloud.dataform.v1.Repository\"?\xDAA\x04name\x82\xD3\xE4\x93\x022\x120/v1/{name=projects/*/locations/*/repositories/*}\x12\xD3\x01\x0A\x10CreateRepository\x121.google.cloud.dataform.v1.CreateRepositoryRequest\x1A\$.google.cloud.dataform.v1.Repository\"f\xDAA\x1Fparent,repository,repository_id\x82\xD3\xE4\x93\x02>\"0/v1/{parent=projects/*/locations/*}/repositories:\x0Arepository\x12\xD5\x01\x0A\x10UpdateRepository\x121.google.cloud.dataform.v1.UpdateRepositoryRequest\x1A\$.google.cloud.dataform.v1.Repository\"h\xDAA\x16repository,update_mask\x82\xD3\xE4\x93\x02I2;/v1/{repository.name=projects/*/locations/*/repositories/*}:\x0Arepository\x12\x9E\x01\x0A\x10DeleteRepository\x121.google.cloud.dataform.v1.DeleteRepositoryRequest\x1A\x16.google.protobuf.Empty\"?\xDAA\x04name\x82\xD3\xE4\x93\x022*0/v1/{name=projects/*/locations/*/repositories/*}\x12\xFA\x01\x0A\x0EMoveRepository\x12/.google.cloud.dataform.v1.MoveRepositoryRequest\x1A\x1D.google.longrunning.Operation\"\x97\x01\xCAA/\x0A\x15google.protobuf.Empty\x12\x16MoveRepositoryMetadata\xDAA\"name,destination_containing_folder\x82\xD3\xE4\x93\x02:\"5/v1/{name=projects/*/locations/*/repositories/*}:move:\x01*\x12\xD2\x01\x0A\x17CommitRepositoryChanges\x128.google.cloud.dataform.v1.CommitRepositoryChangesRequest\x1A9.google.cloud.dataform.v1.CommitRepositoryChangesResponse\"B\x82\xD3\xE4\x93\x02<\"7/v1/{name=projects/*/locations/*/repositories/*}:commit:\x01*\x12\xC2\x01\x0A\x12ReadRepositoryFile\x123.google.cloud.dataform.v1.ReadRepositoryFileRequest\x1A4.google.cloud.dataform.v1.ReadRepositoryFileResponse\"A\x82\xD3\xE4\x93\x02;\x129/v1/{name=projects/*/locations/*/repositories/*}:readFile\x12\xFA\x01\x0A QueryRepositoryDirectoryContents\x12A.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsRequest\x1AB.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsResponse\"O\x82\xD3\xE4\x93\x02I\x12G/v1/{name=projects/*/locations/*/repositories/*}:queryDirectoryContents\x12\xD2\x01\x0A\x16FetchRepositoryHistory\x127.google.cloud.dataform.v1.FetchRepositoryHistoryRequest\x1A8.google.cloud.dataform.v1.FetchRepositoryHistoryResponse\"E\x82\xD3\xE4\x93\x02?\x12=/v1/{name=projects/*/locations/*/repositories/*}:fetchHistory\x12\x82\x02\x0A\"ComputeRepositoryAccessTokenStatus\x12C.google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusRequest\x1AD.google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusResponse\"Q\x82\xD3\xE4\x93\x02K\x12I/v1/{name=projects/*/locations/*/repositories/*}:computeAccessTokenStatus\x12\xD0\x01\x0A\x13FetchRemoteBranches\x124.google.cloud.dataform.v1.FetchRemoteBranchesRequest\x1A5.google.cloud.dataform.v1.FetchRemoteBranchesResponse\"L\x82\xD3\xE4\x93\x02F\x12D/v1/{name=projects/*/locations/*/repositories/*}:fetchRemoteBranches\x12\xC3\x01\x0A\x0EListWorkspaces\x12/.google.cloud.dataform.v1.ListWorkspacesRequest\x1A0.google.cloud.dataform.v1.ListWorkspacesResponse\"N\xDAA\x06parent\x82\xD3\xE4\x93\x02?\x12=/v1/{parent=projects/*/locations/*/repositories/*}/workspaces\x12\xB0\x01\x0A\x0CGetWorkspace\x12-.google.cloud.dataform.v1.GetWorkspaceRequest\x1A#.google.cloud.dataform.v1.Workspace\"L\xDAA\x04name\x82\xD3\xE4\x93\x02?\x12=/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}\x12\xDA\x01\x0A\x0FCreateWorkspace\x120.google.cloud.dataform.v1.CreateWorkspaceRequest\x1A#.google.cloud.dataform.v1.Workspace\"p\xDAA\x1Dparent,workspace,workspace_id\x82\xD3\xE4\x93\x02J\"=/v1/{parent=projects/*/locations/*/repositories/*}/workspaces:\x09workspace\x12\xA9\x01\x0A\x0FDeleteWorkspace\x120.google.cloud.dataform.v1.DeleteWorkspaceRequest\x1A\x16.google.protobuf.Empty\"L\xDAA\x04name\x82\xD3\xE4\x93\x02?*=/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}\x12\xE1\x01\x0A\x12InstallNpmPackages\x123.google.cloud.dataform.v1.InstallNpmPackagesRequest\x1A4.google.cloud.dataform.v1.InstallNpmPackagesResponse\"`\x82\xD3\xE4\x93\x02Z\"U/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:installNpmPackages:\x01*\x12\xC2\x01\x0A\x0EPullGitCommits\x12/.google.cloud.dataform.v1.PullGitCommitsRequest\x1A0.google.cloud.dataform.v1.PullGitCommitsResponse\"M\x82\xD3\xE4\x93\x02G\"B/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:pull:\x01*\x12\xC2\x01\x0A\x0EPushGitCommits\x12/.google.cloud.dataform.v1.PushGitCommitsRequest\x1A0.google.cloud.dataform.v1.PushGitCommitsResponse\"M\x82\xD3\xE4\x93\x02G\"B/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:push:\x01*\x12\xE1\x01\x0A\x14FetchFileGitStatuses\x125.google.cloud.dataform.v1.FetchFileGitStatusesRequest\x1A6.google.cloud.dataform.v1.FetchFileGitStatusesResponse\"Z\x82\xD3\xE4\x93\x02T\x12R/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:fetchFileGitStatuses\x12\xDD\x01\x0A\x13FetchGitAheadBehind\x124.google.cloud.dataform.v1.FetchGitAheadBehindRequest\x1A5.google.cloud.dataform.v1.FetchGitAheadBehindResponse\"Y\x82\xD3\xE4\x93\x02S\x12Q/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:fetchGitAheadBehind\x12\xDC\x01\x0A\x16CommitWorkspaceChanges\x127.google.cloud.dataform.v1.CommitWorkspaceChangesRequest\x1A8.google.cloud.dataform.v1.CommitWorkspaceChangesResponse\"O\x82\xD3\xE4\x93\x02I\"D/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:commit:\x01*\x12\xD8\x01\x0A\x15ResetWorkspaceChanges\x126.google.cloud.dataform.v1.ResetWorkspaceChangesRequest\x1A7.google.cloud.dataform.v1.ResetWorkspaceChangesResponse\"N\x82\xD3\xE4\x93\x02H\"C/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:reset:\x01*\x12\xCA\x01\x0A\x0DFetchFileDiff\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\x0A\x16QueryDirectoryContents\x127.google.cloud.dataform.v1.QueryDirectoryContentsRequest\x1A8.google.cloud.dataform.v1.QueryDirectoryContentsResponse\"a\x82\xD3\xE4\x93\x02[\x12Y/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:queryDirectoryContents\x12\xC2\x01\x0A\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\x0A\x0DMakeDirectory\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\x0A\x0FRemoveDirectory\x120.google.cloud.dataform.v1.RemoveDirectoryRequest\x1A1.google.cloud.dataform.v1.RemoveDirectoryResponse\"]\x82\xD3\xE4\x93\x02W\"R/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:removeDirectory:\x01*\x12\xCD\x01\x0A\x0DMoveDirectory\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\x0A\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\x0A\x0ARemoveFile\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\x0A\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\x0A\x09WriteFile\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\x0A\x12ListReleaseConfigs\x123.google.cloud.dataform.v1.ListReleaseConfigsRequest\x1A4.google.cloud.dataform.v1.ListReleaseConfigsResponse\"R\xDAA\x06parent\x82\xD3\xE4\x93\x02C\x12A/v1/{parent=projects/*/locations/*/repositories/*}/releaseConfigs\x12\xC0\x01\x0A\x10GetReleaseConfig\x121.google.cloud.dataform.v1.GetReleaseConfigRequest\x1A'.google.cloud.dataform.v1.ReleaseConfig\"P\xDAA\x04name\x82\xD3\xE4\x93\x02C\x12A/v1/{name=projects/*/locations/*/repositories/*/releaseConfigs/*}\x12\xFA\x01\x0A\x13CreateReleaseConfig\x124.google.cloud.dataform.v1.CreateReleaseConfigRequest\x1A'.google.cloud.dataform.v1.ReleaseConfig\"\x83\x01\xDAA'parent,release_config,release_config_id\x82\xD3\xE4\x93\x02S\"A/v1/{parent=projects/*/locations/*/repositories/*}/releaseConfigs:\x0Erelease_config\x12\xFC\x01\x0A\x13UpdateReleaseConfig\x124.google.cloud.dataform.v1.UpdateReleaseConfigRequest\x1A'.google.cloud.dataform.v1.ReleaseConfig\"\x85\x01\xDAA\x1Arelease_config,update_mask\x82\xD3\xE4\x93\x02b2P/v1/{release_config.name=projects/*/locations/*/repositories/*/releaseConfigs/*}:\x0Erelease_config\x12\xB5\x01\x0A\x13DeleteReleaseConfig\x124.google.cloud.dataform.v1.DeleteReleaseConfigRequest\x1A\x16.google.protobuf.Empty\"P\xDAA\x04name\x82\xD3\xE4\x93\x02C*A/v1/{name=projects/*/locations/*/repositories/*/releaseConfigs/*}\x12\xE3\x01\x0A\x16ListCompilationResults\x127.google.cloud.dataform.v1.ListCompilationResultsRequest\x1A8.google.cloud.dataform.v1.ListCompilationResultsResponse\"V\xDAA\x06parent\x82\xD3\xE4\x93\x02G\x12E/v1/{parent=projects/*/locations/*/repositories/*}/compilationResults\x12\xD0\x01\x0A\x14GetCompilationResult\x125.google.cloud.dataform.v1.GetCompilationResultRequest\x1A+.google.cloud.dataform.v1.CompilationResult\"T\xDAA\x04name\x82\xD3\xE4\x93\x02G\x12E/v1/{name=projects/*/locations/*/repositories/*/compilationResults/*}\x12\xFF\x01\x0A\x17CreateCompilationResult\x128.google.cloud.dataform.v1.CreateCompilationResultRequest\x1A+.google.cloud.dataform.v1.CompilationResult\"}\xDAA\x19parent,compilation_result\x82\xD3\xE4\x93\x02[\"E/v1/{parent=projects/*/locations/*/repositories/*}/compilationResults:\x12compilation_result\x12\xF5\x01\x0A\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\x0A\x13ListWorkflowConfigs\x124.google.cloud.dataform.v1.ListWorkflowConfigsRequest\x1A5.google.cloud.dataform.v1.ListWorkflowConfigsResponse\"S\xDAA\x06parent\x82\xD3\xE4\x93\x02D\x12B/v1/{parent=projects/*/locations/*/repositories/*}/workflowConfigs\x12\xC4\x01\x0A\x11GetWorkflowConfig\x122.google.cloud.dataform.v1.GetWorkflowConfigRequest\x1A(.google.cloud.dataform.v1.WorkflowConfig\"Q\xDAA\x04name\x82\xD3\xE4\x93\x02D\x12B/v1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}\x12\x81\x02\x0A\x14CreateWorkflowConfig\x125.google.cloud.dataform.v1.CreateWorkflowConfigRequest\x1A(.google.cloud.dataform.v1.WorkflowConfig\"\x87\x01\xDAA)parent,workflow_config,workflow_config_id\x82\xD3\xE4\x93\x02U\"B/v1/{parent=projects/*/locations/*/repositories/*}/workflowConfigs:\x0Fworkflow_config\x12\x83\x02\x0A\x14UpdateWorkflowConfig\x125.google.cloud.dataform.v1.UpdateWorkflowConfigRequest\x1A(.google.cloud.dataform.v1.WorkflowConfig\"\x89\x01\xDAA\x1Bworkflow_config,update_mask\x82\xD3\xE4\x93\x02e2R/v1/{workflow_config.name=projects/*/locations/*/repositories/*/workflowConfigs/*}:\x0Fworkflow_config\x12\xB8\x01\x0A\x14DeleteWorkflowConfig\x125.google.cloud.dataform.v1.DeleteWorkflowConfigRequest\x1A\x16.google.protobuf.Empty\"Q\xDAA\x04name\x82\xD3\xE4\x93\x02D*B/v1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}\x12\xE7\x01\x0A\x17ListWorkflowInvocations\x128.google.cloud.dataform.v1.ListWorkflowInvocationsRequest\x1A9.google.cloud.dataform.v1.ListWorkflowInvocationsResponse\"W\xDAA\x06parent\x82\xD3\xE4\x93\x02H\x12F/v1/{parent=projects/*/locations/*/repositories/*}/workflowInvocations\x12\xD4\x01\x0A\x15GetWorkflowInvocation\x126.google.cloud.dataform.v1.GetWorkflowInvocationRequest\x1A,.google.cloud.dataform.v1.WorkflowInvocation\"U\xDAA\x04name\x82\xD3\xE4\x93\x02H\x12F/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}\x12\x86\x02\x0A\x18CreateWorkflowInvocation\x129.google.cloud.dataform.v1.CreateWorkflowInvocationRequest\x1A,.google.cloud.dataform.v1.WorkflowInvocation\"\x80\x01\xDAA\x1Aparent,workflow_invocation\x82\xD3\xE4\x93\x02]\"F/v1/{parent=projects/*/locations/*/repositories/*}/workflowInvocations:\x13workflow_invocation\x12\xC4\x01\x0A\x18DeleteWorkflowInvocation\x129.google.cloud.dataform.v1.DeleteWorkflowInvocationRequest\x1A\x16.google.protobuf.Empty\"U\xDAA\x04name\x82\xD3\xE4\x93\x02H*F/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}\x12\xEB\x01\x0A\x18CancelWorkflowInvocation\x129.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\x0A\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\x0A\x09GetConfig\x12*.google.cloud.dataform.v1.GetConfigRequest\x1A .google.cloud.dataform.v1.Config\"7\xDAA\x04name\x82\xD3\xE4\x93\x02*\x12(/v1/{name=projects/*/locations/*/config}\x12\xB5\x01\x0A\x0CUpdateConfig\x12-.google.cloud.dataform.v1.UpdateConfigRequest\x1A .google.cloud.dataform.v1.Config\"T\xDAA\x12config,update_mask\x82\xD3\xE4\x93\x0292//v1/{config.name=projects/*/locations/*/config}:\x06config\x12\xF7\x02\x0A\x0CGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1A\x15.google.iam.v1.Policy\"\xAB\x02\xDAA\x08resource\x82\xD3\xE4\x93\x02\x99\x02\x12A/v1/{resource=projects/*/locations/*/repositories/*}:getIamPolicyZP\x12N/v1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:getIamPolicyZ>\x12google.cloud.dataform.v1.CancelWorkflowInvocationRequest - */ -class CancelWorkflowInvocationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workflow invocation resource's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The workflow invocation resource's name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workflow invocation resource's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The workflow invocation resource's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CancelWorkflowInvocationResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CancelWorkflowInvocationResponse.php deleted file mode 100644 index 14ce7efc8dd7..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CancelWorkflowInvocationResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.dataform.v1.CancelWorkflowInvocationResponse - */ -class CancelWorkflowInvocationResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CodeCompilationConfig.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CodeCompilationConfig.php deleted file mode 100644 index 6996133b6c03..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CodeCompilationConfig.php +++ /dev/null @@ -1,403 +0,0 @@ -google.cloud.dataform.v1.CodeCompilationConfig - */ -class CodeCompilationConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The default database (Google Cloud project ID). - * - * Generated from protobuf field string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $default_database = ''; - /** - * Optional. The default schema (BigQuery dataset ID). - * - * Generated from protobuf field string default_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $default_schema = ''; - /** - * 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. - * - * Generated from protobuf field string default_location = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $default_location = ''; - /** - * Optional. The default schema (BigQuery dataset ID) for assertions. - * - * Generated from protobuf field string assertion_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $assertion_schema = ''; - /** - * Optional. User-defined variables that are made available to project code - * during compilation. - * - * Generated from protobuf field map vars = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $vars; - /** - * Optional. The suffix that should be appended to all database (Google Cloud - * project ID) names. - * - * Generated from protobuf field string database_suffix = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $database_suffix = ''; - /** - * Optional. The suffix that should be appended to all schema (BigQuery - * dataset ID) names. - * - * Generated from protobuf field string schema_suffix = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $schema_suffix = ''; - /** - * Optional. The prefix that should be prepended to all table names. - * - * Generated from protobuf field string table_prefix = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $table_prefix = ''; - /** - * Optional. The prefix to prepend to built-in assertion names. - * - * Generated from protobuf field string builtin_assertion_name_prefix = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $builtin_assertion_name_prefix = ''; - /** - * Optional. The default notebook runtime options. - * - * Generated from protobuf field .google.cloud.dataform.v1.NotebookRuntimeOptions default_notebook_runtime_options = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $default_notebook_runtime_options = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $default_database - * Optional. The default database (Google Cloud project ID). - * @type string $default_schema - * Optional. The default schema (BigQuery dataset ID). - * @type string $default_location - * 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. - * @type string $assertion_schema - * Optional. The default schema (BigQuery dataset ID) for assertions. - * @type array|\Google\Protobuf\Internal\MapField $vars - * Optional. User-defined variables that are made available to project code - * during compilation. - * @type string $database_suffix - * Optional. The suffix that should be appended to all database (Google Cloud - * project ID) names. - * @type string $schema_suffix - * Optional. The suffix that should be appended to all schema (BigQuery - * dataset ID) names. - * @type string $table_prefix - * Optional. The prefix that should be prepended to all table names. - * @type string $builtin_assertion_name_prefix - * Optional. The prefix to prepend to built-in assertion names. - * @type \Google\Cloud\Dataform\V1\NotebookRuntimeOptions $default_notebook_runtime_options - * Optional. The default notebook runtime options. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The default database (Google Cloud project ID). - * - * Generated from protobuf field string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDefaultDatabase() - { - return $this->default_database; - } - - /** - * Optional. The default database (Google Cloud project ID). - * - * Generated from protobuf field string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDefaultDatabase($var) - { - GPBUtil::checkString($var, True); - $this->default_database = $var; - - return $this; - } - - /** - * Optional. The default schema (BigQuery dataset ID). - * - * Generated from protobuf field string default_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDefaultSchema() - { - return $this->default_schema; - } - - /** - * Optional. The default schema (BigQuery dataset ID). - * - * Generated from protobuf field string default_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDefaultSchema($var) - { - GPBUtil::checkString($var, True); - $this->default_schema = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string default_location = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDefaultLocation() - { - return $this->default_location; - } - - /** - * 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. - * - * Generated from protobuf field string default_location = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDefaultLocation($var) - { - GPBUtil::checkString($var, True); - $this->default_location = $var; - - return $this; - } - - /** - * Optional. The default schema (BigQuery dataset ID) for assertions. - * - * Generated from protobuf field string assertion_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getAssertionSchema() - { - return $this->assertion_schema; - } - - /** - * Optional. The default schema (BigQuery dataset ID) for assertions. - * - * Generated from protobuf field string assertion_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setAssertionSchema($var) - { - GPBUtil::checkString($var, True); - $this->assertion_schema = $var; - - return $this; - } - - /** - * Optional. User-defined variables that are made available to project code - * during compilation. - * - * Generated from protobuf field map vars = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getVars() - { - return $this->vars; - } - - /** - * Optional. User-defined variables that are made available to project code - * during compilation. - * - * Generated from protobuf field map vars = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setVars($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->vars = $arr; - - return $this; - } - - /** - * Optional. The suffix that should be appended to all database (Google Cloud - * project ID) names. - * - * Generated from protobuf field string database_suffix = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDatabaseSuffix() - { - return $this->database_suffix; - } - - /** - * Optional. The suffix that should be appended to all database (Google Cloud - * project ID) names. - * - * Generated from protobuf field string database_suffix = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDatabaseSuffix($var) - { - GPBUtil::checkString($var, True); - $this->database_suffix = $var; - - return $this; - } - - /** - * Optional. The suffix that should be appended to all schema (BigQuery - * dataset ID) names. - * - * Generated from protobuf field string schema_suffix = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getSchemaSuffix() - { - return $this->schema_suffix; - } - - /** - * Optional. The suffix that should be appended to all schema (BigQuery - * dataset ID) names. - * - * Generated from protobuf field string schema_suffix = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setSchemaSuffix($var) - { - GPBUtil::checkString($var, True); - $this->schema_suffix = $var; - - return $this; - } - - /** - * Optional. The prefix that should be prepended to all table names. - * - * Generated from protobuf field string table_prefix = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getTablePrefix() - { - return $this->table_prefix; - } - - /** - * Optional. The prefix that should be prepended to all table names. - * - * Generated from protobuf field string table_prefix = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setTablePrefix($var) - { - GPBUtil::checkString($var, True); - $this->table_prefix = $var; - - return $this; - } - - /** - * Optional. The prefix to prepend to built-in assertion names. - * - * Generated from protobuf field string builtin_assertion_name_prefix = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getBuiltinAssertionNamePrefix() - { - return $this->builtin_assertion_name_prefix; - } - - /** - * Optional. The prefix to prepend to built-in assertion names. - * - * Generated from protobuf field string builtin_assertion_name_prefix = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setBuiltinAssertionNamePrefix($var) - { - GPBUtil::checkString($var, True); - $this->builtin_assertion_name_prefix = $var; - - return $this; - } - - /** - * Optional. The default notebook runtime options. - * - * Generated from protobuf field .google.cloud.dataform.v1.NotebookRuntimeOptions default_notebook_runtime_options = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataform\V1\NotebookRuntimeOptions|null - */ - public function getDefaultNotebookRuntimeOptions() - { - return $this->default_notebook_runtime_options; - } - - public function hasDefaultNotebookRuntimeOptions() - { - return isset($this->default_notebook_runtime_options); - } - - public function clearDefaultNotebookRuntimeOptions() - { - unset($this->default_notebook_runtime_options); - } - - /** - * Optional. The default notebook runtime options. - * - * Generated from protobuf field .google.cloud.dataform.v1.NotebookRuntimeOptions default_notebook_runtime_options = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataform\V1\NotebookRuntimeOptions $var - * @return $this - */ - public function setDefaultNotebookRuntimeOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\NotebookRuntimeOptions::class); - $this->default_notebook_runtime_options = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitAuthor.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitAuthor.php deleted file mode 100644 index 9b82464d35ab..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitAuthor.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.dataform.v1.CommitAuthor - */ -class CommitAuthor extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The commit author's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Required. The commit author's email address. - * - * Generated from protobuf field string email_address = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $email_address = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The commit author's name. - * @type string $email_address - * Required. The commit author's email address. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The commit author's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The commit author's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The commit author's email address. - * - * Generated from protobuf field string email_address = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getEmailAddress() - { - return $this->email_address; - } - - /** - * Required. The commit author's email address. - * - * Generated from protobuf field string email_address = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setEmailAddress($var) - { - GPBUtil::checkString($var, True); - $this->email_address = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitLogEntry.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitLogEntry.php deleted file mode 100644 index 92c991a3ffba..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitLogEntry.php +++ /dev/null @@ -1,189 +0,0 @@ -google.cloud.dataform.v1.CommitLogEntry - */ -class CommitLogEntry extends \Google\Protobuf\Internal\Message -{ - /** - * Commit timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp commit_time = 1; - */ - protected $commit_time = null; - /** - * The commit SHA for this commit log entry. - * - * Generated from protobuf field string commit_sha = 2; - */ - protected $commit_sha = ''; - /** - * The commit author for this commit log entry. - * - * Generated from protobuf field .google.cloud.dataform.v1.CommitAuthor author = 3; - */ - protected $author = null; - /** - * The commit message for this commit log entry. - * - * Generated from protobuf field string commit_message = 4; - */ - protected $commit_message = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $commit_time - * Commit timestamp. - * @type string $commit_sha - * The commit SHA for this commit log entry. - * @type \Google\Cloud\Dataform\V1\CommitAuthor $author - * The commit author for this commit log entry. - * @type string $commit_message - * The commit message for this commit log entry. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Commit timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp commit_time = 1; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCommitTime() - { - return $this->commit_time; - } - - public function hasCommitTime() - { - return isset($this->commit_time); - } - - public function clearCommitTime() - { - unset($this->commit_time); - } - - /** - * Commit timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp commit_time = 1; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCommitTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->commit_time = $var; - - return $this; - } - - /** - * The commit SHA for this commit log entry. - * - * Generated from protobuf field string commit_sha = 2; - * @return string - */ - public function getCommitSha() - { - return $this->commit_sha; - } - - /** - * The commit SHA for this commit log entry. - * - * Generated from protobuf field string commit_sha = 2; - * @param string $var - * @return $this - */ - public function setCommitSha($var) - { - GPBUtil::checkString($var, True); - $this->commit_sha = $var; - - return $this; - } - - /** - * The commit author for this commit log entry. - * - * Generated from protobuf field .google.cloud.dataform.v1.CommitAuthor author = 3; - * @return \Google\Cloud\Dataform\V1\CommitAuthor|null - */ - public function getAuthor() - { - return $this->author; - } - - public function hasAuthor() - { - return isset($this->author); - } - - public function clearAuthor() - { - unset($this->author); - } - - /** - * The commit author for this commit log entry. - * - * Generated from protobuf field .google.cloud.dataform.v1.CommitAuthor author = 3; - * @param \Google\Cloud\Dataform\V1\CommitAuthor $var - * @return $this - */ - public function setAuthor($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CommitAuthor::class); - $this->author = $var; - - return $this; - } - - /** - * The commit message for this commit log entry. - * - * Generated from protobuf field string commit_message = 4; - * @return string - */ - public function getCommitMessage() - { - return $this->commit_message; - } - - /** - * The commit message for this commit log entry. - * - * Generated from protobuf field string commit_message = 4; - * @param string $var - * @return $this - */ - public function setCommitMessage($var) - { - GPBUtil::checkString($var, True); - $this->commit_message = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitMetadata.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitMetadata.php deleted file mode 100644 index 705e1b665eaa..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitMetadata.php +++ /dev/null @@ -1,111 +0,0 @@ -google.cloud.dataform.v1.CommitMetadata - */ -class CommitMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The commit's author. - * - * Generated from protobuf field .google.cloud.dataform.v1.CommitAuthor author = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $author = null; - /** - * Optional. The commit's message. - * - * Generated from protobuf field string commit_message = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $commit_message = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1\CommitAuthor $author - * Required. The commit's author. - * @type string $commit_message - * Optional. The commit's message. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The commit's author. - * - * Generated from protobuf field .google.cloud.dataform.v1.CommitAuthor author = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataform\V1\CommitAuthor|null - */ - public function getAuthor() - { - return $this->author; - } - - public function hasAuthor() - { - return isset($this->author); - } - - public function clearAuthor() - { - unset($this->author); - } - - /** - * Required. The commit's author. - * - * Generated from protobuf field .google.cloud.dataform.v1.CommitAuthor author = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataform\V1\CommitAuthor $var - * @return $this - */ - public function setAuthor($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CommitAuthor::class); - $this->author = $var; - - return $this; - } - - /** - * Optional. The commit's message. - * - * Generated from protobuf field string commit_message = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getCommitMessage() - { - return $this->commit_message; - } - - /** - * Optional. The commit's message. - * - * Generated from protobuf field string commit_message = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setCommitMessage($var) - { - GPBUtil::checkString($var, True); - $this->commit_message = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitRepositoryChangesRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitRepositoryChangesRequest.php deleted file mode 100644 index ef2a1cbe5059..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitRepositoryChangesRequest.php +++ /dev/null @@ -1,191 +0,0 @@ -google.cloud.dataform.v1.CommitRepositoryChangesRequest - */ -class CommitRepositoryChangesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Required. The changes to commit to the repository. - * - * Generated from protobuf field .google.cloud.dataform.v1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $commit_metadata = null; - /** - * 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. - * - * Generated from protobuf field string required_head_commit_sha = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $required_head_commit_sha = ''; - /** - * Optional. A map to the path of the file to the operation. The path is the - * full file path including filename, from repository root. - * - * Generated from protobuf field map file_operations = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $file_operations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The repository's name. - * @type \Google\Cloud\Dataform\V1\CommitMetadata $commit_metadata - * Required. The changes to commit to the repository. - * @type string $required_head_commit_sha - * 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. - * @type array|\Google\Protobuf\Internal\MapField $file_operations - * Optional. A map to the path of the file to the operation. The path is the - * full file path including filename, from repository root. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The changes to commit to the repository. - * - * Generated from protobuf field .google.cloud.dataform.v1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataform\V1\CommitMetadata|null - */ - public function getCommitMetadata() - { - return $this->commit_metadata; - } - - public function hasCommitMetadata() - { - return isset($this->commit_metadata); - } - - public function clearCommitMetadata() - { - unset($this->commit_metadata); - } - - /** - * Required. The changes to commit to the repository. - * - * Generated from protobuf field .google.cloud.dataform.v1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataform\V1\CommitMetadata $var - * @return $this - */ - public function setCommitMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CommitMetadata::class); - $this->commit_metadata = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string required_head_commit_sha = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequiredHeadCommitSha() - { - return $this->required_head_commit_sha; - } - - /** - * 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. - * - * Generated from protobuf field string required_head_commit_sha = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequiredHeadCommitSha($var) - { - GPBUtil::checkString($var, True); - $this->required_head_commit_sha = $var; - - return $this; - } - - /** - * Optional. A map to the path of the file to the operation. The path is the - * full file path including filename, from repository root. - * - * Generated from protobuf field map file_operations = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getFileOperations() - { - return $this->file_operations; - } - - /** - * Optional. A map to the path of the file to the operation. The path is the - * full file path including filename, from repository root. - * - * Generated from protobuf field map file_operations = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setFileOperations($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\CommitRepositoryChangesRequest\FileOperation::class); - $this->file_operations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitRepositoryChangesRequest/FileOperation.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitRepositoryChangesRequest/FileOperation.php deleted file mode 100644 index de0f81f4ffad..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitRepositoryChangesRequest/FileOperation.php +++ /dev/null @@ -1,108 +0,0 @@ -google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation - */ -class FileOperation extends \Google\Protobuf\Internal\Message -{ - protected $operation; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1\CommitRepositoryChangesRequest\FileOperation\WriteFile $write_file - * Represents the write operation. - * @type \Google\Cloud\Dataform\V1\CommitRepositoryChangesRequest\FileOperation\DeleteFile $delete_file - * Represents the delete operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Represents the write operation. - * - * Generated from protobuf field .google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation.WriteFile write_file = 1; - * @return \Google\Cloud\Dataform\V1\CommitRepositoryChangesRequest\FileOperation\WriteFile|null - */ - public function getWriteFile() - { - return $this->readOneof(1); - } - - public function hasWriteFile() - { - return $this->hasOneof(1); - } - - /** - * Represents the write operation. - * - * Generated from protobuf field .google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation.WriteFile write_file = 1; - * @param \Google\Cloud\Dataform\V1\CommitRepositoryChangesRequest\FileOperation\WriteFile $var - * @return $this - */ - public function setWriteFile($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CommitRepositoryChangesRequest\FileOperation\WriteFile::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Represents the delete operation. - * - * Generated from protobuf field .google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation.DeleteFile delete_file = 2; - * @return \Google\Cloud\Dataform\V1\CommitRepositoryChangesRequest\FileOperation\DeleteFile|null - */ - public function getDeleteFile() - { - return $this->readOneof(2); - } - - public function hasDeleteFile() - { - return $this->hasOneof(2); - } - - /** - * Represents the delete operation. - * - * Generated from protobuf field .google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation.DeleteFile delete_file = 2; - * @param \Google\Cloud\Dataform\V1\CommitRepositoryChangesRequest\FileOperation\DeleteFile $var - * @return $this - */ - public function setDeleteFile($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CommitRepositoryChangesRequest\FileOperation\DeleteFile::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getOperation() - { - return $this->whichOneof("operation"); - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitRepositoryChangesRequest/FileOperation/DeleteFile.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitRepositoryChangesRequest/FileOperation/DeleteFile.php deleted file mode 100644 index dedf41bd0efc..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitRepositoryChangesRequest/FileOperation/DeleteFile.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation.DeleteFile - */ -class DeleteFile extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitRepositoryChangesRequest/FileOperation/WriteFile.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitRepositoryChangesRequest/FileOperation/WriteFile.php deleted file mode 100644 index ff5588c80307..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitRepositoryChangesRequest/FileOperation/WriteFile.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation.WriteFile - */ -class WriteFile extends \Google\Protobuf\Internal\Message -{ - /** - * The file's contents. - * - * Generated from protobuf field bytes contents = 1; - */ - protected $contents = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $contents - * The file's contents. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * The file's contents. - * - * Generated from protobuf field bytes contents = 1; - * @return string - */ - public function getContents() - { - return $this->contents; - } - - /** - * The file's contents. - * - * Generated from protobuf field bytes contents = 1; - * @param string $var - * @return $this - */ - public function setContents($var) - { - GPBUtil::checkString($var, False); - $this->contents = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitRepositoryChangesResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitRepositoryChangesResponse.php deleted file mode 100644 index 1e0481cf47d2..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitRepositoryChangesResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.dataform.v1.CommitRepositoryChangesResponse - */ -class CommitRepositoryChangesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The commit SHA of the current commit. - * - * Generated from protobuf field string commit_sha = 1; - */ - protected $commit_sha = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $commit_sha - * The commit SHA of the current commit. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * The commit SHA of the current commit. - * - * Generated from protobuf field string commit_sha = 1; - * @return string - */ - public function getCommitSha() - { - return $this->commit_sha; - } - - /** - * The commit SHA of the current commit. - * - * Generated from protobuf field string commit_sha = 1; - * @param string $var - * @return $this - */ - public function setCommitSha($var) - { - GPBUtil::checkString($var, True); - $this->commit_sha = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitWorkspaceChangesRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitWorkspaceChangesRequest.php deleted file mode 100644 index 852b95c4556c..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitWorkspaceChangesRequest.php +++ /dev/null @@ -1,183 +0,0 @@ -google.cloud.dataform.v1.CommitWorkspaceChangesRequest - */ -class CommitWorkspaceChangesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Required. The commit's author. - * - * Generated from protobuf field .google.cloud.dataform.v1.CommitAuthor author = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $author = null; - /** - * Optional. The commit's message. - * - * Generated from protobuf field string commit_message = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $commit_message = ''; - /** - * Optional. Full file paths to commit including filename, rooted at workspace - * root. If left empty, all files will be committed. - * - * Generated from protobuf field repeated string paths = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $paths; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The workspace's name. - * @type \Google\Cloud\Dataform\V1\CommitAuthor $author - * Required. The commit's author. - * @type string $commit_message - * Optional. The commit's message. - * @type string[] $paths - * Optional. Full file paths to commit including filename, rooted at workspace - * root. If left empty, all files will be committed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The commit's author. - * - * Generated from protobuf field .google.cloud.dataform.v1.CommitAuthor author = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataform\V1\CommitAuthor|null - */ - public function getAuthor() - { - return $this->author; - } - - public function hasAuthor() - { - return isset($this->author); - } - - public function clearAuthor() - { - unset($this->author); - } - - /** - * Required. The commit's author. - * - * Generated from protobuf field .google.cloud.dataform.v1.CommitAuthor author = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataform\V1\CommitAuthor $var - * @return $this - */ - public function setAuthor($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CommitAuthor::class); - $this->author = $var; - - return $this; - } - - /** - * Optional. The commit's message. - * - * Generated from protobuf field string commit_message = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getCommitMessage() - { - return $this->commit_message; - } - - /** - * Optional. The commit's message. - * - * Generated from protobuf field string commit_message = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setCommitMessage($var) - { - GPBUtil::checkString($var, True); - $this->commit_message = $var; - - return $this; - } - - /** - * Optional. Full file paths to commit including filename, rooted at workspace - * root. If left empty, all files will be committed. - * - * Generated from protobuf field repeated string paths = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getPaths() - { - return $this->paths; - } - - /** - * Optional. Full file paths to commit including filename, rooted at workspace - * root. If left empty, all files will be committed. - * - * Generated from protobuf field repeated string paths = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setPaths($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->paths = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitWorkspaceChangesResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitWorkspaceChangesResponse.php deleted file mode 100644 index 46ac9dea760b..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CommitWorkspaceChangesResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.dataform.v1.CommitWorkspaceChangesResponse - */ -class CommitWorkspaceChangesResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResult.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResult.php deleted file mode 100644 index 764e19b40e77..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResult.php +++ /dev/null @@ -1,539 +0,0 @@ -google.cloud.dataform.v1.CompilationResult - */ -class CompilationResult extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The compilation result's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Immutable. If set, fields of `code_compilation_config` override the default - * compilation settings that are specified in dataform.json. - * - * Generated from protobuf field .google.cloud.dataform.v1.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $code_compilation_config = null; - /** - * Output only. The fully resolved Git commit SHA of the code that was - * compiled. Not set for compilation results whose source is a workspace. - * - * Generated from protobuf field string resolved_git_commit_sha = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $resolved_git_commit_sha = ''; - /** - * Output only. The version of `\@dataform/core` that was used for compilation. - * - * Generated from protobuf field string dataform_core_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $dataform_core_version = ''; - /** - * Output only. Errors encountered during project compilation. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $compilation_errors; - /** - * Output only. Only set if the repository has a KMS Key. - * - * Generated from protobuf field .google.cloud.dataform.v1.DataEncryptionState data_encryption_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $data_encryption_state = null; - /** - * Output only. The timestamp of when the compilation result was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $internal_metadata = null; - /** - * Output only. Metadata indicating whether this resource is user-scoped. - * `CompilationResult` resource is `user_scoped` only if it is sourced - * from a workspace. - * - * Generated from protobuf field .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $private_resource_metadata = null; - protected $source; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $git_commitish - * 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` - * @type string $workspace - * Immutable. The name of the workspace to compile. Must be in the format - * `projects/{@*}locations/{@*}repositories/{@*}workspaces/*`. - * @type string $release_config - * Immutable. The name of the release config to compile. Must be in the - * format `projects/{@*}locations/{@*}repositories/{@*}releaseConfigs/*`. - * @type string $name - * Output only. The compilation result's name. - * @type \Google\Cloud\Dataform\V1\CodeCompilationConfig $code_compilation_config - * Immutable. If set, fields of `code_compilation_config` override the default - * compilation settings that are specified in dataform.json. - * @type string $resolved_git_commit_sha - * Output only. The fully resolved Git commit SHA of the code that was - * compiled. Not set for compilation results whose source is a workspace. - * @type string $dataform_core_version - * Output only. The version of `\@dataform/core` that was used for compilation. - * @type \Google\Cloud\Dataform\V1\CompilationResult\CompilationError[] $compilation_errors - * Output only. Errors encountered during project compilation. - * @type \Google\Cloud\Dataform\V1\DataEncryptionState $data_encryption_state - * Output only. Only set if the repository has a KMS Key. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The timestamp of when the compilation result was created. - * @type string $internal_metadata - * 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. - * @type \Google\Cloud\Dataform\V1\PrivateResourceMetadata $private_resource_metadata - * Output only. Metadata indicating whether this resource is user-scoped. - * `CompilationResult` resource is `user_scoped` only if it is sourced - * from a workspace. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * 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` - * - * Generated from protobuf field string git_commitish = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getGitCommitish() - { - return $this->readOneof(2); - } - - public function hasGitCommitish() - { - return $this->hasOneof(2); - } - - /** - * 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` - * - * Generated from protobuf field string git_commitish = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setGitCommitish($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Immutable. The name of the workspace to compile. Must be in the format - * `projects/{@*}locations/{@*}repositories/{@*}workspaces/*`. - * - * Generated from protobuf field string workspace = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @return string - */ - public function getWorkspace() - { - return $this->readOneof(3); - } - - public function hasWorkspace() - { - return $this->hasOneof(3); - } - - /** - * Immutable. The name of the workspace to compile. Must be in the format - * `projects/{@*}locations/{@*}repositories/{@*}workspaces/*`. - * - * Generated from protobuf field string workspace = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setWorkspace($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Immutable. The name of the release config to compile. Must be in the - * format `projects/{@*}locations/{@*}repositories/{@*}releaseConfigs/*`. - * - * Generated from protobuf field string release_config = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @return string - */ - public function getReleaseConfig() - { - return $this->readOneof(7); - } - - public function hasReleaseConfig() - { - return $this->hasOneof(7); - } - - /** - * Immutable. The name of the release config to compile. Must be in the - * format `projects/{@*}locations/{@*}repositories/{@*}releaseConfigs/*`. - * - * Generated from protobuf field string release_config = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setReleaseConfig($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * Output only. The compilation result's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The compilation result's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Immutable. If set, fields of `code_compilation_config` override the default - * compilation settings that are specified in dataform.json. - * - * Generated from protobuf field .google.cloud.dataform.v1.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Cloud\Dataform\V1\CodeCompilationConfig|null - */ - public function getCodeCompilationConfig() - { - return $this->code_compilation_config; - } - - public function hasCodeCompilationConfig() - { - return isset($this->code_compilation_config); - } - - public function clearCodeCompilationConfig() - { - unset($this->code_compilation_config); - } - - /** - * Immutable. If set, fields of `code_compilation_config` override the default - * compilation settings that are specified in dataform.json. - * - * Generated from protobuf field .google.cloud.dataform.v1.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Cloud\Dataform\V1\CodeCompilationConfig $var - * @return $this - */ - public function setCodeCompilationConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CodeCompilationConfig::class); - $this->code_compilation_config = $var; - - return $this; - } - - /** - * Output only. The fully resolved Git commit SHA of the code that was - * compiled. Not set for compilation results whose source is a workspace. - * - * Generated from protobuf field string resolved_git_commit_sha = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getResolvedGitCommitSha() - { - return $this->resolved_git_commit_sha; - } - - /** - * Output only. The fully resolved Git commit SHA of the code that was - * compiled. Not set for compilation results whose source is a workspace. - * - * Generated from protobuf field string resolved_git_commit_sha = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setResolvedGitCommitSha($var) - { - GPBUtil::checkString($var, True); - $this->resolved_git_commit_sha = $var; - - return $this; - } - - /** - * Output only. The version of `\@dataform/core` that was used for compilation. - * - * Generated from protobuf field string dataform_core_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDataformCoreVersion() - { - return $this->dataform_core_version; - } - - /** - * Output only. The version of `\@dataform/core` that was used for compilation. - * - * Generated from protobuf field string dataform_core_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDataformCoreVersion($var) - { - GPBUtil::checkString($var, True); - $this->dataform_core_version = $var; - - return $this; - } - - /** - * Output only. Errors encountered during project compilation. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Cloud\Dataform\V1\CompilationResult\CompilationError> - */ - public function getCompilationErrors() - { - return $this->compilation_errors; - } - - /** - * Output only. Errors encountered during project compilation. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataform\V1\CompilationResult\CompilationError[] $var - * @return $this - */ - public function setCompilationErrors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\CompilationResult\CompilationError::class); - $this->compilation_errors = $arr; - - return $this; - } - - /** - * Output only. Only set if the repository has a KMS Key. - * - * Generated from protobuf field .google.cloud.dataform.v1.DataEncryptionState data_encryption_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataform\V1\DataEncryptionState|null - */ - public function getDataEncryptionState() - { - return $this->data_encryption_state; - } - - public function hasDataEncryptionState() - { - return isset($this->data_encryption_state); - } - - public function clearDataEncryptionState() - { - unset($this->data_encryption_state); - } - - /** - * Output only. Only set if the repository has a KMS Key. - * - * Generated from protobuf field .google.cloud.dataform.v1.DataEncryptionState data_encryption_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataform\V1\DataEncryptionState $var - * @return $this - */ - public function setDataEncryptionState($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\DataEncryptionState::class); - $this->data_encryption_state = $var; - - return $this; - } - - /** - * Output only. The timestamp of when the compilation result was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The timestamp of when the compilation result was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getInternalMetadata() - { - return isset($this->internal_metadata) ? $this->internal_metadata : ''; - } - - public function hasInternalMetadata() - { - return isset($this->internal_metadata); - } - - public function clearInternalMetadata() - { - unset($this->internal_metadata); - } - - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setInternalMetadata($var) - { - GPBUtil::checkString($var, True); - $this->internal_metadata = $var; - - return $this; - } - - /** - * Output only. Metadata indicating whether this resource is user-scoped. - * `CompilationResult` resource is `user_scoped` only if it is sourced - * from a workspace. - * - * Generated from protobuf field .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataform\V1\PrivateResourceMetadata|null - */ - public function getPrivateResourceMetadata() - { - return $this->private_resource_metadata; - } - - public function hasPrivateResourceMetadata() - { - return isset($this->private_resource_metadata); - } - - public function clearPrivateResourceMetadata() - { - unset($this->private_resource_metadata); - } - - /** - * Output only. Metadata indicating whether this resource is user-scoped. - * `CompilationResult` resource is `user_scoped` only if it is sourced - * from a workspace. - * - * Generated from protobuf field .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataform\V1\PrivateResourceMetadata $var - * @return $this - */ - public function setPrivateResourceMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\PrivateResourceMetadata::class); - $this->private_resource_metadata = $var; - - return $this; - } - - /** - * @return string - */ - public function getSource() - { - return $this->whichOneof("source"); - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResult/CompilationError.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResult/CompilationError.php deleted file mode 100644 index c837522a1125..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResult/CompilationError.php +++ /dev/null @@ -1,187 +0,0 @@ -google.cloud.dataform.v1.CompilationResult.CompilationError - */ -class CompilationError extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The error's top level message. - * - * Generated from protobuf field string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $message = ''; - /** - * Output only. The error's full stack trace. - * - * Generated from protobuf field string stack = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $stack = ''; - /** - * Output only. The path of the file where this error occurred, if - * available, relative to the project root. - * - * Generated from protobuf field string path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $path = ''; - /** - * Output only. The identifier of the action where this error occurred, if - * available. - * - * Generated from protobuf field .google.cloud.dataform.v1.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $action_target = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $message - * Output only. The error's top level message. - * @type string $stack - * Output only. The error's full stack trace. - * @type string $path - * Output only. The path of the file where this error occurred, if - * available, relative to the project root. - * @type \Google\Cloud\Dataform\V1\Target $action_target - * Output only. The identifier of the action where this error occurred, if - * available. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The error's top level message. - * - * Generated from protobuf field string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * Output only. The error's top level message. - * - * Generated from protobuf field string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - - /** - * Output only. The error's full stack trace. - * - * Generated from protobuf field string stack = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getStack() - { - return $this->stack; - } - - /** - * Output only. The error's full stack trace. - * - * Generated from protobuf field string stack = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setStack($var) - { - GPBUtil::checkString($var, True); - $this->stack = $var; - - return $this; - } - - /** - * Output only. The path of the file where this error occurred, if - * available, relative to the project root. - * - * Generated from protobuf field string path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * Output only. The path of the file where this error occurred, if - * available, relative to the project root. - * - * Generated from protobuf field string path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - - /** - * Output only. The identifier of the action where this error occurred, if - * available. - * - * Generated from protobuf field .google.cloud.dataform.v1.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataform\V1\Target|null - */ - public function getActionTarget() - { - return $this->action_target; - } - - public function hasActionTarget() - { - return isset($this->action_target); - } - - public function clearActionTarget() - { - unset($this->action_target); - } - - /** - * Output only. The identifier of the action where this error occurred, if - * available. - * - * Generated from protobuf field .google.cloud.dataform.v1.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataform\V1\Target $var - * @return $this - */ - public function setActionTarget($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\Target::class); - $this->action_target = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction.php deleted file mode 100644 index 5325d703fba9..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction.php +++ /dev/null @@ -1,422 +0,0 @@ -google.cloud.dataform.v1.CompilationResultAction - */ -class CompilationResultAction extends \Google\Protobuf\Internal\Message -{ - /** - * This action's identifier. Unique within the compilation result. - * - * Generated from protobuf field .google.cloud.dataform.v1.Target target = 1; - */ - protected $target = null; - /** - * The action's identifier if the project had been compiled without any - * overrides configured. Unique within the compilation result. - * - * Generated from protobuf field .google.cloud.dataform.v1.Target canonical_target = 2; - */ - protected $canonical_target = null; - /** - * The full path including filename in which this action is located, relative - * to the workspace root. - * - * Generated from protobuf field string file_path = 3; - */ - protected $file_path = ''; - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $internal_metadata = null; - protected $compiled_object; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1\CompilationResultAction\Relation $relation - * The database relation created/updated by this action. - * @type \Google\Cloud\Dataform\V1\CompilationResultAction\Operations $operations - * The database operations executed by this action. - * @type \Google\Cloud\Dataform\V1\CompilationResultAction\Assertion $assertion - * The assertion executed by this action. - * @type \Google\Cloud\Dataform\V1\CompilationResultAction\Declaration $declaration - * The declaration declared by this action. - * @type \Google\Cloud\Dataform\V1\CompilationResultAction\Notebook $notebook - * The notebook executed by this action. - * @type \Google\Cloud\Dataform\V1\CompilationResultAction\DataPreparation $data_preparation - * The data preparation executed by this action. - * @type \Google\Cloud\Dataform\V1\Target $target - * This action's identifier. Unique within the compilation result. - * @type \Google\Cloud\Dataform\V1\Target $canonical_target - * The action's identifier if the project had been compiled without any - * overrides configured. Unique within the compilation result. - * @type string $file_path - * The full path including filename in which this action is located, relative - * to the workspace root. - * @type string $internal_metadata - * 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. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * The database relation created/updated by this action. - * - * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Relation relation = 4; - * @return \Google\Cloud\Dataform\V1\CompilationResultAction\Relation|null - */ - public function getRelation() - { - return $this->readOneof(4); - } - - public function hasRelation() - { - return $this->hasOneof(4); - } - - /** - * The database relation created/updated by this action. - * - * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Relation relation = 4; - * @param \Google\Cloud\Dataform\V1\CompilationResultAction\Relation $var - * @return $this - */ - public function setRelation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CompilationResultAction\Relation::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * The database operations executed by this action. - * - * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Operations operations = 5; - * @return \Google\Cloud\Dataform\V1\CompilationResultAction\Operations|null - */ - public function getOperations() - { - return $this->readOneof(5); - } - - public function hasOperations() - { - return $this->hasOneof(5); - } - - /** - * The database operations executed by this action. - * - * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Operations operations = 5; - * @param \Google\Cloud\Dataform\V1\CompilationResultAction\Operations $var - * @return $this - */ - public function setOperations($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CompilationResultAction\Operations::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * The assertion executed by this action. - * - * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Assertion assertion = 6; - * @return \Google\Cloud\Dataform\V1\CompilationResultAction\Assertion|null - */ - public function getAssertion() - { - return $this->readOneof(6); - } - - public function hasAssertion() - { - return $this->hasOneof(6); - } - - /** - * The assertion executed by this action. - * - * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Assertion assertion = 6; - * @param \Google\Cloud\Dataform\V1\CompilationResultAction\Assertion $var - * @return $this - */ - public function setAssertion($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CompilationResultAction\Assertion::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * The declaration declared by this action. - * - * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Declaration declaration = 7; - * @return \Google\Cloud\Dataform\V1\CompilationResultAction\Declaration|null - */ - public function getDeclaration() - { - return $this->readOneof(7); - } - - public function hasDeclaration() - { - return $this->hasOneof(7); - } - - /** - * The declaration declared by this action. - * - * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Declaration declaration = 7; - * @param \Google\Cloud\Dataform\V1\CompilationResultAction\Declaration $var - * @return $this - */ - public function setDeclaration($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CompilationResultAction\Declaration::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * The notebook executed by this action. - * - * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Notebook notebook = 8; - * @return \Google\Cloud\Dataform\V1\CompilationResultAction\Notebook|null - */ - public function getNotebook() - { - return $this->readOneof(8); - } - - public function hasNotebook() - { - return $this->hasOneof(8); - } - - /** - * The notebook executed by this action. - * - * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Notebook notebook = 8; - * @param \Google\Cloud\Dataform\V1\CompilationResultAction\Notebook $var - * @return $this - */ - public function setNotebook($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CompilationResultAction\Notebook::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * The data preparation executed by this action. - * - * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.DataPreparation data_preparation = 9; - * @return \Google\Cloud\Dataform\V1\CompilationResultAction\DataPreparation|null - */ - public function getDataPreparation() - { - return $this->readOneof(9); - } - - public function hasDataPreparation() - { - return $this->hasOneof(9); - } - - /** - * The data preparation executed by this action. - * - * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.DataPreparation data_preparation = 9; - * @param \Google\Cloud\Dataform\V1\CompilationResultAction\DataPreparation $var - * @return $this - */ - public function setDataPreparation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CompilationResultAction\DataPreparation::class); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * This action's identifier. Unique within the compilation result. - * - * Generated from protobuf field .google.cloud.dataform.v1.Target target = 1; - * @return \Google\Cloud\Dataform\V1\Target|null - */ - public function getTarget() - { - return $this->target; - } - - public function hasTarget() - { - return isset($this->target); - } - - public function clearTarget() - { - unset($this->target); - } - - /** - * This action's identifier. Unique within the compilation result. - * - * Generated from protobuf field .google.cloud.dataform.v1.Target target = 1; - * @param \Google\Cloud\Dataform\V1\Target $var - * @return $this - */ - public function setTarget($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\Target::class); - $this->target = $var; - - return $this; - } - - /** - * The action's identifier if the project had been compiled without any - * overrides configured. Unique within the compilation result. - * - * Generated from protobuf field .google.cloud.dataform.v1.Target canonical_target = 2; - * @return \Google\Cloud\Dataform\V1\Target|null - */ - public function getCanonicalTarget() - { - return $this->canonical_target; - } - - public function hasCanonicalTarget() - { - return isset($this->canonical_target); - } - - public function clearCanonicalTarget() - { - unset($this->canonical_target); - } - - /** - * The action's identifier if the project had been compiled without any - * overrides configured. Unique within the compilation result. - * - * Generated from protobuf field .google.cloud.dataform.v1.Target canonical_target = 2; - * @param \Google\Cloud\Dataform\V1\Target $var - * @return $this - */ - public function setCanonicalTarget($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\Target::class); - $this->canonical_target = $var; - - return $this; - } - - /** - * The full path including filename in which this action is located, relative - * to the workspace root. - * - * Generated from protobuf field string file_path = 3; - * @return string - */ - public function getFilePath() - { - return $this->file_path; - } - - /** - * The full path including filename in which this action is located, relative - * to the workspace root. - * - * Generated from protobuf field string file_path = 3; - * @param string $var - * @return $this - */ - public function setFilePath($var) - { - GPBUtil::checkString($var, True); - $this->file_path = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getInternalMetadata() - { - return isset($this->internal_metadata) ? $this->internal_metadata : ''; - } - - public function hasInternalMetadata() - { - return isset($this->internal_metadata); - } - - public function clearInternalMetadata() - { - unset($this->internal_metadata); - } - - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setInternalMetadata($var) - { - GPBUtil::checkString($var, True); - $this->internal_metadata = $var; - - return $this; - } - - /** - * @return string - */ - public function getCompiledObject() - { - return $this->whichOneof("compiled_object"); - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Assertion.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Assertion.php deleted file mode 100644 index 5ec52d82fa4b..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Assertion.php +++ /dev/null @@ -1,270 +0,0 @@ -google.cloud.dataform.v1.CompilationResultAction.Assertion - */ -class Assertion extends \Google\Protobuf\Internal\Message -{ - /** - * A list of actions that this action depends on. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.Target dependency_targets = 1; - */ - private $dependency_targets; - /** - * The parent action of this assertion. Only set if this assertion was - * automatically generated. - * - * Generated from protobuf field .google.cloud.dataform.v1.Target parent_action = 5; - */ - protected $parent_action = null; - /** - * Whether this action is disabled (i.e. should not be run). - * - * Generated from protobuf field bool disabled = 2; - */ - protected $disabled = false; - /** - * Arbitrary, user-defined tags on this action. - * - * Generated from protobuf field repeated string tags = 3; - */ - private $tags; - /** - * The SELECT query which must return zero rows in order for this assertion - * to succeed. - * - * Generated from protobuf field string select_query = 4; - */ - protected $select_query = ''; - /** - * Descriptor for the assertion's automatically-generated view and its - * columns. - * - * Generated from protobuf field .google.cloud.dataform.v1.RelationDescriptor relation_descriptor = 6; - */ - protected $relation_descriptor = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1\Target[] $dependency_targets - * A list of actions that this action depends on. - * @type \Google\Cloud\Dataform\V1\Target $parent_action - * The parent action of this assertion. Only set if this assertion was - * automatically generated. - * @type bool $disabled - * Whether this action is disabled (i.e. should not be run). - * @type string[] $tags - * Arbitrary, user-defined tags on this action. - * @type string $select_query - * The SELECT query which must return zero rows in order for this assertion - * to succeed. - * @type \Google\Cloud\Dataform\V1\RelationDescriptor $relation_descriptor - * Descriptor for the assertion's automatically-generated view and its - * columns. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * A list of actions that this action depends on. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.Target dependency_targets = 1; - * @return RepeatedField<\Google\Cloud\Dataform\V1\Target> - */ - public function getDependencyTargets() - { - return $this->dependency_targets; - } - - /** - * A list of actions that this action depends on. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.Target dependency_targets = 1; - * @param \Google\Cloud\Dataform\V1\Target[] $var - * @return $this - */ - public function setDependencyTargets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\Target::class); - $this->dependency_targets = $arr; - - return $this; - } - - /** - * The parent action of this assertion. Only set if this assertion was - * automatically generated. - * - * Generated from protobuf field .google.cloud.dataform.v1.Target parent_action = 5; - * @return \Google\Cloud\Dataform\V1\Target|null - */ - public function getParentAction() - { - return $this->parent_action; - } - - public function hasParentAction() - { - return isset($this->parent_action); - } - - public function clearParentAction() - { - unset($this->parent_action); - } - - /** - * The parent action of this assertion. Only set if this assertion was - * automatically generated. - * - * Generated from protobuf field .google.cloud.dataform.v1.Target parent_action = 5; - * @param \Google\Cloud\Dataform\V1\Target $var - * @return $this - */ - public function setParentAction($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\Target::class); - $this->parent_action = $var; - - return $this; - } - - /** - * Whether this action is disabled (i.e. should not be run). - * - * Generated from protobuf field bool disabled = 2; - * @return bool - */ - public function getDisabled() - { - return $this->disabled; - } - - /** - * Whether this action is disabled (i.e. should not be run). - * - * Generated from protobuf field bool disabled = 2; - * @param bool $var - * @return $this - */ - public function setDisabled($var) - { - GPBUtil::checkBool($var); - $this->disabled = $var; - - return $this; - } - - /** - * Arbitrary, user-defined tags on this action. - * - * Generated from protobuf field repeated string tags = 3; - * @return RepeatedField - */ - public function getTags() - { - return $this->tags; - } - - /** - * Arbitrary, user-defined tags on this action. - * - * Generated from protobuf field repeated string tags = 3; - * @param string[] $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->tags = $arr; - - return $this; - } - - /** - * The SELECT query which must return zero rows in order for this assertion - * to succeed. - * - * Generated from protobuf field string select_query = 4; - * @return string - */ - public function getSelectQuery() - { - return $this->select_query; - } - - /** - * The SELECT query which must return zero rows in order for this assertion - * to succeed. - * - * Generated from protobuf field string select_query = 4; - * @param string $var - * @return $this - */ - public function setSelectQuery($var) - { - GPBUtil::checkString($var, True); - $this->select_query = $var; - - return $this; - } - - /** - * Descriptor for the assertion's automatically-generated view and its - * columns. - * - * Generated from protobuf field .google.cloud.dataform.v1.RelationDescriptor relation_descriptor = 6; - * @return \Google\Cloud\Dataform\V1\RelationDescriptor|null - */ - public function getRelationDescriptor() - { - return $this->relation_descriptor; - } - - public function hasRelationDescriptor() - { - return isset($this->relation_descriptor); - } - - public function clearRelationDescriptor() - { - unset($this->relation_descriptor); - } - - /** - * Descriptor for the assertion's automatically-generated view and its - * columns. - * - * Generated from protobuf field .google.cloud.dataform.v1.RelationDescriptor relation_descriptor = 6; - * @param \Google\Cloud\Dataform\V1\RelationDescriptor $var - * @return $this - */ - public function setRelationDescriptor($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\RelationDescriptor::class); - $this->relation_descriptor = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/DataPreparation.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/DataPreparation.php deleted file mode 100644 index 1f6a4b5cd971..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/DataPreparation.php +++ /dev/null @@ -1,213 +0,0 @@ -google.cloud.dataform.v1.CompilationResultAction.DataPreparation - */ -class DataPreparation extends \Google\Protobuf\Internal\Message -{ - /** - * A list of actions that this action depends on. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.Target dependency_targets = 1; - */ - private $dependency_targets; - /** - * Whether this action is disabled (i.e. should not be run). - * - * Generated from protobuf field bool disabled = 2; - */ - protected $disabled = false; - /** - * Arbitrary, user-defined tags on this action. - * - * Generated from protobuf field repeated string tags = 4; - */ - private $tags; - protected $definition; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $contents_yaml - * The data preparation definition, stored as a YAML string. - * @type \Google\Cloud\Dataform\V1\CompilationResultAction\DataPreparation\SqlDefinition $contents_sql - * SQL definition for a Data Preparation. Contains a SQL query and - * additional context information. - * @type \Google\Cloud\Dataform\V1\Target[] $dependency_targets - * A list of actions that this action depends on. - * @type bool $disabled - * Whether this action is disabled (i.e. should not be run). - * @type string[] $tags - * Arbitrary, user-defined tags on this action. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * The data preparation definition, stored as a YAML string. - * - * Generated from protobuf field string contents_yaml = 5; - * @return string - */ - public function getContentsYaml() - { - return $this->readOneof(5); - } - - public function hasContentsYaml() - { - return $this->hasOneof(5); - } - - /** - * The data preparation definition, stored as a YAML string. - * - * Generated from protobuf field string contents_yaml = 5; - * @param string $var - * @return $this - */ - public function setContentsYaml($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * SQL definition for a Data Preparation. Contains a SQL query and - * additional context information. - * - * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.DataPreparation.SqlDefinition contents_sql = 6; - * @return \Google\Cloud\Dataform\V1\CompilationResultAction\DataPreparation\SqlDefinition|null - */ - public function getContentsSql() - { - return $this->readOneof(6); - } - - public function hasContentsSql() - { - return $this->hasOneof(6); - } - - /** - * SQL definition for a Data Preparation. Contains a SQL query and - * additional context information. - * - * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.DataPreparation.SqlDefinition contents_sql = 6; - * @param \Google\Cloud\Dataform\V1\CompilationResultAction\DataPreparation\SqlDefinition $var - * @return $this - */ - public function setContentsSql($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CompilationResultAction\DataPreparation\SqlDefinition::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * A list of actions that this action depends on. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.Target dependency_targets = 1; - * @return RepeatedField<\Google\Cloud\Dataform\V1\Target> - */ - public function getDependencyTargets() - { - return $this->dependency_targets; - } - - /** - * A list of actions that this action depends on. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.Target dependency_targets = 1; - * @param \Google\Cloud\Dataform\V1\Target[] $var - * @return $this - */ - public function setDependencyTargets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\Target::class); - $this->dependency_targets = $arr; - - return $this; - } - - /** - * Whether this action is disabled (i.e. should not be run). - * - * Generated from protobuf field bool disabled = 2; - * @return bool - */ - public function getDisabled() - { - return $this->disabled; - } - - /** - * Whether this action is disabled (i.e. should not be run). - * - * Generated from protobuf field bool disabled = 2; - * @param bool $var - * @return $this - */ - public function setDisabled($var) - { - GPBUtil::checkBool($var); - $this->disabled = $var; - - return $this; - } - - /** - * Arbitrary, user-defined tags on this action. - * - * Generated from protobuf field repeated string tags = 4; - * @return RepeatedField - */ - public function getTags() - { - return $this->tags; - } - - /** - * Arbitrary, user-defined tags on this action. - * - * Generated from protobuf field repeated string tags = 4; - * @param string[] $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->tags = $arr; - - return $this; - } - - /** - * @return string - */ - public function getDefinition() - { - return $this->whichOneof("definition"); - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/DataPreparation/ErrorTable.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/DataPreparation/ErrorTable.php deleted file mode 100644 index bfec929c31fc..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/DataPreparation/ErrorTable.php +++ /dev/null @@ -1,116 +0,0 @@ -google.cloud.dataform.v1.CompilationResultAction.DataPreparation.ErrorTable - */ -class ErrorTable extends \Google\Protobuf\Internal\Message -{ - /** - * Error Table target. - * - * Generated from protobuf field .google.cloud.dataform.v1.Target target = 1; - */ - protected $target = null; - /** - * Error table partition expiration in days. Only positive values are - * allowed. - * - * Generated from protobuf field int32 retention_days = 2; - */ - protected $retention_days = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1\Target $target - * Error Table target. - * @type int $retention_days - * Error table partition expiration in days. Only positive values are - * allowed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Error Table target. - * - * Generated from protobuf field .google.cloud.dataform.v1.Target target = 1; - * @return \Google\Cloud\Dataform\V1\Target|null - */ - public function getTarget() - { - return $this->target; - } - - public function hasTarget() - { - return isset($this->target); - } - - public function clearTarget() - { - unset($this->target); - } - - /** - * Error Table target. - * - * Generated from protobuf field .google.cloud.dataform.v1.Target target = 1; - * @param \Google\Cloud\Dataform\V1\Target $var - * @return $this - */ - public function setTarget($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\Target::class); - $this->target = $var; - - return $this; - } - - /** - * Error table partition expiration in days. Only positive values are - * allowed. - * - * Generated from protobuf field int32 retention_days = 2; - * @return int - */ - public function getRetentionDays() - { - return $this->retention_days; - } - - /** - * Error table partition expiration in days. Only positive values are - * allowed. - * - * Generated from protobuf field int32 retention_days = 2; - * @param int $var - * @return $this - */ - public function setRetentionDays($var) - { - GPBUtil::checkInt32($var); - $this->retention_days = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/DataPreparation/SqlDefinition.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/DataPreparation/SqlDefinition.php deleted file mode 100644 index 622fb9c11830..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/DataPreparation/SqlDefinition.php +++ /dev/null @@ -1,159 +0,0 @@ -google.cloud.dataform.v1.CompilationResultAction.DataPreparation.SqlDefinition - */ -class SqlDefinition extends \Google\Protobuf\Internal\Message -{ - /** - * The SQL query representing the data preparation steps. Formatted as a - * Pipe SQL query statement. - * - * Generated from protobuf field string query = 1; - */ - protected $query = ''; - /** - * Error table configuration, - * - * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.DataPreparation.ErrorTable error_table = 2; - */ - protected $error_table = null; - /** - * Load configuration. - * - * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.LoadConfig load = 3; - */ - protected $load = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $query - * The SQL query representing the data preparation steps. Formatted as a - * Pipe SQL query statement. - * @type \Google\Cloud\Dataform\V1\CompilationResultAction\DataPreparation\ErrorTable $error_table - * Error table configuration, - * @type \Google\Cloud\Dataform\V1\CompilationResultAction\LoadConfig $load - * Load configuration. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * The SQL query representing the data preparation steps. Formatted as a - * Pipe SQL query statement. - * - * Generated from protobuf field string query = 1; - * @return string - */ - public function getQuery() - { - return $this->query; - } - - /** - * The SQL query representing the data preparation steps. Formatted as a - * Pipe SQL query statement. - * - * Generated from protobuf field string query = 1; - * @param string $var - * @return $this - */ - public function setQuery($var) - { - GPBUtil::checkString($var, True); - $this->query = $var; - - return $this; - } - - /** - * Error table configuration, - * - * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.DataPreparation.ErrorTable error_table = 2; - * @return \Google\Cloud\Dataform\V1\CompilationResultAction\DataPreparation\ErrorTable|null - */ - public function getErrorTable() - { - return $this->error_table; - } - - public function hasErrorTable() - { - return isset($this->error_table); - } - - public function clearErrorTable() - { - unset($this->error_table); - } - - /** - * Error table configuration, - * - * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.DataPreparation.ErrorTable error_table = 2; - * @param \Google\Cloud\Dataform\V1\CompilationResultAction\DataPreparation\ErrorTable $var - * @return $this - */ - public function setErrorTable($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CompilationResultAction\DataPreparation\ErrorTable::class); - $this->error_table = $var; - - return $this; - } - - /** - * Load configuration. - * - * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.LoadConfig load = 3; - * @return \Google\Cloud\Dataform\V1\CompilationResultAction\LoadConfig|null - */ - public function getLoad() - { - return $this->load; - } - - public function hasLoad() - { - return isset($this->load); - } - - public function clearLoad() - { - unset($this->load); - } - - /** - * Load configuration. - * - * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.LoadConfig load = 3; - * @param \Google\Cloud\Dataform\V1\CompilationResultAction\LoadConfig $var - * @return $this - */ - public function setLoad($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CompilationResultAction\LoadConfig::class); - $this->load = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Declaration.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Declaration.php deleted file mode 100644 index 497cb96fa776..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Declaration.php +++ /dev/null @@ -1,82 +0,0 @@ -google.cloud.dataform.v1.CompilationResultAction.Declaration - */ -class Declaration extends \Google\Protobuf\Internal\Message -{ - /** - * 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. - * - * Generated from protobuf field .google.cloud.dataform.v1.RelationDescriptor relation_descriptor = 1; - */ - protected $relation_descriptor = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1\RelationDescriptor $relation_descriptor - * 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. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * 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. - * - * Generated from protobuf field .google.cloud.dataform.v1.RelationDescriptor relation_descriptor = 1; - * @return \Google\Cloud\Dataform\V1\RelationDescriptor|null - */ - public function getRelationDescriptor() - { - return $this->relation_descriptor; - } - - public function hasRelationDescriptor() - { - return isset($this->relation_descriptor); - } - - public function clearRelationDescriptor() - { - unset($this->relation_descriptor); - } - - /** - * 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. - * - * Generated from protobuf field .google.cloud.dataform.v1.RelationDescriptor relation_descriptor = 1; - * @param \Google\Cloud\Dataform\V1\RelationDescriptor $var - * @return $this - */ - public function setRelationDescriptor($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\RelationDescriptor::class); - $this->relation_descriptor = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/IncrementalLoadMode.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/IncrementalLoadMode.php deleted file mode 100644 index 166c506f75ce..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/IncrementalLoadMode.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.dataform.v1.CompilationResultAction.IncrementalLoadMode - */ -class IncrementalLoadMode extends \Google\Protobuf\Internal\Message -{ - /** - * Column name for incremental load modes - * - * Generated from protobuf field string column = 1; - */ - protected $column = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $column - * Column name for incremental load modes - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Column name for incremental load modes - * - * Generated from protobuf field string column = 1; - * @return string - */ - public function getColumn() - { - return $this->column; - } - - /** - * Column name for incremental load modes - * - * Generated from protobuf field string column = 1; - * @param string $var - * @return $this - */ - public function setColumn($var) - { - GPBUtil::checkString($var, True); - $this->column = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/LoadConfig.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/LoadConfig.php deleted file mode 100644 index 48f861be247a..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/LoadConfig.php +++ /dev/null @@ -1,180 +0,0 @@ -google.cloud.dataform.v1.CompilationResultAction.LoadConfig - */ -class LoadConfig extends \Google\Protobuf\Internal\Message -{ - protected $mode; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1\CompilationResultAction\SimpleLoadMode $replace - * Replace destination table - * @type \Google\Cloud\Dataform\V1\CompilationResultAction\SimpleLoadMode $append - * Append into destination table - * @type \Google\Cloud\Dataform\V1\CompilationResultAction\IncrementalLoadMode $maximum - * Insert records where the value exceeds the previous maximum value for a - * column in the destination table - * @type \Google\Cloud\Dataform\V1\CompilationResultAction\IncrementalLoadMode $unique - * Insert records where the value of a column is not already present in - * the destination table - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Replace destination table - * - * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.SimpleLoadMode replace = 1; - * @return \Google\Cloud\Dataform\V1\CompilationResultAction\SimpleLoadMode|null - */ - public function getReplace() - { - return $this->readOneof(1); - } - - public function hasReplace() - { - return $this->hasOneof(1); - } - - /** - * Replace destination table - * - * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.SimpleLoadMode replace = 1; - * @param \Google\Cloud\Dataform\V1\CompilationResultAction\SimpleLoadMode $var - * @return $this - */ - public function setReplace($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CompilationResultAction\SimpleLoadMode::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Append into destination table - * - * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.SimpleLoadMode append = 2; - * @return \Google\Cloud\Dataform\V1\CompilationResultAction\SimpleLoadMode|null - */ - public function getAppend() - { - return $this->readOneof(2); - } - - public function hasAppend() - { - return $this->hasOneof(2); - } - - /** - * Append into destination table - * - * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.SimpleLoadMode append = 2; - * @param \Google\Cloud\Dataform\V1\CompilationResultAction\SimpleLoadMode $var - * @return $this - */ - public function setAppend($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CompilationResultAction\SimpleLoadMode::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Insert records where the value exceeds the previous maximum value for a - * column in the destination table - * - * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.IncrementalLoadMode maximum = 3; - * @return \Google\Cloud\Dataform\V1\CompilationResultAction\IncrementalLoadMode|null - */ - public function getMaximum() - { - return $this->readOneof(3); - } - - public function hasMaximum() - { - return $this->hasOneof(3); - } - - /** - * Insert records where the value exceeds the previous maximum value for a - * column in the destination table - * - * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.IncrementalLoadMode maximum = 3; - * @param \Google\Cloud\Dataform\V1\CompilationResultAction\IncrementalLoadMode $var - * @return $this - */ - public function setMaximum($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CompilationResultAction\IncrementalLoadMode::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Insert records where the value of a column is not already present in - * the destination table - * - * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.IncrementalLoadMode unique = 4; - * @return \Google\Cloud\Dataform\V1\CompilationResultAction\IncrementalLoadMode|null - */ - public function getUnique() - { - return $this->readOneof(4); - } - - public function hasUnique() - { - return $this->hasOneof(4); - } - - /** - * Insert records where the value of a column is not already present in - * the destination table - * - * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.IncrementalLoadMode unique = 4; - * @param \Google\Cloud\Dataform\V1\CompilationResultAction\IncrementalLoadMode $var - * @return $this - */ - public function setUnique($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CompilationResultAction\IncrementalLoadMode::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getMode() - { - return $this->whichOneof("mode"); - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Notebook.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Notebook.php deleted file mode 100644 index 7a2c90bffabb..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Notebook.php +++ /dev/null @@ -1,169 +0,0 @@ -google.cloud.dataform.v1.CompilationResultAction.Notebook - */ -class Notebook extends \Google\Protobuf\Internal\Message -{ - /** - * A list of actions that this action depends on. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.Target dependency_targets = 1; - */ - private $dependency_targets; - /** - * Whether this action is disabled (i.e. should not be run). - * - * Generated from protobuf field bool disabled = 2; - */ - protected $disabled = false; - /** - * The contents of the notebook. - * - * Generated from protobuf field string contents = 3; - */ - protected $contents = ''; - /** - * Arbitrary, user-defined tags on this action. - * - * Generated from protobuf field repeated string tags = 4; - */ - private $tags; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1\Target[] $dependency_targets - * A list of actions that this action depends on. - * @type bool $disabled - * Whether this action is disabled (i.e. should not be run). - * @type string $contents - * The contents of the notebook. - * @type string[] $tags - * Arbitrary, user-defined tags on this action. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * A list of actions that this action depends on. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.Target dependency_targets = 1; - * @return RepeatedField<\Google\Cloud\Dataform\V1\Target> - */ - public function getDependencyTargets() - { - return $this->dependency_targets; - } - - /** - * A list of actions that this action depends on. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.Target dependency_targets = 1; - * @param \Google\Cloud\Dataform\V1\Target[] $var - * @return $this - */ - public function setDependencyTargets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\Target::class); - $this->dependency_targets = $arr; - - return $this; - } - - /** - * Whether this action is disabled (i.e. should not be run). - * - * Generated from protobuf field bool disabled = 2; - * @return bool - */ - public function getDisabled() - { - return $this->disabled; - } - - /** - * Whether this action is disabled (i.e. should not be run). - * - * Generated from protobuf field bool disabled = 2; - * @param bool $var - * @return $this - */ - public function setDisabled($var) - { - GPBUtil::checkBool($var); - $this->disabled = $var; - - return $this; - } - - /** - * The contents of the notebook. - * - * Generated from protobuf field string contents = 3; - * @return string - */ - public function getContents() - { - return $this->contents; - } - - /** - * The contents of the notebook. - * - * Generated from protobuf field string contents = 3; - * @param string $var - * @return $this - */ - public function setContents($var) - { - GPBUtil::checkString($var, True); - $this->contents = $var; - - return $this; - } - - /** - * Arbitrary, user-defined tags on this action. - * - * Generated from protobuf field repeated string tags = 4; - * @return RepeatedField - */ - public function getTags() - { - return $this->tags; - } - - /** - * Arbitrary, user-defined tags on this action. - * - * Generated from protobuf field repeated string tags = 4; - * @param string[] $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->tags = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Operations.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Operations.php deleted file mode 100644 index e58c9428d87d..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Operations.php +++ /dev/null @@ -1,255 +0,0 @@ -google.cloud.dataform.v1.CompilationResultAction.Operations - */ -class Operations extends \Google\Protobuf\Internal\Message -{ - /** - * A list of actions that this action depends on. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.Target dependency_targets = 1; - */ - private $dependency_targets; - /** - * Whether this action is disabled (i.e. should not be run). - * - * Generated from protobuf field bool disabled = 2; - */ - protected $disabled = false; - /** - * Arbitrary, user-defined tags on this action. - * - * Generated from protobuf field repeated string tags = 3; - */ - private $tags; - /** - * Descriptor for any output relation and its columns. Only set if - * `has_output` is true. - * - * Generated from protobuf field .google.cloud.dataform.v1.RelationDescriptor relation_descriptor = 6; - */ - protected $relation_descriptor = null; - /** - * A list of arbitrary SQL statements that will be executed without - * alteration. - * - * Generated from protobuf field repeated string queries = 4; - */ - private $queries; - /** - * Whether these operations produce an output relation. - * - * Generated from protobuf field bool has_output = 5; - */ - protected $has_output = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1\Target[] $dependency_targets - * A list of actions that this action depends on. - * @type bool $disabled - * Whether this action is disabled (i.e. should not be run). - * @type string[] $tags - * Arbitrary, user-defined tags on this action. - * @type \Google\Cloud\Dataform\V1\RelationDescriptor $relation_descriptor - * Descriptor for any output relation and its columns. Only set if - * `has_output` is true. - * @type string[] $queries - * A list of arbitrary SQL statements that will be executed without - * alteration. - * @type bool $has_output - * Whether these operations produce an output relation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * A list of actions that this action depends on. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.Target dependency_targets = 1; - * @return RepeatedField<\Google\Cloud\Dataform\V1\Target> - */ - public function getDependencyTargets() - { - return $this->dependency_targets; - } - - /** - * A list of actions that this action depends on. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.Target dependency_targets = 1; - * @param \Google\Cloud\Dataform\V1\Target[] $var - * @return $this - */ - public function setDependencyTargets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\Target::class); - $this->dependency_targets = $arr; - - return $this; - } - - /** - * Whether this action is disabled (i.e. should not be run). - * - * Generated from protobuf field bool disabled = 2; - * @return bool - */ - public function getDisabled() - { - return $this->disabled; - } - - /** - * Whether this action is disabled (i.e. should not be run). - * - * Generated from protobuf field bool disabled = 2; - * @param bool $var - * @return $this - */ - public function setDisabled($var) - { - GPBUtil::checkBool($var); - $this->disabled = $var; - - return $this; - } - - /** - * Arbitrary, user-defined tags on this action. - * - * Generated from protobuf field repeated string tags = 3; - * @return RepeatedField - */ - public function getTags() - { - return $this->tags; - } - - /** - * Arbitrary, user-defined tags on this action. - * - * Generated from protobuf field repeated string tags = 3; - * @param string[] $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->tags = $arr; - - return $this; - } - - /** - * Descriptor for any output relation and its columns. Only set if - * `has_output` is true. - * - * Generated from protobuf field .google.cloud.dataform.v1.RelationDescriptor relation_descriptor = 6; - * @return \Google\Cloud\Dataform\V1\RelationDescriptor|null - */ - public function getRelationDescriptor() - { - return $this->relation_descriptor; - } - - public function hasRelationDescriptor() - { - return isset($this->relation_descriptor); - } - - public function clearRelationDescriptor() - { - unset($this->relation_descriptor); - } - - /** - * Descriptor for any output relation and its columns. Only set if - * `has_output` is true. - * - * Generated from protobuf field .google.cloud.dataform.v1.RelationDescriptor relation_descriptor = 6; - * @param \Google\Cloud\Dataform\V1\RelationDescriptor $var - * @return $this - */ - public function setRelationDescriptor($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\RelationDescriptor::class); - $this->relation_descriptor = $var; - - return $this; - } - - /** - * A list of arbitrary SQL statements that will be executed without - * alteration. - * - * Generated from protobuf field repeated string queries = 4; - * @return RepeatedField - */ - public function getQueries() - { - return $this->queries; - } - - /** - * A list of arbitrary SQL statements that will be executed without - * alteration. - * - * Generated from protobuf field repeated string queries = 4; - * @param string[] $var - * @return $this - */ - public function setQueries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->queries = $arr; - - return $this; - } - - /** - * Whether these operations produce an output relation. - * - * Generated from protobuf field bool has_output = 5; - * @return bool - */ - public function getHasOutput() - { - return $this->has_output; - } - - /** - * Whether these operations produce an output relation. - * - * Generated from protobuf field bool has_output = 5; - * @param bool $var - * @return $this - */ - public function setHasOutput($var) - { - GPBUtil::checkBool($var); - $this->has_output = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Relation.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Relation.php deleted file mode 100644 index 86c8d4ccbfb9..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Relation.php +++ /dev/null @@ -1,709 +0,0 @@ -google.cloud.dataform.v1.CompilationResultAction.Relation - */ -class Relation extends \Google\Protobuf\Internal\Message -{ - /** - * A list of actions that this action depends on. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.Target dependency_targets = 1; - */ - private $dependency_targets; - /** - * Whether this action is disabled (i.e. should not be run). - * - * Generated from protobuf field bool disabled = 2; - */ - protected $disabled = false; - /** - * Arbitrary, user-defined tags on this action. - * - * Generated from protobuf field repeated string tags = 3; - */ - private $tags; - /** - * Descriptor for the relation and its columns. - * - * Generated from protobuf field .google.cloud.dataform.v1.RelationDescriptor relation_descriptor = 4; - */ - protected $relation_descriptor = null; - /** - * The type of this relation. - * - * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Relation.RelationType relation_type = 5; - */ - protected $relation_type = 0; - /** - * The SELECT query which returns rows which this relation should contain. - * - * Generated from protobuf field string select_query = 6; - */ - protected $select_query = ''; - /** - * SQL statements to be executed before creating the relation. - * - * Generated from protobuf field repeated string pre_operations = 7; - */ - private $pre_operations; - /** - * SQL statements to be executed after creating the relation. - * - * Generated from protobuf field repeated string post_operations = 8; - */ - private $post_operations; - /** - * Configures `INCREMENTAL_TABLE` settings for this relation. Only set if - * `relation_type` is `INCREMENTAL_TABLE`. - * - * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9; - */ - protected $incremental_table_config = null; - /** - * The SQL expression used to partition the relation. - * - * Generated from protobuf field string partition_expression = 10; - */ - protected $partition_expression = ''; - /** - * A list of columns or SQL expressions used to cluster the table. - * - * Generated from protobuf field repeated string cluster_expressions = 11; - */ - private $cluster_expressions; - /** - * Sets the partition expiration in days. - * - * Generated from protobuf field int32 partition_expiration_days = 12; - */ - protected $partition_expiration_days = 0; - /** - * Specifies whether queries on this table must include a predicate filter - * that filters on the partitioning column. - * - * Generated from protobuf field bool require_partition_filter = 13; - */ - protected $require_partition_filter = false; - /** - * 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. - * - * Generated from protobuf field map additional_options = 14; - */ - private $additional_options; - /** - * 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. - * - * Generated from protobuf field string connection = 15 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $connection = ''; - /** - * Optional. The table format for the BigQuery table. - * - * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat table_format = 16 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $table_format = 0; - /** - * Optional. The file format for the BigQuery table. - * - * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat file_format = 17 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $file_format = 0; - /** - * 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/`. - * - * Generated from protobuf field string storage_uri = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $storage_uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1\Target[] $dependency_targets - * A list of actions that this action depends on. - * @type bool $disabled - * Whether this action is disabled (i.e. should not be run). - * @type string[] $tags - * Arbitrary, user-defined tags on this action. - * @type \Google\Cloud\Dataform\V1\RelationDescriptor $relation_descriptor - * Descriptor for the relation and its columns. - * @type int $relation_type - * The type of this relation. - * @type string $select_query - * The SELECT query which returns rows which this relation should contain. - * @type string[] $pre_operations - * SQL statements to be executed before creating the relation. - * @type string[] $post_operations - * SQL statements to be executed after creating the relation. - * @type \Google\Cloud\Dataform\V1\CompilationResultAction\Relation\IncrementalTableConfig $incremental_table_config - * Configures `INCREMENTAL_TABLE` settings for this relation. Only set if - * `relation_type` is `INCREMENTAL_TABLE`. - * @type string $partition_expression - * The SQL expression used to partition the relation. - * @type string[] $cluster_expressions - * A list of columns or SQL expressions used to cluster the table. - * @type int $partition_expiration_days - * Sets the partition expiration in days. - * @type bool $require_partition_filter - * Specifies whether queries on this table must include a predicate filter - * that filters on the partitioning column. - * @type array|\Google\Protobuf\Internal\MapField $additional_options - * 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. - * @type string $connection - * 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. - * @type int $table_format - * Optional. The table format for the BigQuery table. - * @type int $file_format - * Optional. The file format for the BigQuery table. - * @type string $storage_uri - * 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/`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * A list of actions that this action depends on. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.Target dependency_targets = 1; - * @return RepeatedField<\Google\Cloud\Dataform\V1\Target> - */ - public function getDependencyTargets() - { - return $this->dependency_targets; - } - - /** - * A list of actions that this action depends on. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.Target dependency_targets = 1; - * @param \Google\Cloud\Dataform\V1\Target[] $var - * @return $this - */ - public function setDependencyTargets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\Target::class); - $this->dependency_targets = $arr; - - return $this; - } - - /** - * Whether this action is disabled (i.e. should not be run). - * - * Generated from protobuf field bool disabled = 2; - * @return bool - */ - public function getDisabled() - { - return $this->disabled; - } - - /** - * Whether this action is disabled (i.e. should not be run). - * - * Generated from protobuf field bool disabled = 2; - * @param bool $var - * @return $this - */ - public function setDisabled($var) - { - GPBUtil::checkBool($var); - $this->disabled = $var; - - return $this; - } - - /** - * Arbitrary, user-defined tags on this action. - * - * Generated from protobuf field repeated string tags = 3; - * @return RepeatedField - */ - public function getTags() - { - return $this->tags; - } - - /** - * Arbitrary, user-defined tags on this action. - * - * Generated from protobuf field repeated string tags = 3; - * @param string[] $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->tags = $arr; - - return $this; - } - - /** - * Descriptor for the relation and its columns. - * - * Generated from protobuf field .google.cloud.dataform.v1.RelationDescriptor relation_descriptor = 4; - * @return \Google\Cloud\Dataform\V1\RelationDescriptor|null - */ - public function getRelationDescriptor() - { - return $this->relation_descriptor; - } - - public function hasRelationDescriptor() - { - return isset($this->relation_descriptor); - } - - public function clearRelationDescriptor() - { - unset($this->relation_descriptor); - } - - /** - * Descriptor for the relation and its columns. - * - * Generated from protobuf field .google.cloud.dataform.v1.RelationDescriptor relation_descriptor = 4; - * @param \Google\Cloud\Dataform\V1\RelationDescriptor $var - * @return $this - */ - public function setRelationDescriptor($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\RelationDescriptor::class); - $this->relation_descriptor = $var; - - return $this; - } - - /** - * The type of this relation. - * - * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Relation.RelationType relation_type = 5; - * @return int - */ - public function getRelationType() - { - return $this->relation_type; - } - - /** - * The type of this relation. - * - * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Relation.RelationType relation_type = 5; - * @param int $var - * @return $this - */ - public function setRelationType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1\CompilationResultAction\Relation\RelationType::class); - $this->relation_type = $var; - - return $this; - } - - /** - * The SELECT query which returns rows which this relation should contain. - * - * Generated from protobuf field string select_query = 6; - * @return string - */ - public function getSelectQuery() - { - return $this->select_query; - } - - /** - * The SELECT query which returns rows which this relation should contain. - * - * Generated from protobuf field string select_query = 6; - * @param string $var - * @return $this - */ - public function setSelectQuery($var) - { - GPBUtil::checkString($var, True); - $this->select_query = $var; - - return $this; - } - - /** - * SQL statements to be executed before creating the relation. - * - * Generated from protobuf field repeated string pre_operations = 7; - * @return RepeatedField - */ - public function getPreOperations() - { - return $this->pre_operations; - } - - /** - * SQL statements to be executed before creating the relation. - * - * Generated from protobuf field repeated string pre_operations = 7; - * @param string[] $var - * @return $this - */ - public function setPreOperations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->pre_operations = $arr; - - return $this; - } - - /** - * SQL statements to be executed after creating the relation. - * - * Generated from protobuf field repeated string post_operations = 8; - * @return RepeatedField - */ - public function getPostOperations() - { - return $this->post_operations; - } - - /** - * SQL statements to be executed after creating the relation. - * - * Generated from protobuf field repeated string post_operations = 8; - * @param string[] $var - * @return $this - */ - public function setPostOperations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->post_operations = $arr; - - return $this; - } - - /** - * Configures `INCREMENTAL_TABLE` settings for this relation. Only set if - * `relation_type` is `INCREMENTAL_TABLE`. - * - * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9; - * @return \Google\Cloud\Dataform\V1\CompilationResultAction\Relation\IncrementalTableConfig|null - */ - public function getIncrementalTableConfig() - { - return $this->incremental_table_config; - } - - public function hasIncrementalTableConfig() - { - return isset($this->incremental_table_config); - } - - public function clearIncrementalTableConfig() - { - unset($this->incremental_table_config); - } - - /** - * Configures `INCREMENTAL_TABLE` settings for this relation. Only set if - * `relation_type` is `INCREMENTAL_TABLE`. - * - * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9; - * @param \Google\Cloud\Dataform\V1\CompilationResultAction\Relation\IncrementalTableConfig $var - * @return $this - */ - public function setIncrementalTableConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CompilationResultAction\Relation\IncrementalTableConfig::class); - $this->incremental_table_config = $var; - - return $this; - } - - /** - * The SQL expression used to partition the relation. - * - * Generated from protobuf field string partition_expression = 10; - * @return string - */ - public function getPartitionExpression() - { - return $this->partition_expression; - } - - /** - * The SQL expression used to partition the relation. - * - * Generated from protobuf field string partition_expression = 10; - * @param string $var - * @return $this - */ - public function setPartitionExpression($var) - { - GPBUtil::checkString($var, True); - $this->partition_expression = $var; - - return $this; - } - - /** - * A list of columns or SQL expressions used to cluster the table. - * - * Generated from protobuf field repeated string cluster_expressions = 11; - * @return RepeatedField - */ - public function getClusterExpressions() - { - return $this->cluster_expressions; - } - - /** - * A list of columns or SQL expressions used to cluster the table. - * - * Generated from protobuf field repeated string cluster_expressions = 11; - * @param string[] $var - * @return $this - */ - public function setClusterExpressions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->cluster_expressions = $arr; - - return $this; - } - - /** - * Sets the partition expiration in days. - * - * Generated from protobuf field int32 partition_expiration_days = 12; - * @return int - */ - public function getPartitionExpirationDays() - { - return $this->partition_expiration_days; - } - - /** - * Sets the partition expiration in days. - * - * Generated from protobuf field int32 partition_expiration_days = 12; - * @param int $var - * @return $this - */ - public function setPartitionExpirationDays($var) - { - GPBUtil::checkInt32($var); - $this->partition_expiration_days = $var; - - return $this; - } - - /** - * Specifies whether queries on this table must include a predicate filter - * that filters on the partitioning column. - * - * Generated from protobuf field bool require_partition_filter = 13; - * @return bool - */ - public function getRequirePartitionFilter() - { - return $this->require_partition_filter; - } - - /** - * Specifies whether queries on this table must include a predicate filter - * that filters on the partitioning column. - * - * Generated from protobuf field bool require_partition_filter = 13; - * @param bool $var - * @return $this - */ - public function setRequirePartitionFilter($var) - { - GPBUtil::checkBool($var); - $this->require_partition_filter = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field map additional_options = 14; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAdditionalOptions() - { - return $this->additional_options; - } - - /** - * 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. - * - * Generated from protobuf field map additional_options = 14; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAdditionalOptions($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->additional_options = $arr; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string connection = 15 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getConnection() - { - return $this->connection; - } - - /** - * 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. - * - * Generated from protobuf field string connection = 15 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setConnection($var) - { - GPBUtil::checkString($var, True); - $this->connection = $var; - - return $this; - } - - /** - * Optional. The table format for the BigQuery table. - * - * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat table_format = 16 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getTableFormat() - { - return $this->table_format; - } - - /** - * Optional. The table format for the BigQuery table. - * - * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormat table_format = 16 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setTableFormat($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1\CompilationResultAction\Relation\TableFormat::class); - $this->table_format = $var; - - return $this; - } - - /** - * Optional. The file format for the BigQuery table. - * - * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat file_format = 17 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getFileFormat() - { - return $this->file_format; - } - - /** - * Optional. The file format for the BigQuery table. - * - * Generated from protobuf field .google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormat file_format = 17 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setFileFormat($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1\CompilationResultAction\Relation\FileFormat::class); - $this->file_format = $var; - - return $this; - } - - /** - * 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/`. - * - * Generated from protobuf field string storage_uri = 18 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getStorageUri() - { - return $this->storage_uri; - } - - /** - * 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/`. - * - * Generated from protobuf field string storage_uri = 18 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setStorageUri($var) - { - GPBUtil::checkString($var, True); - $this->storage_uri = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Relation/IncrementalTableConfig.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Relation/IncrementalTableConfig.php deleted file mode 100644 index ddf2f0a90d7a..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Relation/IncrementalTableConfig.php +++ /dev/null @@ -1,269 +0,0 @@ -google.cloud.dataform.v1.CompilationResultAction.Relation.IncrementalTableConfig - */ -class IncrementalTableConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The SELECT query which returns rows which should be inserted into the - * relation if it already exists and is not being refreshed. - * - * Generated from protobuf field string incremental_select_query = 1; - */ - protected $incremental_select_query = ''; - /** - * Whether this table should be protected from being refreshed. - * - * Generated from protobuf field bool refresh_disabled = 2; - */ - protected $refresh_disabled = false; - /** - * 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. - * - * Generated from protobuf field repeated string unique_key_parts = 3; - */ - private $unique_key_parts; - /** - * A SQL expression conditional used to limit the set of existing rows - * considered for a merge operation (see `unique_key_parts` for more - * information). - * - * Generated from protobuf field string update_partition_filter = 4; - */ - protected $update_partition_filter = ''; - /** - * SQL statements to be executed before inserting new rows into the - * relation. - * - * Generated from protobuf field repeated string incremental_pre_operations = 5; - */ - private $incremental_pre_operations; - /** - * SQL statements to be executed after inserting new rows into the - * relation. - * - * Generated from protobuf field repeated string incremental_post_operations = 6; - */ - private $incremental_post_operations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $incremental_select_query - * The SELECT query which returns rows which should be inserted into the - * relation if it already exists and is not being refreshed. - * @type bool $refresh_disabled - * Whether this table should be protected from being refreshed. - * @type string[] $unique_key_parts - * 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. - * @type string $update_partition_filter - * A SQL expression conditional used to limit the set of existing rows - * considered for a merge operation (see `unique_key_parts` for more - * information). - * @type string[] $incremental_pre_operations - * SQL statements to be executed before inserting new rows into the - * relation. - * @type string[] $incremental_post_operations - * SQL statements to be executed after inserting new rows into the - * relation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * The SELECT query which returns rows which should be inserted into the - * relation if it already exists and is not being refreshed. - * - * Generated from protobuf field string incremental_select_query = 1; - * @return string - */ - public function getIncrementalSelectQuery() - { - return $this->incremental_select_query; - } - - /** - * The SELECT query which returns rows which should be inserted into the - * relation if it already exists and is not being refreshed. - * - * Generated from protobuf field string incremental_select_query = 1; - * @param string $var - * @return $this - */ - public function setIncrementalSelectQuery($var) - { - GPBUtil::checkString($var, True); - $this->incremental_select_query = $var; - - return $this; - } - - /** - * Whether this table should be protected from being refreshed. - * - * Generated from protobuf field bool refresh_disabled = 2; - * @return bool - */ - public function getRefreshDisabled() - { - return $this->refresh_disabled; - } - - /** - * Whether this table should be protected from being refreshed. - * - * Generated from protobuf field bool refresh_disabled = 2; - * @param bool $var - * @return $this - */ - public function setRefreshDisabled($var) - { - GPBUtil::checkBool($var); - $this->refresh_disabled = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field repeated string unique_key_parts = 3; - * @return RepeatedField - */ - public function getUniqueKeyParts() - { - return $this->unique_key_parts; - } - - /** - * 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. - * - * Generated from protobuf field repeated string unique_key_parts = 3; - * @param string[] $var - * @return $this - */ - public function setUniqueKeyParts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unique_key_parts = $arr; - - return $this; - } - - /** - * A SQL expression conditional used to limit the set of existing rows - * considered for a merge operation (see `unique_key_parts` for more - * information). - * - * Generated from protobuf field string update_partition_filter = 4; - * @return string - */ - public function getUpdatePartitionFilter() - { - return $this->update_partition_filter; - } - - /** - * A SQL expression conditional used to limit the set of existing rows - * considered for a merge operation (see `unique_key_parts` for more - * information). - * - * Generated from protobuf field string update_partition_filter = 4; - * @param string $var - * @return $this - */ - public function setUpdatePartitionFilter($var) - { - GPBUtil::checkString($var, True); - $this->update_partition_filter = $var; - - return $this; - } - - /** - * SQL statements to be executed before inserting new rows into the - * relation. - * - * Generated from protobuf field repeated string incremental_pre_operations = 5; - * @return RepeatedField - */ - public function getIncrementalPreOperations() - { - return $this->incremental_pre_operations; - } - - /** - * SQL statements to be executed before inserting new rows into the - * relation. - * - * Generated from protobuf field repeated string incremental_pre_operations = 5; - * @param string[] $var - * @return $this - */ - public function setIncrementalPreOperations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->incremental_pre_operations = $arr; - - return $this; - } - - /** - * SQL statements to be executed after inserting new rows into the - * relation. - * - * Generated from protobuf field repeated string incremental_post_operations = 6; - * @return RepeatedField - */ - public function getIncrementalPostOperations() - { - return $this->incremental_post_operations; - } - - /** - * SQL statements to be executed after inserting new rows into the - * relation. - * - * Generated from protobuf field repeated string incremental_post_operations = 6; - * @param string[] $var - * @return $this - */ - public function setIncrementalPostOperations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->incremental_post_operations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Relation/RelationType.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Relation/RelationType.php deleted file mode 100644 index fc24e20ae67e..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/Relation/RelationType.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.dataform.v1.CompilationResultAction.Relation.RelationType - */ -class RelationType -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum RELATION_TYPE_UNSPECIFIED = 0; - */ - const RELATION_TYPE_UNSPECIFIED = 0; - /** - * The relation is a table. - * - * Generated from protobuf enum TABLE = 1; - */ - const TABLE = 1; - /** - * The relation is a view. - * - * Generated from protobuf enum VIEW = 2; - */ - const VIEW = 2; - /** - * The relation is an incrementalized table. - * - * Generated from protobuf enum INCREMENTAL_TABLE = 3; - */ - const INCREMENTAL_TABLE = 3; - /** - * The relation is a materialized view. - * - * Generated from protobuf enum MATERIALIZED_VIEW = 4; - */ - const MATERIALIZED_VIEW = 4; - - private static $valueToName = [ - self::RELATION_TYPE_UNSPECIFIED => 'RELATION_TYPE_UNSPECIFIED', - self::TABLE => 'TABLE', - self::VIEW => 'VIEW', - self::INCREMENTAL_TABLE => 'INCREMENTAL_TABLE', - self::MATERIALIZED_VIEW => 'MATERIALIZED_VIEW', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/SimpleLoadMode.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/SimpleLoadMode.php deleted file mode 100644 index 7ebd4790a162..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CompilationResultAction/SimpleLoadMode.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.dataform.v1.CompilationResultAction.SimpleLoadMode - */ -class SimpleLoadMode extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ComputeRepositoryAccessTokenStatusRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ComputeRepositoryAccessTokenStatusRequest.php deleted file mode 100644 index 52eacc5ac32f..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ComputeRepositoryAccessTokenStatusRequest.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusRequest - */ -class ComputeRepositoryAccessTokenStatusRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The repository's name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ComputeRepositoryAccessTokenStatusResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ComputeRepositoryAccessTokenStatusResponse.php deleted file mode 100644 index 257ddb7269f0..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ComputeRepositoryAccessTokenStatusResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusResponse - */ -class ComputeRepositoryAccessTokenStatusResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Indicates the status of the Git access token. - * - * Generated from protobuf field .google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus token_status = 1; - */ - protected $token_status = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $token_status - * Indicates the status of the Git access token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Indicates the status of the Git access token. - * - * Generated from protobuf field .google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus token_status = 1; - * @return int - */ - public function getTokenStatus() - { - return $this->token_status; - } - - /** - * Indicates the status of the Git access token. - * - * Generated from protobuf field .google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus token_status = 1; - * @param int $var - * @return $this - */ - public function setTokenStatus($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1\ComputeRepositoryAccessTokenStatusResponse\TokenStatus::class); - $this->token_status = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ComputeRepositoryAccessTokenStatusResponse/TokenStatus.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ComputeRepositoryAccessTokenStatusResponse/TokenStatus.php deleted file mode 100644 index 1c7a8c0b78d4..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ComputeRepositoryAccessTokenStatusResponse/TokenStatus.php +++ /dev/null @@ -1,76 +0,0 @@ -google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus - */ -class TokenStatus -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum TOKEN_STATUS_UNSPECIFIED = 0; - */ - const 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). - * - * Generated from protobuf enum NOT_FOUND = 1; - */ - const NOT_FOUND = 1; - /** - * The token could not be used to authenticate against the Git remote. - * - * Generated from protobuf enum INVALID = 2; - */ - const INVALID = 2; - /** - * The token was used successfully to authenticate against the Git remote. - * - * Generated from protobuf enum VALID = 3; - */ - const VALID = 3; - /** - * The token is not accessible due to permission issues. - * - * Generated from protobuf enum PERMISSION_DENIED = 4; - */ - const PERMISSION_DENIED = 4; - - private static $valueToName = [ - self::TOKEN_STATUS_UNSPECIFIED => 'TOKEN_STATUS_UNSPECIFIED', - self::NOT_FOUND => 'NOT_FOUND', - self::INVALID => 'INVALID', - self::VALID => 'VALID', - self::PERMISSION_DENIED => 'PERMISSION_DENIED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Config.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Config.php deleted file mode 100644 index ac1170ec6718..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Config.php +++ /dev/null @@ -1,157 +0,0 @@ -google.cloud.dataform.v1.Config - */ -class Config extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The config name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Optional. The default KMS key that is used if no encryption key is provided - * when a repository is created. - * - * Generated from protobuf field string default_kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $default_kms_key_name = ''; - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $internal_metadata = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The config name. - * @type string $default_kms_key_name - * Optional. The default KMS key that is used if no encryption key is provided - * when a repository is created. - * @type string $internal_metadata - * 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. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The config name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The config name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. The default KMS key that is used if no encryption key is provided - * when a repository is created. - * - * Generated from protobuf field string default_kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getDefaultKmsKeyName() - { - return $this->default_kms_key_name; - } - - /** - * Optional. The default KMS key that is used if no encryption key is provided - * when a repository is created. - * - * Generated from protobuf field string default_kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setDefaultKmsKeyName($var) - { - GPBUtil::checkString($var, True); - $this->default_kms_key_name = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getInternalMetadata() - { - return isset($this->internal_metadata) ? $this->internal_metadata : ''; - } - - public function hasInternalMetadata() - { - return isset($this->internal_metadata); - } - - public function clearInternalMetadata() - { - unset($this->internal_metadata); - } - - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setInternalMetadata($var) - { - GPBUtil::checkString($var, True); - $this->internal_metadata = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateCompilationResultRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateCompilationResultRequest.php deleted file mode 100644 index 06ed3f092907..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateCompilationResultRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -google.cloud.dataform.v1.CreateCompilationResultRequest - */ -class CreateCompilationResultRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The repository in which to create the compilation result. Must be - * in the format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The compilation result to create. - * - * Generated from protobuf field .google.cloud.dataform.v1.CompilationResult compilation_result = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $compilation_result = null; - - /** - * @param string $parent Required. The repository in which to create the compilation result. Must be - * in the format `projects/*/locations/*/repositories/*`. Please see - * {@see DataformClient::repositoryName()} for help formatting this field. - * @param \Google\Cloud\Dataform\V1\CompilationResult $compilationResult Required. The compilation result to create. - * - * @return \Google\Cloud\Dataform\V1\CreateCompilationResultRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dataform\V1\CompilationResult $compilationResult): self - { - return (new self()) - ->setParent($parent) - ->setCompilationResult($compilationResult); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The repository in which to create the compilation result. Must be - * in the format `projects/{@*}locations/{@*}repositories/*`. - * @type \Google\Cloud\Dataform\V1\CompilationResult $compilation_result - * Required. The compilation result to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The repository in which to create the compilation result. Must be - * in the format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The repository in which to create the compilation result. Must be - * in the format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The compilation result to create. - * - * Generated from protobuf field .google.cloud.dataform.v1.CompilationResult compilation_result = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataform\V1\CompilationResult|null - */ - public function getCompilationResult() - { - return $this->compilation_result; - } - - public function hasCompilationResult() - { - return isset($this->compilation_result); - } - - public function clearCompilationResult() - { - unset($this->compilation_result); - } - - /** - * Required. The compilation result to create. - * - * Generated from protobuf field .google.cloud.dataform.v1.CompilationResult compilation_result = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataform\V1\CompilationResult $var - * @return $this - */ - public function setCompilationResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CompilationResult::class); - $this->compilation_result = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateReleaseConfigRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateReleaseConfigRequest.php deleted file mode 100644 index 7f4bd87a3704..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateReleaseConfigRequest.php +++ /dev/null @@ -1,173 +0,0 @@ -google.cloud.dataform.v1.CreateReleaseConfigRequest - */ -class CreateReleaseConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The repository in which to create the release config. Must be in - * the format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The release config to create. - * - * Generated from protobuf field .google.cloud.dataform.v1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $release_config = null; - /** - * Required. The ID to use for the release config, which will become the final - * component of the release config's resource name. - * - * Generated from protobuf field string release_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $release_config_id = ''; - - /** - * @param string $parent Required. The repository in which to create the release config. Must be in - * the format `projects/*/locations/*/repositories/*`. Please see - * {@see DataformClient::repositoryName()} for help formatting this field. - * @param \Google\Cloud\Dataform\V1\ReleaseConfig $releaseConfig Required. The release config to create. - * @param string $releaseConfigId Required. The ID to use for the release config, which will become the final - * component of the release config's resource name. - * - * @return \Google\Cloud\Dataform\V1\CreateReleaseConfigRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dataform\V1\ReleaseConfig $releaseConfig, string $releaseConfigId): self - { - return (new self()) - ->setParent($parent) - ->setReleaseConfig($releaseConfig) - ->setReleaseConfigId($releaseConfigId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The repository in which to create the release config. Must be in - * the format `projects/{@*}locations/{@*}repositories/*`. - * @type \Google\Cloud\Dataform\V1\ReleaseConfig $release_config - * Required. The release config to create. - * @type string $release_config_id - * Required. The ID to use for the release config, which will become the final - * component of the release config's resource name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The repository in which to create the release config. Must be in - * the format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The repository in which to create the release config. Must be in - * the format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The release config to create. - * - * Generated from protobuf field .google.cloud.dataform.v1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataform\V1\ReleaseConfig|null - */ - public function getReleaseConfig() - { - return $this->release_config; - } - - public function hasReleaseConfig() - { - return isset($this->release_config); - } - - public function clearReleaseConfig() - { - unset($this->release_config); - } - - /** - * Required. The release config to create. - * - * Generated from protobuf field .google.cloud.dataform.v1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataform\V1\ReleaseConfig $var - * @return $this - */ - public function setReleaseConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\ReleaseConfig::class); - $this->release_config = $var; - - return $this; - } - - /** - * Required. The ID to use for the release config, which will become the final - * component of the release config's resource name. - * - * Generated from protobuf field string release_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getReleaseConfigId() - { - return $this->release_config_id; - } - - /** - * Required. The ID to use for the release config, which will become the final - * component of the release config's resource name. - * - * Generated from protobuf field string release_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setReleaseConfigId($var) - { - GPBUtil::checkString($var, True); - $this->release_config_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateRepositoryRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateRepositoryRequest.php deleted file mode 100644 index 9cccba4d2fcf..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateRepositoryRequest.php +++ /dev/null @@ -1,173 +0,0 @@ -google.cloud.dataform.v1.CreateRepositoryRequest - */ -class CreateRepositoryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The location in which to create the repository. Must be in the - * format `projects/{@*}locations/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The repository to create. - * - * Generated from protobuf field .google.cloud.dataform.v1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $repository = null; - /** - * Required. The ID to use for the repository, which will become the final - * component of the repository's resource name. - * - * Generated from protobuf field string repository_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $repository_id = ''; - - /** - * @param string $parent Required. The location in which to create the repository. Must be in the - * format `projects/*/locations/*`. Please see - * {@see DataformClient::locationName()} for help formatting this field. - * @param \Google\Cloud\Dataform\V1\Repository $repository Required. The repository to create. - * @param string $repositoryId Required. The ID to use for the repository, which will become the final - * component of the repository's resource name. - * - * @return \Google\Cloud\Dataform\V1\CreateRepositoryRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dataform\V1\Repository $repository, string $repositoryId): self - { - return (new self()) - ->setParent($parent) - ->setRepository($repository) - ->setRepositoryId($repositoryId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The location in which to create the repository. Must be in the - * format `projects/{@*}locations/*`. - * @type \Google\Cloud\Dataform\V1\Repository $repository - * Required. The repository to create. - * @type string $repository_id - * Required. The ID to use for the repository, which will become the final - * component of the repository's resource name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The location in which to create the repository. Must be in the - * format `projects/{@*}locations/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The location in which to create the repository. Must be in the - * format `projects/{@*}locations/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The repository to create. - * - * Generated from protobuf field .google.cloud.dataform.v1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataform\V1\Repository|null - */ - public function getRepository() - { - return $this->repository; - } - - public function hasRepository() - { - return isset($this->repository); - } - - public function clearRepository() - { - unset($this->repository); - } - - /** - * Required. The repository to create. - * - * Generated from protobuf field .google.cloud.dataform.v1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataform\V1\Repository $var - * @return $this - */ - public function setRepository($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\Repository::class); - $this->repository = $var; - - return $this; - } - - /** - * Required. The ID to use for the repository, which will become the final - * component of the repository's resource name. - * - * Generated from protobuf field string repository_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getRepositoryId() - { - return $this->repository_id; - } - - /** - * Required. The ID to use for the repository, which will become the final - * component of the repository's resource name. - * - * Generated from protobuf field string repository_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setRepositoryId($var) - { - GPBUtil::checkString($var, True); - $this->repository_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateWorkflowConfigRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateWorkflowConfigRequest.php deleted file mode 100644 index f65792017fb5..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateWorkflowConfigRequest.php +++ /dev/null @@ -1,173 +0,0 @@ -google.cloud.dataform.v1.CreateWorkflowConfigRequest - */ -class CreateWorkflowConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The repository in which to create the workflow config. Must be in - * the format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The workflow config to create. - * - * Generated from protobuf field .google.cloud.dataform.v1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $workflow_config = null; - /** - * Required. The ID to use for the workflow config, which will become the - * final component of the workflow config's resource name. - * - * Generated from protobuf field string workflow_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $workflow_config_id = ''; - - /** - * @param string $parent Required. The repository in which to create the workflow config. Must be in - * the format `projects/*/locations/*/repositories/*`. Please see - * {@see DataformClient::repositoryName()} for help formatting this field. - * @param \Google\Cloud\Dataform\V1\WorkflowConfig $workflowConfig Required. The workflow config to create. - * @param string $workflowConfigId Required. The ID to use for the workflow config, which will become the - * final component of the workflow config's resource name. - * - * @return \Google\Cloud\Dataform\V1\CreateWorkflowConfigRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dataform\V1\WorkflowConfig $workflowConfig, string $workflowConfigId): self - { - return (new self()) - ->setParent($parent) - ->setWorkflowConfig($workflowConfig) - ->setWorkflowConfigId($workflowConfigId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The repository in which to create the workflow config. Must be in - * the format `projects/{@*}locations/{@*}repositories/*`. - * @type \Google\Cloud\Dataform\V1\WorkflowConfig $workflow_config - * Required. The workflow config to create. - * @type string $workflow_config_id - * Required. The ID to use for the workflow config, which will become the - * final component of the workflow config's resource name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The repository in which to create the workflow config. Must be in - * the format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The repository in which to create the workflow config. Must be in - * the format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The workflow config to create. - * - * Generated from protobuf field .google.cloud.dataform.v1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataform\V1\WorkflowConfig|null - */ - public function getWorkflowConfig() - { - return $this->workflow_config; - } - - public function hasWorkflowConfig() - { - return isset($this->workflow_config); - } - - public function clearWorkflowConfig() - { - unset($this->workflow_config); - } - - /** - * Required. The workflow config to create. - * - * Generated from protobuf field .google.cloud.dataform.v1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataform\V1\WorkflowConfig $var - * @return $this - */ - public function setWorkflowConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\WorkflowConfig::class); - $this->workflow_config = $var; - - return $this; - } - - /** - * Required. The ID to use for the workflow config, which will become the - * final component of the workflow config's resource name. - * - * Generated from protobuf field string workflow_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getWorkflowConfigId() - { - return $this->workflow_config_id; - } - - /** - * Required. The ID to use for the workflow config, which will become the - * final component of the workflow config's resource name. - * - * Generated from protobuf field string workflow_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setWorkflowConfigId($var) - { - GPBUtil::checkString($var, True); - $this->workflow_config_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateWorkflowInvocationRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateWorkflowInvocationRequest.php deleted file mode 100644 index c9ca480ed73c..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateWorkflowInvocationRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -google.cloud.dataform.v1.CreateWorkflowInvocationRequest - */ -class CreateWorkflowInvocationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The repository in which to create the workflow invocation. Must - * be in the format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The workflow invocation resource to create. - * - * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocation workflow_invocation = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $workflow_invocation = null; - - /** - * @param string $parent Required. The repository in which to create the workflow invocation. Must - * be in the format `projects/*/locations/*/repositories/*`. Please see - * {@see DataformClient::repositoryName()} for help formatting this field. - * @param \Google\Cloud\Dataform\V1\WorkflowInvocation $workflowInvocation Required. The workflow invocation resource to create. - * - * @return \Google\Cloud\Dataform\V1\CreateWorkflowInvocationRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dataform\V1\WorkflowInvocation $workflowInvocation): self - { - return (new self()) - ->setParent($parent) - ->setWorkflowInvocation($workflowInvocation); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The repository in which to create the workflow invocation. Must - * be in the format `projects/{@*}locations/{@*}repositories/*`. - * @type \Google\Cloud\Dataform\V1\WorkflowInvocation $workflow_invocation - * Required. The workflow invocation resource to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The repository in which to create the workflow invocation. Must - * be in the format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The repository in which to create the workflow invocation. Must - * be in the format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The workflow invocation resource to create. - * - * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocation workflow_invocation = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataform\V1\WorkflowInvocation|null - */ - public function getWorkflowInvocation() - { - return $this->workflow_invocation; - } - - public function hasWorkflowInvocation() - { - return isset($this->workflow_invocation); - } - - public function clearWorkflowInvocation() - { - unset($this->workflow_invocation); - } - - /** - * Required. The workflow invocation resource to create. - * - * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocation workflow_invocation = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataform\V1\WorkflowInvocation $var - * @return $this - */ - public function setWorkflowInvocation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\WorkflowInvocation::class); - $this->workflow_invocation = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateWorkspaceRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateWorkspaceRequest.php deleted file mode 100644 index d4a902cbbcd8..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/CreateWorkspaceRequest.php +++ /dev/null @@ -1,173 +0,0 @@ -google.cloud.dataform.v1.CreateWorkspaceRequest - */ -class CreateWorkspaceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The repository in which to create the workspace. Must be in the - * format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The workspace to create. - * - * Generated from protobuf field .google.cloud.dataform.v1.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $workspace = null; - /** - * Required. The ID to use for the workspace, which will become the final - * component of the workspace's resource name. - * - * Generated from protobuf field string workspace_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $workspace_id = ''; - - /** - * @param string $parent Required. The repository in which to create the workspace. Must be in the - * format `projects/*/locations/*/repositories/*`. Please see - * {@see DataformClient::repositoryName()} for help formatting this field. - * @param \Google\Cloud\Dataform\V1\Workspace $workspace Required. The workspace to create. - * @param string $workspaceId Required. The ID to use for the workspace, which will become the final - * component of the workspace's resource name. - * - * @return \Google\Cloud\Dataform\V1\CreateWorkspaceRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dataform\V1\Workspace $workspace, string $workspaceId): self - { - return (new self()) - ->setParent($parent) - ->setWorkspace($workspace) - ->setWorkspaceId($workspaceId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The repository in which to create the workspace. Must be in the - * format `projects/{@*}locations/{@*}repositories/*`. - * @type \Google\Cloud\Dataform\V1\Workspace $workspace - * Required. The workspace to create. - * @type string $workspace_id - * Required. The ID to use for the workspace, which will become the final - * component of the workspace's resource name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The repository in which to create the workspace. Must be in the - * format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The repository in which to create the workspace. Must be in the - * format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The workspace to create. - * - * Generated from protobuf field .google.cloud.dataform.v1.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataform\V1\Workspace|null - */ - public function getWorkspace() - { - return $this->workspace; - } - - public function hasWorkspace() - { - return isset($this->workspace); - } - - public function clearWorkspace() - { - unset($this->workspace); - } - - /** - * Required. The workspace to create. - * - * Generated from protobuf field .google.cloud.dataform.v1.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataform\V1\Workspace $var - * @return $this - */ - public function setWorkspace($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\Workspace::class); - $this->workspace = $var; - - return $this; - } - - /** - * Required. The ID to use for the workspace, which will become the final - * component of the workspace's resource name. - * - * Generated from protobuf field string workspace_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getWorkspaceId() - { - return $this->workspace_id; - } - - /** - * Required. The ID to use for the workspace, which will become the final - * component of the workspace's resource name. - * - * Generated from protobuf field string workspace_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setWorkspaceId($var) - { - GPBUtil::checkString($var, True); - $this->workspace_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DataEncryptionState.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DataEncryptionState.php deleted file mode 100644 index 165ac94e093a..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DataEncryptionState.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.dataform.v1.DataEncryptionState - */ -class DataEncryptionState extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The KMS key version name with which data of a resource is - * encrypted. - * - * Generated from protobuf field string kms_key_version_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $kms_key_version_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $kms_key_version_name - * Required. The KMS key version name with which data of a resource is - * encrypted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The KMS key version name with which data of a resource is - * encrypted. - * - * Generated from protobuf field string kms_key_version_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getKmsKeyVersionName() - { - return $this->kms_key_version_name; - } - - /** - * Required. The KMS key version name with which data of a resource is - * encrypted. - * - * Generated from protobuf field string kms_key_version_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setKmsKeyVersionName($var) - { - GPBUtil::checkString($var, True); - $this->kms_key_version_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteReleaseConfigRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteReleaseConfigRequest.php deleted file mode 100644 index 886230cf50c2..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteReleaseConfigRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.dataform.v1.DeleteReleaseConfigRequest - */ -class DeleteReleaseConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The release config's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The release config's name. Please see - * {@see DataformClient::releaseConfigName()} for help formatting this field. - * - * @return \Google\Cloud\Dataform\V1\DeleteReleaseConfigRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The release config's name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The release config's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The release config's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteRepositoryRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteRepositoryRequest.php deleted file mode 100644 index 59733be1474b..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteRepositoryRequest.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.dataform.v1.DeleteRepositoryRequest - */ -class DeleteRepositoryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * 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.*. - * - * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $force = false; - - /** - * @param string $name Required. The repository's name. Please see - * {@see DataformClient::repositoryName()} for help formatting this field. - * - * @return \Google\Cloud\Dataform\V1\DeleteRepositoryRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The repository's name. - * @type bool $force - * 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.*. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * 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.*. - * - * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getForce() - { - return $this->force; - } - - /** - * 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.*. - * - * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setForce($var) - { - GPBUtil::checkBool($var); - $this->force = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteWorkflowConfigRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteWorkflowConfigRequest.php deleted file mode 100644 index 47ac74c52e22..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteWorkflowConfigRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.dataform.v1.DeleteWorkflowConfigRequest - */ -class DeleteWorkflowConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workflow config's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The workflow config's name. Please see - * {@see DataformClient::workflowConfigName()} for help formatting this field. - * - * @return \Google\Cloud\Dataform\V1\DeleteWorkflowConfigRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The workflow config's name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workflow config's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The workflow config's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteWorkflowInvocationRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteWorkflowInvocationRequest.php deleted file mode 100644 index eec3db6fa10c..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteWorkflowInvocationRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.dataform.v1.DeleteWorkflowInvocationRequest - */ -class DeleteWorkflowInvocationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workflow invocation resource's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The workflow invocation resource's name. Please see - * {@see DataformClient::workflowInvocationName()} for help formatting this field. - * - * @return \Google\Cloud\Dataform\V1\DeleteWorkflowInvocationRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The workflow invocation resource's name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workflow invocation resource's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The workflow invocation resource's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteWorkspaceRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteWorkspaceRequest.php deleted file mode 100644 index 2b4000f8e8fd..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DeleteWorkspaceRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.dataform.v1.DeleteWorkspaceRequest - */ -class DeleteWorkspaceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workspace resource's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The workspace resource's name. Please see - * {@see DataformClient::workspaceName()} for help formatting this field. - * - * @return \Google\Cloud\Dataform\V1\DeleteWorkspaceRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The workspace resource's name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workspace resource's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The workspace resource's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DirectoryEntry.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DirectoryEntry.php deleted file mode 100644 index ffbd681be53c..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DirectoryEntry.php +++ /dev/null @@ -1,152 +0,0 @@ -google.cloud.dataform.v1.DirectoryEntry - */ -class DirectoryEntry extends \Google\Protobuf\Internal\Message -{ - /** - * Entry with metadata. - * - * Generated from protobuf field .google.cloud.dataform.v1.FilesystemEntryMetadata metadata = 3; - */ - protected $metadata = null; - protected $entry; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $file - * A file in the directory. - * @type string $directory - * A child directory in the directory. - * @type \Google\Cloud\Dataform\V1\FilesystemEntryMetadata $metadata - * Entry with metadata. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * A file in the directory. - * - * Generated from protobuf field string file = 1; - * @return string - */ - public function getFile() - { - return $this->readOneof(1); - } - - public function hasFile() - { - return $this->hasOneof(1); - } - - /** - * A file in the directory. - * - * Generated from protobuf field string file = 1; - * @param string $var - * @return $this - */ - public function setFile($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * A child directory in the directory. - * - * Generated from protobuf field string directory = 2; - * @return string - */ - public function getDirectory() - { - return $this->readOneof(2); - } - - public function hasDirectory() - { - return $this->hasOneof(2); - } - - /** - * A child directory in the directory. - * - * Generated from protobuf field string directory = 2; - * @param string $var - * @return $this - */ - public function setDirectory($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Entry with metadata. - * - * Generated from protobuf field .google.cloud.dataform.v1.FilesystemEntryMetadata metadata = 3; - * @return \Google\Cloud\Dataform\V1\FilesystemEntryMetadata|null - */ - public function getMetadata() - { - return $this->metadata; - } - - public function hasMetadata() - { - return isset($this->metadata); - } - - public function clearMetadata() - { - unset($this->metadata); - } - - /** - * Entry with metadata. - * - * Generated from protobuf field .google.cloud.dataform.v1.FilesystemEntryMetadata metadata = 3; - * @param \Google\Cloud\Dataform\V1\FilesystemEntryMetadata $var - * @return $this - */ - public function setMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\FilesystemEntryMetadata::class); - $this->metadata = $var; - - return $this; - } - - /** - * @return string - */ - public function getEntry() - { - return $this->whichOneof("entry"); - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DirectorySearchResult.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DirectorySearchResult.php deleted file mode 100644 index 5d88d1e45d15..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/DirectorySearchResult.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.dataform.v1.DirectorySearchResult - */ -class DirectorySearchResult extends \Google\Protobuf\Internal\Message -{ - /** - * File system path relative to the workspace root. - * - * Generated from protobuf field string path = 1; - */ - protected $path = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $path - * File system path relative to the workspace root. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * File system path relative to the workspace root. - * - * Generated from protobuf field string path = 1; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * File system path relative to the workspace root. - * - * Generated from protobuf field string path = 1; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileDiffRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileDiffRequest.php deleted file mode 100644 index 438a3c9c73c0..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileDiffRequest.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.dataform.v1.FetchFileDiffRequest - */ -class FetchFileDiffRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $workspace = ''; - /** - * Required. The file's full path including filename, relative to the - * workspace root. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $path = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $workspace - * Required. The workspace's name. - * @type string $path - * Required. The file's full path including filename, relative to the - * workspace root. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getWorkspace() - { - return $this->workspace; - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setWorkspace($var) - { - GPBUtil::checkString($var, True); - $this->workspace = $var; - - return $this; - } - - /** - * Required. The file's full path including filename, relative to the - * workspace root. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * Required. The file's full path including filename, relative to the - * workspace root. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileDiffResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileDiffResponse.php deleted file mode 100644 index 00bfd68bdd8c..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileDiffResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.dataform.v1.FetchFileDiffResponse - */ -class FetchFileDiffResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The raw formatted Git diff for the file. - * - * Generated from protobuf field string formatted_diff = 1; - */ - protected $formatted_diff = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $formatted_diff - * The raw formatted Git diff for the file. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * The raw formatted Git diff for the file. - * - * Generated from protobuf field string formatted_diff = 1; - * @return string - */ - public function getFormattedDiff() - { - return $this->formatted_diff; - } - - /** - * The raw formatted Git diff for the file. - * - * Generated from protobuf field string formatted_diff = 1; - * @param string $var - * @return $this - */ - public function setFormattedDiff($var) - { - GPBUtil::checkString($var, True); - $this->formatted_diff = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileGitStatusesRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileGitStatusesRequest.php deleted file mode 100644 index 134b00be6da2..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileGitStatusesRequest.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.dataform.v1.FetchFileGitStatusesRequest - */ -class FetchFileGitStatusesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The workspace's name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileGitStatusesResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileGitStatusesResponse.php deleted file mode 100644 index 5c44196da127..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileGitStatusesResponse.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.dataform.v1.FetchFileGitStatusesResponse - */ -class FetchFileGitStatusesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of all files which have uncommitted Git changes. There will only be - * a single entry for any given file. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; - */ - private $uncommitted_file_changes; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1\FetchFileGitStatusesResponse\UncommittedFileChange[] $uncommitted_file_changes - * A list of all files which have uncommitted Git changes. There will only be - * a single entry for any given file. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * A list of all files which have uncommitted Git changes. There will only be - * a single entry for any given file. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; - * @return RepeatedField<\Google\Cloud\Dataform\V1\FetchFileGitStatusesResponse\UncommittedFileChange> - */ - public function getUncommittedFileChanges() - { - return $this->uncommitted_file_changes; - } - - /** - * A list of all files which have uncommitted Git changes. There will only be - * a single entry for any given file. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; - * @param \Google\Cloud\Dataform\V1\FetchFileGitStatusesResponse\UncommittedFileChange[] $var - * @return $this - */ - public function setUncommittedFileChanges($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\FetchFileGitStatusesResponse\UncommittedFileChange::class); - $this->uncommitted_file_changes = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileGitStatusesResponse/UncommittedFileChange.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileGitStatusesResponse/UncommittedFileChange.php deleted file mode 100644 index ea11b9a6f76a..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileGitStatusesResponse/UncommittedFileChange.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.dataform.v1.FetchFileGitStatusesResponse.UncommittedFileChange - */ -class UncommittedFileChange extends \Google\Protobuf\Internal\Message -{ - /** - * The file's full path including filename, relative to the workspace root. - * - * Generated from protobuf field string path = 1; - */ - protected $path = ''; - /** - * Output only. Indicates the status of the file. - * - * Generated from protobuf field .google.cloud.dataform.v1.FetchFileGitStatusesResponse.UncommittedFileChange.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $path - * The file's full path including filename, relative to the workspace root. - * @type int $state - * Output only. Indicates the status of the file. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * The file's full path including filename, relative to the workspace root. - * - * Generated from protobuf field string path = 1; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * The file's full path including filename, relative to the workspace root. - * - * Generated from protobuf field string path = 1; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - - /** - * Output only. Indicates the status of the file. - * - * Generated from protobuf field .google.cloud.dataform.v1.FetchFileGitStatusesResponse.UncommittedFileChange.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. Indicates the status of the file. - * - * Generated from protobuf field .google.cloud.dataform.v1.FetchFileGitStatusesResponse.UncommittedFileChange.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1\FetchFileGitStatusesResponse\UncommittedFileChange\State::class); - $this->state = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileGitStatusesResponse/UncommittedFileChange/State.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileGitStatusesResponse/UncommittedFileChange/State.php deleted file mode 100644 index 33e264f30f1f..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchFileGitStatusesResponse/UncommittedFileChange/State.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.dataform.v1.FetchFileGitStatusesResponse.UncommittedFileChange.State - */ -class State -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The file has been newly added. - * - * Generated from protobuf enum ADDED = 1; - */ - const ADDED = 1; - /** - * The file has been deleted. - * - * Generated from protobuf enum DELETED = 2; - */ - const DELETED = 2; - /** - * The file has been modified. - * - * Generated from protobuf enum MODIFIED = 3; - */ - const MODIFIED = 3; - /** - * The file contains merge conflicts. - * - * Generated from protobuf enum HAS_CONFLICTS = 4; - */ - const HAS_CONFLICTS = 4; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::ADDED => 'ADDED', - self::DELETED => 'DELETED', - self::MODIFIED => 'MODIFIED', - self::HAS_CONFLICTS => 'HAS_CONFLICTS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchGitAheadBehindRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchGitAheadBehindRequest.php deleted file mode 100644 index 3c513a1fe6d4..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchGitAheadBehindRequest.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.dataform.v1.FetchGitAheadBehindRequest - */ -class FetchGitAheadBehindRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * 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. - * - * Generated from protobuf field string remote_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $remote_branch = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The workspace's name. - * @type string $remote_branch - * 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. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string remote_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRemoteBranch() - { - return $this->remote_branch; - } - - /** - * 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. - * - * Generated from protobuf field string remote_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRemoteBranch($var) - { - GPBUtil::checkString($var, True); - $this->remote_branch = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchGitAheadBehindResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchGitAheadBehindResponse.php deleted file mode 100644 index d04c8cafa68d..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchGitAheadBehindResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.dataform.v1.FetchGitAheadBehindResponse - */ -class FetchGitAheadBehindResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The number of commits in the remote branch that are not in the workspace. - * - * Generated from protobuf field int32 commits_ahead = 1; - */ - protected $commits_ahead = 0; - /** - * The number of commits in the workspace that are not in the remote branch. - * - * Generated from protobuf field int32 commits_behind = 2; - */ - protected $commits_behind = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $commits_ahead - * The number of commits in the remote branch that are not in the workspace. - * @type int $commits_behind - * The number of commits in the workspace that are not in the remote branch. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * The number of commits in the remote branch that are not in the workspace. - * - * Generated from protobuf field int32 commits_ahead = 1; - * @return int - */ - public function getCommitsAhead() - { - return $this->commits_ahead; - } - - /** - * The number of commits in the remote branch that are not in the workspace. - * - * Generated from protobuf field int32 commits_ahead = 1; - * @param int $var - * @return $this - */ - public function setCommitsAhead($var) - { - GPBUtil::checkInt32($var); - $this->commits_ahead = $var; - - return $this; - } - - /** - * The number of commits in the workspace that are not in the remote branch. - * - * Generated from protobuf field int32 commits_behind = 2; - * @return int - */ - public function getCommitsBehind() - { - return $this->commits_behind; - } - - /** - * The number of commits in the workspace that are not in the remote branch. - * - * Generated from protobuf field int32 commits_behind = 2; - * @param int $var - * @return $this - */ - public function setCommitsBehind($var) - { - GPBUtil::checkInt32($var); - $this->commits_behind = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchRemoteBranchesRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchRemoteBranchesRequest.php deleted file mode 100644 index f531fb6274e5..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchRemoteBranchesRequest.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.dataform.v1.FetchRemoteBranchesRequest - */ -class FetchRemoteBranchesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The repository's name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchRemoteBranchesResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchRemoteBranchesResponse.php deleted file mode 100644 index a6f147e823df..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchRemoteBranchesResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.dataform.v1.FetchRemoteBranchesResponse - */ -class FetchRemoteBranchesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The remote repository's branch names. - * - * Generated from protobuf field repeated string branches = 1; - */ - private $branches; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string[] $branches - * The remote repository's branch names. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * The remote repository's branch names. - * - * Generated from protobuf field repeated string branches = 1; - * @return RepeatedField - */ - public function getBranches() - { - return $this->branches; - } - - /** - * The remote repository's branch names. - * - * Generated from protobuf field repeated string branches = 1; - * @param string[] $var - * @return $this - */ - public function setBranches($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->branches = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchRepositoryHistoryRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchRepositoryHistoryRequest.php deleted file mode 100644 index 8a9226ee4ca6..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchRepositoryHistoryRequest.php +++ /dev/null @@ -1,159 +0,0 @@ -google.cloud.dataform.v1.FetchRepositoryHistoryRequest - */ -class FetchRepositoryHistoryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. Maximum number of commits to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate - * default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * 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. - * - * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The repository's name. - * @type int $page_size - * Optional. Maximum number of commits to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate - * default. - * @type string $page_token - * 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. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. Maximum number of commits to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate - * default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Maximum number of commits to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate - * default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchRepositoryHistoryResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchRepositoryHistoryResponse.php deleted file mode 100644 index 4912f9616445..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FetchRepositoryHistoryResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.dataform.v1.FetchRepositoryHistoryResponse - */ -class FetchRepositoryHistoryResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of commit logs, ordered by 'git log' default order. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.CommitLogEntry commits = 1; - */ - private $commits; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1\CommitLogEntry[] $commits - * A list of commit logs, ordered by 'git log' default order. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * A list of commit logs, ordered by 'git log' default order. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.CommitLogEntry commits = 1; - * @return RepeatedField<\Google\Cloud\Dataform\V1\CommitLogEntry> - */ - public function getCommits() - { - return $this->commits; - } - - /** - * A list of commit logs, ordered by 'git log' default order. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.CommitLogEntry commits = 1; - * @param \Google\Cloud\Dataform\V1\CommitLogEntry[] $var - * @return $this - */ - public function setCommits($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\CommitLogEntry::class); - $this->commits = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FileSearchResult.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FileSearchResult.php deleted file mode 100644 index b1918fd37f44..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/FileSearchResult.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.dataform.v1.FileSearchResult - */ -class FileSearchResult extends \Google\Protobuf\Internal\Message -{ - /** - * File system path relative to the workspace root. - * - * Generated from protobuf field string path = 1; - */ - protected $path = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $path - * File system path relative to the workspace root. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * File system path relative to the workspace root. - * - * Generated from protobuf field string path = 1; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * File system path relative to the workspace root. - * - * Generated from protobuf field string path = 1; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetCompilationResultRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetCompilationResultRequest.php deleted file mode 100644 index 97a6017676f8..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetCompilationResultRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.dataform.v1.GetCompilationResultRequest - */ -class GetCompilationResultRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The compilation result's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The compilation result's name. Please see - * {@see DataformClient::compilationResultName()} for help formatting this field. - * - * @return \Google\Cloud\Dataform\V1\GetCompilationResultRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The compilation result's name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The compilation result's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The compilation result's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetConfigRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetConfigRequest.php deleted file mode 100644 index 763466bbb7f5..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetConfigRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.dataform.v1.GetConfigRequest - */ -class GetConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The config name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The config name. Please see - * {@see DataformClient::configName()} for help formatting this field. - * - * @return \Google\Cloud\Dataform\V1\GetConfigRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The config name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The config name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The config name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetReleaseConfigRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetReleaseConfigRequest.php deleted file mode 100644 index 603657cf0069..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetReleaseConfigRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.dataform.v1.GetReleaseConfigRequest - */ -class GetReleaseConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The release config's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The release config's name. Please see - * {@see DataformClient::releaseConfigName()} for help formatting this field. - * - * @return \Google\Cloud\Dataform\V1\GetReleaseConfigRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The release config's name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The release config's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The release config's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetRepositoryRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetRepositoryRequest.php deleted file mode 100644 index a7098be02968..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetRepositoryRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.dataform.v1.GetRepositoryRequest - */ -class GetRepositoryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The repository's name. Please see - * {@see DataformClient::repositoryName()} for help formatting this field. - * - * @return \Google\Cloud\Dataform\V1\GetRepositoryRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The repository's name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetWorkflowConfigRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetWorkflowConfigRequest.php deleted file mode 100644 index 9e15614377ea..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetWorkflowConfigRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.dataform.v1.GetWorkflowConfigRequest - */ -class GetWorkflowConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workflow config's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The workflow config's name. Please see - * {@see DataformClient::workflowConfigName()} for help formatting this field. - * - * @return \Google\Cloud\Dataform\V1\GetWorkflowConfigRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The workflow config's name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workflow config's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The workflow config's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetWorkflowInvocationRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetWorkflowInvocationRequest.php deleted file mode 100644 index cb5c625b1270..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetWorkflowInvocationRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.dataform.v1.GetWorkflowInvocationRequest - */ -class GetWorkflowInvocationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workflow invocation resource's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The workflow invocation resource's name. Please see - * {@see DataformClient::workflowInvocationName()} for help formatting this field. - * - * @return \Google\Cloud\Dataform\V1\GetWorkflowInvocationRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The workflow invocation resource's name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workflow invocation resource's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The workflow invocation resource's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetWorkspaceRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetWorkspaceRequest.php deleted file mode 100644 index 962d38895c31..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/GetWorkspaceRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.dataform.v1.GetWorkspaceRequest - */ -class GetWorkspaceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The workspace's name. Please see - * {@see DataformClient::workspaceName()} for help formatting this field. - * - * @return \Google\Cloud\Dataform\V1\GetWorkspaceRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The workspace's name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/InstallNpmPackagesRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/InstallNpmPackagesRequest.php deleted file mode 100644 index 09773c9e28ad..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/InstallNpmPackagesRequest.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.dataform.v1.InstallNpmPackagesRequest - */ -class InstallNpmPackagesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $workspace = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $workspace - * Required. The workspace's name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getWorkspace() - { - return $this->workspace; - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setWorkspace($var) - { - GPBUtil::checkString($var, True); - $this->workspace = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/InstallNpmPackagesResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/InstallNpmPackagesResponse.php deleted file mode 100644 index 4c8279c484cf..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/InstallNpmPackagesResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.dataform.v1.InstallNpmPackagesResponse - */ -class InstallNpmPackagesResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/InvocationConfig.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/InvocationConfig.php deleted file mode 100644 index cf7a84b89b6d..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/InvocationConfig.php +++ /dev/null @@ -1,299 +0,0 @@ -google.cloud.dataform.v1.InvocationConfig - */ -class InvocationConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The set of action identifiers to include. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.Target included_targets = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $included_targets; - /** - * Optional. The set of tags to include. - * - * Generated from protobuf field repeated string included_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $included_tags; - /** - * Optional. When set to true, transitive dependencies of included actions - * will be executed. - * - * Generated from protobuf field bool transitive_dependencies_included = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $transitive_dependencies_included = false; - /** - * Optional. When set to true, transitive dependents of included actions will - * be executed. - * - * Generated from protobuf field bool transitive_dependents_included = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $transitive_dependents_included = false; - /** - * Optional. When set to true, any incremental tables will be fully refreshed. - * - * Generated from protobuf field bool fully_refresh_incremental_tables_enabled = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $fully_refresh_incremental_tables_enabled = false; - /** - * Optional. The service account to run workflow invocations under. - * - * Generated from protobuf field string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $service_account = ''; - /** - * Optional. Specifies the priority for query execution in BigQuery. - * More information can be found at - * https://cloud.google.com/bigquery/docs/running-queries#queries. - * - * Generated from protobuf field optional .google.cloud.dataform.v1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $query_priority = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1\Target[] $included_targets - * Optional. The set of action identifiers to include. - * @type string[] $included_tags - * Optional. The set of tags to include. - * @type bool $transitive_dependencies_included - * Optional. When set to true, transitive dependencies of included actions - * will be executed. - * @type bool $transitive_dependents_included - * Optional. When set to true, transitive dependents of included actions will - * be executed. - * @type bool $fully_refresh_incremental_tables_enabled - * Optional. When set to true, any incremental tables will be fully refreshed. - * @type string $service_account - * Optional. The service account to run workflow invocations under. - * @type int $query_priority - * Optional. Specifies the priority for query execution in BigQuery. - * More information can be found at - * https://cloud.google.com/bigquery/docs/running-queries#queries. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The set of action identifiers to include. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.Target included_targets = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\Dataform\V1\Target> - */ - public function getIncludedTargets() - { - return $this->included_targets; - } - - /** - * Optional. The set of action identifiers to include. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.Target included_targets = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataform\V1\Target[] $var - * @return $this - */ - public function setIncludedTargets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\Target::class); - $this->included_targets = $arr; - - return $this; - } - - /** - * Optional. The set of tags to include. - * - * Generated from protobuf field repeated string included_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getIncludedTags() - { - return $this->included_tags; - } - - /** - * Optional. The set of tags to include. - * - * Generated from protobuf field repeated string included_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setIncludedTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->included_tags = $arr; - - return $this; - } - - /** - * Optional. When set to true, transitive dependencies of included actions - * will be executed. - * - * Generated from protobuf field bool transitive_dependencies_included = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getTransitiveDependenciesIncluded() - { - return $this->transitive_dependencies_included; - } - - /** - * Optional. When set to true, transitive dependencies of included actions - * will be executed. - * - * Generated from protobuf field bool transitive_dependencies_included = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setTransitiveDependenciesIncluded($var) - { - GPBUtil::checkBool($var); - $this->transitive_dependencies_included = $var; - - return $this; - } - - /** - * Optional. When set to true, transitive dependents of included actions will - * be executed. - * - * Generated from protobuf field bool transitive_dependents_included = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getTransitiveDependentsIncluded() - { - return $this->transitive_dependents_included; - } - - /** - * Optional. When set to true, transitive dependents of included actions will - * be executed. - * - * Generated from protobuf field bool transitive_dependents_included = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setTransitiveDependentsIncluded($var) - { - GPBUtil::checkBool($var); - $this->transitive_dependents_included = $var; - - return $this; - } - - /** - * Optional. When set to true, any incremental tables will be fully refreshed. - * - * Generated from protobuf field bool fully_refresh_incremental_tables_enabled = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getFullyRefreshIncrementalTablesEnabled() - { - return $this->fully_refresh_incremental_tables_enabled; - } - - /** - * Optional. When set to true, any incremental tables will be fully refreshed. - * - * Generated from protobuf field bool fully_refresh_incremental_tables_enabled = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setFullyRefreshIncrementalTablesEnabled($var) - { - GPBUtil::checkBool($var); - $this->fully_refresh_incremental_tables_enabled = $var; - - return $this; - } - - /** - * Optional. The service account to run workflow invocations under. - * - * Generated from protobuf field string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getServiceAccount() - { - return $this->service_account; - } - - /** - * Optional. The service account to run workflow invocations under. - * - * Generated from protobuf field string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setServiceAccount($var) - { - GPBUtil::checkString($var, True); - $this->service_account = $var; - - return $this; - } - - /** - * Optional. Specifies the priority for query execution in BigQuery. - * More information can be found at - * https://cloud.google.com/bigquery/docs/running-queries#queries. - * - * Generated from protobuf field optional .google.cloud.dataform.v1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getQueryPriority() - { - return isset($this->query_priority) ? $this->query_priority : 0; - } - - public function hasQueryPriority() - { - return isset($this->query_priority); - } - - public function clearQueryPriority() - { - unset($this->query_priority); - } - - /** - * Optional. Specifies the priority for query execution in BigQuery. - * More information can be found at - * https://cloud.google.com/bigquery/docs/running-queries#queries. - * - * Generated from protobuf field optional .google.cloud.dataform.v1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setQueryPriority($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1\InvocationConfig\QueryPriority::class); - $this->query_priority = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListCompilationResultsRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListCompilationResultsRequest.php deleted file mode 100644 index e7135667dfd8..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListCompilationResultsRequest.php +++ /dev/null @@ -1,254 +0,0 @@ -google.cloud.dataform.v1.ListCompilationResultsRequest - */ -class ListCompilationResultsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The repository in which to list compilation results. Must be in - * the format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * 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. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * 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. - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Filter for the returned list. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The repository in which to list compilation results. Must be in - * the format `projects/*/locations/*/repositories/*`. Please see - * {@see DataformClient::repositoryName()} for help formatting this field. - * - * @return \Google\Cloud\Dataform\V1\ListCompilationResultsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The repository in which to list compilation results. Must be in - * the format `projects/{@*}locations/{@*}repositories/*`. - * @type int $page_size - * 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. - * @type string $page_token - * 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. - * @type string $order_by - * 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. - * @type string $filter - * Optional. Filter for the returned list. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The repository in which to list compilation results. Must be in - * the format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The repository in which to list compilation results. Must be in - * the format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * 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. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * 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. - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Filter for the returned list. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filter for the returned list. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListCompilationResultsResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListCompilationResultsResponse.php deleted file mode 100644 index 1e895f200a8e..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListCompilationResultsResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.dataform.v1.ListCompilationResultsResponse - */ -class ListCompilationResultsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of compilation results. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.CompilationResult compilation_results = 1; - */ - private $compilation_results; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations which could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1\CompilationResult[] $compilation_results - * List of compilation results. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type string[] $unreachable - * Locations which could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * List of compilation results. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.CompilationResult compilation_results = 1; - * @return RepeatedField<\Google\Cloud\Dataform\V1\CompilationResult> - */ - public function getCompilationResults() - { - return $this->compilation_results; - } - - /** - * List of compilation results. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.CompilationResult compilation_results = 1; - * @param \Google\Cloud\Dataform\V1\CompilationResult[] $var - * @return $this - */ - public function setCompilationResults($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\CompilationResult::class); - $this->compilation_results = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations which could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations which could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param string[] $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListReleaseConfigsRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListReleaseConfigsRequest.php deleted file mode 100644 index 2cc63060f502..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListReleaseConfigsRequest.php +++ /dev/null @@ -1,178 +0,0 @@ -google.cloud.dataform.v1.ListReleaseConfigsRequest - */ -class ListReleaseConfigsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The repository in which to list release configs. Must be in the - * format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * 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. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The repository in which to list release configs. Must be in the - * format `projects/*/locations/*/repositories/*`. Please see - * {@see DataformClient::repositoryName()} for help formatting this field. - * - * @return \Google\Cloud\Dataform\V1\ListReleaseConfigsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The repository in which to list release configs. Must be in the - * format `projects/{@*}locations/{@*}repositories/*`. - * @type int $page_size - * 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. - * @type string $page_token - * 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. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The repository in which to list release configs. Must be in the - * format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The repository in which to list release configs. Must be in the - * format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * 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. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListReleaseConfigsResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListReleaseConfigsResponse.php deleted file mode 100644 index 1fcd5e3476d1..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListReleaseConfigsResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.dataform.v1.ListReleaseConfigsResponse - */ -class ListReleaseConfigsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of release configs. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.ReleaseConfig release_configs = 1; - */ - private $release_configs; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations which could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1\ReleaseConfig[] $release_configs - * List of release configs. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type string[] $unreachable - * Locations which could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * List of release configs. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.ReleaseConfig release_configs = 1; - * @return RepeatedField<\Google\Cloud\Dataform\V1\ReleaseConfig> - */ - public function getReleaseConfigs() - { - return $this->release_configs; - } - - /** - * List of release configs. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.ReleaseConfig release_configs = 1; - * @param \Google\Cloud\Dataform\V1\ReleaseConfig[] $var - * @return $this - */ - public function setReleaseConfigs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\ReleaseConfig::class); - $this->release_configs = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations which could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations which could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param string[] $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListRepositoriesRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListRepositoriesRequest.php deleted file mode 100644 index dcd4a1798b80..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListRepositoriesRequest.php +++ /dev/null @@ -1,254 +0,0 @@ -google.cloud.dataform.v1.ListRepositoriesRequest - */ -class ListRepositoriesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The location in which to list repositories. Must be in the format - * `projects/{@*}locations/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Maximum number of repositories to return. The server may return - * fewer items than requested. If unspecified, the server will pick an - * appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * 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. - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Filter for the returned list. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The location in which to list repositories. Must be in the format - * `projects/*/locations/*`. Please see - * {@see DataformClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\Dataform\V1\ListRepositoriesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The location in which to list repositories. Must be in the format - * `projects/{@*}locations/*`. - * @type int $page_size - * Optional. Maximum number of repositories to return. The server may return - * fewer items than requested. If unspecified, the server will pick an - * appropriate default. - * @type string $page_token - * 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. - * @type string $order_by - * 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. - * @type string $filter - * Optional. Filter for the returned list. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The location in which to list repositories. Must be in the format - * `projects/{@*}locations/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The location in which to list repositories. Must be in the format - * `projects/{@*}locations/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. Maximum number of repositories to return. The server may return - * fewer items than requested. If unspecified, the server will pick an - * appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Maximum number of repositories to return. The server may return - * fewer items than requested. If unspecified, the server will pick an - * appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * 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. - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Filter for the returned list. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filter for the returned list. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListRepositoriesResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListRepositoriesResponse.php deleted file mode 100644 index 5ec2a4373e04..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListRepositoriesResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.dataform.v1.ListRepositoriesResponse - */ -class ListRepositoriesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of repositories. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.Repository repositories = 1; - */ - private $repositories; - /** - * A token which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations which could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1\Repository[] $repositories - * List of repositories. - * @type string $next_page_token - * A token which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type string[] $unreachable - * Locations which could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * List of repositories. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.Repository repositories = 1; - * @return RepeatedField<\Google\Cloud\Dataform\V1\Repository> - */ - public function getRepositories() - { - return $this->repositories; - } - - /** - * List of repositories. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.Repository repositories = 1; - * @param \Google\Cloud\Dataform\V1\Repository[] $var - * @return $this - */ - public function setRepositories($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\Repository::class); - $this->repositories = $arr; - - return $this; - } - - /** - * A token which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations which could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations which could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param string[] $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkflowConfigsRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkflowConfigsRequest.php deleted file mode 100644 index 916ce3940644..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkflowConfigsRequest.php +++ /dev/null @@ -1,178 +0,0 @@ -google.cloud.dataform.v1.ListWorkflowConfigsRequest - */ -class ListWorkflowConfigsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The repository in which to list workflow configs. Must be in the - * format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * 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. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The repository in which to list workflow configs. Must be in the - * format `projects/*/locations/*/repositories/*`. Please see - * {@see DataformClient::repositoryName()} for help formatting this field. - * - * @return \Google\Cloud\Dataform\V1\ListWorkflowConfigsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The repository in which to list workflow configs. Must be in the - * format `projects/{@*}locations/{@*}repositories/*`. - * @type int $page_size - * 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. - * @type string $page_token - * 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. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The repository in which to list workflow configs. Must be in the - * format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The repository in which to list workflow configs. Must be in the - * format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * 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. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkflowConfigsResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkflowConfigsResponse.php deleted file mode 100644 index 59cdb729c6a7..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkflowConfigsResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.dataform.v1.ListWorkflowConfigsResponse - */ -class ListWorkflowConfigsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of workflow configs. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.WorkflowConfig workflow_configs = 1; - */ - private $workflow_configs; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations which could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1\WorkflowConfig[] $workflow_configs - * List of workflow configs. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type string[] $unreachable - * Locations which could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * List of workflow configs. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.WorkflowConfig workflow_configs = 1; - * @return RepeatedField<\Google\Cloud\Dataform\V1\WorkflowConfig> - */ - public function getWorkflowConfigs() - { - return $this->workflow_configs; - } - - /** - * List of workflow configs. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.WorkflowConfig workflow_configs = 1; - * @param \Google\Cloud\Dataform\V1\WorkflowConfig[] $var - * @return $this - */ - public function setWorkflowConfigs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\WorkflowConfig::class); - $this->workflow_configs = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations which could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations which could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param string[] $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkflowInvocationsRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkflowInvocationsRequest.php deleted file mode 100644 index eccec2367029..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkflowInvocationsRequest.php +++ /dev/null @@ -1,254 +0,0 @@ -google.cloud.dataform.v1.ListWorkflowInvocationsRequest - */ -class ListWorkflowInvocationsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource of the WorkflowInvocation type. Must be in - * the format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * 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. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * 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. - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Filter for the returned list. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The parent resource of the WorkflowInvocation type. Must be in - * the format `projects/*/locations/*/repositories/*`. Please see - * {@see DataformClient::repositoryName()} for help formatting this field. - * - * @return \Google\Cloud\Dataform\V1\ListWorkflowInvocationsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource of the WorkflowInvocation type. Must be in - * the format `projects/{@*}locations/{@*}repositories/*`. - * @type int $page_size - * 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. - * @type string $page_token - * 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. - * @type string $order_by - * 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. - * @type string $filter - * Optional. Filter for the returned list. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource of the WorkflowInvocation type. Must be in - * the format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource of the WorkflowInvocation type. Must be in - * the format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * 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. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * 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. - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Filter for the returned list. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filter for the returned list. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkflowInvocationsResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkflowInvocationsResponse.php deleted file mode 100644 index cb2678a25166..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkflowInvocationsResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.dataform.v1.ListWorkflowInvocationsResponse - */ -class ListWorkflowInvocationsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of workflow invocations. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.WorkflowInvocation workflow_invocations = 1; - */ - private $workflow_invocations; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations which could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1\WorkflowInvocation[] $workflow_invocations - * List of workflow invocations. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type string[] $unreachable - * Locations which could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * List of workflow invocations. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.WorkflowInvocation workflow_invocations = 1; - * @return RepeatedField<\Google\Cloud\Dataform\V1\WorkflowInvocation> - */ - public function getWorkflowInvocations() - { - return $this->workflow_invocations; - } - - /** - * List of workflow invocations. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.WorkflowInvocation workflow_invocations = 1; - * @param \Google\Cloud\Dataform\V1\WorkflowInvocation[] $var - * @return $this - */ - public function setWorkflowInvocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\WorkflowInvocation::class); - $this->workflow_invocations = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations which could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations which could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param string[] $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkspacesRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkspacesRequest.php deleted file mode 100644 index f36262717f76..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkspacesRequest.php +++ /dev/null @@ -1,254 +0,0 @@ -google.cloud.dataform.v1.ListWorkspacesRequest - */ -class ListWorkspacesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The repository in which to list workspaces. Must be in the - * format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Maximum number of workspaces to return. The server may return - * fewer items than requested. If unspecified, the server will pick an - * appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * 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. - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Filter for the returned list. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The repository in which to list workspaces. Must be in the - * format `projects/*/locations/*/repositories/*`. Please see - * {@see DataformClient::repositoryName()} for help formatting this field. - * - * @return \Google\Cloud\Dataform\V1\ListWorkspacesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The repository in which to list workspaces. Must be in the - * format `projects/{@*}locations/{@*}repositories/*`. - * @type int $page_size - * Optional. Maximum number of workspaces to return. The server may return - * fewer items than requested. If unspecified, the server will pick an - * appropriate default. - * @type string $page_token - * 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. - * @type string $order_by - * 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. - * @type string $filter - * Optional. Filter for the returned list. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The repository in which to list workspaces. Must be in the - * format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The repository in which to list workspaces. Must be in the - * format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. Maximum number of workspaces to return. The server may return - * fewer items than requested. If unspecified, the server will pick an - * appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Maximum number of workspaces to return. The server may return - * fewer items than requested. If unspecified, the server will pick an - * appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * 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. - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Filter for the returned list. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filter for the returned list. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkspacesResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkspacesResponse.php deleted file mode 100644 index ca3121b20516..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ListWorkspacesResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.dataform.v1.ListWorkspacesResponse - */ -class ListWorkspacesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of workspaces. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.Workspace workspaces = 1; - */ - private $workspaces; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations which could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1\Workspace[] $workspaces - * List of workspaces. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type string[] $unreachable - * Locations which could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * List of workspaces. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.Workspace workspaces = 1; - * @return RepeatedField<\Google\Cloud\Dataform\V1\Workspace> - */ - public function getWorkspaces() - { - return $this->workspaces; - } - - /** - * List of workspaces. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.Workspace workspaces = 1; - * @param \Google\Cloud\Dataform\V1\Workspace[] $var - * @return $this - */ - public function setWorkspaces($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\Workspace::class); - $this->workspaces = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations which could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations which could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param string[] $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MakeDirectoryRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MakeDirectoryRequest.php deleted file mode 100644 index 7f17114ed394..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MakeDirectoryRequest.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.dataform.v1.MakeDirectoryRequest - */ -class MakeDirectoryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $workspace = ''; - /** - * Required. The directory's full path including directory name, relative to - * the workspace root. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $path = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $workspace - * Required. The workspace's name. - * @type string $path - * Required. The directory's full path including directory name, relative to - * the workspace root. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getWorkspace() - { - return $this->workspace; - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setWorkspace($var) - { - GPBUtil::checkString($var, True); - $this->workspace = $var; - - return $this; - } - - /** - * Required. The directory's full path including directory name, relative to - * the workspace root. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * Required. The directory's full path including directory name, relative to - * the workspace root. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MakeDirectoryResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MakeDirectoryResponse.php deleted file mode 100644 index e0daee078793..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MakeDirectoryResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.dataform.v1.MakeDirectoryResponse - */ -class MakeDirectoryResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveDirectoryRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveDirectoryRequest.php deleted file mode 100644 index 9033343adbb3..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveDirectoryRequest.php +++ /dev/null @@ -1,143 +0,0 @@ -google.cloud.dataform.v1.MoveDirectoryRequest - */ -class MoveDirectoryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $workspace = ''; - /** - * Required. The directory's full path including directory name, relative to - * the workspace root. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $path = ''; - /** - * Required. The new path for the directory including directory name, rooted - * at workspace root. - * - * Generated from protobuf field string new_path = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $new_path = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $workspace - * Required. The workspace's name. - * @type string $path - * Required. The directory's full path including directory name, relative to - * the workspace root. - * @type string $new_path - * Required. The new path for the directory including directory name, rooted - * at workspace root. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getWorkspace() - { - return $this->workspace; - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setWorkspace($var) - { - GPBUtil::checkString($var, True); - $this->workspace = $var; - - return $this; - } - - /** - * Required. The directory's full path including directory name, relative to - * the workspace root. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * Required. The directory's full path including directory name, relative to - * the workspace root. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - - /** - * Required. The new path for the directory including directory name, rooted - * at workspace root. - * - * Generated from protobuf field string new_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getNewPath() - { - return $this->new_path; - } - - /** - * Required. The new path for the directory including directory name, rooted - * at workspace root. - * - * Generated from protobuf field string new_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setNewPath($var) - { - GPBUtil::checkString($var, True); - $this->new_path = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveDirectoryResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveDirectoryResponse.php deleted file mode 100644 index a51762eb18bc..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveDirectoryResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.dataform.v1.MoveDirectoryResponse - */ -class MoveDirectoryResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveFileRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveFileRequest.php deleted file mode 100644 index 42117ae9ed39..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveFileRequest.php +++ /dev/null @@ -1,143 +0,0 @@ -google.cloud.dataform.v1.MoveFileRequest - */ -class MoveFileRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $workspace = ''; - /** - * Required. The file's full path including filename, relative to the - * workspace root. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $path = ''; - /** - * Required. The file's new path including filename, relative to the workspace - * root. - * - * Generated from protobuf field string new_path = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $new_path = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $workspace - * Required. The workspace's name. - * @type string $path - * Required. The file's full path including filename, relative to the - * workspace root. - * @type string $new_path - * Required. The file's new path including filename, relative to the workspace - * root. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getWorkspace() - { - return $this->workspace; - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setWorkspace($var) - { - GPBUtil::checkString($var, True); - $this->workspace = $var; - - return $this; - } - - /** - * Required. The file's full path including filename, relative to the - * workspace root. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * Required. The file's full path including filename, relative to the - * workspace root. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - - /** - * Required. The file's new path including filename, relative to the workspace - * root. - * - * Generated from protobuf field string new_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getNewPath() - { - return $this->new_path; - } - - /** - * Required. The file's new path including filename, relative to the workspace - * root. - * - * Generated from protobuf field string new_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setNewPath($var) - { - GPBUtil::checkString($var, True); - $this->new_path = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveFileResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveFileResponse.php deleted file mode 100644 index aa224bc2ea6d..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/MoveFileResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.dataform.v1.MoveFileResponse - */ -class MoveFileResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/NotebookRuntimeOptions.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/NotebookRuntimeOptions.php deleted file mode 100644 index ce55feceaa82..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/NotebookRuntimeOptions.php +++ /dev/null @@ -1,124 +0,0 @@ -google.cloud.dataform.v1.NotebookRuntimeOptions - */ -class NotebookRuntimeOptions extends \Google\Protobuf\Internal\Message -{ - /** - * 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. - * - * Generated from protobuf field string ai_platform_notebook_runtime_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $ai_platform_notebook_runtime_template = ''; - protected $execution_sink; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $gcs_output_bucket - * Optional. The Google Cloud Storage location to upload the result to. - * Format: `gs://bucket-name`. - * @type string $ai_platform_notebook_runtime_template - * 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. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The Google Cloud Storage location to upload the result to. - * Format: `gs://bucket-name`. - * - * Generated from protobuf field string gcs_output_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getGcsOutputBucket() - { - return $this->readOneof(1); - } - - public function hasGcsOutputBucket() - { - return $this->hasOneof(1); - } - - /** - * Optional. The Google Cloud Storage location to upload the result to. - * Format: `gs://bucket-name`. - * - * Generated from protobuf field string gcs_output_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setGcsOutputBucket($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string ai_platform_notebook_runtime_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getAiPlatformNotebookRuntimeTemplate() - { - return $this->ai_platform_notebook_runtime_template; - } - - /** - * 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. - * - * Generated from protobuf field string ai_platform_notebook_runtime_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setAiPlatformNotebookRuntimeTemplate($var) - { - GPBUtil::checkString($var, True); - $this->ai_platform_notebook_runtime_template = $var; - - return $this; - } - - /** - * @return string - */ - public function getExecutionSink() - { - return $this->whichOneof("execution_sink"); - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/PullGitCommitsRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/PullGitCommitsRequest.php deleted file mode 100644 index b5bcbfefe14d..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/PullGitCommitsRequest.php +++ /dev/null @@ -1,153 +0,0 @@ -google.cloud.dataform.v1.PullGitCommitsRequest - */ -class PullGitCommitsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * 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. - * - * Generated from protobuf field string remote_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $remote_branch = ''; - /** - * Required. The author of any merge commit which may be created as a result - * of merging fetched Git commits into this workspace. - * - * Generated from protobuf field .google.cloud.dataform.v1.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $author = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The workspace's name. - * @type string $remote_branch - * 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. - * @type \Google\Cloud\Dataform\V1\CommitAuthor $author - * Required. The author of any merge commit which may be created as a result - * of merging fetched Git commits into this workspace. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string remote_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRemoteBranch() - { - return $this->remote_branch; - } - - /** - * 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. - * - * Generated from protobuf field string remote_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRemoteBranch($var) - { - GPBUtil::checkString($var, True); - $this->remote_branch = $var; - - return $this; - } - - /** - * Required. The author of any merge commit which may be created as a result - * of merging fetched Git commits into this workspace. - * - * Generated from protobuf field .google.cloud.dataform.v1.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataform\V1\CommitAuthor|null - */ - public function getAuthor() - { - return $this->author; - } - - public function hasAuthor() - { - return isset($this->author); - } - - public function clearAuthor() - { - unset($this->author); - } - - /** - * Required. The author of any merge commit which may be created as a result - * of merging fetched Git commits into this workspace. - * - * Generated from protobuf field .google.cloud.dataform.v1.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataform\V1\CommitAuthor $var - * @return $this - */ - public function setAuthor($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CommitAuthor::class); - $this->author = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/PullGitCommitsResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/PullGitCommitsResponse.php deleted file mode 100644 index b0c696ba8835..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/PullGitCommitsResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.dataform.v1.PullGitCommitsResponse - */ -class PullGitCommitsResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/PushGitCommitsRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/PushGitCommitsRequest.php deleted file mode 100644 index 153e3a51f43e..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/PushGitCommitsRequest.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.dataform.v1.PushGitCommitsRequest - */ -class PushGitCommitsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * 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. - * - * Generated from protobuf field string remote_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $remote_branch = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The workspace's name. - * @type string $remote_branch - * 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. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string remote_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRemoteBranch() - { - return $this->remote_branch; - } - - /** - * 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. - * - * Generated from protobuf field string remote_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRemoteBranch($var) - { - GPBUtil::checkString($var, True); - $this->remote_branch = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/PushGitCommitsResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/PushGitCommitsResponse.php deleted file mode 100644 index 0a7b56ad8609..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/PushGitCommitsResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.dataform.v1.PushGitCommitsResponse - */ -class PushGitCommitsResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryCompilationResultActionsRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryCompilationResultActionsRequest.php deleted file mode 100644 index 6f7d342d855c..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryCompilationResultActionsRequest.php +++ /dev/null @@ -1,201 +0,0 @@ -google.cloud.dataform.v1.QueryCompilationResultActionsRequest - */ -class QueryCompilationResultActionsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The compilation result's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * 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. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Optional filter for the returned list. Filtering is only - * currently supported on the `file_path` field. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The compilation result's name. - * @type int $page_size - * 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. - * @type string $page_token - * 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. - * @type string $filter - * Optional. Optional filter for the returned list. Filtering is only - * currently supported on the `file_path` field. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The compilation result's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The compilation result's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * 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. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Optional filter for the returned list. Filtering is only - * currently supported on the `file_path` field. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Optional filter for the returned list. Filtering is only - * currently supported on the `file_path` field. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryCompilationResultActionsResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryCompilationResultActionsResponse.php deleted file mode 100644 index e886cdd87ae4..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryCompilationResultActionsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.dataform.v1.QueryCompilationResultActionsResponse - */ -class QueryCompilationResultActionsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of compilation result actions. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.CompilationResultAction compilation_result_actions = 1; - */ - private $compilation_result_actions; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1\CompilationResultAction[] $compilation_result_actions - * List of compilation result actions. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * List of compilation result actions. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.CompilationResultAction compilation_result_actions = 1; - * @return RepeatedField<\Google\Cloud\Dataform\V1\CompilationResultAction> - */ - public function getCompilationResultActions() - { - return $this->compilation_result_actions; - } - - /** - * List of compilation result actions. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.CompilationResultAction compilation_result_actions = 1; - * @param \Google\Cloud\Dataform\V1\CompilationResultAction[] $var - * @return $this - */ - public function setCompilationResultActions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\CompilationResultAction::class); - $this->compilation_result_actions = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryDirectoryContentsRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryDirectoryContentsRequest.php deleted file mode 100644 index 0ebc5d354cba..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryDirectoryContentsRequest.php +++ /dev/null @@ -1,243 +0,0 @@ -google.cloud.dataform.v1.QueryDirectoryContentsRequest - */ -class QueryDirectoryContentsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $workspace = ''; - /** - * Optional. The directory's full path including directory name, relative to - * the workspace root. If left unset, the workspace root is used. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $path = ''; - /** - * Optional. Maximum number of paths to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate - * default. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * 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. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * 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. - * - * Generated from protobuf field .google.cloud.dataform.v1.DirectoryContentsView view = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $view = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $workspace - * Required. The workspace's name. - * @type string $path - * Optional. The directory's full path including directory name, relative to - * the workspace root. If left unset, the workspace root is used. - * @type int $page_size - * Optional. Maximum number of paths to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate - * default. - * @type string $page_token - * 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. - * @type int $view - * 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. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getWorkspace() - { - return $this->workspace; - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setWorkspace($var) - { - GPBUtil::checkString($var, True); - $this->workspace = $var; - - return $this; - } - - /** - * Optional. The directory's full path including directory name, relative to - * the workspace root. If left unset, the workspace root is used. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * Optional. The directory's full path including directory name, relative to - * the workspace root. If left unset, the workspace root is used. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - - /** - * Optional. Maximum number of paths to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate - * default. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Maximum number of paths to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate - * default. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field .google.cloud.dataform.v1.DirectoryContentsView view = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getView() - { - return $this->view; - } - - /** - * 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. - * - * Generated from protobuf field .google.cloud.dataform.v1.DirectoryContentsView view = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setView($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1\DirectoryContentsView::class); - $this->view = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryDirectoryContentsResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryDirectoryContentsResponse.php deleted file mode 100644 index 3c46f49dbe8e..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryDirectoryContentsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.dataform.v1.QueryDirectoryContentsResponse - */ -class QueryDirectoryContentsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of entries in the directory. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.DirectoryEntry directory_entries = 1; - */ - private $directory_entries; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1\DirectoryEntry[] $directory_entries - * List of entries in the directory. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * List of entries in the directory. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.DirectoryEntry directory_entries = 1; - * @return RepeatedField<\Google\Cloud\Dataform\V1\DirectoryEntry> - */ - public function getDirectoryEntries() - { - return $this->directory_entries; - } - - /** - * List of entries in the directory. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.DirectoryEntry directory_entries = 1; - * @param \Google\Cloud\Dataform\V1\DirectoryEntry[] $var - * @return $this - */ - public function setDirectoryEntries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\DirectoryEntry::class); - $this->directory_entries = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryRepositoryDirectoryContentsRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryRepositoryDirectoryContentsRequest.php deleted file mode 100644 index dca9d0cc9790..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryRepositoryDirectoryContentsRequest.php +++ /dev/null @@ -1,239 +0,0 @@ -google.cloud.dataform.v1.QueryRepositoryDirectoryContentsRequest - */ -class QueryRepositoryDirectoryContentsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. The Commit SHA for the commit to query from. If unset, the - * directory will be queried from HEAD. - * - * Generated from protobuf field string commit_sha = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $commit_sha = ''; - /** - * Optional. The directory's full path including directory name, relative to - * root. If left unset, the root is used. - * - * Generated from protobuf field string path = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $path = ''; - /** - * Optional. Maximum number of paths to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate - * default. - * - * Generated from protobuf field int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * 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. - * - * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The repository's name. - * @type string $commit_sha - * Optional. The Commit SHA for the commit to query from. If unset, the - * directory will be queried from HEAD. - * @type string $path - * Optional. The directory's full path including directory name, relative to - * root. If left unset, the root is used. - * @type int $page_size - * Optional. Maximum number of paths to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate - * default. - * @type string $page_token - * 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. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. The Commit SHA for the commit to query from. If unset, the - * directory will be queried from HEAD. - * - * Generated from protobuf field string commit_sha = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getCommitSha() - { - return $this->commit_sha; - } - - /** - * Optional. The Commit SHA for the commit to query from. If unset, the - * directory will be queried from HEAD. - * - * Generated from protobuf field string commit_sha = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setCommitSha($var) - { - GPBUtil::checkString($var, True); - $this->commit_sha = $var; - - return $this; - } - - /** - * Optional. The directory's full path including directory name, relative to - * root. If left unset, the root is used. - * - * Generated from protobuf field string path = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * Optional. The directory's full path including directory name, relative to - * root. If left unset, the root is used. - * - * Generated from protobuf field string path = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - - /** - * Optional. Maximum number of paths to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate - * default. - * - * Generated from protobuf field int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Maximum number of paths to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate - * default. - * - * Generated from protobuf field int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryRepositoryDirectoryContentsResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryRepositoryDirectoryContentsResponse.php deleted file mode 100644 index b673a43f682f..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryRepositoryDirectoryContentsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.dataform.v1.QueryRepositoryDirectoryContentsResponse - */ -class QueryRepositoryDirectoryContentsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of entries in the directory. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.DirectoryEntry directory_entries = 1; - */ - private $directory_entries; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1\DirectoryEntry[] $directory_entries - * List of entries in the directory. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * List of entries in the directory. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.DirectoryEntry directory_entries = 1; - * @return RepeatedField<\Google\Cloud\Dataform\V1\DirectoryEntry> - */ - public function getDirectoryEntries() - { - return $this->directory_entries; - } - - /** - * List of entries in the directory. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.DirectoryEntry directory_entries = 1; - * @param \Google\Cloud\Dataform\V1\DirectoryEntry[] $var - * @return $this - */ - public function setDirectoryEntries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\DirectoryEntry::class); - $this->directory_entries = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryWorkflowInvocationActionsRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryWorkflowInvocationActionsRequest.php deleted file mode 100644 index fcc2b5a9159c..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryWorkflowInvocationActionsRequest.php +++ /dev/null @@ -1,163 +0,0 @@ -google.cloud.dataform.v1.QueryWorkflowInvocationActionsRequest - */ -class QueryWorkflowInvocationActionsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workflow invocation's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * 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. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The workflow invocation's name. - * @type int $page_size - * 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. - * @type string $page_token - * 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. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workflow invocation's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The workflow invocation's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * 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. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryWorkflowInvocationActionsResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryWorkflowInvocationActionsResponse.php deleted file mode 100644 index 3ef318f535c4..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/QueryWorkflowInvocationActionsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.dataform.v1.QueryWorkflowInvocationActionsResponse - */ -class QueryWorkflowInvocationActionsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of workflow invocation actions. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.WorkflowInvocationAction workflow_invocation_actions = 1; - */ - private $workflow_invocation_actions; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1\WorkflowInvocationAction[] $workflow_invocation_actions - * List of workflow invocation actions. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * List of workflow invocation actions. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.WorkflowInvocationAction workflow_invocation_actions = 1; - * @return RepeatedField<\Google\Cloud\Dataform\V1\WorkflowInvocationAction> - */ - public function getWorkflowInvocationActions() - { - return $this->workflow_invocation_actions; - } - - /** - * List of workflow invocation actions. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.WorkflowInvocationAction workflow_invocation_actions = 1; - * @param \Google\Cloud\Dataform\V1\WorkflowInvocationAction[] $var - * @return $this - */ - public function setWorkflowInvocationActions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\WorkflowInvocationAction::class); - $this->workflow_invocation_actions = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReadFileRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReadFileRequest.php deleted file mode 100644 index 5b16429cea57..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReadFileRequest.php +++ /dev/null @@ -1,143 +0,0 @@ -google.cloud.dataform.v1.ReadFileRequest - */ -class ReadFileRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $workspace = ''; - /** - * Required. The file's full path including filename, relative to the - * workspace root. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $path = ''; - /** - * Optional. The Git revision of the file to return. If left empty, the - * current contents of `path` will be returned. - * - * Generated from protobuf field string revision = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $revision = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $workspace - * Required. The workspace's name. - * @type string $path - * Required. The file's full path including filename, relative to the - * workspace root. - * @type string $revision - * Optional. The Git revision of the file to return. If left empty, the - * current contents of `path` will be returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getWorkspace() - { - return $this->workspace; - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setWorkspace($var) - { - GPBUtil::checkString($var, True); - $this->workspace = $var; - - return $this; - } - - /** - * Required. The file's full path including filename, relative to the - * workspace root. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * Required. The file's full path including filename, relative to the - * workspace root. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - - /** - * Optional. The Git revision of the file to return. If left empty, the - * current contents of `path` will be returned. - * - * Generated from protobuf field string revision = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRevision() - { - return $this->revision; - } - - /** - * Optional. The Git revision of the file to return. If left empty, the - * current contents of `path` will be returned. - * - * Generated from protobuf field string revision = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRevision($var) - { - GPBUtil::checkString($var, True); - $this->revision = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReadFileResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReadFileResponse.php deleted file mode 100644 index e569c8b51b87..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReadFileResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.dataform.v1.ReadFileResponse - */ -class ReadFileResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The file's contents. - * - * Generated from protobuf field bytes file_contents = 1; - */ - protected $file_contents = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $file_contents - * The file's contents. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * The file's contents. - * - * Generated from protobuf field bytes file_contents = 1; - * @return string - */ - public function getFileContents() - { - return $this->file_contents; - } - - /** - * The file's contents. - * - * Generated from protobuf field bytes file_contents = 1; - * @param string $var - * @return $this - */ - public function setFileContents($var) - { - GPBUtil::checkString($var, False); - $this->file_contents = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReadRepositoryFileRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReadRepositoryFileRequest.php deleted file mode 100644 index 0dfb8544ebb1..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReadRepositoryFileRequest.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.dataform.v1.ReadRepositoryFileRequest - */ -class ReadRepositoryFileRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. The commit SHA for the commit to read from. If unset, the file - * will be read from HEAD. - * - * Generated from protobuf field string commit_sha = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $commit_sha = ''; - /** - * Required. Full file path to read including filename, from repository root. - * - * Generated from protobuf field string path = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $path = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The repository's name. - * @type string $commit_sha - * Optional. The commit SHA for the commit to read from. If unset, the file - * will be read from HEAD. - * @type string $path - * Required. Full file path to read including filename, from repository root. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. The commit SHA for the commit to read from. If unset, the file - * will be read from HEAD. - * - * Generated from protobuf field string commit_sha = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getCommitSha() - { - return $this->commit_sha; - } - - /** - * Optional. The commit SHA for the commit to read from. If unset, the file - * will be read from HEAD. - * - * Generated from protobuf field string commit_sha = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setCommitSha($var) - { - GPBUtil::checkString($var, True); - $this->commit_sha = $var; - - return $this; - } - - /** - * Required. Full file path to read including filename, from repository root. - * - * Generated from protobuf field string path = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * Required. Full file path to read including filename, from repository root. - * - * Generated from protobuf field string path = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReadRepositoryFileResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReadRepositoryFileResponse.php deleted file mode 100644 index ddd4c637ae5c..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReadRepositoryFileResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.dataform.v1.ReadRepositoryFileResponse - */ -class ReadRepositoryFileResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The file's contents. - * - * Generated from protobuf field bytes contents = 1; - */ - protected $contents = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $contents - * The file's contents. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * The file's contents. - * - * Generated from protobuf field bytes contents = 1; - * @return string - */ - public function getContents() - { - return $this->contents; - } - - /** - * The file's contents. - * - * Generated from protobuf field bytes contents = 1; - * @param string $var - * @return $this - */ - public function setContents($var) - { - GPBUtil::checkString($var, False); - $this->contents = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RelationDescriptor.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RelationDescriptor.php deleted file mode 100644 index 6dcf5127b226..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RelationDescriptor.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.dataform.v1.RelationDescriptor - */ -class RelationDescriptor extends \Google\Protobuf\Internal\Message -{ - /** - * A text description of the relation. - * - * Generated from protobuf field string description = 1; - */ - protected $description = ''; - /** - * A list of descriptions of columns within the relation. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.RelationDescriptor.ColumnDescriptor columns = 2; - */ - private $columns; - /** - * A set of BigQuery labels that should be applied to the relation. - * - * Generated from protobuf field map bigquery_labels = 3; - */ - private $bigquery_labels; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $description - * A text description of the relation. - * @type \Google\Cloud\Dataform\V1\RelationDescriptor\ColumnDescriptor[] $columns - * A list of descriptions of columns within the relation. - * @type array|\Google\Protobuf\Internal\MapField $bigquery_labels - * A set of BigQuery labels that should be applied to the relation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * A text description of the relation. - * - * Generated from protobuf field string description = 1; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * A text description of the relation. - * - * Generated from protobuf field string description = 1; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * A list of descriptions of columns within the relation. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.RelationDescriptor.ColumnDescriptor columns = 2; - * @return RepeatedField<\Google\Cloud\Dataform\V1\RelationDescriptor\ColumnDescriptor> - */ - public function getColumns() - { - return $this->columns; - } - - /** - * A list of descriptions of columns within the relation. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.RelationDescriptor.ColumnDescriptor columns = 2; - * @param \Google\Cloud\Dataform\V1\RelationDescriptor\ColumnDescriptor[] $var - * @return $this - */ - public function setColumns($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\RelationDescriptor\ColumnDescriptor::class); - $this->columns = $arr; - - return $this; - } - - /** - * A set of BigQuery labels that should be applied to the relation. - * - * Generated from protobuf field map bigquery_labels = 3; - * @return \Google\Protobuf\Internal\MapField - */ - public function getBigqueryLabels() - { - return $this->bigquery_labels; - } - - /** - * A set of BigQuery labels that should be applied to the relation. - * - * Generated from protobuf field map bigquery_labels = 3; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setBigqueryLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->bigquery_labels = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RelationDescriptor/ColumnDescriptor.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RelationDescriptor/ColumnDescriptor.php deleted file mode 100644 index 894c01ba147f..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RelationDescriptor/ColumnDescriptor.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.dataform.v1.RelationDescriptor.ColumnDescriptor - */ -class ColumnDescriptor extends \Google\Protobuf\Internal\Message -{ - /** - * The identifier for the column. Each entry in `path` represents one level - * of nesting. - * - * Generated from protobuf field repeated string path = 1; - */ - private $path; - /** - * A textual description of the column. - * - * Generated from protobuf field string description = 2; - */ - protected $description = ''; - /** - * A list of BigQuery policy tags that will be applied to the column. - * - * Generated from protobuf field repeated string bigquery_policy_tags = 3; - */ - private $bigquery_policy_tags; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string[] $path - * The identifier for the column. Each entry in `path` represents one level - * of nesting. - * @type string $description - * A textual description of the column. - * @type string[] $bigquery_policy_tags - * A list of BigQuery policy tags that will be applied to the column. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * The identifier for the column. Each entry in `path` represents one level - * of nesting. - * - * Generated from protobuf field repeated string path = 1; - * @return RepeatedField - */ - public function getPath() - { - return $this->path; - } - - /** - * The identifier for the column. Each entry in `path` represents one level - * of nesting. - * - * Generated from protobuf field repeated string path = 1; - * @param string[] $var - * @return $this - */ - public function setPath($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->path = $arr; - - return $this; - } - - /** - * A textual description of the column. - * - * Generated from protobuf field string description = 2; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * A textual description of the column. - * - * Generated from protobuf field string description = 2; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * A list of BigQuery policy tags that will be applied to the column. - * - * Generated from protobuf field repeated string bigquery_policy_tags = 3; - * @return RepeatedField - */ - public function getBigqueryPolicyTags() - { - return $this->bigquery_policy_tags; - } - - /** - * A list of BigQuery policy tags that will be applied to the column. - * - * Generated from protobuf field repeated string bigquery_policy_tags = 3; - * @param string[] $var - * @return $this - */ - public function setBigqueryPolicyTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->bigquery_policy_tags = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReleaseConfig.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReleaseConfig.php deleted file mode 100644 index 4958a0b61374..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReleaseConfig.php +++ /dev/null @@ -1,435 +0,0 @@ -google.cloud.dataform.v1.ReleaseConfig - */ -class ReleaseConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The release config's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * 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` - * - * Generated from protobuf field string git_commitish = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $git_commitish = ''; - /** - * Optional. If set, fields of `code_compilation_config` override the default - * compilation settings that are specified in dataform.json. - * - * Generated from protobuf field .google.cloud.dataform.v1.CodeCompilationConfig code_compilation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $code_compilation_config = null; - /** - * Optional. Optional schedule (in cron format) for automatic creation of - * compilation results. - * - * Generated from protobuf field string cron_schedule = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $cron_schedule = ''; - /** - * 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. - * - * Generated from protobuf field string time_zone = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $time_zone = ''; - /** - * 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. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.ReleaseConfig.ScheduledReleaseRecord recent_scheduled_release_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $recent_scheduled_release_records; - /** - * 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/*`. - * - * Generated from protobuf field string release_compilation_result = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $release_compilation_result = ''; - /** - * Optional. Disables automatic creation of compilation results. - * - * Generated from protobuf field bool disabled = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $disabled = false; - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $internal_metadata = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The release config's name. - * @type string $git_commitish - * 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` - * @type \Google\Cloud\Dataform\V1\CodeCompilationConfig $code_compilation_config - * Optional. If set, fields of `code_compilation_config` override the default - * compilation settings that are specified in dataform.json. - * @type string $cron_schedule - * Optional. Optional schedule (in cron format) for automatic creation of - * compilation results. - * @type string $time_zone - * 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. - * @type \Google\Cloud\Dataform\V1\ReleaseConfig\ScheduledReleaseRecord[] $recent_scheduled_release_records - * 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. - * @type string $release_compilation_result - * 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/*`. - * @type bool $disabled - * Optional. Disables automatic creation of compilation results. - * @type string $internal_metadata - * 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. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The release config's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The release config's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * 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` - * - * Generated from protobuf field string git_commitish = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getGitCommitish() - { - return $this->git_commitish; - } - - /** - * 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` - * - * Generated from protobuf field string git_commitish = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setGitCommitish($var) - { - GPBUtil::checkString($var, True); - $this->git_commitish = $var; - - return $this; - } - - /** - * Optional. If set, fields of `code_compilation_config` override the default - * compilation settings that are specified in dataform.json. - * - * Generated from protobuf field .google.cloud.dataform.v1.CodeCompilationConfig code_compilation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataform\V1\CodeCompilationConfig|null - */ - public function getCodeCompilationConfig() - { - return $this->code_compilation_config; - } - - public function hasCodeCompilationConfig() - { - return isset($this->code_compilation_config); - } - - public function clearCodeCompilationConfig() - { - unset($this->code_compilation_config); - } - - /** - * Optional. If set, fields of `code_compilation_config` override the default - * compilation settings that are specified in dataform.json. - * - * Generated from protobuf field .google.cloud.dataform.v1.CodeCompilationConfig code_compilation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataform\V1\CodeCompilationConfig $var - * @return $this - */ - public function setCodeCompilationConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\CodeCompilationConfig::class); - $this->code_compilation_config = $var; - - return $this; - } - - /** - * Optional. Optional schedule (in cron format) for automatic creation of - * compilation results. - * - * Generated from protobuf field string cron_schedule = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getCronSchedule() - { - return $this->cron_schedule; - } - - /** - * Optional. Optional schedule (in cron format) for automatic creation of - * compilation results. - * - * Generated from protobuf field string cron_schedule = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setCronSchedule($var) - { - GPBUtil::checkString($var, True); - $this->cron_schedule = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string time_zone = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getTimeZone() - { - return $this->time_zone; - } - - /** - * 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. - * - * Generated from protobuf field string time_zone = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setTimeZone($var) - { - GPBUtil::checkString($var, True); - $this->time_zone = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.ReleaseConfig.ScheduledReleaseRecord recent_scheduled_release_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Cloud\Dataform\V1\ReleaseConfig\ScheduledReleaseRecord> - */ - public function getRecentScheduledReleaseRecords() - { - return $this->recent_scheduled_release_records; - } - - /** - * 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. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.ReleaseConfig.ScheduledReleaseRecord recent_scheduled_release_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataform\V1\ReleaseConfig\ScheduledReleaseRecord[] $var - * @return $this - */ - public function setRecentScheduledReleaseRecords($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\ReleaseConfig\ScheduledReleaseRecord::class); - $this->recent_scheduled_release_records = $arr; - - return $this; - } - - /** - * 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/*`. - * - * Generated from protobuf field string release_compilation_result = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getReleaseCompilationResult() - { - return $this->release_compilation_result; - } - - /** - * 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/*`. - * - * Generated from protobuf field string release_compilation_result = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setReleaseCompilationResult($var) - { - GPBUtil::checkString($var, True); - $this->release_compilation_result = $var; - - return $this; - } - - /** - * Optional. Disables automatic creation of compilation results. - * - * Generated from protobuf field bool disabled = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getDisabled() - { - return $this->disabled; - } - - /** - * Optional. Disables automatic creation of compilation results. - * - * Generated from protobuf field bool disabled = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setDisabled($var) - { - GPBUtil::checkBool($var); - $this->disabled = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getInternalMetadata() - { - return isset($this->internal_metadata) ? $this->internal_metadata : ''; - } - - public function hasInternalMetadata() - { - return isset($this->internal_metadata); - } - - public function clearInternalMetadata() - { - unset($this->internal_metadata); - } - - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setInternalMetadata($var) - { - GPBUtil::checkString($var, True); - $this->internal_metadata = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReleaseConfig/ScheduledReleaseRecord.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReleaseConfig/ScheduledReleaseRecord.php deleted file mode 100644 index 1b23181bfe82..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ReleaseConfig/ScheduledReleaseRecord.php +++ /dev/null @@ -1,162 +0,0 @@ -google.cloud.dataform.v1.ReleaseConfig.ScheduledReleaseRecord - */ -class ScheduledReleaseRecord extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The timestamp of this release attempt. - * - * Generated from protobuf field .google.protobuf.Timestamp release_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $release_time = null; - protected $result; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $compilation_result - * The name of the created compilation result, if one was successfully - * created. Must be in the format - * `projects/{@*}locations/{@*}repositories/{@*}compilationResults/*`. - * @type \Google\Rpc\Status $error_status - * The error status encountered upon this attempt to create the - * compilation result, if the attempt was unsuccessful. - * @type \Google\Protobuf\Timestamp $release_time - * Output only. The timestamp of this release attempt. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * The name of the created compilation result, if one was successfully - * created. Must be in the format - * `projects/{@*}locations/{@*}repositories/{@*}compilationResults/*`. - * - * Generated from protobuf field string compilation_result = 2 [(.google.api.resource_reference) = { - * @return string - */ - public function getCompilationResult() - { - return $this->readOneof(2); - } - - public function hasCompilationResult() - { - return $this->hasOneof(2); - } - - /** - * The name of the created compilation result, if one was successfully - * created. Must be in the format - * `projects/{@*}locations/{@*}repositories/{@*}compilationResults/*`. - * - * Generated from protobuf field string compilation_result = 2 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setCompilationResult($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The error status encountered upon this attempt to create the - * compilation result, if the attempt was unsuccessful. - * - * Generated from protobuf field .google.rpc.Status error_status = 3; - * @return \Google\Rpc\Status|null - */ - public function getErrorStatus() - { - return $this->readOneof(3); - } - - public function hasErrorStatus() - { - return $this->hasOneof(3); - } - - /** - * The error status encountered upon this attempt to create the - * compilation result, if the attempt was unsuccessful. - * - * Generated from protobuf field .google.rpc.Status error_status = 3; - * @param \Google\Rpc\Status $var - * @return $this - */ - public function setErrorStatus($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Status::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Output only. The timestamp of this release attempt. - * - * Generated from protobuf field .google.protobuf.Timestamp release_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getReleaseTime() - { - return $this->release_time; - } - - public function hasReleaseTime() - { - return isset($this->release_time); - } - - public function clearReleaseTime() - { - unset($this->release_time); - } - - /** - * Output only. The timestamp of this release attempt. - * - * Generated from protobuf field .google.protobuf.Timestamp release_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setReleaseTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->release_time = $var; - - return $this; - } - - /** - * @return string - */ - public function getResult() - { - return $this->whichOneof("result"); - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RemoveDirectoryRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RemoveDirectoryRequest.php deleted file mode 100644 index 3f757dd245c5..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RemoveDirectoryRequest.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.dataform.v1.RemoveDirectoryRequest - */ -class RemoveDirectoryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $workspace = ''; - /** - * Required. The directory's full path including directory name, relative to - * the workspace root. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $path = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $workspace - * Required. The workspace's name. - * @type string $path - * Required. The directory's full path including directory name, relative to - * the workspace root. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getWorkspace() - { - return $this->workspace; - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setWorkspace($var) - { - GPBUtil::checkString($var, True); - $this->workspace = $var; - - return $this; - } - - /** - * Required. The directory's full path including directory name, relative to - * the workspace root. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * Required. The directory's full path including directory name, relative to - * the workspace root. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RemoveDirectoryResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RemoveDirectoryResponse.php deleted file mode 100644 index 424fb70ffd7c..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RemoveDirectoryResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.dataform.v1.RemoveDirectoryResponse - */ -class RemoveDirectoryResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RemoveFileRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RemoveFileRequest.php deleted file mode 100644 index aae40ffb15f8..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RemoveFileRequest.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.dataform.v1.RemoveFileRequest - */ -class RemoveFileRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $workspace = ''; - /** - * Required. The file's full path including filename, relative to the - * workspace root. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $path = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $workspace - * Required. The workspace's name. - * @type string $path - * Required. The file's full path including filename, relative to the - * workspace root. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getWorkspace() - { - return $this->workspace; - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setWorkspace($var) - { - GPBUtil::checkString($var, True); - $this->workspace = $var; - - return $this; - } - - /** - * Required. The file's full path including filename, relative to the - * workspace root. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * Required. The file's full path including filename, relative to the - * workspace root. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RemoveFileResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RemoveFileResponse.php deleted file mode 100644 index 843a3d6cdaad..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/RemoveFileResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.dataform.v1.RemoveFileResponse - */ -class RemoveFileResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Repository.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Repository.php deleted file mode 100644 index 9ba215fd29eb..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Repository.php +++ /dev/null @@ -1,663 +0,0 @@ -google.cloud.dataform.v1.Repository - */ -class Repository extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * 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/*`. - * - * Generated from protobuf field optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $containing_folder = null; - /** - * 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. - * - * Generated from protobuf field optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $team_folder_name = null; - /** - * Output only. The timestamp of when the repository was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Optional. The repository's user-friendly name. - * - * Generated from protobuf field string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Optional. If set, configures this repository to be linked to a Git remote. - * - * Generated from protobuf field .google.cloud.dataform.v1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $git_remote_settings = null; - /** - * 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. - * - * Generated from protobuf field string npmrc_environment_variables_secret_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $npmrc_environment_variables_secret_version = ''; - /** - * 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. - * - * Generated from protobuf field .google.cloud.dataform.v1.Repository.WorkspaceCompilationOverrides workspace_compilation_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $workspace_compilation_overrides = null; - /** - * Optional. Repository user labels. - * - * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Optional. Input only. If set to true, the authenticated user will be - * granted the roles/dataform.admin role on the created repository. - * - * Generated from protobuf field bool set_authenticated_user_admin = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $set_authenticated_user_admin = false; - /** - * Optional. The service account to run workflow invocations under. - * - * Generated from protobuf field string service_account = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $service_account = ''; - /** - * 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}` - * - * Generated from protobuf field string kms_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $kms_key_name = ''; - /** - * Output only. A data encryption state of a Git repository if this Repository - * is protected by a KMS key. - * - * Generated from protobuf field .google.cloud.dataform.v1.DataEncryptionState data_encryption_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $data_encryption_state = null; - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $internal_metadata = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The repository's name. - * @type string $containing_folder - * 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/*`. - * @type string $team_folder_name - * 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. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The timestamp of when the repository was created. - * @type string $display_name - * Optional. The repository's user-friendly name. - * @type \Google\Cloud\Dataform\V1\Repository\GitRemoteSettings $git_remote_settings - * Optional. If set, configures this repository to be linked to a Git remote. - * @type string $npmrc_environment_variables_secret_version - * 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. - * @type \Google\Cloud\Dataform\V1\Repository\WorkspaceCompilationOverrides $workspace_compilation_overrides - * 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. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. Repository user labels. - * @type bool $set_authenticated_user_admin - * Optional. Input only. If set to true, the authenticated user will be - * granted the roles/dataform.admin role on the created repository. - * @type string $service_account - * Optional. The service account to run workflow invocations under. - * @type string $kms_key_name - * 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}` - * @type \Google\Cloud\Dataform\V1\DataEncryptionState $data_encryption_state - * Output only. A data encryption state of a Git repository if this Repository - * is protected by a KMS key. - * @type string $internal_metadata - * 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. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * 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/*`. - * - * Generated from protobuf field optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getContainingFolder() - { - return isset($this->containing_folder) ? $this->containing_folder : ''; - } - - public function hasContainingFolder() - { - return isset($this->containing_folder); - } - - public function clearContainingFolder() - { - unset($this->containing_folder); - } - - /** - * 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/*`. - * - * Generated from protobuf field optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setContainingFolder($var) - { - GPBUtil::checkString($var, True); - $this->containing_folder = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getTeamFolderName() - { - return isset($this->team_folder_name) ? $this->team_folder_name : ''; - } - - public function hasTeamFolderName() - { - return isset($this->team_folder_name); - } - - public function clearTeamFolderName() - { - unset($this->team_folder_name); - } - - /** - * 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. - * - * Generated from protobuf field optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setTeamFolderName($var) - { - GPBUtil::checkString($var, True); - $this->team_folder_name = $var; - - return $this; - } - - /** - * Output only. The timestamp of when the repository was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The timestamp of when the repository was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Optional. The repository's user-friendly name. - * - * Generated from protobuf field string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. The repository's user-friendly name. - * - * Generated from protobuf field string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. If set, configures this repository to be linked to a Git remote. - * - * Generated from protobuf field .google.cloud.dataform.v1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataform\V1\Repository\GitRemoteSettings|null - */ - public function getGitRemoteSettings() - { - return $this->git_remote_settings; - } - - public function hasGitRemoteSettings() - { - return isset($this->git_remote_settings); - } - - public function clearGitRemoteSettings() - { - unset($this->git_remote_settings); - } - - /** - * Optional. If set, configures this repository to be linked to a Git remote. - * - * Generated from protobuf field .google.cloud.dataform.v1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataform\V1\Repository\GitRemoteSettings $var - * @return $this - */ - public function setGitRemoteSettings($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\Repository\GitRemoteSettings::class); - $this->git_remote_settings = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string npmrc_environment_variables_secret_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getNpmrcEnvironmentVariablesSecretVersion() - { - return $this->npmrc_environment_variables_secret_version; - } - - /** - * 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. - * - * Generated from protobuf field string npmrc_environment_variables_secret_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setNpmrcEnvironmentVariablesSecretVersion($var) - { - GPBUtil::checkString($var, True); - $this->npmrc_environment_variables_secret_version = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field .google.cloud.dataform.v1.Repository.WorkspaceCompilationOverrides workspace_compilation_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataform\V1\Repository\WorkspaceCompilationOverrides|null - */ - public function getWorkspaceCompilationOverrides() - { - return $this->workspace_compilation_overrides; - } - - public function hasWorkspaceCompilationOverrides() - { - return isset($this->workspace_compilation_overrides); - } - - public function clearWorkspaceCompilationOverrides() - { - unset($this->workspace_compilation_overrides); - } - - /** - * 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. - * - * Generated from protobuf field .google.cloud.dataform.v1.Repository.WorkspaceCompilationOverrides workspace_compilation_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataform\V1\Repository\WorkspaceCompilationOverrides $var - * @return $this - */ - public function setWorkspaceCompilationOverrides($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\Repository\WorkspaceCompilationOverrides::class); - $this->workspace_compilation_overrides = $var; - - return $this; - } - - /** - * Optional. Repository user labels. - * - * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. Repository user labels. - * - * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Optional. Input only. If set to true, the authenticated user will be - * granted the roles/dataform.admin role on the created repository. - * - * Generated from protobuf field bool set_authenticated_user_admin = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; - * @return bool - */ - public function getSetAuthenticatedUserAdmin() - { - return $this->set_authenticated_user_admin; - } - - /** - * Optional. Input only. If set to true, the authenticated user will be - * granted the roles/dataform.admin role on the created repository. - * - * Generated from protobuf field bool set_authenticated_user_admin = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setSetAuthenticatedUserAdmin($var) - { - GPBUtil::checkBool($var); - $this->set_authenticated_user_admin = $var; - - return $this; - } - - /** - * Optional. The service account to run workflow invocations under. - * - * Generated from protobuf field string service_account = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getServiceAccount() - { - return $this->service_account; - } - - /** - * Optional. The service account to run workflow invocations under. - * - * Generated from protobuf field string service_account = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setServiceAccount($var) - { - GPBUtil::checkString($var, True); - $this->service_account = $var; - - return $this; - } - - /** - * 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}` - * - * Generated from protobuf field string kms_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getKmsKeyName() - { - return $this->kms_key_name; - } - - /** - * 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}` - * - * Generated from protobuf field string kms_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setKmsKeyName($var) - { - GPBUtil::checkString($var, True); - $this->kms_key_name = $var; - - return $this; - } - - /** - * Output only. A data encryption state of a Git repository if this Repository - * is protected by a KMS key. - * - * Generated from protobuf field .google.cloud.dataform.v1.DataEncryptionState data_encryption_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataform\V1\DataEncryptionState|null - */ - public function getDataEncryptionState() - { - return $this->data_encryption_state; - } - - public function hasDataEncryptionState() - { - return isset($this->data_encryption_state); - } - - public function clearDataEncryptionState() - { - unset($this->data_encryption_state); - } - - /** - * Output only. A data encryption state of a Git repository if this Repository - * is protected by a KMS key. - * - * Generated from protobuf field .google.cloud.dataform.v1.DataEncryptionState data_encryption_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataform\V1\DataEncryptionState $var - * @return $this - */ - public function setDataEncryptionState($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\DataEncryptionState::class); - $this->data_encryption_state = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getInternalMetadata() - { - return isset($this->internal_metadata) ? $this->internal_metadata : ''; - } - - public function hasInternalMetadata() - { - return isset($this->internal_metadata); - } - - public function clearInternalMetadata() - { - unset($this->internal_metadata); - } - - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setInternalMetadata($var) - { - GPBUtil::checkString($var, True); - $this->internal_metadata = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Repository/GitRemoteSettings.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Repository/GitRemoteSettings.php deleted file mode 100644 index fc4b6a05fa85..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Repository/GitRemoteSettings.php +++ /dev/null @@ -1,232 +0,0 @@ -google.cloud.dataform.v1.Repository.GitRemoteSettings - */ -class GitRemoteSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The Git remote's URL. - * - * Generated from protobuf field string url = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $url = ''; - /** - * Required. The Git remote's default branch name. - * - * Generated from protobuf field string default_branch = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $default_branch = ''; - /** - * 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/*`. - * - * Generated from protobuf field string authentication_token_secret_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $authentication_token_secret_version = ''; - /** - * Optional. Authentication fields for remote uris using SSH protocol. - * - * Generated from protobuf field .google.cloud.dataform.v1.Repository.GitRemoteSettings.SshAuthenticationConfig ssh_authentication_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $ssh_authentication_config = null; - /** - * Output only. Deprecated: The field does not contain any token status - * information. - * - * Generated from protobuf field .google.cloud.dataform.v1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @deprecated - */ - protected $token_status = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $url - * Required. The Git remote's URL. - * @type string $default_branch - * Required. The Git remote's default branch name. - * @type string $authentication_token_secret_version - * 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/*`. - * @type \Google\Cloud\Dataform\V1\Repository\GitRemoteSettings\SshAuthenticationConfig $ssh_authentication_config - * Optional. Authentication fields for remote uris using SSH protocol. - * @type int $token_status - * Output only. Deprecated: The field does not contain any token status - * information. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Git remote's URL. - * - * Generated from protobuf field string url = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getUrl() - { - return $this->url; - } - - /** - * Required. The Git remote's URL. - * - * Generated from protobuf field string url = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setUrl($var) - { - GPBUtil::checkString($var, True); - $this->url = $var; - - return $this; - } - - /** - * Required. The Git remote's default branch name. - * - * Generated from protobuf field string default_branch = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDefaultBranch() - { - return $this->default_branch; - } - - /** - * Required. The Git remote's default branch name. - * - * Generated from protobuf field string default_branch = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDefaultBranch($var) - { - GPBUtil::checkString($var, True); - $this->default_branch = $var; - - return $this; - } - - /** - * 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/*`. - * - * Generated from protobuf field string authentication_token_secret_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getAuthenticationTokenSecretVersion() - { - return $this->authentication_token_secret_version; - } - - /** - * 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/*`. - * - * Generated from protobuf field string authentication_token_secret_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setAuthenticationTokenSecretVersion($var) - { - GPBUtil::checkString($var, True); - $this->authentication_token_secret_version = $var; - - return $this; - } - - /** - * Optional. Authentication fields for remote uris using SSH protocol. - * - * Generated from protobuf field .google.cloud.dataform.v1.Repository.GitRemoteSettings.SshAuthenticationConfig ssh_authentication_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataform\V1\Repository\GitRemoteSettings\SshAuthenticationConfig|null - */ - public function getSshAuthenticationConfig() - { - return $this->ssh_authentication_config; - } - - public function hasSshAuthenticationConfig() - { - return isset($this->ssh_authentication_config); - } - - public function clearSshAuthenticationConfig() - { - unset($this->ssh_authentication_config); - } - - /** - * Optional. Authentication fields for remote uris using SSH protocol. - * - * Generated from protobuf field .google.cloud.dataform.v1.Repository.GitRemoteSettings.SshAuthenticationConfig ssh_authentication_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataform\V1\Repository\GitRemoteSettings\SshAuthenticationConfig $var - * @return $this - */ - public function setSshAuthenticationConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\Repository\GitRemoteSettings\SshAuthenticationConfig::class); - $this->ssh_authentication_config = $var; - - return $this; - } - - /** - * Output only. Deprecated: The field does not contain any token status - * information. - * - * Generated from protobuf field .google.cloud.dataform.v1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - * @deprecated - */ - public function getTokenStatus() - { - if ($this->token_status !== 0) { - @trigger_error('token_status is deprecated.', E_USER_DEPRECATED); - } - return $this->token_status; - } - - /** - * Output only. Deprecated: The field does not contain any token status - * information. - * - * Generated from protobuf field .google.cloud.dataform.v1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - * @deprecated - */ - public function setTokenStatus($var) - { - @trigger_error('token_status is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1\Repository\GitRemoteSettings\TokenStatus::class); - $this->token_status = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Repository/GitRemoteSettings/SshAuthenticationConfig.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Repository/GitRemoteSettings/SshAuthenticationConfig.php deleted file mode 100644 index d7f2c3f073c0..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Repository/GitRemoteSettings/SshAuthenticationConfig.php +++ /dev/null @@ -1,113 +0,0 @@ -google.cloud.dataform.v1.Repository.GitRemoteSettings.SshAuthenticationConfig - */ -class SshAuthenticationConfig extends \Google\Protobuf\Internal\Message -{ - /** - * 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/*`. - * - * Generated from protobuf field string user_private_key_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $user_private_key_secret_version = ''; - /** - * Required. Content of a public SSH key to verify an identity of a remote - * Git host. - * - * Generated from protobuf field string host_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $host_public_key = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $user_private_key_secret_version - * 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/*`. - * @type string $host_public_key - * Required. Content of a public SSH key to verify an identity of a remote - * Git host. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * 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/*`. - * - * Generated from protobuf field string user_private_key_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getUserPrivateKeySecretVersion() - { - return $this->user_private_key_secret_version; - } - - /** - * 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/*`. - * - * Generated from protobuf field string user_private_key_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setUserPrivateKeySecretVersion($var) - { - GPBUtil::checkString($var, True); - $this->user_private_key_secret_version = $var; - - return $this; - } - - /** - * Required. Content of a public SSH key to verify an identity of a remote - * Git host. - * - * Generated from protobuf field string host_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getHostPublicKey() - { - return $this->host_public_key; - } - - /** - * Required. Content of a public SSH key to verify an identity of a remote - * Git host. - * - * Generated from protobuf field string host_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setHostPublicKey($var) - { - GPBUtil::checkString($var, True); - $this->host_public_key = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Repository/GitRemoteSettings/TokenStatus.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Repository/GitRemoteSettings/TokenStatus.php deleted file mode 100644 index 1ee1e1bbc4a3..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Repository/GitRemoteSettings/TokenStatus.php +++ /dev/null @@ -1,69 +0,0 @@ -google.cloud.dataform.v1.Repository.GitRemoteSettings.TokenStatus - */ -class TokenStatus -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum TOKEN_STATUS_UNSPECIFIED = 0; - */ - const 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). - * - * Generated from protobuf enum NOT_FOUND = 1; - */ - const NOT_FOUND = 1; - /** - * The token could not be used to authenticate against the Git remote. - * - * Generated from protobuf enum INVALID = 2; - */ - const INVALID = 2; - /** - * The token was used successfully to authenticate against the Git remote. - * - * Generated from protobuf enum VALID = 3; - */ - const VALID = 3; - - private static $valueToName = [ - self::TOKEN_STATUS_UNSPECIFIED => 'TOKEN_STATUS_UNSPECIFIED', - self::NOT_FOUND => 'NOT_FOUND', - self::INVALID => 'INVALID', - self::VALID => 'VALID', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Repository/WorkspaceCompilationOverrides.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Repository/WorkspaceCompilationOverrides.php deleted file mode 100644 index 5f46b8275c93..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Repository/WorkspaceCompilationOverrides.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.dataform.v1.Repository.WorkspaceCompilationOverrides - */ -class WorkspaceCompilationOverrides extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The default database (Google Cloud project ID). - * - * Generated from protobuf field string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $default_database = ''; - /** - * Optional. The suffix that should be appended to all schema (BigQuery - * dataset ID) names. - * - * Generated from protobuf field string schema_suffix = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $schema_suffix = ''; - /** - * Optional. The prefix that should be prepended to all table names. - * - * Generated from protobuf field string table_prefix = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $table_prefix = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $default_database - * Optional. The default database (Google Cloud project ID). - * @type string $schema_suffix - * Optional. The suffix that should be appended to all schema (BigQuery - * dataset ID) names. - * @type string $table_prefix - * Optional. The prefix that should be prepended to all table names. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The default database (Google Cloud project ID). - * - * Generated from protobuf field string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDefaultDatabase() - { - return $this->default_database; - } - - /** - * Optional. The default database (Google Cloud project ID). - * - * Generated from protobuf field string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDefaultDatabase($var) - { - GPBUtil::checkString($var, True); - $this->default_database = $var; - - return $this; - } - - /** - * Optional. The suffix that should be appended to all schema (BigQuery - * dataset ID) names. - * - * Generated from protobuf field string schema_suffix = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getSchemaSuffix() - { - return $this->schema_suffix; - } - - /** - * Optional. The suffix that should be appended to all schema (BigQuery - * dataset ID) names. - * - * Generated from protobuf field string schema_suffix = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setSchemaSuffix($var) - { - GPBUtil::checkString($var, True); - $this->schema_suffix = $var; - - return $this; - } - - /** - * Optional. The prefix that should be prepended to all table names. - * - * Generated from protobuf field string table_prefix = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getTablePrefix() - { - return $this->table_prefix; - } - - /** - * Optional. The prefix that should be prepended to all table names. - * - * Generated from protobuf field string table_prefix = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setTablePrefix($var) - { - GPBUtil::checkString($var, True); - $this->table_prefix = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ResetWorkspaceChangesRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ResetWorkspaceChangesRequest.php deleted file mode 100644 index 91eeeced96f6..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ResetWorkspaceChangesRequest.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.dataform.v1.ResetWorkspaceChangesRequest - */ -class ResetWorkspaceChangesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * 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. - * - * Generated from protobuf field repeated string paths = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $paths; - /** - * Optional. If set to true, untracked files will be deleted. - * - * Generated from protobuf field bool clean = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $clean = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The workspace's name. - * @type string[] $paths - * 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. - * @type bool $clean - * Optional. If set to true, untracked files will be deleted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field repeated string paths = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getPaths() - { - return $this->paths; - } - - /** - * 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. - * - * Generated from protobuf field repeated string paths = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setPaths($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->paths = $arr; - - return $this; - } - - /** - * Optional. If set to true, untracked files will be deleted. - * - * Generated from protobuf field bool clean = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getClean() - { - return $this->clean; - } - - /** - * Optional. If set to true, untracked files will be deleted. - * - * Generated from protobuf field bool clean = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setClean($var) - { - GPBUtil::checkBool($var); - $this->clean = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ResetWorkspaceChangesResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ResetWorkspaceChangesResponse.php deleted file mode 100644 index e53fce7ad9a8..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/ResetWorkspaceChangesResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.dataform.v1.ResetWorkspaceChangesResponse - */ -class ResetWorkspaceChangesResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/SearchFilesRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/SearchFilesRequest.php deleted file mode 100644 index f2a4418af1dc..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/SearchFilesRequest.php +++ /dev/null @@ -1,201 +0,0 @@ -google.cloud.dataform.v1.SearchFilesRequest - */ -class SearchFilesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $workspace = ''; - /** - * 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. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * 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. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $workspace - * Required. The workspace's name. - * @type int $page_size - * 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. - * @type string $page_token - * 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. - * @type string $filter - * 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. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getWorkspace() - { - return $this->workspace; - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setWorkspace($var) - { - GPBUtil::checkString($var, True); - $this->workspace = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * 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. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * 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. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/SearchFilesResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/SearchFilesResponse.php deleted file mode 100644 index 5ea7d2987ace..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/SearchFilesResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.dataform.v1.SearchFilesResponse - */ -class SearchFilesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of matched results. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.SearchResult search_results = 1; - */ - private $search_results; - /** - * 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. - * - * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1\SearchResult[] $search_results - * List of matched results. - * @type string $next_page_token - * 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. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * List of matched results. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.SearchResult search_results = 1; - * @return RepeatedField<\Google\Cloud\Dataform\V1\SearchResult> - */ - public function getSearchResults() - { - return $this->search_results; - } - - /** - * List of matched results. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.SearchResult search_results = 1; - * @param \Google\Cloud\Dataform\V1\SearchResult[] $var - * @return $this - */ - public function setSearchResults($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\SearchResult::class); - $this->search_results = $arr; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * 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. - * - * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/SearchResult.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/SearchResult.php deleted file mode 100644 index fc9bc07436fa..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/SearchResult.php +++ /dev/null @@ -1,108 +0,0 @@ -google.cloud.dataform.v1.SearchResult - */ -class SearchResult extends \Google\Protobuf\Internal\Message -{ - protected $entry; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1\FileSearchResult $file - * Details when search result is a file. - * @type \Google\Cloud\Dataform\V1\DirectorySearchResult $directory - * Details when search result is a directory. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Details when search result is a file. - * - * Generated from protobuf field .google.cloud.dataform.v1.FileSearchResult file = 1; - * @return \Google\Cloud\Dataform\V1\FileSearchResult|null - */ - public function getFile() - { - return $this->readOneof(1); - } - - public function hasFile() - { - return $this->hasOneof(1); - } - - /** - * Details when search result is a file. - * - * Generated from protobuf field .google.cloud.dataform.v1.FileSearchResult file = 1; - * @param \Google\Cloud\Dataform\V1\FileSearchResult $var - * @return $this - */ - public function setFile($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\FileSearchResult::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Details when search result is a directory. - * - * Generated from protobuf field .google.cloud.dataform.v1.DirectorySearchResult directory = 2; - * @return \Google\Cloud\Dataform\V1\DirectorySearchResult|null - */ - public function getDirectory() - { - return $this->readOneof(2); - } - - public function hasDirectory() - { - return $this->hasOneof(2); - } - - /** - * Details when search result is a directory. - * - * Generated from protobuf field .google.cloud.dataform.v1.DirectorySearchResult directory = 2; - * @param \Google\Cloud\Dataform\V1\DirectorySearchResult $var - * @return $this - */ - public function setDirectory($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\DirectorySearchResult::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getEntry() - { - return $this->whichOneof("entry"); - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Target.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Target.php deleted file mode 100644 index b356dc43a20c..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Target.php +++ /dev/null @@ -1,136 +0,0 @@ -google.cloud.dataform.v1.Target - */ -class Target extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The action's database (Google Cloud project ID) . - * - * Generated from protobuf field string database = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $database = ''; - /** - * Optional. The action's schema (BigQuery dataset ID), within `database`. - * - * Generated from protobuf field string schema = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $schema = ''; - /** - * Optional. The action's name, within `database` and `schema`. - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $database - * Optional. The action's database (Google Cloud project ID) . - * @type string $schema - * Optional. The action's schema (BigQuery dataset ID), within `database`. - * @type string $name - * Optional. The action's name, within `database` and `schema`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The action's database (Google Cloud project ID) . - * - * Generated from protobuf field string database = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDatabase() - { - return $this->database; - } - - /** - * Optional. The action's database (Google Cloud project ID) . - * - * Generated from protobuf field string database = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDatabase($var) - { - GPBUtil::checkString($var, True); - $this->database = $var; - - return $this; - } - - /** - * Optional. The action's schema (BigQuery dataset ID), within `database`. - * - * Generated from protobuf field string schema = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getSchema() - { - return $this->schema; - } - - /** - * Optional. The action's schema (BigQuery dataset ID), within `database`. - * - * Generated from protobuf field string schema = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setSchema($var) - { - GPBUtil::checkString($var, True); - $this->schema = $var; - - return $this; - } - - /** - * Optional. The action's name, within `database` and `schema`. - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Optional. The action's name, within `database` and `schema`. - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/UpdateConfigRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/UpdateConfigRequest.php deleted file mode 100644 index 4e2911c6efc4..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/UpdateConfigRequest.php +++ /dev/null @@ -1,136 +0,0 @@ -google.cloud.dataform.v1.UpdateConfigRequest - */ -class UpdateConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The config to update. - * - * Generated from protobuf field .google.cloud.dataform.v1.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $config = null; - /** - * Optional. Specifies the fields to be updated in the config. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\Dataform\V1\Config $config Required. The config to update. - * @param \Google\Protobuf\FieldMask $updateMask Optional. Specifies the fields to be updated in the config. - * - * @return \Google\Cloud\Dataform\V1\UpdateConfigRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Dataform\V1\Config $config, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setConfig($config) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1\Config $config - * Required. The config to update. - * @type \Google\Protobuf\FieldMask $update_mask - * Optional. Specifies the fields to be updated in the config. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The config to update. - * - * Generated from protobuf field .google.cloud.dataform.v1.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataform\V1\Config|null - */ - public function getConfig() - { - return $this->config; - } - - public function hasConfig() - { - return isset($this->config); - } - - public function clearConfig() - { - unset($this->config); - } - - /** - * Required. The config to update. - * - * Generated from protobuf field .google.cloud.dataform.v1.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataform\V1\Config $var - * @return $this - */ - public function setConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\Config::class); - $this->config = $var; - - return $this; - } - - /** - * Optional. Specifies the fields to be updated in the config. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Optional. Specifies the fields to be updated in the config. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/UpdateReleaseConfigRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/UpdateReleaseConfigRequest.php deleted file mode 100644 index f08a52eda527..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/UpdateReleaseConfigRequest.php +++ /dev/null @@ -1,141 +0,0 @@ -google.cloud.dataform.v1.UpdateReleaseConfigRequest - */ -class UpdateReleaseConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Specifies the fields to be updated in the release config. If left - * unset, all fields will be updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - /** - * Required. The release config to update. - * - * Generated from protobuf field .google.cloud.dataform.v1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $release_config = null; - - /** - * @param \Google\Cloud\Dataform\V1\ReleaseConfig $releaseConfig Required. The release config to update. - * @param \Google\Protobuf\FieldMask $updateMask Optional. Specifies the fields to be updated in the release config. If left - * unset, all fields will be updated. - * - * @return \Google\Cloud\Dataform\V1\UpdateReleaseConfigRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Dataform\V1\ReleaseConfig $releaseConfig, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setReleaseConfig($releaseConfig) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Optional. Specifies the fields to be updated in the release config. If left - * unset, all fields will be updated. - * @type \Google\Cloud\Dataform\V1\ReleaseConfig $release_config - * Required. The release config to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Specifies the fields to be updated in the release config. If left - * unset, all fields will be updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Optional. Specifies the fields to be updated in the release config. If left - * unset, all fields will be updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Required. The release config to update. - * - * Generated from protobuf field .google.cloud.dataform.v1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataform\V1\ReleaseConfig|null - */ - public function getReleaseConfig() - { - return $this->release_config; - } - - public function hasReleaseConfig() - { - return isset($this->release_config); - } - - public function clearReleaseConfig() - { - unset($this->release_config); - } - - /** - * Required. The release config to update. - * - * Generated from protobuf field .google.cloud.dataform.v1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataform\V1\ReleaseConfig $var - * @return $this - */ - public function setReleaseConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\ReleaseConfig::class); - $this->release_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/UpdateRepositoryRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/UpdateRepositoryRequest.php deleted file mode 100644 index 7c5f36e495dc..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/UpdateRepositoryRequest.php +++ /dev/null @@ -1,141 +0,0 @@ -google.cloud.dataform.v1.UpdateRepositoryRequest - */ -class UpdateRepositoryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Specifies the fields to be updated in the repository. If left - * unset, all fields will be updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - /** - * Required. The repository to update. - * - * Generated from protobuf field .google.cloud.dataform.v1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $repository = null; - - /** - * @param \Google\Cloud\Dataform\V1\Repository $repository Required. The repository to update. - * @param \Google\Protobuf\FieldMask $updateMask Optional. Specifies the fields to be updated in the repository. If left - * unset, all fields will be updated. - * - * @return \Google\Cloud\Dataform\V1\UpdateRepositoryRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Dataform\V1\Repository $repository, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setRepository($repository) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Optional. Specifies the fields to be updated in the repository. If left - * unset, all fields will be updated. - * @type \Google\Cloud\Dataform\V1\Repository $repository - * Required. The repository to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Specifies the fields to be updated in the repository. If left - * unset, all fields will be updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Optional. Specifies the fields to be updated in the repository. If left - * unset, all fields will be updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Required. The repository to update. - * - * Generated from protobuf field .google.cloud.dataform.v1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataform\V1\Repository|null - */ - public function getRepository() - { - return $this->repository; - } - - public function hasRepository() - { - return isset($this->repository); - } - - public function clearRepository() - { - unset($this->repository); - } - - /** - * Required. The repository to update. - * - * Generated from protobuf field .google.cloud.dataform.v1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataform\V1\Repository $var - * @return $this - */ - public function setRepository($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\Repository::class); - $this->repository = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/UpdateWorkflowConfigRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/UpdateWorkflowConfigRequest.php deleted file mode 100644 index 2bbd86b68bf6..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/UpdateWorkflowConfigRequest.php +++ /dev/null @@ -1,141 +0,0 @@ -google.cloud.dataform.v1.UpdateWorkflowConfigRequest - */ -class UpdateWorkflowConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Specifies the fields to be updated in the workflow config. If - * left unset, all fields will be updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - /** - * Required. The workflow config to update. - * - * Generated from protobuf field .google.cloud.dataform.v1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $workflow_config = null; - - /** - * @param \Google\Cloud\Dataform\V1\WorkflowConfig $workflowConfig Required. The workflow config to update. - * @param \Google\Protobuf\FieldMask $updateMask Optional. Specifies the fields to be updated in the workflow config. If - * left unset, all fields will be updated. - * - * @return \Google\Cloud\Dataform\V1\UpdateWorkflowConfigRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Dataform\V1\WorkflowConfig $workflowConfig, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setWorkflowConfig($workflowConfig) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Optional. Specifies the fields to be updated in the workflow config. If - * left unset, all fields will be updated. - * @type \Google\Cloud\Dataform\V1\WorkflowConfig $workflow_config - * Required. The workflow config to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Specifies the fields to be updated in the workflow config. If - * left unset, all fields will be updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Optional. Specifies the fields to be updated in the workflow config. If - * left unset, all fields will be updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Required. The workflow config to update. - * - * Generated from protobuf field .google.cloud.dataform.v1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataform\V1\WorkflowConfig|null - */ - public function getWorkflowConfig() - { - return $this->workflow_config; - } - - public function hasWorkflowConfig() - { - return isset($this->workflow_config); - } - - public function clearWorkflowConfig() - { - unset($this->workflow_config); - } - - /** - * Required. The workflow config to update. - * - * Generated from protobuf field .google.cloud.dataform.v1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataform\V1\WorkflowConfig $var - * @return $this - */ - public function setWorkflowConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\WorkflowConfig::class); - $this->workflow_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowConfig.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowConfig.php deleted file mode 100644 index b5d993191035..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowConfig.php +++ /dev/null @@ -1,453 +0,0 @@ -google.cloud.dataform.v1.WorkflowConfig - */ -class WorkflowConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The workflow config's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Required. The name of the release config whose release_compilation_result - * should be executed. Must be in the format - * `projects/{@*}locations/{@*}repositories/{@*}releaseConfigs/*`. - * - * Generated from protobuf field string release_config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $release_config = ''; - /** - * Optional. If left unset, a default InvocationConfig will be used. - * - * Generated from protobuf field .google.cloud.dataform.v1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $invocation_config = null; - /** - * Optional. Optional schedule (in cron format) for automatic execution of - * this workflow config. - * - * Generated from protobuf field string cron_schedule = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $cron_schedule = ''; - /** - * 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. - * - * Generated from protobuf field string time_zone = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $time_zone = ''; - /** - * 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. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.WorkflowConfig.ScheduledExecutionRecord recent_scheduled_execution_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $recent_scheduled_execution_records; - /** - * Optional. Disables automatic creation of workflow invocations. - * - * Generated from protobuf field bool disabled = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $disabled = false; - /** - * Output only. The timestamp of when the WorkflowConfig was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The timestamp of when the WorkflowConfig was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $internal_metadata = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The workflow config's name. - * @type string $release_config - * Required. The name of the release config whose release_compilation_result - * should be executed. Must be in the format - * `projects/{@*}locations/{@*}repositories/{@*}releaseConfigs/*`. - * @type \Google\Cloud\Dataform\V1\InvocationConfig $invocation_config - * Optional. If left unset, a default InvocationConfig will be used. - * @type string $cron_schedule - * Optional. Optional schedule (in cron format) for automatic execution of - * this workflow config. - * @type string $time_zone - * 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. - * @type \Google\Cloud\Dataform\V1\WorkflowConfig\ScheduledExecutionRecord[] $recent_scheduled_execution_records - * 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. - * @type bool $disabled - * Optional. Disables automatic creation of workflow invocations. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The timestamp of when the WorkflowConfig was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The timestamp of when the WorkflowConfig was last updated. - * @type string $internal_metadata - * 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. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The workflow config's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The workflow config's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The name of the release config whose release_compilation_result - * should be executed. Must be in the format - * `projects/{@*}locations/{@*}repositories/{@*}releaseConfigs/*`. - * - * Generated from protobuf field string release_config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getReleaseConfig() - { - return $this->release_config; - } - - /** - * Required. The name of the release config whose release_compilation_result - * should be executed. Must be in the format - * `projects/{@*}locations/{@*}repositories/{@*}releaseConfigs/*`. - * - * Generated from protobuf field string release_config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setReleaseConfig($var) - { - GPBUtil::checkString($var, True); - $this->release_config = $var; - - return $this; - } - - /** - * Optional. If left unset, a default InvocationConfig will be used. - * - * Generated from protobuf field .google.cloud.dataform.v1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataform\V1\InvocationConfig|null - */ - public function getInvocationConfig() - { - return $this->invocation_config; - } - - public function hasInvocationConfig() - { - return isset($this->invocation_config); - } - - public function clearInvocationConfig() - { - unset($this->invocation_config); - } - - /** - * Optional. If left unset, a default InvocationConfig will be used. - * - * Generated from protobuf field .google.cloud.dataform.v1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataform\V1\InvocationConfig $var - * @return $this - */ - public function setInvocationConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\InvocationConfig::class); - $this->invocation_config = $var; - - return $this; - } - - /** - * Optional. Optional schedule (in cron format) for automatic execution of - * this workflow config. - * - * Generated from protobuf field string cron_schedule = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getCronSchedule() - { - return $this->cron_schedule; - } - - /** - * Optional. Optional schedule (in cron format) for automatic execution of - * this workflow config. - * - * Generated from protobuf field string cron_schedule = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setCronSchedule($var) - { - GPBUtil::checkString($var, True); - $this->cron_schedule = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string time_zone = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getTimeZone() - { - return $this->time_zone; - } - - /** - * 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. - * - * Generated from protobuf field string time_zone = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setTimeZone($var) - { - GPBUtil::checkString($var, True); - $this->time_zone = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.WorkflowConfig.ScheduledExecutionRecord recent_scheduled_execution_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Cloud\Dataform\V1\WorkflowConfig\ScheduledExecutionRecord> - */ - public function getRecentScheduledExecutionRecords() - { - return $this->recent_scheduled_execution_records; - } - - /** - * 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. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1.WorkflowConfig.ScheduledExecutionRecord recent_scheduled_execution_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataform\V1\WorkflowConfig\ScheduledExecutionRecord[] $var - * @return $this - */ - public function setRecentScheduledExecutionRecords($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1\WorkflowConfig\ScheduledExecutionRecord::class); - $this->recent_scheduled_execution_records = $arr; - - return $this; - } - - /** - * Optional. Disables automatic creation of workflow invocations. - * - * Generated from protobuf field bool disabled = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getDisabled() - { - return $this->disabled; - } - - /** - * Optional. Disables automatic creation of workflow invocations. - * - * Generated from protobuf field bool disabled = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setDisabled($var) - { - GPBUtil::checkBool($var); - $this->disabled = $var; - - return $this; - } - - /** - * Output only. The timestamp of when the WorkflowConfig was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The timestamp of when the WorkflowConfig was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The timestamp of when the WorkflowConfig was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The timestamp of when the WorkflowConfig was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getInternalMetadata() - { - return isset($this->internal_metadata) ? $this->internal_metadata : ''; - } - - public function hasInternalMetadata() - { - return isset($this->internal_metadata); - } - - public function clearInternalMetadata() - { - unset($this->internal_metadata); - } - - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setInternalMetadata($var) - { - GPBUtil::checkString($var, True); - $this->internal_metadata = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowConfig/ScheduledExecutionRecord.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowConfig/ScheduledExecutionRecord.php deleted file mode 100644 index b85f65492c9e..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowConfig/ScheduledExecutionRecord.php +++ /dev/null @@ -1,162 +0,0 @@ -google.cloud.dataform.v1.WorkflowConfig.ScheduledExecutionRecord - */ -class ScheduledExecutionRecord extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The timestamp of this execution attempt. - * - * Generated from protobuf field .google.protobuf.Timestamp execution_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $execution_time = null; - protected $result; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $workflow_invocation - * The name of the created workflow invocation, if one was successfully - * created. Must be in the format - * `projects/{@*}locations/{@*}repositories/{@*}workflowInvocations/*`. - * @type \Google\Rpc\Status $error_status - * The error status encountered upon this attempt to create the - * workflow invocation, if the attempt was unsuccessful. - * @type \Google\Protobuf\Timestamp $execution_time - * Output only. The timestamp of this execution attempt. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * The name of the created workflow invocation, if one was successfully - * created. Must be in the format - * `projects/{@*}locations/{@*}repositories/{@*}workflowInvocations/*`. - * - * Generated from protobuf field string workflow_invocation = 2 [(.google.api.resource_reference) = { - * @return string - */ - public function getWorkflowInvocation() - { - return $this->readOneof(2); - } - - public function hasWorkflowInvocation() - { - return $this->hasOneof(2); - } - - /** - * The name of the created workflow invocation, if one was successfully - * created. Must be in the format - * `projects/{@*}locations/{@*}repositories/{@*}workflowInvocations/*`. - * - * Generated from protobuf field string workflow_invocation = 2 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setWorkflowInvocation($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The error status encountered upon this attempt to create the - * workflow invocation, if the attempt was unsuccessful. - * - * Generated from protobuf field .google.rpc.Status error_status = 3; - * @return \Google\Rpc\Status|null - */ - public function getErrorStatus() - { - return $this->readOneof(3); - } - - public function hasErrorStatus() - { - return $this->hasOneof(3); - } - - /** - * The error status encountered upon this attempt to create the - * workflow invocation, if the attempt was unsuccessful. - * - * Generated from protobuf field .google.rpc.Status error_status = 3; - * @param \Google\Rpc\Status $var - * @return $this - */ - public function setErrorStatus($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Status::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Output only. The timestamp of this execution attempt. - * - * Generated from protobuf field .google.protobuf.Timestamp execution_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getExecutionTime() - { - return $this->execution_time; - } - - public function hasExecutionTime() - { - return isset($this->execution_time); - } - - public function clearExecutionTime() - { - unset($this->execution_time); - } - - /** - * Output only. The timestamp of this execution attempt. - * - * Generated from protobuf field .google.protobuf.Timestamp execution_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setExecutionTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->execution_time = $var; - - return $this; - } - - /** - * @return string - */ - public function getResult() - { - return $this->whichOneof("result"); - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocation.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocation.php deleted file mode 100644 index 72c84712767e..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocation.php +++ /dev/null @@ -1,463 +0,0 @@ -google.cloud.dataform.v1.WorkflowInvocation - */ -class WorkflowInvocation extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The workflow invocation's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Immutable. If left unset, a default InvocationConfig will be used. - * - * Generated from protobuf field .google.cloud.dataform.v1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $invocation_config = null; - /** - * Output only. This workflow invocation's current state. - * - * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. This workflow invocation's timing details. - * - * Generated from protobuf field .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $invocation_timing = null; - /** - * Output only. The resolved compilation result that was used to create this - * invocation. Will be in the format - * `projects/{@*}locations/{@*}repositories/{@*}compilationResults/*`. - * - * Generated from protobuf field string resolved_compilation_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $resolved_compilation_result = ''; - /** - * Output only. Only set if the repository has a KMS Key. - * - * Generated from protobuf field .google.cloud.dataform.v1.DataEncryptionState data_encryption_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $data_encryption_state = null; - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $internal_metadata = null; - /** - * 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. - * - * Generated from protobuf field .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $private_resource_metadata = null; - protected $compilation_source; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $compilation_result - * Immutable. The name of the compilation result to use for this invocation. - * Must be in the format - * `projects/{@*}locations/{@*}repositories/{@*}compilationResults/*`. - * @type string $workflow_config - * Immutable. The name of the workflow config to invoke. Must be in the - * format `projects/{@*}locations/{@*}repositories/{@*}workflowConfigs/*`. - * @type string $name - * Output only. The workflow invocation's name. - * @type \Google\Cloud\Dataform\V1\InvocationConfig $invocation_config - * Immutable. If left unset, a default InvocationConfig will be used. - * @type int $state - * Output only. This workflow invocation's current state. - * @type \Google\Type\Interval $invocation_timing - * Output only. This workflow invocation's timing details. - * @type string $resolved_compilation_result - * Output only. The resolved compilation result that was used to create this - * invocation. Will be in the format - * `projects/{@*}locations/{@*}repositories/{@*}compilationResults/*`. - * @type \Google\Cloud\Dataform\V1\DataEncryptionState $data_encryption_state - * Output only. Only set if the repository has a KMS Key. - * @type string $internal_metadata - * 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. - * @type \Google\Cloud\Dataform\V1\PrivateResourceMetadata $private_resource_metadata - * 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. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Immutable. The name of the compilation result to use for this invocation. - * Must be in the format - * `projects/{@*}locations/{@*}repositories/{@*}compilationResults/*`. - * - * Generated from protobuf field string compilation_result = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @return string - */ - public function getCompilationResult() - { - return $this->readOneof(2); - } - - public function hasCompilationResult() - { - return $this->hasOneof(2); - } - - /** - * Immutable. The name of the compilation result to use for this invocation. - * Must be in the format - * `projects/{@*}locations/{@*}repositories/{@*}compilationResults/*`. - * - * Generated from protobuf field string compilation_result = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setCompilationResult($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Immutable. The name of the workflow config to invoke. Must be in the - * format `projects/{@*}locations/{@*}repositories/{@*}workflowConfigs/*`. - * - * Generated from protobuf field string workflow_config = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @return string - */ - public function getWorkflowConfig() - { - return $this->readOneof(6); - } - - public function hasWorkflowConfig() - { - return $this->hasOneof(6); - } - - /** - * Immutable. The name of the workflow config to invoke. Must be in the - * format `projects/{@*}locations/{@*}repositories/{@*}workflowConfigs/*`. - * - * Generated from protobuf field string workflow_config = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setWorkflowConfig($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Output only. The workflow invocation's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The workflow invocation's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Immutable. If left unset, a default InvocationConfig will be used. - * - * Generated from protobuf field .google.cloud.dataform.v1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Cloud\Dataform\V1\InvocationConfig|null - */ - public function getInvocationConfig() - { - return $this->invocation_config; - } - - public function hasInvocationConfig() - { - return isset($this->invocation_config); - } - - public function clearInvocationConfig() - { - unset($this->invocation_config); - } - - /** - * Immutable. If left unset, a default InvocationConfig will be used. - * - * Generated from protobuf field .google.cloud.dataform.v1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Cloud\Dataform\V1\InvocationConfig $var - * @return $this - */ - public function setInvocationConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\InvocationConfig::class); - $this->invocation_config = $var; - - return $this; - } - - /** - * Output only. This workflow invocation's current state. - * - * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. This workflow invocation's current state. - * - * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1\WorkflowInvocation\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. This workflow invocation's timing details. - * - * Generated from protobuf field .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Type\Interval|null - */ - public function getInvocationTiming() - { - return $this->invocation_timing; - } - - public function hasInvocationTiming() - { - return isset($this->invocation_timing); - } - - public function clearInvocationTiming() - { - unset($this->invocation_timing); - } - - /** - * Output only. This workflow invocation's timing details. - * - * Generated from protobuf field .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Type\Interval $var - * @return $this - */ - public function setInvocationTiming($var) - { - GPBUtil::checkMessage($var, \Google\Type\Interval::class); - $this->invocation_timing = $var; - - return $this; - } - - /** - * Output only. The resolved compilation result that was used to create this - * invocation. Will be in the format - * `projects/{@*}locations/{@*}repositories/{@*}compilationResults/*`. - * - * Generated from protobuf field string resolved_compilation_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getResolvedCompilationResult() - { - return $this->resolved_compilation_result; - } - - /** - * Output only. The resolved compilation result that was used to create this - * invocation. Will be in the format - * `projects/{@*}locations/{@*}repositories/{@*}compilationResults/*`. - * - * Generated from protobuf field string resolved_compilation_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setResolvedCompilationResult($var) - { - GPBUtil::checkString($var, True); - $this->resolved_compilation_result = $var; - - return $this; - } - - /** - * Output only. Only set if the repository has a KMS Key. - * - * Generated from protobuf field .google.cloud.dataform.v1.DataEncryptionState data_encryption_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataform\V1\DataEncryptionState|null - */ - public function getDataEncryptionState() - { - return $this->data_encryption_state; - } - - public function hasDataEncryptionState() - { - return isset($this->data_encryption_state); - } - - public function clearDataEncryptionState() - { - unset($this->data_encryption_state); - } - - /** - * Output only. Only set if the repository has a KMS Key. - * - * Generated from protobuf field .google.cloud.dataform.v1.DataEncryptionState data_encryption_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataform\V1\DataEncryptionState $var - * @return $this - */ - public function setDataEncryptionState($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\DataEncryptionState::class); - $this->data_encryption_state = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getInternalMetadata() - { - return isset($this->internal_metadata) ? $this->internal_metadata : ''; - } - - public function hasInternalMetadata() - { - return isset($this->internal_metadata); - } - - public function clearInternalMetadata() - { - unset($this->internal_metadata); - } - - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setInternalMetadata($var) - { - GPBUtil::checkString($var, True); - $this->internal_metadata = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataform\V1\PrivateResourceMetadata|null - */ - public function getPrivateResourceMetadata() - { - return $this->private_resource_metadata; - } - - public function hasPrivateResourceMetadata() - { - return isset($this->private_resource_metadata); - } - - public function clearPrivateResourceMetadata() - { - unset($this->private_resource_metadata); - } - - /** - * 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. - * - * Generated from protobuf field .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataform\V1\PrivateResourceMetadata $var - * @return $this - */ - public function setPrivateResourceMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\PrivateResourceMetadata::class); - $this->private_resource_metadata = $var; - - return $this; - } - - /** - * @return string - */ - public function getCompilationSource() - { - return $this->whichOneof("compilation_source"); - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocation/State.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocation/State.php deleted file mode 100644 index 450f8c7a548d..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocation/State.php +++ /dev/null @@ -1,83 +0,0 @@ -google.cloud.dataform.v1.WorkflowInvocation.State - */ -class State -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The workflow invocation is currently running. - * - * Generated from protobuf enum RUNNING = 1; - */ - const RUNNING = 1; - /** - * The workflow invocation succeeded. A terminal state. - * - * Generated from protobuf enum SUCCEEDED = 2; - */ - const SUCCEEDED = 2; - /** - * The workflow invocation was cancelled. A terminal state. - * - * Generated from protobuf enum CANCELLED = 3; - */ - const CANCELLED = 3; - /** - * The workflow invocation failed. A terminal state. - * - * Generated from protobuf enum FAILED = 4; - */ - const FAILED = 4; - /** - * The workflow invocation is being cancelled, but some actions are still - * running. - * - * Generated from protobuf enum CANCELING = 5; - */ - const CANCELING = 5; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::RUNNING => 'RUNNING', - self::SUCCEEDED => 'SUCCEEDED', - self::CANCELLED => 'CANCELLED', - self::FAILED => 'FAILED', - self::CANCELING => 'CANCELING', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction.php deleted file mode 100644 index 977289472baa..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction.php +++ /dev/null @@ -1,421 +0,0 @@ -google.cloud.dataform.v1.WorkflowInvocationAction - */ -class WorkflowInvocationAction extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. This action's identifier. Unique within the workflow - * invocation. - * - * Generated from protobuf field .google.cloud.dataform.v1.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $target = null; - /** - * Output only. The action's identifier if the project had been compiled - * without any overrides configured. Unique within the compilation result. - * - * Generated from protobuf field .google.cloud.dataform.v1.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $canonical_target = null; - /** - * Output only. This action's current state. - * - * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. If and only if action's state is FAILED a failure reason is - * set. - * - * Generated from protobuf field string failure_reason = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $failure_reason = ''; - /** - * 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. - * - * Generated from protobuf field .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $invocation_timing = null; - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $internal_metadata = null; - protected $action; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1\WorkflowInvocationAction\BigQueryAction $bigquery_action - * Output only. The workflow action's bigquery action details. - * @type \Google\Cloud\Dataform\V1\WorkflowInvocationAction\NotebookAction $notebook_action - * Output only. The workflow action's notebook action details. - * @type \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction $data_preparation_action - * Output only. The workflow action's data preparation action details. - * @type \Google\Cloud\Dataform\V1\Target $target - * Output only. This action's identifier. Unique within the workflow - * invocation. - * @type \Google\Cloud\Dataform\V1\Target $canonical_target - * Output only. The action's identifier if the project had been compiled - * without any overrides configured. Unique within the compilation result. - * @type int $state - * Output only. This action's current state. - * @type string $failure_reason - * Output only. If and only if action's state is FAILED a failure reason is - * set. - * @type \Google\Type\Interval $invocation_timing - * 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. - * @type string $internal_metadata - * 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. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The workflow action's bigquery action details. - * - * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataform\V1\WorkflowInvocationAction\BigQueryAction|null - */ - public function getBigqueryAction() - { - return $this->readOneof(6); - } - - public function hasBigqueryAction() - { - return $this->hasOneof(6); - } - - /** - * Output only. The workflow action's bigquery action details. - * - * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataform\V1\WorkflowInvocationAction\BigQueryAction $var - * @return $this - */ - public function setBigqueryAction($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\WorkflowInvocationAction\BigQueryAction::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Output only. The workflow action's notebook action details. - * - * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.NotebookAction notebook_action = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataform\V1\WorkflowInvocationAction\NotebookAction|null - */ - public function getNotebookAction() - { - return $this->readOneof(8); - } - - public function hasNotebookAction() - { - return $this->hasOneof(8); - } - - /** - * Output only. The workflow action's notebook action details. - * - * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.NotebookAction notebook_action = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataform\V1\WorkflowInvocationAction\NotebookAction $var - * @return $this - */ - public function setNotebookAction($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\WorkflowInvocationAction\NotebookAction::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * Output only. The workflow action's data preparation action details. - * - * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction data_preparation_action = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction|null - */ - public function getDataPreparationAction() - { - return $this->readOneof(9); - } - - public function hasDataPreparationAction() - { - return $this->hasOneof(9); - } - - /** - * Output only. The workflow action's data preparation action details. - * - * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction data_preparation_action = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction $var - * @return $this - */ - public function setDataPreparationAction($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction::class); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * Output only. This action's identifier. Unique within the workflow - * invocation. - * - * Generated from protobuf field .google.cloud.dataform.v1.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataform\V1\Target|null - */ - public function getTarget() - { - return $this->target; - } - - public function hasTarget() - { - return isset($this->target); - } - - public function clearTarget() - { - unset($this->target); - } - - /** - * Output only. This action's identifier. Unique within the workflow - * invocation. - * - * Generated from protobuf field .google.cloud.dataform.v1.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataform\V1\Target $var - * @return $this - */ - public function setTarget($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\Target::class); - $this->target = $var; - - return $this; - } - - /** - * Output only. The action's identifier if the project had been compiled - * without any overrides configured. Unique within the compilation result. - * - * Generated from protobuf field .google.cloud.dataform.v1.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataform\V1\Target|null - */ - public function getCanonicalTarget() - { - return $this->canonical_target; - } - - public function hasCanonicalTarget() - { - return isset($this->canonical_target); - } - - public function clearCanonicalTarget() - { - unset($this->canonical_target); - } - - /** - * Output only. The action's identifier if the project had been compiled - * without any overrides configured. Unique within the compilation result. - * - * Generated from protobuf field .google.cloud.dataform.v1.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataform\V1\Target $var - * @return $this - */ - public function setCanonicalTarget($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\Target::class); - $this->canonical_target = $var; - - return $this; - } - - /** - * Output only. This action's current state. - * - * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. This action's current state. - * - * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1\WorkflowInvocationAction\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. If and only if action's state is FAILED a failure reason is - * set. - * - * Generated from protobuf field string failure_reason = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getFailureReason() - { - return $this->failure_reason; - } - - /** - * Output only. If and only if action's state is FAILED a failure reason is - * set. - * - * Generated from protobuf field string failure_reason = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setFailureReason($var) - { - GPBUtil::checkString($var, True); - $this->failure_reason = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Type\Interval|null - */ - public function getInvocationTiming() - { - return $this->invocation_timing; - } - - public function hasInvocationTiming() - { - return isset($this->invocation_timing); - } - - public function clearInvocationTiming() - { - unset($this->invocation_timing); - } - - /** - * 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. - * - * Generated from protobuf field .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Type\Interval $var - * @return $this - */ - public function setInvocationTiming($var) - { - GPBUtil::checkMessage($var, \Google\Type\Interval::class); - $this->invocation_timing = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getInternalMetadata() - { - return isset($this->internal_metadata) ? $this->internal_metadata : ''; - } - - public function hasInternalMetadata() - { - return isset($this->internal_metadata); - } - - public function clearInternalMetadata() - { - unset($this->internal_metadata); - } - - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setInternalMetadata($var) - { - GPBUtil::checkString($var, True); - $this->internal_metadata = $var; - - return $this; - } - - /** - * @return string - */ - public function getAction() - { - return $this->whichOneof("action"); - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/BigQueryAction.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/BigQueryAction.php deleted file mode 100644 index d6d5a269fbad..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/BigQueryAction.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.dataform.v1.WorkflowInvocationAction.BigQueryAction - */ -class BigQueryAction extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The generated BigQuery SQL script that will be executed. - * - * Generated from protobuf field string sql_script = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $sql_script = ''; - /** - * Output only. The ID of the BigQuery job that executed the SQL in - * sql_script. Only set once the job has started to run. - * - * Generated from protobuf field string job_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $job_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $sql_script - * Output only. The generated BigQuery SQL script that will be executed. - * @type string $job_id - * Output only. The ID of the BigQuery job that executed the SQL in - * sql_script. Only set once the job has started to run. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The generated BigQuery SQL script that will be executed. - * - * Generated from protobuf field string sql_script = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getSqlScript() - { - return $this->sql_script; - } - - /** - * Output only. The generated BigQuery SQL script that will be executed. - * - * Generated from protobuf field string sql_script = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setSqlScript($var) - { - GPBUtil::checkString($var, True); - $this->sql_script = $var; - - return $this; - } - - /** - * Output only. The ID of the BigQuery job that executed the SQL in - * sql_script. Only set once the job has started to run. - * - * Generated from protobuf field string job_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getJobId() - { - return $this->job_id; - } - - /** - * Output only. The ID of the BigQuery job that executed the SQL in - * sql_script. Only set once the job has started to run. - * - * Generated from protobuf field string job_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setJobId($var) - { - GPBUtil::checkString($var, True); - $this->job_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction.php deleted file mode 100644 index 37583a7bb6e7..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction.php +++ /dev/null @@ -1,190 +0,0 @@ -google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction - */ -class DataPreparationAction extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The generated BigQuery SQL script that will be executed. For - * reference only. - * - * Generated from protobuf field string generated_sql = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $generated_sql = ''; - /** - * Output only. The ID of the BigQuery job that executed the SQL in - * sql_script. Only set once the job has started to run. - * - * Generated from protobuf field string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $job_id = ''; - protected $definition; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $contents_yaml - * Output only. YAML representing the contents of the data preparation. - * Can be used to show the customer what the input was to their workflow. - * @type \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionSqlDefinition $contents_sql - * SQL definition for a Data Preparation. Contains a SQL query and - * additional context information. - * @type string $generated_sql - * Output only. The generated BigQuery SQL script that will be executed. For - * reference only. - * @type string $job_id - * Output only. The ID of the BigQuery job that executed the SQL in - * sql_script. Only set once the job has started to run. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Output only. YAML representing the contents of the data preparation. - * Can be used to show the customer what the input was to their workflow. - * - * Generated from protobuf field string contents_yaml = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getContentsYaml() - { - return $this->readOneof(2); - } - - public function hasContentsYaml() - { - return $this->hasOneof(2); - } - - /** - * Output only. YAML representing the contents of the data preparation. - * Can be used to show the customer what the input was to their workflow. - * - * Generated from protobuf field string contents_yaml = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setContentsYaml($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * SQL definition for a Data Preparation. Contains a SQL query and - * additional context information. - * - * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSqlDefinition contents_sql = 6; - * @return \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionSqlDefinition|null - */ - public function getContentsSql() - { - return $this->readOneof(6); - } - - public function hasContentsSql() - { - return $this->hasOneof(6); - } - - /** - * SQL definition for a Data Preparation. Contains a SQL query and - * additional context information. - * - * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSqlDefinition contents_sql = 6; - * @param \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionSqlDefinition $var - * @return $this - */ - public function setContentsSql($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionSqlDefinition::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Output only. The generated BigQuery SQL script that will be executed. For - * reference only. - * - * Generated from protobuf field string generated_sql = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getGeneratedSql() - { - return $this->generated_sql; - } - - /** - * Output only. The generated BigQuery SQL script that will be executed. For - * reference only. - * - * Generated from protobuf field string generated_sql = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setGeneratedSql($var) - { - GPBUtil::checkString($var, True); - $this->generated_sql = $var; - - return $this; - } - - /** - * Output only. The ID of the BigQuery job that executed the SQL in - * sql_script. Only set once the job has started to run. - * - * Generated from protobuf field string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getJobId() - { - return $this->job_id; - } - - /** - * Output only. The ID of the BigQuery job that executed the SQL in - * sql_script. Only set once the job has started to run. - * - * Generated from protobuf field string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setJobId($var) - { - GPBUtil::checkString($var, True); - $this->job_id = $var; - - return $this; - } - - /** - * @return string - */ - public function getDefinition() - { - return $this->whichOneof("definition"); - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction/ActionErrorTable.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction/ActionErrorTable.php deleted file mode 100644 index 5b868b2b912c..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction/ActionErrorTable.php +++ /dev/null @@ -1,116 +0,0 @@ -google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionErrorTable - */ -class ActionErrorTable extends \Google\Protobuf\Internal\Message -{ - /** - * Error Table target. - * - * Generated from protobuf field .google.cloud.dataform.v1.Target target = 1; - */ - protected $target = null; - /** - * Error table partition expiration in days. Only positive values are - * allowed. - * - * Generated from protobuf field int32 retention_days = 2; - */ - protected $retention_days = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1\Target $target - * Error Table target. - * @type int $retention_days - * Error table partition expiration in days. Only positive values are - * allowed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Error Table target. - * - * Generated from protobuf field .google.cloud.dataform.v1.Target target = 1; - * @return \Google\Cloud\Dataform\V1\Target|null - */ - public function getTarget() - { - return $this->target; - } - - public function hasTarget() - { - return isset($this->target); - } - - public function clearTarget() - { - unset($this->target); - } - - /** - * Error Table target. - * - * Generated from protobuf field .google.cloud.dataform.v1.Target target = 1; - * @param \Google\Cloud\Dataform\V1\Target $var - * @return $this - */ - public function setTarget($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\Target::class); - $this->target = $var; - - return $this; - } - - /** - * Error table partition expiration in days. Only positive values are - * allowed. - * - * Generated from protobuf field int32 retention_days = 2; - * @return int - */ - public function getRetentionDays() - { - return $this->retention_days; - } - - /** - * Error table partition expiration in days. Only positive values are - * allowed. - * - * Generated from protobuf field int32 retention_days = 2; - * @param int $var - * @return $this - */ - public function setRetentionDays($var) - { - GPBUtil::checkInt32($var); - $this->retention_days = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction/ActionIncrementalLoadMode.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction/ActionIncrementalLoadMode.php deleted file mode 100644 index c1f6c1922ea8..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction/ActionIncrementalLoadMode.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadMode - */ -class ActionIncrementalLoadMode extends \Google\Protobuf\Internal\Message -{ - /** - * Column name for incremental load modes - * - * Generated from protobuf field string column = 1; - */ - protected $column = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $column - * Column name for incremental load modes - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Column name for incremental load modes - * - * Generated from protobuf field string column = 1; - * @return string - */ - public function getColumn() - { - return $this->column; - } - - /** - * Column name for incremental load modes - * - * Generated from protobuf field string column = 1; - * @param string $var - * @return $this - */ - public function setColumn($var) - { - GPBUtil::checkString($var, True); - $this->column = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction/ActionLoadConfig.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction/ActionLoadConfig.php deleted file mode 100644 index 85f723bd9ea9..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction/ActionLoadConfig.php +++ /dev/null @@ -1,180 +0,0 @@ -google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionLoadConfig - */ -class ActionLoadConfig extends \Google\Protobuf\Internal\Message -{ - protected $mode; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionSimpleLoadMode $replace - * Replace destination table - * @type \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionSimpleLoadMode $append - * Append into destination table - * @type \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionIncrementalLoadMode $maximum - * Insert records where the value exceeds the previous maximum value for - * a column in the destination table - * @type \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionIncrementalLoadMode $unique - * Insert records where the value of a column is not already present in - * the destination table - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Replace destination table - * - * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadMode replace = 1; - * @return \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionSimpleLoadMode|null - */ - public function getReplace() - { - return $this->readOneof(1); - } - - public function hasReplace() - { - return $this->hasOneof(1); - } - - /** - * Replace destination table - * - * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadMode replace = 1; - * @param \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionSimpleLoadMode $var - * @return $this - */ - public function setReplace($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionSimpleLoadMode::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Append into destination table - * - * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadMode append = 2; - * @return \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionSimpleLoadMode|null - */ - public function getAppend() - { - return $this->readOneof(2); - } - - public function hasAppend() - { - return $this->hasOneof(2); - } - - /** - * Append into destination table - * - * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadMode append = 2; - * @param \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionSimpleLoadMode $var - * @return $this - */ - public function setAppend($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionSimpleLoadMode::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Insert records where the value exceeds the previous maximum value for - * a column in the destination table - * - * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadMode maximum = 3; - * @return \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionIncrementalLoadMode|null - */ - public function getMaximum() - { - return $this->readOneof(3); - } - - public function hasMaximum() - { - return $this->hasOneof(3); - } - - /** - * Insert records where the value exceeds the previous maximum value for - * a column in the destination table - * - * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadMode maximum = 3; - * @param \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionIncrementalLoadMode $var - * @return $this - */ - public function setMaximum($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionIncrementalLoadMode::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Insert records where the value of a column is not already present in - * the destination table - * - * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadMode unique = 4; - * @return \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionIncrementalLoadMode|null - */ - public function getUnique() - { - return $this->readOneof(4); - } - - public function hasUnique() - { - return $this->hasOneof(4); - } - - /** - * Insert records where the value of a column is not already present in - * the destination table - * - * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadMode unique = 4; - * @param \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionIncrementalLoadMode $var - * @return $this - */ - public function setUnique($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionIncrementalLoadMode::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getMode() - { - return $this->whichOneof("mode"); - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction/ActionSimpleLoadMode.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction/ActionSimpleLoadMode.php deleted file mode 100644 index c5d57a119023..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction/ActionSimpleLoadMode.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadMode - */ -class ActionSimpleLoadMode extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction/ActionSqlDefinition.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction/ActionSqlDefinition.php deleted file mode 100644 index ad5fe2cc0ddc..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/DataPreparationAction/ActionSqlDefinition.php +++ /dev/null @@ -1,159 +0,0 @@ -google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSqlDefinition - */ -class ActionSqlDefinition extends \Google\Protobuf\Internal\Message -{ - /** - * The SQL query representing the data preparation steps. Formatted as a - * Pipe SQL query statement. - * - * Generated from protobuf field string query = 1; - */ - protected $query = ''; - /** - * Error table configuration, - * - * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionErrorTable error_table = 2; - */ - protected $error_table = null; - /** - * Load configuration. - * - * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionLoadConfig load_config = 3; - */ - protected $load_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $query - * The SQL query representing the data preparation steps. Formatted as a - * Pipe SQL query statement. - * @type \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionErrorTable $error_table - * Error table configuration, - * @type \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionLoadConfig $load_config - * Load configuration. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * The SQL query representing the data preparation steps. Formatted as a - * Pipe SQL query statement. - * - * Generated from protobuf field string query = 1; - * @return string - */ - public function getQuery() - { - return $this->query; - } - - /** - * The SQL query representing the data preparation steps. Formatted as a - * Pipe SQL query statement. - * - * Generated from protobuf field string query = 1; - * @param string $var - * @return $this - */ - public function setQuery($var) - { - GPBUtil::checkString($var, True); - $this->query = $var; - - return $this; - } - - /** - * Error table configuration, - * - * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionErrorTable error_table = 2; - * @return \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionErrorTable|null - */ - public function getErrorTable() - { - return $this->error_table; - } - - public function hasErrorTable() - { - return isset($this->error_table); - } - - public function clearErrorTable() - { - unset($this->error_table); - } - - /** - * Error table configuration, - * - * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionErrorTable error_table = 2; - * @param \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionErrorTable $var - * @return $this - */ - public function setErrorTable($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionErrorTable::class); - $this->error_table = $var; - - return $this; - } - - /** - * Load configuration. - * - * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionLoadConfig load_config = 3; - * @return \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionLoadConfig|null - */ - public function getLoadConfig() - { - return $this->load_config; - } - - public function hasLoadConfig() - { - return isset($this->load_config); - } - - public function clearLoadConfig() - { - unset($this->load_config); - } - - /** - * Load configuration. - * - * Generated from protobuf field .google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionLoadConfig load_config = 3; - * @param \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionLoadConfig $var - * @return $this - */ - public function setLoadConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\WorkflowInvocationAction\DataPreparationAction\ActionLoadConfig::class); - $this->load_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/NotebookAction.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/NotebookAction.php deleted file mode 100644 index eb2f77f3d5a3..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/NotebookAction.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.dataform.v1.WorkflowInvocationAction.NotebookAction - */ -class NotebookAction extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The code contents of a Notebook to be run. - * - * Generated from protobuf field string contents = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $contents = ''; - /** - * 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. - * - * Generated from protobuf field string job_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $job_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $contents - * Output only. The code contents of a Notebook to be run. - * @type string $job_id - * 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. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The code contents of a Notebook to be run. - * - * Generated from protobuf field string contents = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getContents() - { - return $this->contents; - } - - /** - * Output only. The code contents of a Notebook to be run. - * - * Generated from protobuf field string contents = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setContents($var) - { - GPBUtil::checkString($var, True); - $this->contents = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string job_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getJobId() - { - return $this->job_id; - } - - /** - * 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. - * - * Generated from protobuf field string job_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setJobId($var) - { - GPBUtil::checkString($var, True); - $this->job_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/State.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/State.php deleted file mode 100644 index 5ef1a4106bd8..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WorkflowInvocationAction/State.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.dataform.v1.WorkflowInvocationAction.State - */ -class State -{ - /** - * The action has not yet been considered for invocation. - * - * Generated from protobuf enum PENDING = 0; - */ - const PENDING = 0; - /** - * The action is currently running. - * - * Generated from protobuf enum RUNNING = 1; - */ - const RUNNING = 1; - /** - * Execution of the action was skipped because upstream dependencies did not - * all complete successfully. A terminal state. - * - * Generated from protobuf enum SKIPPED = 2; - */ - const SKIPPED = 2; - /** - * Execution of the action was disabled as per the configuration of the - * corresponding compilation result action. A terminal state. - * - * Generated from protobuf enum DISABLED = 3; - */ - const DISABLED = 3; - /** - * The action succeeded. A terminal state. - * - * Generated from protobuf enum SUCCEEDED = 4; - */ - const SUCCEEDED = 4; - /** - * The action was cancelled. A terminal state. - * - * Generated from protobuf enum CANCELLED = 5; - */ - const CANCELLED = 5; - /** - * The action failed. A terminal state. - * - * Generated from protobuf enum FAILED = 6; - */ - const FAILED = 6; - - private static $valueToName = [ - self::PENDING => 'PENDING', - self::RUNNING => 'RUNNING', - self::SKIPPED => 'SKIPPED', - self::DISABLED => 'DISABLED', - self::SUCCEEDED => 'SUCCEEDED', - self::CANCELLED => 'CANCELLED', - self::FAILED => 'FAILED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Workspace.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Workspace.php deleted file mode 100644 index faf340c6da16..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/Workspace.php +++ /dev/null @@ -1,307 +0,0 @@ -google.cloud.dataform.v1.Workspace - */ -class Workspace extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. The timestamp of when the workspace was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. A data encryption state of a Git repository if this Workspace - * is protected by a KMS key. - * - * Generated from protobuf field .google.cloud.dataform.v1.DataEncryptionState data_encryption_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $data_encryption_state = null; - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $internal_metadata = null; - /** - * Optional. If set to true, workspaces will not be moved if its linked - * Repository is moved. Instead, it will be deleted. - * - * Generated from protobuf field optional bool disable_moves = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $disable_moves = null; - /** - * Output only. Metadata indicating whether this resource is user-scoped. For - * `Workspace` resources, the `user_scoped` field is always `true`. - * - * Generated from protobuf field .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $private_resource_metadata = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The workspace's name. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The timestamp of when the workspace was created. - * @type \Google\Cloud\Dataform\V1\DataEncryptionState $data_encryption_state - * Output only. A data encryption state of a Git repository if this Workspace - * is protected by a KMS key. - * @type string $internal_metadata - * 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. - * @type bool $disable_moves - * Optional. If set to true, workspaces will not be moved if its linked - * Repository is moved. Instead, it will be deleted. - * @type \Google\Cloud\Dataform\V1\PrivateResourceMetadata $private_resource_metadata - * Output only. Metadata indicating whether this resource is user-scoped. For - * `Workspace` resources, the `user_scoped` field is always `true`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. The timestamp of when the workspace was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The timestamp of when the workspace was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. A data encryption state of a Git repository if this Workspace - * is protected by a KMS key. - * - * Generated from protobuf field .google.cloud.dataform.v1.DataEncryptionState data_encryption_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataform\V1\DataEncryptionState|null - */ - public function getDataEncryptionState() - { - return $this->data_encryption_state; - } - - public function hasDataEncryptionState() - { - return isset($this->data_encryption_state); - } - - public function clearDataEncryptionState() - { - unset($this->data_encryption_state); - } - - /** - * Output only. A data encryption state of a Git repository if this Workspace - * is protected by a KMS key. - * - * Generated from protobuf field .google.cloud.dataform.v1.DataEncryptionState data_encryption_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataform\V1\DataEncryptionState $var - * @return $this - */ - public function setDataEncryptionState($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\DataEncryptionState::class); - $this->data_encryption_state = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getInternalMetadata() - { - return isset($this->internal_metadata) ? $this->internal_metadata : ''; - } - - public function hasInternalMetadata() - { - return isset($this->internal_metadata); - } - - public function clearInternalMetadata() - { - unset($this->internal_metadata); - } - - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setInternalMetadata($var) - { - GPBUtil::checkString($var, True); - $this->internal_metadata = $var; - - return $this; - } - - /** - * Optional. If set to true, workspaces will not be moved if its linked - * Repository is moved. Instead, it will be deleted. - * - * Generated from protobuf field optional bool disable_moves = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getDisableMoves() - { - return isset($this->disable_moves) ? $this->disable_moves : false; - } - - public function hasDisableMoves() - { - return isset($this->disable_moves); - } - - public function clearDisableMoves() - { - unset($this->disable_moves); - } - - /** - * Optional. If set to true, workspaces will not be moved if its linked - * Repository is moved. Instead, it will be deleted. - * - * Generated from protobuf field optional bool disable_moves = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setDisableMoves($var) - { - GPBUtil::checkBool($var); - $this->disable_moves = $var; - - return $this; - } - - /** - * Output only. Metadata indicating whether this resource is user-scoped. For - * `Workspace` resources, the `user_scoped` field is always `true`. - * - * Generated from protobuf field .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataform\V1\PrivateResourceMetadata|null - */ - public function getPrivateResourceMetadata() - { - return $this->private_resource_metadata; - } - - public function hasPrivateResourceMetadata() - { - return isset($this->private_resource_metadata); - } - - public function clearPrivateResourceMetadata() - { - unset($this->private_resource_metadata); - } - - /** - * Output only. Metadata indicating whether this resource is user-scoped. For - * `Workspace` resources, the `user_scoped` field is always `true`. - * - * Generated from protobuf field .google.cloud.dataform.v1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataform\V1\PrivateResourceMetadata $var - * @return $this - */ - public function setPrivateResourceMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1\PrivateResourceMetadata::class); - $this->private_resource_metadata = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WriteFileRequest.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WriteFileRequest.php deleted file mode 100644 index 735b36cb635d..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WriteFileRequest.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.dataform.v1.WriteFileRequest - */ -class WriteFileRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $workspace = ''; - /** - * Required. The file. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $path = ''; - /** - * Required. The file's contents. - * - * Generated from protobuf field bytes contents = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $contents = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $workspace - * Required. The workspace's name. - * @type string $path - * Required. The file. - * @type string $contents - * Required. The file's contents. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getWorkspace() - { - return $this->workspace; - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setWorkspace($var) - { - GPBUtil::checkString($var, True); - $this->workspace = $var; - - return $this; - } - - /** - * Required. The file. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * Required. The file. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - - /** - * Required. The file's contents. - * - * Generated from protobuf field bytes contents = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getContents() - { - return $this->contents; - } - - /** - * Required. The file's contents. - * - * Generated from protobuf field bytes contents = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setContents($var) - { - GPBUtil::checkString($var, False); - $this->contents = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WriteFileResponse.php b/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WriteFileResponse.php deleted file mode 100644 index 9e490ac4c596..000000000000 --- a/owl-bot-staging/Dataform/v1/proto/src/Google/Cloud/Dataform/V1/WriteFileResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.dataform.v1.WriteFileResponse - */ -class WriteFileResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1\Dataform::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/cancel_workflow_invocation.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/cancel_workflow_invocation.php deleted file mode 100644 index 5eb921d19e9e..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/cancel_workflow_invocation.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var CancelWorkflowInvocationResponse $response */ - $response = $dataformClient->cancelWorkflowInvocation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::workflowInvocationName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKFLOW_INVOCATION]' - ); - - cancel_workflow_invocation_sample($formattedName); -} -// [END dataform_v1_generated_Dataform_CancelWorkflowInvocation_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/commit_repository_changes.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/commit_repository_changes.php deleted file mode 100644 index dcd54e1108bd..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/commit_repository_changes.php +++ /dev/null @@ -1,91 +0,0 @@ -setName($commitMetadataAuthorName) - ->setEmailAddress($commitMetadataAuthorEmailAddress); - $commitMetadata = (new CommitMetadata()) - ->setAuthor($commitMetadataAuthor); - $request = (new CommitRepositoryChangesRequest()) - ->setName($formattedName) - ->setCommitMetadata($commitMetadata); - - // Call the API and handle any network failures. - try { - /** @var CommitRepositoryChangesResponse $response */ - $response = $dataformClient->commitRepositoryChanges($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $commitMetadataAuthorName = '[NAME]'; - $commitMetadataAuthorEmailAddress = '[EMAIL_ADDRESS]'; - - commit_repository_changes_sample( - $formattedName, - $commitMetadataAuthorName, - $commitMetadataAuthorEmailAddress - ); -} -// [END dataform_v1_generated_Dataform_CommitRepositoryChanges_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/commit_workspace_changes.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/commit_workspace_changes.php deleted file mode 100644 index 78ce866b1961..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/commit_workspace_changes.php +++ /dev/null @@ -1,88 +0,0 @@ -setName($authorName) - ->setEmailAddress($authorEmailAddress); - $request = (new CommitWorkspaceChangesRequest()) - ->setName($formattedName) - ->setAuthor($author); - - // Call the API and handle any network failures. - try { - /** @var CommitWorkspaceChangesResponse $response */ - $response = $dataformClient->commitWorkspaceChanges($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::workspaceName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKSPACE]' - ); - $authorName = '[NAME]'; - $authorEmailAddress = '[EMAIL_ADDRESS]'; - - commit_workspace_changes_sample($formattedName, $authorName, $authorEmailAddress); -} -// [END dataform_v1_generated_Dataform_CommitWorkspaceChanges_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/compute_repository_access_token_status.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/compute_repository_access_token_status.php deleted file mode 100644 index c1bc16fa3a14..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/compute_repository_access_token_status.php +++ /dev/null @@ -1,71 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var ComputeRepositoryAccessTokenStatusResponse $response */ - $response = $dataformClient->computeRepositoryAccessTokenStatus($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - - compute_repository_access_token_status_sample($formattedName); -} -// [END dataform_v1_generated_Dataform_ComputeRepositoryAccessTokenStatus_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_compilation_result.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_compilation_result.php deleted file mode 100644 index 22b3f0fc86f6..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_compilation_result.php +++ /dev/null @@ -1,74 +0,0 @@ -setParent($formattedParent) - ->setCompilationResult($compilationResult); - - // Call the API and handle any network failures. - try { - /** @var CompilationResult $response */ - $response = $dataformClient->createCompilationResult($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - - create_compilation_result_sample($formattedParent); -} -// [END dataform_v1_generated_Dataform_CreateCompilationResult_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_release_config.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_release_config.php deleted file mode 100644 index ebf84a5b980d..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_release_config.php +++ /dev/null @@ -1,88 +0,0 @@ -setGitCommitish($releaseConfigGitCommitish); - $request = (new CreateReleaseConfigRequest()) - ->setParent($formattedParent) - ->setReleaseConfig($releaseConfig) - ->setReleaseConfigId($releaseConfigId); - - // Call the API and handle any network failures. - try { - /** @var ReleaseConfig $response */ - $response = $dataformClient->createReleaseConfig($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $releaseConfigGitCommitish = '[GIT_COMMITISH]'; - $releaseConfigId = '[RELEASE_CONFIG_ID]'; - - create_release_config_sample($formattedParent, $releaseConfigGitCommitish, $releaseConfigId); -} -// [END dataform_v1_generated_Dataform_CreateReleaseConfig_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_repository.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_repository.php deleted file mode 100644 index 902a53fb8902..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_repository.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent) - ->setRepository($repository) - ->setRepositoryId($repositoryId); - - // Call the API and handle any network failures. - try { - /** @var Repository $response */ - $response = $dataformClient->createRepository($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataformClient::locationName('[PROJECT]', '[LOCATION]'); - $repositoryId = '[REPOSITORY_ID]'; - - create_repository_sample($formattedParent, $repositoryId); -} -// [END dataform_v1_generated_Dataform_CreateRepository_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_workflow_config.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_workflow_config.php deleted file mode 100644 index 28cdfdaf6df8..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_workflow_config.php +++ /dev/null @@ -1,96 +0,0 @@ -setReleaseConfig($formattedWorkflowConfigReleaseConfig); - $request = (new CreateWorkflowConfigRequest()) - ->setParent($formattedParent) - ->setWorkflowConfig($workflowConfig) - ->setWorkflowConfigId($workflowConfigId); - - // Call the API and handle any network failures. - try { - /** @var WorkflowConfig $response */ - $response = $dataformClient->createWorkflowConfig($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $formattedWorkflowConfigReleaseConfig = DataformClient::releaseConfigName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[RELEASE_CONFIG]' - ); - $workflowConfigId = '[WORKFLOW_CONFIG_ID]'; - - create_workflow_config_sample( - $formattedParent, - $formattedWorkflowConfigReleaseConfig, - $workflowConfigId - ); -} -// [END dataform_v1_generated_Dataform_CreateWorkflowConfig_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_workflow_invocation.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_workflow_invocation.php deleted file mode 100644 index 1fb9a548c096..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_workflow_invocation.php +++ /dev/null @@ -1,74 +0,0 @@ -setParent($formattedParent) - ->setWorkflowInvocation($workflowInvocation); - - // Call the API and handle any network failures. - try { - /** @var WorkflowInvocation $response */ - $response = $dataformClient->createWorkflowInvocation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - - create_workflow_invocation_sample($formattedParent); -} -// [END dataform_v1_generated_Dataform_CreateWorkflowInvocation_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_workspace.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_workspace.php deleted file mode 100644 index 8700c3b88bb1..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/create_workspace.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent) - ->setWorkspace($workspace) - ->setWorkspaceId($workspaceId); - - // Call the API and handle any network failures. - try { - /** @var Workspace $response */ - $response = $dataformClient->createWorkspace($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $workspaceId = '[WORKSPACE_ID]'; - - create_workspace_sample($formattedParent, $workspaceId); -} -// [END dataform_v1_generated_Dataform_CreateWorkspace_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_release_config.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_release_config.php deleted file mode 100644 index 117a4e6b406d..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_release_config.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $dataformClient->deleteReleaseConfig($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::releaseConfigName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[RELEASE_CONFIG]' - ); - - delete_release_config_sample($formattedName); -} -// [END dataform_v1_generated_Dataform_DeleteReleaseConfig_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_repository.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_repository.php deleted file mode 100644 index fafab0e56c8a..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_repository.php +++ /dev/null @@ -1,69 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $dataformClient->deleteRepository($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - - delete_repository_sample($formattedName); -} -// [END dataform_v1_generated_Dataform_DeleteRepository_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_workflow_config.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_workflow_config.php deleted file mode 100644 index b17bbaff2082..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_workflow_config.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $dataformClient->deleteWorkflowConfig($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::workflowConfigName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKFLOW_CONFIG]' - ); - - delete_workflow_config_sample($formattedName); -} -// [END dataform_v1_generated_Dataform_DeleteWorkflowConfig_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_workflow_invocation.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_workflow_invocation.php deleted file mode 100644 index 0006aea3376a..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_workflow_invocation.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $dataformClient->deleteWorkflowInvocation($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::workflowInvocationName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKFLOW_INVOCATION]' - ); - - delete_workflow_invocation_sample($formattedName); -} -// [END dataform_v1_generated_Dataform_DeleteWorkflowInvocation_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_workspace.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_workspace.php deleted file mode 100644 index 3115bc710191..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/delete_workspace.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $dataformClient->deleteWorkspace($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::workspaceName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKSPACE]' - ); - - delete_workspace_sample($formattedName); -} -// [END dataform_v1_generated_Dataform_DeleteWorkspace_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/fetch_file_diff.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/fetch_file_diff.php deleted file mode 100644 index 7df358333d91..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/fetch_file_diff.php +++ /dev/null @@ -1,80 +0,0 @@ -setWorkspace($formattedWorkspace) - ->setPath($path); - - // Call the API and handle any network failures. - try { - /** @var FetchFileDiffResponse $response */ - $response = $dataformClient->fetchFileDiff($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedWorkspace = DataformClient::workspaceName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKSPACE]' - ); - $path = '[PATH]'; - - fetch_file_diff_sample($formattedWorkspace, $path); -} -// [END dataform_v1_generated_Dataform_FetchFileDiff_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/fetch_file_git_statuses.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/fetch_file_git_statuses.php deleted file mode 100644 index 6198869fb8a0..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/fetch_file_git_statuses.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var FetchFileGitStatusesResponse $response */ - $response = $dataformClient->fetchFileGitStatuses($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::workspaceName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKSPACE]' - ); - - fetch_file_git_statuses_sample($formattedName); -} -// [END dataform_v1_generated_Dataform_FetchFileGitStatuses_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/fetch_git_ahead_behind.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/fetch_git_ahead_behind.php deleted file mode 100644 index 05a2de2d4bba..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/fetch_git_ahead_behind.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var FetchGitAheadBehindResponse $response */ - $response = $dataformClient->fetchGitAheadBehind($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::workspaceName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKSPACE]' - ); - - fetch_git_ahead_behind_sample($formattedName); -} -// [END dataform_v1_generated_Dataform_FetchGitAheadBehind_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/fetch_remote_branches.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/fetch_remote_branches.php deleted file mode 100644 index b55903f690d4..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/fetch_remote_branches.php +++ /dev/null @@ -1,71 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var FetchRemoteBranchesResponse $response */ - $response = $dataformClient->fetchRemoteBranches($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - - fetch_remote_branches_sample($formattedName); -} -// [END dataform_v1_generated_Dataform_FetchRemoteBranches_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/fetch_repository_history.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/fetch_repository_history.php deleted file mode 100644 index be2f8542545c..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/fetch_repository_history.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataformClient->fetchRepositoryHistory($request); - - /** @var CommitLogEntry $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - - fetch_repository_history_sample($formattedName); -} -// [END dataform_v1_generated_Dataform_FetchRepositoryHistory_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_compilation_result.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_compilation_result.php deleted file mode 100644 index cc83ce482bc0..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_compilation_result.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var CompilationResult $response */ - $response = $dataformClient->getCompilationResult($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::compilationResultName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[COMPILATION_RESULT]' - ); - - get_compilation_result_sample($formattedName); -} -// [END dataform_v1_generated_Dataform_GetCompilationResult_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_config.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_config.php deleted file mode 100644 index 1ed4c70128c7..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_config.php +++ /dev/null @@ -1,71 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Config $response */ - $response = $dataformClient->getConfig($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::configName('[PROJECT]', '[LOCATION]'); - - get_config_sample($formattedName); -} -// [END dataform_v1_generated_Dataform_GetConfig_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_iam_policy.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_iam_policy.php deleted file mode 100644 index ab3747a131cc..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_iam_policy.php +++ /dev/null @@ -1,73 +0,0 @@ -setResource($resource); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $dataformClient->getIamPolicy($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $resource = '[RESOURCE]'; - - get_iam_policy_sample($resource); -} -// [END dataform_v1_generated_Dataform_GetIamPolicy_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_location.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_location.php deleted file mode 100644 index eed7c2879ba1..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_location.php +++ /dev/null @@ -1,57 +0,0 @@ -getLocation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END dataform_v1_generated_Dataform_GetLocation_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_release_config.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_release_config.php deleted file mode 100644 index 77c6b3f2729d..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_release_config.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var ReleaseConfig $response */ - $response = $dataformClient->getReleaseConfig($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::releaseConfigName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[RELEASE_CONFIG]' - ); - - get_release_config_sample($formattedName); -} -// [END dataform_v1_generated_Dataform_GetReleaseConfig_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_repository.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_repository.php deleted file mode 100644 index cbb34eb5577d..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_repository.php +++ /dev/null @@ -1,71 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Repository $response */ - $response = $dataformClient->getRepository($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - - get_repository_sample($formattedName); -} -// [END dataform_v1_generated_Dataform_GetRepository_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_workflow_config.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_workflow_config.php deleted file mode 100644 index 118d22a8c5a4..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_workflow_config.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var WorkflowConfig $response */ - $response = $dataformClient->getWorkflowConfig($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::workflowConfigName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKFLOW_CONFIG]' - ); - - get_workflow_config_sample($formattedName); -} -// [END dataform_v1_generated_Dataform_GetWorkflowConfig_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_workflow_invocation.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_workflow_invocation.php deleted file mode 100644 index 0a6271b84947..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_workflow_invocation.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var WorkflowInvocation $response */ - $response = $dataformClient->getWorkflowInvocation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::workflowInvocationName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKFLOW_INVOCATION]' - ); - - get_workflow_invocation_sample($formattedName); -} -// [END dataform_v1_generated_Dataform_GetWorkflowInvocation_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_workspace.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_workspace.php deleted file mode 100644 index b8eabb34a52f..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/get_workspace.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Workspace $response */ - $response = $dataformClient->getWorkspace($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::workspaceName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKSPACE]' - ); - - get_workspace_sample($formattedName); -} -// [END dataform_v1_generated_Dataform_GetWorkspace_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/install_npm_packages.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/install_npm_packages.php deleted file mode 100644 index 53fa11862d08..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/install_npm_packages.php +++ /dev/null @@ -1,76 +0,0 @@ -setWorkspace($formattedWorkspace); - - // Call the API and handle any network failures. - try { - /** @var InstallNpmPackagesResponse $response */ - $response = $dataformClient->installNpmPackages($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedWorkspace = DataformClient::workspaceName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKSPACE]' - ); - - install_npm_packages_sample($formattedWorkspace); -} -// [END dataform_v1_generated_Dataform_InstallNpmPackages_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_compilation_results.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_compilation_results.php deleted file mode 100644 index 32eee4636456..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_compilation_results.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataformClient->listCompilationResults($request); - - /** @var CompilationResult $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - - list_compilation_results_sample($formattedParent); -} -// [END dataform_v1_generated_Dataform_ListCompilationResults_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_locations.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_locations.php deleted file mode 100644 index f3e465156b29..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_locations.php +++ /dev/null @@ -1,78 +0,0 @@ -listLocations($request); - - /** @var Location $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END dataform_v1_generated_Dataform_ListLocations_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_release_configs.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_release_configs.php deleted file mode 100644 index bf8e0d5b9fc2..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_release_configs.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataformClient->listReleaseConfigs($request); - - /** @var ReleaseConfig $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - - list_release_configs_sample($formattedParent); -} -// [END dataform_v1_generated_Dataform_ListReleaseConfigs_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_repositories.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_repositories.php deleted file mode 100644 index 16d4922525f9..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_repositories.php +++ /dev/null @@ -1,80 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataformClient->listRepositories($request); - - /** @var Repository $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataformClient::locationName('[PROJECT]', '[LOCATION]'); - - list_repositories_sample($formattedParent); -} -// [END dataform_v1_generated_Dataform_ListRepositories_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_workflow_configs.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_workflow_configs.php deleted file mode 100644 index eaf551c5503f..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_workflow_configs.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataformClient->listWorkflowConfigs($request); - - /** @var WorkflowConfig $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - - list_workflow_configs_sample($formattedParent); -} -// [END dataform_v1_generated_Dataform_ListWorkflowConfigs_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_workflow_invocations.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_workflow_invocations.php deleted file mode 100644 index a0cbdbe29316..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_workflow_invocations.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataformClient->listWorkflowInvocations($request); - - /** @var WorkflowInvocation $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - - list_workflow_invocations_sample($formattedParent); -} -// [END dataform_v1_generated_Dataform_ListWorkflowInvocations_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_workspaces.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_workspaces.php deleted file mode 100644 index 78990f5296b9..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/list_workspaces.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataformClient->listWorkspaces($request); - - /** @var Workspace $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - - list_workspaces_sample($formattedParent); -} -// [END dataform_v1_generated_Dataform_ListWorkspaces_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/make_directory.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/make_directory.php deleted file mode 100644 index 7b09efbea033..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/make_directory.php +++ /dev/null @@ -1,80 +0,0 @@ -setWorkspace($formattedWorkspace) - ->setPath($path); - - // Call the API and handle any network failures. - try { - /** @var MakeDirectoryResponse $response */ - $response = $dataformClient->makeDirectory($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedWorkspace = DataformClient::workspaceName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKSPACE]' - ); - $path = '[PATH]'; - - make_directory_sample($formattedWorkspace, $path); -} -// [END dataform_v1_generated_Dataform_MakeDirectory_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/move_directory.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/move_directory.php deleted file mode 100644 index cd7f5c698be4..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/move_directory.php +++ /dev/null @@ -1,85 +0,0 @@ -setWorkspace($formattedWorkspace) - ->setPath($path) - ->setNewPath($newPath); - - // Call the API and handle any network failures. - try { - /** @var MoveDirectoryResponse $response */ - $response = $dataformClient->moveDirectory($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedWorkspace = DataformClient::workspaceName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKSPACE]' - ); - $path = '[PATH]'; - $newPath = '[NEW_PATH]'; - - move_directory_sample($formattedWorkspace, $path, $newPath); -} -// [END dataform_v1_generated_Dataform_MoveDirectory_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/move_file.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/move_file.php deleted file mode 100644 index 48667b7bd5ea..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/move_file.php +++ /dev/null @@ -1,84 +0,0 @@ -setWorkspace($formattedWorkspace) - ->setPath($path) - ->setNewPath($newPath); - - // Call the API and handle any network failures. - try { - /** @var MoveFileResponse $response */ - $response = $dataformClient->moveFile($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedWorkspace = DataformClient::workspaceName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKSPACE]' - ); - $path = '[PATH]'; - $newPath = '[NEW_PATH]'; - - move_file_sample($formattedWorkspace, $path, $newPath); -} -// [END dataform_v1_generated_Dataform_MoveFile_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/pull_git_commits.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/pull_git_commits.php deleted file mode 100644 index 141673f39e39..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/pull_git_commits.php +++ /dev/null @@ -1,88 +0,0 @@ -setName($authorName) - ->setEmailAddress($authorEmailAddress); - $request = (new PullGitCommitsRequest()) - ->setName($formattedName) - ->setAuthor($author); - - // Call the API and handle any network failures. - try { - /** @var PullGitCommitsResponse $response */ - $response = $dataformClient->pullGitCommits($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::workspaceName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKSPACE]' - ); - $authorName = '[NAME]'; - $authorEmailAddress = '[EMAIL_ADDRESS]'; - - pull_git_commits_sample($formattedName, $authorName, $authorEmailAddress); -} -// [END dataform_v1_generated_Dataform_PullGitCommits_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/push_git_commits.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/push_git_commits.php deleted file mode 100644 index f8254b7c89f4..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/push_git_commits.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var PushGitCommitsResponse $response */ - $response = $dataformClient->pushGitCommits($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::workspaceName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKSPACE]' - ); - - push_git_commits_sample($formattedName); -} -// [END dataform_v1_generated_Dataform_PushGitCommits_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/query_compilation_result_actions.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/query_compilation_result_actions.php deleted file mode 100644 index ce52cd095fb2..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/query_compilation_result_actions.php +++ /dev/null @@ -1,81 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataformClient->queryCompilationResultActions($request); - - /** @var CompilationResultAction $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::compilationResultName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[COMPILATION_RESULT]' - ); - - query_compilation_result_actions_sample($formattedName); -} -// [END dataform_v1_generated_Dataform_QueryCompilationResultActions_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/query_directory_contents.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/query_directory_contents.php deleted file mode 100644 index 2ade9301f074..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/query_directory_contents.php +++ /dev/null @@ -1,81 +0,0 @@ -setWorkspace($formattedWorkspace); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataformClient->queryDirectoryContents($request); - - /** @var DirectoryEntry $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedWorkspace = DataformClient::workspaceName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKSPACE]' - ); - - query_directory_contents_sample($formattedWorkspace); -} -// [END dataform_v1_generated_Dataform_QueryDirectoryContents_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/query_repository_directory_contents.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/query_repository_directory_contents.php deleted file mode 100644 index 22cc0f0a94d8..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/query_repository_directory_contents.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataformClient->queryRepositoryDirectoryContents($request); - - /** @var DirectoryEntry $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - - query_repository_directory_contents_sample($formattedName); -} -// [END dataform_v1_generated_Dataform_QueryRepositoryDirectoryContents_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/query_workflow_invocation_actions.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/query_workflow_invocation_actions.php deleted file mode 100644 index 169c41da1d2c..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/query_workflow_invocation_actions.php +++ /dev/null @@ -1,81 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataformClient->queryWorkflowInvocationActions($request); - - /** @var WorkflowInvocationAction $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::workflowInvocationName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKFLOW_INVOCATION]' - ); - - query_workflow_invocation_actions_sample($formattedName); -} -// [END dataform_v1_generated_Dataform_QueryWorkflowInvocationActions_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/read_file.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/read_file.php deleted file mode 100644 index 6780bf4c0111..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/read_file.php +++ /dev/null @@ -1,80 +0,0 @@ -setWorkspace($formattedWorkspace) - ->setPath($path); - - // Call the API and handle any network failures. - try { - /** @var ReadFileResponse $response */ - $response = $dataformClient->readFile($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedWorkspace = DataformClient::workspaceName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKSPACE]' - ); - $path = '[PATH]'; - - read_file_sample($formattedWorkspace, $path); -} -// [END dataform_v1_generated_Dataform_ReadFile_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/read_repository_file.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/read_repository_file.php deleted file mode 100644 index a02a1ff02403..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/read_repository_file.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName) - ->setPath($path); - - // Call the API and handle any network failures. - try { - /** @var ReadRepositoryFileResponse $response */ - $response = $dataformClient->readRepositoryFile($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $path = '[PATH]'; - - read_repository_file_sample($formattedName, $path); -} -// [END dataform_v1_generated_Dataform_ReadRepositoryFile_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/remove_directory.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/remove_directory.php deleted file mode 100644 index bba00abc3a8b..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/remove_directory.php +++ /dev/null @@ -1,80 +0,0 @@ -setWorkspace($formattedWorkspace) - ->setPath($path); - - // Call the API and handle any network failures. - try { - /** @var RemoveDirectoryResponse $response */ - $response = $dataformClient->removeDirectory($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedWorkspace = DataformClient::workspaceName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKSPACE]' - ); - $path = '[PATH]'; - - remove_directory_sample($formattedWorkspace, $path); -} -// [END dataform_v1_generated_Dataform_RemoveDirectory_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/remove_file.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/remove_file.php deleted file mode 100644 index 54b8dd61ef07..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/remove_file.php +++ /dev/null @@ -1,80 +0,0 @@ -setWorkspace($formattedWorkspace) - ->setPath($path); - - // Call the API and handle any network failures. - try { - /** @var RemoveFileResponse $response */ - $response = $dataformClient->removeFile($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedWorkspace = DataformClient::workspaceName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKSPACE]' - ); - $path = '[PATH]'; - - remove_file_sample($formattedWorkspace, $path); -} -// [END dataform_v1_generated_Dataform_RemoveFile_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/reset_workspace_changes.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/reset_workspace_changes.php deleted file mode 100644 index e33d2a25a96e..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/reset_workspace_changes.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var ResetWorkspaceChangesResponse $response */ - $response = $dataformClient->resetWorkspaceChanges($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::workspaceName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKSPACE]' - ); - - reset_workspace_changes_sample($formattedName); -} -// [END dataform_v1_generated_Dataform_ResetWorkspaceChanges_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/search_files.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/search_files.php deleted file mode 100644 index 02b2e5323c54..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/search_files.php +++ /dev/null @@ -1,81 +0,0 @@ -setWorkspace($formattedWorkspace); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataformClient->searchFiles($request); - - /** @var SearchResult $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedWorkspace = DataformClient::workspaceName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKSPACE]' - ); - - search_files_sample($formattedWorkspace); -} -// [END dataform_v1_generated_Dataform_SearchFiles_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/set_iam_policy.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/set_iam_policy.php deleted file mode 100644 index d15fc259ddac..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/set_iam_policy.php +++ /dev/null @@ -1,76 +0,0 @@ -setResource($resource) - ->setPolicy($policy); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $dataformClient->setIamPolicy($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $resource = '[RESOURCE]'; - - set_iam_policy_sample($resource); -} -// [END dataform_v1_generated_Dataform_SetIamPolicy_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/test_iam_permissions.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/test_iam_permissions.php deleted file mode 100644 index 5a934e730ba9..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/test_iam_permissions.php +++ /dev/null @@ -1,84 +0,0 @@ -setResource($resource) - ->setPermissions($permissions); - - // Call the API and handle any network failures. - try { - /** @var TestIamPermissionsResponse $response */ - $response = $dataformClient->testIamPermissions($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $resource = '[RESOURCE]'; - $permissionsElement = '[PERMISSIONS]'; - - test_iam_permissions_sample($resource, $permissionsElement); -} -// [END dataform_v1_generated_Dataform_TestIamPermissions_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/update_config.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/update_config.php deleted file mode 100644 index 006deabe6bdf..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/update_config.php +++ /dev/null @@ -1,64 +0,0 @@ -setConfig($config); - - // Call the API and handle any network failures. - try { - /** @var Config $response */ - $response = $dataformClient->updateConfig($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END dataform_v1_generated_Dataform_UpdateConfig_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/update_release_config.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/update_release_config.php deleted file mode 100644 index 1c69de344a6b..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/update_release_config.php +++ /dev/null @@ -1,81 +0,0 @@ -setGitCommitish($releaseConfigGitCommitish); - $request = (new UpdateReleaseConfigRequest()) - ->setReleaseConfig($releaseConfig); - - // Call the API and handle any network failures. - try { - /** @var ReleaseConfig $response */ - $response = $dataformClient->updateReleaseConfig($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $releaseConfigGitCommitish = '[GIT_COMMITISH]'; - - update_release_config_sample($releaseConfigGitCommitish); -} -// [END dataform_v1_generated_Dataform_UpdateReleaseConfig_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/update_repository.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/update_repository.php deleted file mode 100644 index 68e6fa0df22d..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/update_repository.php +++ /dev/null @@ -1,64 +0,0 @@ -setRepository($repository); - - // Call the API and handle any network failures. - try { - /** @var Repository $response */ - $response = $dataformClient->updateRepository($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END dataform_v1_generated_Dataform_UpdateRepository_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/update_workflow_config.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/update_workflow_config.php deleted file mode 100644 index 3ac400f7a3f3..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/update_workflow_config.php +++ /dev/null @@ -1,85 +0,0 @@ -setReleaseConfig($formattedWorkflowConfigReleaseConfig); - $request = (new UpdateWorkflowConfigRequest()) - ->setWorkflowConfig($workflowConfig); - - // Call the API and handle any network failures. - try { - /** @var WorkflowConfig $response */ - $response = $dataformClient->updateWorkflowConfig($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedWorkflowConfigReleaseConfig = DataformClient::releaseConfigName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[RELEASE_CONFIG]' - ); - - update_workflow_config_sample($formattedWorkflowConfigReleaseConfig); -} -// [END dataform_v1_generated_Dataform_UpdateWorkflowConfig_sync] diff --git a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/write_file.php b/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/write_file.php deleted file mode 100644 index a0f1f1b95ccc..000000000000 --- a/owl-bot-staging/Dataform/v1/samples/V1/DataformClient/write_file.php +++ /dev/null @@ -1,82 +0,0 @@ -setWorkspace($formattedWorkspace) - ->setPath($path) - ->setContents($contents); - - // Call the API and handle any network failures. - try { - /** @var WriteFileResponse $response */ - $response = $dataformClient->writeFile($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedWorkspace = DataformClient::workspaceName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKSPACE]' - ); - $path = '[PATH]'; - $contents = '...'; - - write_file_sample($formattedWorkspace, $path, $contents); -} -// [END dataform_v1_generated_Dataform_WriteFile_sync] diff --git a/owl-bot-staging/Dataform/v1/src/V1/Client/DataformClient.php b/owl-bot-staging/Dataform/v1/src/V1/Client/DataformClient.php deleted file mode 100644 index c809c39a62b0..000000000000 --- a/owl-bot-staging/Dataform/v1/src/V1/Client/DataformClient.php +++ /dev/null @@ -1,2861 +0,0 @@ - cancelWorkflowInvocationAsync(CancelWorkflowInvocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface commitRepositoryChangesAsync(CommitRepositoryChangesRequest $request, array $optionalArgs = []) - * @method PromiseInterface commitWorkspaceChangesAsync(CommitWorkspaceChangesRequest $request, array $optionalArgs = []) - * @method PromiseInterface computeRepositoryAccessTokenStatusAsync(ComputeRepositoryAccessTokenStatusRequest $request, array $optionalArgs = []) - * @method PromiseInterface createCompilationResultAsync(CreateCompilationResultRequest $request, array $optionalArgs = []) - * @method PromiseInterface createFolderAsync(CreateFolderRequest $request, array $optionalArgs = []) - * @method PromiseInterface createReleaseConfigAsync(CreateReleaseConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface createRepositoryAsync(CreateRepositoryRequest $request, array $optionalArgs = []) - * @method PromiseInterface createTeamFolderAsync(CreateTeamFolderRequest $request, array $optionalArgs = []) - * @method PromiseInterface createWorkflowConfigAsync(CreateWorkflowConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface createWorkflowInvocationAsync(CreateWorkflowInvocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface createWorkspaceAsync(CreateWorkspaceRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteFolderAsync(DeleteFolderRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteFolderTreeAsync(DeleteFolderTreeRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteReleaseConfigAsync(DeleteReleaseConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteRepositoryAsync(DeleteRepositoryRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteTeamFolderAsync(DeleteTeamFolderRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteTeamFolderTreeAsync(DeleteTeamFolderTreeRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteWorkflowConfigAsync(DeleteWorkflowConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteWorkflowInvocationAsync(DeleteWorkflowInvocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteWorkspaceAsync(DeleteWorkspaceRequest $request, array $optionalArgs = []) - * @method PromiseInterface fetchFileDiffAsync(FetchFileDiffRequest $request, array $optionalArgs = []) - * @method PromiseInterface fetchFileGitStatusesAsync(FetchFileGitStatusesRequest $request, array $optionalArgs = []) - * @method PromiseInterface fetchGitAheadBehindAsync(FetchGitAheadBehindRequest $request, array $optionalArgs = []) - * @method PromiseInterface fetchRemoteBranchesAsync(FetchRemoteBranchesRequest $request, array $optionalArgs = []) - * @method PromiseInterface fetchRepositoryHistoryAsync(FetchRepositoryHistoryRequest $request, array $optionalArgs = []) - * @method PromiseInterface getCompilationResultAsync(GetCompilationResultRequest $request, array $optionalArgs = []) - * @method PromiseInterface getConfigAsync(GetConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface getFolderAsync(GetFolderRequest $request, array $optionalArgs = []) - * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface getReleaseConfigAsync(GetReleaseConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface getRepositoryAsync(GetRepositoryRequest $request, array $optionalArgs = []) - * @method PromiseInterface getTeamFolderAsync(GetTeamFolderRequest $request, array $optionalArgs = []) - * @method PromiseInterface getWorkflowConfigAsync(GetWorkflowConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface getWorkflowInvocationAsync(GetWorkflowInvocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface getWorkspaceAsync(GetWorkspaceRequest $request, array $optionalArgs = []) - * @method PromiseInterface installNpmPackagesAsync(InstallNpmPackagesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listCompilationResultsAsync(ListCompilationResultsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listReleaseConfigsAsync(ListReleaseConfigsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listRepositoriesAsync(ListRepositoriesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listWorkflowConfigsAsync(ListWorkflowConfigsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listWorkflowInvocationsAsync(ListWorkflowInvocationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listWorkspacesAsync(ListWorkspacesRequest $request, array $optionalArgs = []) - * @method PromiseInterface makeDirectoryAsync(MakeDirectoryRequest $request, array $optionalArgs = []) - * @method PromiseInterface moveDirectoryAsync(MoveDirectoryRequest $request, array $optionalArgs = []) - * @method PromiseInterface moveFileAsync(MoveFileRequest $request, array $optionalArgs = []) - * @method PromiseInterface moveFolderAsync(MoveFolderRequest $request, array $optionalArgs = []) - * @method PromiseInterface moveRepositoryAsync(MoveRepositoryRequest $request, array $optionalArgs = []) - * @method PromiseInterface pullGitCommitsAsync(PullGitCommitsRequest $request, array $optionalArgs = []) - * @method PromiseInterface pushGitCommitsAsync(PushGitCommitsRequest $request, array $optionalArgs = []) - * @method PromiseInterface queryCompilationResultActionsAsync(QueryCompilationResultActionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface queryDirectoryContentsAsync(QueryDirectoryContentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface queryFolderContentsAsync(QueryFolderContentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface queryRepositoryDirectoryContentsAsync(QueryRepositoryDirectoryContentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface queryTeamFolderContentsAsync(QueryTeamFolderContentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface queryUserRootContentsAsync(QueryUserRootContentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface queryWorkflowInvocationActionsAsync(QueryWorkflowInvocationActionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface readFileAsync(ReadFileRequest $request, array $optionalArgs = []) - * @method PromiseInterface readRepositoryFileAsync(ReadRepositoryFileRequest $request, array $optionalArgs = []) - * @method PromiseInterface removeDirectoryAsync(RemoveDirectoryRequest $request, array $optionalArgs = []) - * @method PromiseInterface removeFileAsync(RemoveFileRequest $request, array $optionalArgs = []) - * @method PromiseInterface resetWorkspaceChangesAsync(ResetWorkspaceChangesRequest $request, array $optionalArgs = []) - * @method PromiseInterface searchFilesAsync(SearchFilesRequest $request, array $optionalArgs = []) - * @method PromiseInterface searchTeamFoldersAsync(SearchTeamFoldersRequest $request, array $optionalArgs = []) - * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateConfigAsync(UpdateConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateFolderAsync(UpdateFolderRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateReleaseConfigAsync(UpdateReleaseConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateRepositoryAsync(UpdateRepositoryRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateTeamFolderAsync(UpdateTeamFolderRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateWorkflowConfigAsync(UpdateWorkflowConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface writeFileAsync(WriteFileRequest $request, array $optionalArgs = []) - * @method PromiseInterface cancelOperationAsync(CancelOperationRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteOperationAsync(DeleteOperationRequest $request, array $optionalArgs = []) - * @method PromiseInterface getOperationAsync(GetOperationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listOperationsAsync(ListOperationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - */ -final class DataformClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.dataform.v1.Dataform'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'dataform.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'dataform.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/bigquery', - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/dataform_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/dataform_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/dataform_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/dataform_rest_client_config.php', - ], - ], - ]; - } - - /** - * Return an OperationsClient object with the same endpoint as $this. - * - * @return OperationsClient - */ - public function getOperationsClient() - { - return $this->operationsClient; - } - - /** - * Resume an existing long running operation that was previously started by a long - * running API method. If $methodName is not provided, or does not match a long - * running API method, then the operation can still be resumed, but the - * OperationResponse object will not deserialize the final response. - * - * @param string $operationName The name of the long running operation - * @param string $methodName The name of the method used to start the operation - * - * @return OperationResponse - */ - public function resumeOperation($operationName, $methodName = null) - { - $options = $this->descriptors[$methodName]['longRunning'] ?? []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * compilation_result resource. - * - * @param string $project - * @param string $location - * @param string $repository - * @param string $compilationResult - * - * @return string The formatted compilation_result resource. - */ - public static function compilationResultName(string $project, string $location, string $repository, string $compilationResult): string - { - return self::getPathTemplate('compilationResult')->render([ - 'project' => $project, - 'location' => $location, - 'repository' => $repository, - 'compilation_result' => $compilationResult, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a config - * resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted config resource. - */ - public static function configName(string $project, string $location): string - { - return self::getPathTemplate('config')->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a crypto_key - * resource. - * - * @param string $project - * @param string $location - * @param string $keyRing - * @param string $cryptoKey - * - * @return string The formatted crypto_key resource. - */ - public static function cryptoKeyName(string $project, string $location, string $keyRing, string $cryptoKey): string - { - return self::getPathTemplate('cryptoKey')->render([ - 'project' => $project, - 'location' => $location, - 'key_ring' => $keyRing, - 'crypto_key' => $cryptoKey, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * crypto_key_version resource. - * - * @param string $project - * @param string $location - * @param string $keyRing - * @param string $cryptoKey - * @param string $cryptoKeyVersion - * - * @return string The formatted crypto_key_version resource. - */ - public static function cryptoKeyVersionName(string $project, string $location, string $keyRing, string $cryptoKey, string $cryptoKeyVersion): string - { - return self::getPathTemplate('cryptoKeyVersion')->render([ - 'project' => $project, - 'location' => $location, - 'key_ring' => $keyRing, - 'crypto_key' => $cryptoKey, - 'crypto_key_version' => $cryptoKeyVersion, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a folder - * resource. - * - * @param string $project - * @param string $location - * @param string $folder - * - * @return string The formatted folder resource. - */ - public static function folderName(string $project, string $location, string $folder): string - { - return self::getPathTemplate('folder')->render([ - 'project' => $project, - 'location' => $location, - 'folder' => $folder, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a location - * resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted location resource. - */ - public static function locationName(string $project, string $location): string - { - return self::getPathTemplate('location')->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * notebook_runtime_template resource. - * - * @param string $project - * @param string $location - * @param string $notebookRuntimeTemplate - * - * @return string The formatted notebook_runtime_template resource. - */ - public static function notebookRuntimeTemplateName(string $project, string $location, string $notebookRuntimeTemplate): string - { - return self::getPathTemplate('notebookRuntimeTemplate')->render([ - 'project' => $project, - 'location' => $location, - 'notebook_runtime_template' => $notebookRuntimeTemplate, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * release_config resource. - * - * @param string $project - * @param string $location - * @param string $repository - * @param string $releaseConfig - * - * @return string The formatted release_config resource. - */ - public static function releaseConfigName(string $project, string $location, string $repository, string $releaseConfig): string - { - return self::getPathTemplate('releaseConfig')->render([ - 'project' => $project, - 'location' => $location, - 'repository' => $repository, - 'release_config' => $releaseConfig, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a repository - * resource. - * - * @param string $project - * @param string $location - * @param string $repository - * - * @return string The formatted repository resource. - */ - public static function repositoryName(string $project, string $location, string $repository): string - { - return self::getPathTemplate('repository')->render([ - 'project' => $project, - 'location' => $location, - 'repository' => $repository, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * secret_version resource. - * - * @param string $project - * @param string $secret - * @param string $version - * - * @return string The formatted secret_version resource. - */ - public static function secretVersionName(string $project, string $secret, string $version): string - { - return self::getPathTemplate('secretVersion')->render([ - 'project' => $project, - 'secret' => $secret, - 'version' => $version, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a team_folder - * resource. - * - * @param string $project - * @param string $location - * @param string $teamFolder - * - * @return string The formatted team_folder resource. - */ - public static function teamFolderName(string $project, string $location, string $teamFolder): string - { - return self::getPathTemplate('teamFolder')->render([ - 'project' => $project, - 'location' => $location, - 'team_folder' => $teamFolder, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * workflow_config resource. - * - * @param string $project - * @param string $location - * @param string $repository - * @param string $workflowConfig - * - * @return string The formatted workflow_config resource. - */ - public static function workflowConfigName(string $project, string $location, string $repository, string $workflowConfig): string - { - return self::getPathTemplate('workflowConfig')->render([ - 'project' => $project, - 'location' => $location, - 'repository' => $repository, - 'workflow_config' => $workflowConfig, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * workflow_invocation resource. - * - * @param string $project - * @param string $location - * @param string $repository - * @param string $workflowInvocation - * - * @return string The formatted workflow_invocation resource. - */ - public static function workflowInvocationName(string $project, string $location, string $repository, string $workflowInvocation): string - { - return self::getPathTemplate('workflowInvocation')->render([ - 'project' => $project, - 'location' => $location, - 'repository' => $repository, - 'workflow_invocation' => $workflowInvocation, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a workspace - * resource. - * - * @param string $project - * @param string $location - * @param string $repository - * @param string $workspace - * - * @return string The formatted workspace resource. - */ - public static function workspaceName(string $project, string $location, string $repository, string $workspace): string - { - return self::getPathTemplate('workspace')->render([ - 'project' => $project, - 'location' => $location, - 'repository' => $repository, - 'workspace' => $workspace, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - compilationResult: projects/{project}/locations/{location}/repositories/{repository}/compilationResults/{compilation_result} - * - config: projects/{project}/locations/{location}/config - * - cryptoKey: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key} - * - cryptoKeyVersion: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version} - * - folder: projects/{project}/locations/{location}/folders/{folder} - * - location: projects/{project}/locations/{location} - * - notebookRuntimeTemplate: projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template} - * - releaseConfig: projects/{project}/locations/{location}/repositories/{repository}/releaseConfigs/{release_config} - * - repository: projects/{project}/locations/{location}/repositories/{repository} - * - secretVersion: projects/{project}/secrets/{secret}/versions/{version} - * - teamFolder: projects/{project}/locations/{location}/teamFolders/{team_folder} - * - workflowConfig: projects/{project}/locations/{location}/repositories/{repository}/workflowConfigs/{workflow_config} - * - workflowInvocation: projects/{project}/locations/{location}/repositories/{repository}/workflowInvocations/{workflow_invocation} - * - workspace: projects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'dataform.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Cloud\Dataform\V1\DataformClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new DataformClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Requests cancellation of a running WorkflowInvocation. - * - * The async variant is {@see DataformClient::cancelWorkflowInvocationAsync()} . - * - * @example samples/V1/DataformClient/cancel_workflow_invocation.php - * - * @param CancelWorkflowInvocationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CancelWorkflowInvocationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function cancelWorkflowInvocation(CancelWorkflowInvocationRequest $request, array $callOptions = []): CancelWorkflowInvocationResponse - { - return $this->startApiCall('CancelWorkflowInvocation', $request, $callOptions)->wait(); - } - - /** - * Applies a Git commit to a Repository. The Repository must not have a value - * for `git_remote_settings.url`. - * - * The async variant is {@see DataformClient::commitRepositoryChangesAsync()} . - * - * @example samples/V1/DataformClient/commit_repository_changes.php - * - * @param CommitRepositoryChangesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CommitRepositoryChangesResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function commitRepositoryChanges(CommitRepositoryChangesRequest $request, array $callOptions = []): CommitRepositoryChangesResponse - { - return $this->startApiCall('CommitRepositoryChanges', $request, $callOptions)->wait(); - } - - /** - * Applies a Git commit for uncommitted files in a Workspace. - * - * The async variant is {@see DataformClient::commitWorkspaceChangesAsync()} . - * - * @example samples/V1/DataformClient/commit_workspace_changes.php - * - * @param CommitWorkspaceChangesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CommitWorkspaceChangesResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function commitWorkspaceChanges(CommitWorkspaceChangesRequest $request, array $callOptions = []): CommitWorkspaceChangesResponse - { - return $this->startApiCall('CommitWorkspaceChanges', $request, $callOptions)->wait(); - } - - /** - * Computes a Repository's Git access token status. - * - * The async variant is - * {@see DataformClient::computeRepositoryAccessTokenStatusAsync()} . - * - * @example samples/V1/DataformClient/compute_repository_access_token_status.php - * - * @param ComputeRepositoryAccessTokenStatusRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ComputeRepositoryAccessTokenStatusResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function computeRepositoryAccessTokenStatus(ComputeRepositoryAccessTokenStatusRequest $request, array $callOptions = []): ComputeRepositoryAccessTokenStatusResponse - { - return $this->startApiCall('ComputeRepositoryAccessTokenStatus', $request, $callOptions)->wait(); - } - - /** - * Creates a new CompilationResult in a given project and location. - * - * The async variant is {@see DataformClient::createCompilationResultAsync()} . - * - * @example samples/V1/DataformClient/create_compilation_result.php - * - * @param CreateCompilationResultRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CompilationResult - * - * @throws ApiException Thrown if the API call fails. - */ - public function createCompilationResult(CreateCompilationResultRequest $request, array $callOptions = []): CompilationResult - { - return $this->startApiCall('CreateCompilationResult', $request, $callOptions)->wait(); - } - - /** - * Creates a new Folder in a given project and location. - * - * The async variant is {@see DataformClient::createFolderAsync()} . - * - * @example samples/V1/DataformClient/create_folder.php - * - * @param CreateFolderRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Folder - * - * @throws ApiException Thrown if the API call fails. - */ - public function createFolder(CreateFolderRequest $request, array $callOptions = []): Folder - { - return $this->startApiCall('CreateFolder', $request, $callOptions)->wait(); - } - - /** - * Creates a new ReleaseConfig in a given Repository. - * - * The async variant is {@see DataformClient::createReleaseConfigAsync()} . - * - * @example samples/V1/DataformClient/create_release_config.php - * - * @param CreateReleaseConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ReleaseConfig - * - * @throws ApiException Thrown if the API call fails. - */ - public function createReleaseConfig(CreateReleaseConfigRequest $request, array $callOptions = []): ReleaseConfig - { - return $this->startApiCall('CreateReleaseConfig', $request, $callOptions)->wait(); - } - - /** - * Creates a new Repository in a given project and location. - * - * The async variant is {@see DataformClient::createRepositoryAsync()} . - * - * @example samples/V1/DataformClient/create_repository.php - * - * @param CreateRepositoryRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Repository - * - * @throws ApiException Thrown if the API call fails. - */ - public function createRepository(CreateRepositoryRequest $request, array $callOptions = []): Repository - { - return $this->startApiCall('CreateRepository', $request, $callOptions)->wait(); - } - - /** - * Creates a new TeamFolder in a given project and location. - * - * The async variant is {@see DataformClient::createTeamFolderAsync()} . - * - * @example samples/V1/DataformClient/create_team_folder.php - * - * @param CreateTeamFolderRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return TeamFolder - * - * @throws ApiException Thrown if the API call fails. - */ - public function createTeamFolder(CreateTeamFolderRequest $request, array $callOptions = []): TeamFolder - { - return $this->startApiCall('CreateTeamFolder', $request, $callOptions)->wait(); - } - - /** - * Creates a new WorkflowConfig in a given Repository. - * - * The async variant is {@see DataformClient::createWorkflowConfigAsync()} . - * - * @example samples/V1/DataformClient/create_workflow_config.php - * - * @param CreateWorkflowConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return WorkflowConfig - * - * @throws ApiException Thrown if the API call fails. - */ - public function createWorkflowConfig(CreateWorkflowConfigRequest $request, array $callOptions = []): WorkflowConfig - { - return $this->startApiCall('CreateWorkflowConfig', $request, $callOptions)->wait(); - } - - /** - * Creates a new WorkflowInvocation in a given Repository. - * - * The async variant is {@see DataformClient::createWorkflowInvocationAsync()} . - * - * @example samples/V1/DataformClient/create_workflow_invocation.php - * - * @param CreateWorkflowInvocationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return WorkflowInvocation - * - * @throws ApiException Thrown if the API call fails. - */ - public function createWorkflowInvocation(CreateWorkflowInvocationRequest $request, array $callOptions = []): WorkflowInvocation - { - return $this->startApiCall('CreateWorkflowInvocation', $request, $callOptions)->wait(); - } - - /** - * Creates a new Workspace in a given Repository. - * - * The async variant is {@see DataformClient::createWorkspaceAsync()} . - * - * @example samples/V1/DataformClient/create_workspace.php - * - * @param CreateWorkspaceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Workspace - * - * @throws ApiException Thrown if the API call fails. - */ - public function createWorkspace(CreateWorkspaceRequest $request, array $callOptions = []): Workspace - { - return $this->startApiCall('CreateWorkspace', $request, $callOptions)->wait(); - } - - /** - * Deletes a single Folder. - * - * The async variant is {@see DataformClient::deleteFolderAsync()} . - * - * @example samples/V1/DataformClient/delete_folder.php - * - * @param DeleteFolderRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteFolder(DeleteFolderRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteFolder', $request, $callOptions)->wait(); - } - - /** - * Deletes a Folder with its contents (Folders, Repositories, Workspaces, - * ReleaseConfigs, and WorkflowConfigs). - * - * The async variant is {@see DataformClient::deleteFolderTreeAsync()} . - * - * @example samples/V1/DataformClient/delete_folder_tree.php - * - * @param DeleteFolderTreeRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteFolderTree(DeleteFolderTreeRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteFolderTree', $request, $callOptions)->wait(); - } - - /** - * Deletes a single ReleaseConfig. - * - * The async variant is {@see DataformClient::deleteReleaseConfigAsync()} . - * - * @example samples/V1/DataformClient/delete_release_config.php - * - * @param DeleteReleaseConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteReleaseConfig(DeleteReleaseConfigRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteReleaseConfig', $request, $callOptions)->wait(); - } - - /** - * Deletes a single Repository. - * - * The async variant is {@see DataformClient::deleteRepositoryAsync()} . - * - * @example samples/V1/DataformClient/delete_repository.php - * - * @param DeleteRepositoryRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteRepository(DeleteRepositoryRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteRepository', $request, $callOptions)->wait(); - } - - /** - * Deletes a single TeamFolder. - * - * The async variant is {@see DataformClient::deleteTeamFolderAsync()} . - * - * @example samples/V1/DataformClient/delete_team_folder.php - * - * @param DeleteTeamFolderRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteTeamFolder(DeleteTeamFolderRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteTeamFolder', $request, $callOptions)->wait(); - } - - /** - * Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces, - * ReleaseConfigs, and WorkflowConfigs). - * - * The async variant is {@see DataformClient::deleteTeamFolderTreeAsync()} . - * - * @example samples/V1/DataformClient/delete_team_folder_tree.php - * - * @param DeleteTeamFolderTreeRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteTeamFolderTree(DeleteTeamFolderTreeRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteTeamFolderTree', $request, $callOptions)->wait(); - } - - /** - * Deletes a single WorkflowConfig. - * - * The async variant is {@see DataformClient::deleteWorkflowConfigAsync()} . - * - * @example samples/V1/DataformClient/delete_workflow_config.php - * - * @param DeleteWorkflowConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteWorkflowConfig(DeleteWorkflowConfigRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteWorkflowConfig', $request, $callOptions)->wait(); - } - - /** - * Deletes a single WorkflowInvocation. - * - * The async variant is {@see DataformClient::deleteWorkflowInvocationAsync()} . - * - * @example samples/V1/DataformClient/delete_workflow_invocation.php - * - * @param DeleteWorkflowInvocationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteWorkflowInvocation(DeleteWorkflowInvocationRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteWorkflowInvocation', $request, $callOptions)->wait(); - } - - /** - * Deletes a single Workspace. - * - * The async variant is {@see DataformClient::deleteWorkspaceAsync()} . - * - * @example samples/V1/DataformClient/delete_workspace.php - * - * @param DeleteWorkspaceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteWorkspace(DeleteWorkspaceRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteWorkspace', $request, $callOptions)->wait(); - } - - /** - * Fetches Git diff for an uncommitted file in a Workspace. - * - * The async variant is {@see DataformClient::fetchFileDiffAsync()} . - * - * @example samples/V1/DataformClient/fetch_file_diff.php - * - * @param FetchFileDiffRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return FetchFileDiffResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function fetchFileDiff(FetchFileDiffRequest $request, array $callOptions = []): FetchFileDiffResponse - { - return $this->startApiCall('FetchFileDiff', $request, $callOptions)->wait(); - } - - /** - * Fetches Git statuses for the files in a Workspace. - * - * The async variant is {@see DataformClient::fetchFileGitStatusesAsync()} . - * - * @example samples/V1/DataformClient/fetch_file_git_statuses.php - * - * @param FetchFileGitStatusesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return FetchFileGitStatusesResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function fetchFileGitStatuses(FetchFileGitStatusesRequest $request, array $callOptions = []): FetchFileGitStatusesResponse - { - return $this->startApiCall('FetchFileGitStatuses', $request, $callOptions)->wait(); - } - - /** - * Fetches Git ahead/behind against a remote branch. - * - * The async variant is {@see DataformClient::fetchGitAheadBehindAsync()} . - * - * @example samples/V1/DataformClient/fetch_git_ahead_behind.php - * - * @param FetchGitAheadBehindRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return FetchGitAheadBehindResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function fetchGitAheadBehind(FetchGitAheadBehindRequest $request, array $callOptions = []): FetchGitAheadBehindResponse - { - return $this->startApiCall('FetchGitAheadBehind', $request, $callOptions)->wait(); - } - - /** - * Fetches a Repository's remote branches. - * - * The async variant is {@see DataformClient::fetchRemoteBranchesAsync()} . - * - * @example samples/V1/DataformClient/fetch_remote_branches.php - * - * @param FetchRemoteBranchesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return FetchRemoteBranchesResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function fetchRemoteBranches(FetchRemoteBranchesRequest $request, array $callOptions = []): FetchRemoteBranchesResponse - { - return $this->startApiCall('FetchRemoteBranches', $request, $callOptions)->wait(); - } - - /** - * Fetches a Repository's history of commits. The Repository must not have a - * value for `git_remote_settings.url`. - * - * The async variant is {@see DataformClient::fetchRepositoryHistoryAsync()} . - * - * @example samples/V1/DataformClient/fetch_repository_history.php - * - * @param FetchRepositoryHistoryRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function fetchRepositoryHistory(FetchRepositoryHistoryRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('FetchRepositoryHistory', $request, $callOptions); - } - - /** - * Fetches a single CompilationResult. - * - * The async variant is {@see DataformClient::getCompilationResultAsync()} . - * - * @example samples/V1/DataformClient/get_compilation_result.php - * - * @param GetCompilationResultRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CompilationResult - * - * @throws ApiException Thrown if the API call fails. - */ - public function getCompilationResult(GetCompilationResultRequest $request, array $callOptions = []): CompilationResult - { - return $this->startApiCall('GetCompilationResult', $request, $callOptions)->wait(); - } - - /** - * Get default config for a given project and location. - * - * The async variant is {@see DataformClient::getConfigAsync()} . - * - * @example samples/V1/DataformClient/get_config.php - * - * @param GetConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Config - * - * @throws ApiException Thrown if the API call fails. - */ - public function getConfig(GetConfigRequest $request, array $callOptions = []): Config - { - return $this->startApiCall('GetConfig', $request, $callOptions)->wait(); - } - - /** - * Fetches a single Folder. - * - * The async variant is {@see DataformClient::getFolderAsync()} . - * - * @example samples/V1/DataformClient/get_folder.php - * - * @param GetFolderRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Folder - * - * @throws ApiException Thrown if the API call fails. - */ - public function getFolder(GetFolderRequest $request, array $callOptions = []): Folder - { - return $this->startApiCall('GetFolder', $request, $callOptions)->wait(); - } - - /** - * Gets the access control policy for a resource. - * Returns an empty policy if the resource exists and does not have a policy - * set. - * - * The async variant is {@see DataformClient::getIamPolicyAsync()} . - * - * @example samples/V1/DataformClient/get_iam_policy.php - * - * @param GetIamPolicyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Policy - * - * @throws ApiException Thrown if the API call fails. - */ - public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Fetches a single ReleaseConfig. - * - * The async variant is {@see DataformClient::getReleaseConfigAsync()} . - * - * @example samples/V1/DataformClient/get_release_config.php - * - * @param GetReleaseConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ReleaseConfig - * - * @throws ApiException Thrown if the API call fails. - */ - public function getReleaseConfig(GetReleaseConfigRequest $request, array $callOptions = []): ReleaseConfig - { - return $this->startApiCall('GetReleaseConfig', $request, $callOptions)->wait(); - } - - /** - * Fetches a single Repository. - * - * The async variant is {@see DataformClient::getRepositoryAsync()} . - * - * @example samples/V1/DataformClient/get_repository.php - * - * @param GetRepositoryRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Repository - * - * @throws ApiException Thrown if the API call fails. - */ - public function getRepository(GetRepositoryRequest $request, array $callOptions = []): Repository - { - return $this->startApiCall('GetRepository', $request, $callOptions)->wait(); - } - - /** - * Fetches a single TeamFolder. - * - * The async variant is {@see DataformClient::getTeamFolderAsync()} . - * - * @example samples/V1/DataformClient/get_team_folder.php - * - * @param GetTeamFolderRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return TeamFolder - * - * @throws ApiException Thrown if the API call fails. - */ - public function getTeamFolder(GetTeamFolderRequest $request, array $callOptions = []): TeamFolder - { - return $this->startApiCall('GetTeamFolder', $request, $callOptions)->wait(); - } - - /** - * Fetches a single WorkflowConfig. - * - * The async variant is {@see DataformClient::getWorkflowConfigAsync()} . - * - * @example samples/V1/DataformClient/get_workflow_config.php - * - * @param GetWorkflowConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return WorkflowConfig - * - * @throws ApiException Thrown if the API call fails. - */ - public function getWorkflowConfig(GetWorkflowConfigRequest $request, array $callOptions = []): WorkflowConfig - { - return $this->startApiCall('GetWorkflowConfig', $request, $callOptions)->wait(); - } - - /** - * Fetches a single WorkflowInvocation. - * - * The async variant is {@see DataformClient::getWorkflowInvocationAsync()} . - * - * @example samples/V1/DataformClient/get_workflow_invocation.php - * - * @param GetWorkflowInvocationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return WorkflowInvocation - * - * @throws ApiException Thrown if the API call fails. - */ - public function getWorkflowInvocation(GetWorkflowInvocationRequest $request, array $callOptions = []): WorkflowInvocation - { - return $this->startApiCall('GetWorkflowInvocation', $request, $callOptions)->wait(); - } - - /** - * Fetches a single Workspace. - * - * The async variant is {@see DataformClient::getWorkspaceAsync()} . - * - * @example samples/V1/DataformClient/get_workspace.php - * - * @param GetWorkspaceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Workspace - * - * @throws ApiException Thrown if the API call fails. - */ - public function getWorkspace(GetWorkspaceRequest $request, array $callOptions = []): Workspace - { - return $this->startApiCall('GetWorkspace', $request, $callOptions)->wait(); - } - - /** - * Installs dependency NPM packages (inside a Workspace). - * - * The async variant is {@see DataformClient::installNpmPackagesAsync()} . - * - * @example samples/V1/DataformClient/install_npm_packages.php - * - * @param InstallNpmPackagesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return InstallNpmPackagesResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function installNpmPackages(InstallNpmPackagesRequest $request, array $callOptions = []): InstallNpmPackagesResponse - { - return $this->startApiCall('InstallNpmPackages', $request, $callOptions)->wait(); - } - - /** - * Lists CompilationResults in a given Repository. - * - * The async variant is {@see DataformClient::listCompilationResultsAsync()} . - * - * @example samples/V1/DataformClient/list_compilation_results.php - * - * @param ListCompilationResultsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listCompilationResults(ListCompilationResultsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListCompilationResults', $request, $callOptions); - } - - /** - * Lists ReleaseConfigs in a given Repository. - * - * The async variant is {@see DataformClient::listReleaseConfigsAsync()} . - * - * @example samples/V1/DataformClient/list_release_configs.php - * - * @param ListReleaseConfigsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listReleaseConfigs(ListReleaseConfigsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListReleaseConfigs', $request, $callOptions); - } - - /** - * 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)*. - * - * The async variant is {@see DataformClient::listRepositoriesAsync()} . - * - * @example samples/V1/DataformClient/list_repositories.php - * - * @param ListRepositoriesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listRepositories(ListRepositoriesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListRepositories', $request, $callOptions); - } - - /** - * Lists WorkflowConfigs in a given Repository. - * - * The async variant is {@see DataformClient::listWorkflowConfigsAsync()} . - * - * @example samples/V1/DataformClient/list_workflow_configs.php - * - * @param ListWorkflowConfigsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listWorkflowConfigs(ListWorkflowConfigsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListWorkflowConfigs', $request, $callOptions); - } - - /** - * Lists WorkflowInvocations in a given Repository. - * - * The async variant is {@see DataformClient::listWorkflowInvocationsAsync()} . - * - * @example samples/V1/DataformClient/list_workflow_invocations.php - * - * @param ListWorkflowInvocationsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listWorkflowInvocations(ListWorkflowInvocationsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListWorkflowInvocations', $request, $callOptions); - } - - /** - * Lists Workspaces in a given Repository. - * - * The async variant is {@see DataformClient::listWorkspacesAsync()} . - * - * @example samples/V1/DataformClient/list_workspaces.php - * - * @param ListWorkspacesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listWorkspaces(ListWorkspacesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListWorkspaces', $request, $callOptions); - } - - /** - * Creates a directory inside a Workspace. - * - * The async variant is {@see DataformClient::makeDirectoryAsync()} . - * - * @example samples/V1/DataformClient/make_directory.php - * - * @param MakeDirectoryRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return MakeDirectoryResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function makeDirectory(MakeDirectoryRequest $request, array $callOptions = []): MakeDirectoryResponse - { - return $this->startApiCall('MakeDirectory', $request, $callOptions)->wait(); - } - - /** - * Moves a directory (inside a Workspace), and all of its contents, to a new - * location. - * - * The async variant is {@see DataformClient::moveDirectoryAsync()} . - * - * @example samples/V1/DataformClient/move_directory.php - * - * @param MoveDirectoryRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return MoveDirectoryResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function moveDirectory(MoveDirectoryRequest $request, array $callOptions = []): MoveDirectoryResponse - { - return $this->startApiCall('MoveDirectory', $request, $callOptions)->wait(); - } - - /** - * Moves a file (inside a Workspace) to a new location. - * - * The async variant is {@see DataformClient::moveFileAsync()} . - * - * @example samples/V1/DataformClient/move_file.php - * - * @param MoveFileRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return MoveFileResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function moveFile(MoveFileRequest $request, array $callOptions = []): MoveFileResponse - { - return $this->startApiCall('MoveFile', $request, $callOptions)->wait(); - } - - /** - * Moves a Folder to a new Folder, TeamFolder, or the root location. - * - * The async variant is {@see DataformClient::moveFolderAsync()} . - * - * @example samples/V1/DataformClient/move_folder.php - * - * @param MoveFolderRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function moveFolder(MoveFolderRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('MoveFolder', $request, $callOptions)->wait(); - } - - /** - * Moves a Repository to a new location. - * - * The async variant is {@see DataformClient::moveRepositoryAsync()} . - * - * @example samples/V1/DataformClient/move_repository.php - * - * @param MoveRepositoryRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function moveRepository(MoveRepositoryRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('MoveRepository', $request, $callOptions)->wait(); - } - - /** - * Pulls Git commits from the Repository's remote into a Workspace. - * - * The async variant is {@see DataformClient::pullGitCommitsAsync()} . - * - * @example samples/V1/DataformClient/pull_git_commits.php - * - * @param PullGitCommitsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PullGitCommitsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function pullGitCommits(PullGitCommitsRequest $request, array $callOptions = []): PullGitCommitsResponse - { - return $this->startApiCall('PullGitCommits', $request, $callOptions)->wait(); - } - - /** - * Pushes Git commits from a Workspace to the Repository's remote. - * - * The async variant is {@see DataformClient::pushGitCommitsAsync()} . - * - * @example samples/V1/DataformClient/push_git_commits.php - * - * @param PushGitCommitsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PushGitCommitsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function pushGitCommits(PushGitCommitsRequest $request, array $callOptions = []): PushGitCommitsResponse - { - return $this->startApiCall('PushGitCommits', $request, $callOptions)->wait(); - } - - /** - * Returns CompilationResultActions in a given CompilationResult. - * - * The async variant is {@see DataformClient::queryCompilationResultActionsAsync()} - * . - * - * @example samples/V1/DataformClient/query_compilation_result_actions.php - * - * @param QueryCompilationResultActionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function queryCompilationResultActions(QueryCompilationResultActionsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('QueryCompilationResultActions', $request, $callOptions); - } - - /** - * Returns the contents of a given Workspace directory. - * - * The async variant is {@see DataformClient::queryDirectoryContentsAsync()} . - * - * @example samples/V1/DataformClient/query_directory_contents.php - * - * @param QueryDirectoryContentsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function queryDirectoryContents(QueryDirectoryContentsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('QueryDirectoryContents', $request, $callOptions); - } - - /** - * Returns the contents of a given Folder. - * - * The async variant is {@see DataformClient::queryFolderContentsAsync()} . - * - * @example samples/V1/DataformClient/query_folder_contents.php - * - * @param QueryFolderContentsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function queryFolderContents(QueryFolderContentsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('QueryFolderContents', $request, $callOptions); - } - - /** - * Returns the contents of a given Repository directory. The Repository must - * not have a value for `git_remote_settings.url`. - * - * The async variant is - * {@see DataformClient::queryRepositoryDirectoryContentsAsync()} . - * - * @example samples/V1/DataformClient/query_repository_directory_contents.php - * - * @param QueryRepositoryDirectoryContentsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function queryRepositoryDirectoryContents(QueryRepositoryDirectoryContentsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('QueryRepositoryDirectoryContents', $request, $callOptions); - } - - /** - * Returns the contents of a given TeamFolder. - * - * The async variant is {@see DataformClient::queryTeamFolderContentsAsync()} . - * - * @example samples/V1/DataformClient/query_team_folder_contents.php - * - * @param QueryTeamFolderContentsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function queryTeamFolderContents(QueryTeamFolderContentsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('QueryTeamFolderContents', $request, $callOptions); - } - - /** - * 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. - * - * The async variant is {@see DataformClient::queryUserRootContentsAsync()} . - * - * @example samples/V1/DataformClient/query_user_root_contents.php - * - * @param QueryUserRootContentsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function queryUserRootContents(QueryUserRootContentsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('QueryUserRootContents', $request, $callOptions); - } - - /** - * Returns WorkflowInvocationActions in a given WorkflowInvocation. - * - * The async variant is - * {@see DataformClient::queryWorkflowInvocationActionsAsync()} . - * - * @example samples/V1/DataformClient/query_workflow_invocation_actions.php - * - * @param QueryWorkflowInvocationActionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function queryWorkflowInvocationActions(QueryWorkflowInvocationActionsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('QueryWorkflowInvocationActions', $request, $callOptions); - } - - /** - * Returns the contents of a file (inside a Workspace). - * - * The async variant is {@see DataformClient::readFileAsync()} . - * - * @example samples/V1/DataformClient/read_file.php - * - * @param ReadFileRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ReadFileResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function readFile(ReadFileRequest $request, array $callOptions = []): ReadFileResponse - { - return $this->startApiCall('ReadFile', $request, $callOptions)->wait(); - } - - /** - * Returns the contents of a file (inside a Repository). The Repository - * must not have a value for `git_remote_settings.url`. - * - * The async variant is {@see DataformClient::readRepositoryFileAsync()} . - * - * @example samples/V1/DataformClient/read_repository_file.php - * - * @param ReadRepositoryFileRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ReadRepositoryFileResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function readRepositoryFile(ReadRepositoryFileRequest $request, array $callOptions = []): ReadRepositoryFileResponse - { - return $this->startApiCall('ReadRepositoryFile', $request, $callOptions)->wait(); - } - - /** - * Deletes a directory (inside a Workspace) and all of its contents. - * - * The async variant is {@see DataformClient::removeDirectoryAsync()} . - * - * @example samples/V1/DataformClient/remove_directory.php - * - * @param RemoveDirectoryRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return RemoveDirectoryResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function removeDirectory(RemoveDirectoryRequest $request, array $callOptions = []): RemoveDirectoryResponse - { - return $this->startApiCall('RemoveDirectory', $request, $callOptions)->wait(); - } - - /** - * Deletes a file (inside a Workspace). - * - * The async variant is {@see DataformClient::removeFileAsync()} . - * - * @example samples/V1/DataformClient/remove_file.php - * - * @param RemoveFileRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return RemoveFileResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function removeFile(RemoveFileRequest $request, array $callOptions = []): RemoveFileResponse - { - return $this->startApiCall('RemoveFile', $request, $callOptions)->wait(); - } - - /** - * Performs a Git reset for uncommitted files in a Workspace. - * - * The async variant is {@see DataformClient::resetWorkspaceChangesAsync()} . - * - * @example samples/V1/DataformClient/reset_workspace_changes.php - * - * @param ResetWorkspaceChangesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ResetWorkspaceChangesResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function resetWorkspaceChanges(ResetWorkspaceChangesRequest $request, array $callOptions = []): ResetWorkspaceChangesResponse - { - return $this->startApiCall('ResetWorkspaceChanges', $request, $callOptions)->wait(); - } - - /** - * Finds the contents of a given Workspace directory by filter. - * - * The async variant is {@see DataformClient::searchFilesAsync()} . - * - * @example samples/V1/DataformClient/search_files.php - * - * @param SearchFilesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function searchFiles(SearchFilesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('SearchFiles', $request, $callOptions); - } - - /** - * Returns all TeamFolders in a given location that the caller has access to - * and match the provided filter. - * - * The async variant is {@see DataformClient::searchTeamFoldersAsync()} . - * - * @example samples/V1/DataformClient/search_team_folders.php - * - * @param SearchTeamFoldersRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function searchTeamFolders(SearchTeamFoldersRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('SearchTeamFolders', $request, $callOptions); - } - - /** - * Sets the access control policy on the specified resource. Replaces any - * existing policy. - * - * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. - * - * The async variant is {@see DataformClient::setIamPolicyAsync()} . - * - * @example samples/V1/DataformClient/set_iam_policy.php - * - * @param SetIamPolicyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Policy - * - * @throws ApiException Thrown if the API call fails. - */ - public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * 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. - * - * The async variant is {@see DataformClient::testIamPermissionsAsync()} . - * - * @example samples/V1/DataformClient/test_iam_permissions.php - * - * @param TestIamPermissionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return TestIamPermissionsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse - { - return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); - } - - /** - * 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.* - * - * The async variant is {@see DataformClient::updateConfigAsync()} . - * - * @example samples/V1/DataformClient/update_config.php - * - * @param UpdateConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Config - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateConfig(UpdateConfigRequest $request, array $callOptions = []): Config - { - return $this->startApiCall('UpdateConfig', $request, $callOptions)->wait(); - } - - /** - * Updates a single Folder. - * - * The async variant is {@see DataformClient::updateFolderAsync()} . - * - * @example samples/V1/DataformClient/update_folder.php - * - * @param UpdateFolderRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Folder - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateFolder(UpdateFolderRequest $request, array $callOptions = []): Folder - { - return $this->startApiCall('UpdateFolder', $request, $callOptions)->wait(); - } - - /** - * 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.* - * - * The async variant is {@see DataformClient::updateReleaseConfigAsync()} . - * - * @example samples/V1/DataformClient/update_release_config.php - * - * @param UpdateReleaseConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ReleaseConfig - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateReleaseConfig(UpdateReleaseConfigRequest $request, array $callOptions = []): ReleaseConfig - { - return $this->startApiCall('UpdateReleaseConfig', $request, $callOptions)->wait(); - } - - /** - * 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.* - * - * The async variant is {@see DataformClient::updateRepositoryAsync()} . - * - * @example samples/V1/DataformClient/update_repository.php - * - * @param UpdateRepositoryRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Repository - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateRepository(UpdateRepositoryRequest $request, array $callOptions = []): Repository - { - return $this->startApiCall('UpdateRepository', $request, $callOptions)->wait(); - } - - /** - * Updates a single TeamFolder. - * - * The async variant is {@see DataformClient::updateTeamFolderAsync()} . - * - * @example samples/V1/DataformClient/update_team_folder.php - * - * @param UpdateTeamFolderRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return TeamFolder - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateTeamFolder(UpdateTeamFolderRequest $request, array $callOptions = []): TeamFolder - { - return $this->startApiCall('UpdateTeamFolder', $request, $callOptions)->wait(); - } - - /** - * 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.* - * - * The async variant is {@see DataformClient::updateWorkflowConfigAsync()} . - * - * @example samples/V1/DataformClient/update_workflow_config.php - * - * @param UpdateWorkflowConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return WorkflowConfig - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateWorkflowConfig(UpdateWorkflowConfigRequest $request, array $callOptions = []): WorkflowConfig - { - return $this->startApiCall('UpdateWorkflowConfig', $request, $callOptions)->wait(); - } - - /** - * Writes to a file (inside a Workspace). - * - * The async variant is {@see DataformClient::writeFileAsync()} . - * - * @example samples/V1/DataformClient/write_file.php - * - * @param WriteFileRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return WriteFileResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function writeFile(WriteFileRequest $request, array $callOptions = []): WriteFileResponse - { - return $this->startApiCall('WriteFile', $request, $callOptions)->wait(); - } - - /** - * 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][google.longrunning.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 [Operation.error][google.longrunning.Operation.error] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of `1`, corresponding to - * `Code.CANCELLED`. - * - * The async variant is {@see DataformClient::cancelOperationAsync()} . - * - * @example samples/V1/DataformClient/cancel_operation.php - * - * @param CancelOperationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function cancelOperation(CancelOperationRequest $request, array $callOptions = []): void - { - $this->startApiCall('CancelOperation', $request, $callOptions)->wait(); - } - - /** - * 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`. - * - * The async variant is {@see DataformClient::deleteOperationAsync()} . - * - * @example samples/V1/DataformClient/delete_operation.php - * - * @param DeleteOperationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteOperation(DeleteOperationRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteOperation', $request, $callOptions)->wait(); - } - - /** - * 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. - * - * The async variant is {@see DataformClient::getOperationAsync()} . - * - * @example samples/V1/DataformClient/get_operation.php - * - * @param GetOperationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - */ - public function getOperation(GetOperationRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('GetOperation', $request, $callOptions)->wait(); - } - - /** - * Lists operations that match the specified filter in the request. If the - * server doesn't support this method, it returns `UNIMPLEMENTED`. - * - * The async variant is {@see DataformClient::listOperationsAsync()} . - * - * @example samples/V1/DataformClient/list_operations.php - * - * @param ListOperationsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listOperations(ListOperationsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListOperations', $request, $callOptions); - } - - /** - * Gets information about a location. - * - * The async variant is {@see DataformClient::getLocationAsync()} . - * - * @example samples/V1/DataformClient/get_location.php - * - * @param GetLocationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Location - * - * @throws ApiException Thrown if the API call fails. - */ - public function getLocation(GetLocationRequest $request, array $callOptions = []): Location - { - return $this->startApiCall('GetLocation', $request, $callOptions)->wait(); - } - - /** - * Lists information about the supported locations for this service. - - This method lists locations based on the resource scope provided in - the [ListLocationsRequest.name] field: - - * **Global locations**: If `name` is empty, the method lists the - public locations available to all projects. * **Project-specific - locations**: If `name` follows the format - `projects/{project}`, the method lists locations visible to that - specific project. This includes public, private, or other - project-specific locations enabled for the project. - - For gRPC and client library implementations, the resource name is - passed as the `name` field. For direct service calls, the resource - name is - incorporated into the request path based on the specific service - implementation and version. - * - * The async variant is {@see DataformClient::listLocationsAsync()} . - * - * @example samples/V1/DataformClient/list_locations.php - * - * @param ListLocationsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListLocations', $request, $callOptions); - } -} diff --git a/owl-bot-staging/Dataform/v1/src/V1/gapic_metadata.json b/owl-bot-staging/Dataform/v1/src/V1/gapic_metadata.json deleted file mode 100644 index eef79e941f70..000000000000 --- a/owl-bot-staging/Dataform/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,413 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.cloud.dataform.v1", - "libraryPackage": "Google\\Cloud\\Dataform\\V1", - "services": { - "Dataform": { - "clients": { - "grpc": { - "libraryClient": "DataformGapicClient", - "rpcs": { - "CancelWorkflowInvocation": { - "methods": [ - "cancelWorkflowInvocation" - ] - }, - "CommitRepositoryChanges": { - "methods": [ - "commitRepositoryChanges" - ] - }, - "CommitWorkspaceChanges": { - "methods": [ - "commitWorkspaceChanges" - ] - }, - "ComputeRepositoryAccessTokenStatus": { - "methods": [ - "computeRepositoryAccessTokenStatus" - ] - }, - "CreateCompilationResult": { - "methods": [ - "createCompilationResult" - ] - }, - "CreateFolder": { - "methods": [ - "createFolder" - ] - }, - "CreateReleaseConfig": { - "methods": [ - "createReleaseConfig" - ] - }, - "CreateRepository": { - "methods": [ - "createRepository" - ] - }, - "CreateTeamFolder": { - "methods": [ - "createTeamFolder" - ] - }, - "CreateWorkflowConfig": { - "methods": [ - "createWorkflowConfig" - ] - }, - "CreateWorkflowInvocation": { - "methods": [ - "createWorkflowInvocation" - ] - }, - "CreateWorkspace": { - "methods": [ - "createWorkspace" - ] - }, - "DeleteFolder": { - "methods": [ - "deleteFolder" - ] - }, - "DeleteFolderTree": { - "methods": [ - "deleteFolderTree" - ] - }, - "DeleteReleaseConfig": { - "methods": [ - "deleteReleaseConfig" - ] - }, - "DeleteRepository": { - "methods": [ - "deleteRepository" - ] - }, - "DeleteTeamFolder": { - "methods": [ - "deleteTeamFolder" - ] - }, - "DeleteTeamFolderTree": { - "methods": [ - "deleteTeamFolderTree" - ] - }, - "DeleteWorkflowConfig": { - "methods": [ - "deleteWorkflowConfig" - ] - }, - "DeleteWorkflowInvocation": { - "methods": [ - "deleteWorkflowInvocation" - ] - }, - "DeleteWorkspace": { - "methods": [ - "deleteWorkspace" - ] - }, - "FetchFileDiff": { - "methods": [ - "fetchFileDiff" - ] - }, - "FetchFileGitStatuses": { - "methods": [ - "fetchFileGitStatuses" - ] - }, - "FetchGitAheadBehind": { - "methods": [ - "fetchGitAheadBehind" - ] - }, - "FetchRemoteBranches": { - "methods": [ - "fetchRemoteBranches" - ] - }, - "FetchRepositoryHistory": { - "methods": [ - "fetchRepositoryHistory" - ] - }, - "GetCompilationResult": { - "methods": [ - "getCompilationResult" - ] - }, - "GetConfig": { - "methods": [ - "getConfig" - ] - }, - "GetFolder": { - "methods": [ - "getFolder" - ] - }, - "GetIamPolicy": { - "methods": [ - "getIamPolicy" - ] - }, - "GetReleaseConfig": { - "methods": [ - "getReleaseConfig" - ] - }, - "GetRepository": { - "methods": [ - "getRepository" - ] - }, - "GetTeamFolder": { - "methods": [ - "getTeamFolder" - ] - }, - "GetWorkflowConfig": { - "methods": [ - "getWorkflowConfig" - ] - }, - "GetWorkflowInvocation": { - "methods": [ - "getWorkflowInvocation" - ] - }, - "GetWorkspace": { - "methods": [ - "getWorkspace" - ] - }, - "InstallNpmPackages": { - "methods": [ - "installNpmPackages" - ] - }, - "ListCompilationResults": { - "methods": [ - "listCompilationResults" - ] - }, - "ListReleaseConfigs": { - "methods": [ - "listReleaseConfigs" - ] - }, - "ListRepositories": { - "methods": [ - "listRepositories" - ] - }, - "ListWorkflowConfigs": { - "methods": [ - "listWorkflowConfigs" - ] - }, - "ListWorkflowInvocations": { - "methods": [ - "listWorkflowInvocations" - ] - }, - "ListWorkspaces": { - "methods": [ - "listWorkspaces" - ] - }, - "MakeDirectory": { - "methods": [ - "makeDirectory" - ] - }, - "MoveDirectory": { - "methods": [ - "moveDirectory" - ] - }, - "MoveFile": { - "methods": [ - "moveFile" - ] - }, - "MoveFolder": { - "methods": [ - "moveFolder" - ] - }, - "MoveRepository": { - "methods": [ - "moveRepository" - ] - }, - "PullGitCommits": { - "methods": [ - "pullGitCommits" - ] - }, - "PushGitCommits": { - "methods": [ - "pushGitCommits" - ] - }, - "QueryCompilationResultActions": { - "methods": [ - "queryCompilationResultActions" - ] - }, - "QueryDirectoryContents": { - "methods": [ - "queryDirectoryContents" - ] - }, - "QueryFolderContents": { - "methods": [ - "queryFolderContents" - ] - }, - "QueryRepositoryDirectoryContents": { - "methods": [ - "queryRepositoryDirectoryContents" - ] - }, - "QueryTeamFolderContents": { - "methods": [ - "queryTeamFolderContents" - ] - }, - "QueryUserRootContents": { - "methods": [ - "queryUserRootContents" - ] - }, - "QueryWorkflowInvocationActions": { - "methods": [ - "queryWorkflowInvocationActions" - ] - }, - "ReadFile": { - "methods": [ - "readFile" - ] - }, - "ReadRepositoryFile": { - "methods": [ - "readRepositoryFile" - ] - }, - "RemoveDirectory": { - "methods": [ - "removeDirectory" - ] - }, - "RemoveFile": { - "methods": [ - "removeFile" - ] - }, - "ResetWorkspaceChanges": { - "methods": [ - "resetWorkspaceChanges" - ] - }, - "SearchFiles": { - "methods": [ - "searchFiles" - ] - }, - "SearchTeamFolders": { - "methods": [ - "searchTeamFolders" - ] - }, - "SetIamPolicy": { - "methods": [ - "setIamPolicy" - ] - }, - "TestIamPermissions": { - "methods": [ - "testIamPermissions" - ] - }, - "UpdateConfig": { - "methods": [ - "updateConfig" - ] - }, - "UpdateFolder": { - "methods": [ - "updateFolder" - ] - }, - "UpdateReleaseConfig": { - "methods": [ - "updateReleaseConfig" - ] - }, - "UpdateRepository": { - "methods": [ - "updateRepository" - ] - }, - "UpdateTeamFolder": { - "methods": [ - "updateTeamFolder" - ] - }, - "UpdateWorkflowConfig": { - "methods": [ - "updateWorkflowConfig" - ] - }, - "WriteFile": { - "methods": [ - "writeFile" - ] - }, - "CancelOperation": { - "methods": [ - "cancelOperation" - ] - }, - "DeleteOperation": { - "methods": [ - "deleteOperation" - ] - }, - "GetOperation": { - "methods": [ - "getOperation" - ] - }, - "ListOperations": { - "methods": [ - "listOperations" - ] - }, - "GetLocation": { - "methods": [ - "getLocation" - ] - }, - "ListLocations": { - "methods": [ - "listLocations" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/Dataform/v1/src/V1/resources/dataform_client_config.json b/owl-bot-staging/Dataform/v1/src/V1/resources/dataform_client_config.json deleted file mode 100644 index 49882f361ea1..000000000000 --- a/owl-bot-staging/Dataform/v1/src/V1/resources/dataform_client_config.json +++ /dev/null @@ -1,429 +0,0 @@ -{ - "interfaces": { - "google.cloud.dataform.v1.Dataform": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 10000, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - } - }, - "methods": { - "CancelWorkflowInvocation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "CommitRepositoryChanges": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "CommitWorkspaceChanges": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ComputeRepositoryAccessTokenStatus": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "CreateCompilationResult": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "CreateFolder": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "CreateReleaseConfig": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "CreateRepository": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "CreateTeamFolder": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "CreateWorkflowConfig": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "CreateWorkflowInvocation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "CreateWorkspace": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeleteFolder": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeleteFolderTree": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeleteReleaseConfig": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeleteRepository": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeleteTeamFolder": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeleteTeamFolderTree": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeleteWorkflowConfig": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeleteWorkflowInvocation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeleteWorkspace": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "FetchFileDiff": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "FetchFileGitStatuses": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "FetchGitAheadBehind": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "FetchRemoteBranches": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "FetchRepositoryHistory": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetCompilationResult": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetConfig": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetFolder": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetReleaseConfig": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetRepository": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetTeamFolder": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetWorkflowConfig": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetWorkflowInvocation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetWorkspace": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "InstallNpmPackages": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListCompilationResults": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListReleaseConfigs": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListRepositories": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListWorkflowConfigs": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListWorkflowInvocations": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListWorkspaces": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "MakeDirectory": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "MoveDirectory": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "MoveFile": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "MoveFolder": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "MoveRepository": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "PullGitCommits": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "PushGitCommits": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "QueryCompilationResultActions": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "QueryDirectoryContents": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "QueryFolderContents": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "QueryRepositoryDirectoryContents": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "QueryTeamFolderContents": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "QueryUserRootContents": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "QueryWorkflowInvocationActions": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ReadFile": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ReadRepositoryFile": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "RemoveDirectory": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "RemoveFile": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ResetWorkspaceChanges": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "SearchFiles": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "SearchTeamFolders": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "SetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "TestIamPermissions": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdateConfig": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdateFolder": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdateReleaseConfig": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdateRepository": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdateTeamFolder": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdateWorkflowConfig": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "WriteFile": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "CancelOperation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeleteOperation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetOperation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListOperations": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetLocation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListLocations": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/Dataform/v1/src/V1/resources/dataform_descriptor_config.php b/owl-bot-staging/Dataform/v1/src/V1/resources/dataform_descriptor_config.php deleted file mode 100644 index 591fde63294a..000000000000 --- a/owl-bot-staging/Dataform/v1/src/V1/resources/dataform_descriptor_config.php +++ /dev/null @@ -1,1176 +0,0 @@ - [ - 'google.cloud.dataform.v1.Dataform' => [ - 'DeleteFolderTree' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\Dataform\V1\DeleteFolderTreeMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteTeamFolderTree' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\Dataform\V1\DeleteFolderTreeMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'MoveFolder' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\Dataform\V1\MoveFolderMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'MoveRepository' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\Dataform\V1\MoveRepositoryMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'CancelWorkflowInvocation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\CancelWorkflowInvocationResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'CommitRepositoryChanges' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\CommitRepositoryChangesResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'CommitWorkspaceChanges' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\CommitWorkspaceChangesResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ComputeRepositoryAccessTokenStatus' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\ComputeRepositoryAccessTokenStatusResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'CreateCompilationResult' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\CompilationResult', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateFolder' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\Folder', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateReleaseConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\ReleaseConfig', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateRepository' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\Repository', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateTeamFolder' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\TeamFolder', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateWorkflowConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\WorkflowConfig', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateWorkflowInvocation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\WorkflowInvocation', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateWorkspace' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\Workspace', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteFolder' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteReleaseConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteRepository' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteTeamFolder' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteWorkflowConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteWorkflowInvocation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteWorkspace' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'FetchFileDiff' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\FetchFileDiffResponse', - 'headerParams' => [ - [ - 'keyName' => 'workspace', - 'fieldAccessors' => [ - 'getWorkspace', - ], - ], - ], - ], - 'FetchFileGitStatuses' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\FetchFileGitStatusesResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'FetchGitAheadBehind' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\FetchGitAheadBehindResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'FetchRemoteBranches' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\FetchRemoteBranchesResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'FetchRepositoryHistory' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getCommits', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\FetchRepositoryHistoryResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetCompilationResult' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\CompilationResult', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\Config', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetFolder' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\Folder', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - ], - 'GetReleaseConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\ReleaseConfig', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetRepository' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\Repository', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetTeamFolder' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\TeamFolder', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetWorkflowConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\WorkflowConfig', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetWorkflowInvocation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\WorkflowInvocation', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetWorkspace' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\Workspace', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'InstallNpmPackages' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\InstallNpmPackagesResponse', - 'headerParams' => [ - [ - 'keyName' => 'workspace', - 'fieldAccessors' => [ - 'getWorkspace', - ], - ], - ], - ], - 'ListCompilationResults' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getCompilationResults', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\ListCompilationResultsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListReleaseConfigs' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getReleaseConfigs', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\ListReleaseConfigsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListRepositories' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getRepositories', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\ListRepositoriesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListWorkflowConfigs' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getWorkflowConfigs', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\ListWorkflowConfigsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListWorkflowInvocations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getWorkflowInvocations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\ListWorkflowInvocationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListWorkspaces' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getWorkspaces', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\ListWorkspacesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'MakeDirectory' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\MakeDirectoryResponse', - 'headerParams' => [ - [ - 'keyName' => 'workspace', - 'fieldAccessors' => [ - 'getWorkspace', - ], - ], - ], - ], - 'MoveDirectory' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\MoveDirectoryResponse', - 'headerParams' => [ - [ - 'keyName' => 'workspace', - 'fieldAccessors' => [ - 'getWorkspace', - ], - ], - ], - ], - 'MoveFile' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\MoveFileResponse', - 'headerParams' => [ - [ - 'keyName' => 'workspace', - 'fieldAccessors' => [ - 'getWorkspace', - ], - ], - ], - ], - 'PullGitCommits' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\PullGitCommitsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'PushGitCommits' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\PushGitCommitsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'QueryCompilationResultActions' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getCompilationResultActions', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\QueryCompilationResultActionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'QueryDirectoryContents' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDirectoryEntries', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\QueryDirectoryContentsResponse', - 'headerParams' => [ - [ - 'keyName' => 'workspace', - 'fieldAccessors' => [ - 'getWorkspace', - ], - ], - ], - ], - 'QueryFolderContents' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getEntries', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\QueryFolderContentsResponse', - 'headerParams' => [ - [ - 'keyName' => 'folder', - 'fieldAccessors' => [ - 'getFolder', - ], - ], - ], - ], - 'QueryRepositoryDirectoryContents' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDirectoryEntries', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\QueryRepositoryDirectoryContentsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'QueryTeamFolderContents' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getEntries', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\QueryTeamFolderContentsResponse', - 'headerParams' => [ - [ - 'keyName' => 'team_folder', - 'fieldAccessors' => [ - 'getTeamFolder', - ], - ], - ], - ], - 'QueryUserRootContents' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getEntries', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\QueryUserRootContentsResponse', - 'headerParams' => [ - [ - 'keyName' => 'location', - 'fieldAccessors' => [ - 'getLocation', - ], - ], - ], - ], - 'QueryWorkflowInvocationActions' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getWorkflowInvocationActions', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\QueryWorkflowInvocationActionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ReadFile' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\ReadFileResponse', - 'headerParams' => [ - [ - 'keyName' => 'workspace', - 'fieldAccessors' => [ - 'getWorkspace', - ], - ], - ], - ], - 'ReadRepositoryFile' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\ReadRepositoryFileResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'RemoveDirectory' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\RemoveDirectoryResponse', - 'headerParams' => [ - [ - 'keyName' => 'workspace', - 'fieldAccessors' => [ - 'getWorkspace', - ], - ], - ], - ], - 'RemoveFile' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\RemoveFileResponse', - 'headerParams' => [ - [ - 'keyName' => 'workspace', - 'fieldAccessors' => [ - 'getWorkspace', - ], - ], - ], - ], - 'ResetWorkspaceChanges' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\ResetWorkspaceChangesResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'SearchFiles' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getSearchResults', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\SearchFilesResponse', - 'headerParams' => [ - [ - 'keyName' => 'workspace', - 'fieldAccessors' => [ - 'getWorkspace', - ], - ], - ], - ], - 'SearchTeamFolders' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getResults', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\SearchTeamFoldersResponse', - 'headerParams' => [ - [ - 'keyName' => 'location', - 'fieldAccessors' => [ - 'getLocation', - ], - ], - ], - ], - 'SetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - ], - 'TestIamPermissions' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - ], - 'UpdateConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\Config', - 'headerParams' => [ - [ - 'keyName' => 'config.name', - 'fieldAccessors' => [ - 'getConfig', - 'getName', - ], - ], - ], - ], - 'UpdateFolder' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\Folder', - 'headerParams' => [ - [ - 'keyName' => 'folder.name', - 'fieldAccessors' => [ - 'getFolder', - 'getName', - ], - ], - ], - ], - 'UpdateReleaseConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\ReleaseConfig', - 'headerParams' => [ - [ - 'keyName' => 'release_config.name', - 'fieldAccessors' => [ - 'getReleaseConfig', - 'getName', - ], - ], - ], - ], - 'UpdateRepository' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\Repository', - 'headerParams' => [ - [ - 'keyName' => 'repository.name', - 'fieldAccessors' => [ - 'getRepository', - 'getName', - ], - ], - ], - ], - 'UpdateTeamFolder' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\TeamFolder', - 'headerParams' => [ - [ - 'keyName' => 'team_folder.name', - 'fieldAccessors' => [ - 'getTeamFolder', - 'getName', - ], - ], - ], - ], - 'UpdateWorkflowConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\WorkflowConfig', - 'headerParams' => [ - [ - 'keyName' => 'workflow_config.name', - 'fieldAccessors' => [ - 'getWorkflowConfig', - 'getName', - ], - ], - ], - ], - 'WriteFile' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1\WriteFileResponse', - 'headerParams' => [ - [ - 'keyName' => 'workspace', - 'fieldAccessors' => [ - 'getWorkspace', - ], - ], - ], - ], - 'CancelOperation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.longrunning.Operations', - ], - 'DeleteOperation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.longrunning.Operations', - ], - 'GetOperation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\LongRunning\Operation', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.longrunning.Operations', - ], - 'ListOperations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getOperations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\LongRunning\ListOperationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.longrunning.Operations', - ], - 'GetLocation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Location\Location', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'ListLocations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getLocations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'templateMap' => [ - 'compilationResult' => 'projects/{project}/locations/{location}/repositories/{repository}/compilationResults/{compilation_result}', - 'config' => 'projects/{project}/locations/{location}/config', - 'cryptoKey' => 'projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}', - 'cryptoKeyVersion' => 'projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}', - 'folder' => 'projects/{project}/locations/{location}/folders/{folder}', - 'location' => 'projects/{project}/locations/{location}', - 'notebookRuntimeTemplate' => 'projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}', - 'releaseConfig' => 'projects/{project}/locations/{location}/repositories/{repository}/releaseConfigs/{release_config}', - 'repository' => 'projects/{project}/locations/{location}/repositories/{repository}', - 'secretVersion' => 'projects/{project}/secrets/{secret}/versions/{version}', - 'teamFolder' => 'projects/{project}/locations/{location}/teamFolders/{team_folder}', - 'workflowConfig' => 'projects/{project}/locations/{location}/repositories/{repository}/workflowConfigs/{workflow_config}', - 'workflowInvocation' => 'projects/{project}/locations/{location}/repositories/{repository}/workflowInvocations/{workflow_invocation}', - 'workspace' => 'projects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace}', - ], - ], - ], -]; diff --git a/owl-bot-staging/Dataform/v1/src/V1/resources/dataform_rest_client_config.php b/owl-bot-staging/Dataform/v1/src/V1/resources/dataform_rest_client_config.php deleted file mode 100644 index 88f6b9b415c8..000000000000 --- a/owl-bot-staging/Dataform/v1/src/V1/resources/dataform_rest_client_config.php +++ /dev/null @@ -1,1002 +0,0 @@ - [ - 'google.cloud.dataform.v1.Dataform' => [ - 'CancelWorkflowInvocation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'CommitRepositoryChanges' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*}:commit', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'CommitWorkspaceChanges' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:commit', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ComputeRepositoryAccessTokenStatus' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*}:computeAccessTokenStatus', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'CreateCompilationResult' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/repositories/*}/compilationResults', - 'body' => 'compilation_result', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateFolder' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/folders', - 'body' => 'folder', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateReleaseConfig' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/repositories/*}/releaseConfigs', - 'body' => 'release_config', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'release_config_id', - ], - ], - 'CreateRepository' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/repositories', - 'body' => 'repository', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'repository_id', - ], - ], - 'CreateTeamFolder' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/teamFolders', - 'body' => 'team_folder', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateWorkflowConfig' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/repositories/*}/workflowConfigs', - 'body' => 'workflow_config', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'workflow_config_id', - ], - ], - 'CreateWorkflowInvocation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/repositories/*}/workflowInvocations', - 'body' => 'workflow_invocation', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateWorkspace' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/repositories/*}/workspaces', - 'body' => 'workspace', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'workspace_id', - ], - ], - 'DeleteFolder' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/folders/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteFolderTree' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/folders/*}:deleteTree', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteReleaseConfig' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/releaseConfigs/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteRepository' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteTeamFolder' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/teamFolders/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteTeamFolderTree' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/teamFolders/*}:deleteTree', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteWorkflowConfig' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteWorkflowInvocation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteWorkspace' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'FetchFileDiff' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:fetchFileDiff', - 'placeholders' => [ - 'workspace' => [ - 'getters' => [ - 'getWorkspace', - ], - ], - ], - ], - 'FetchFileGitStatuses' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:fetchFileGitStatuses', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'FetchGitAheadBehind' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:fetchGitAheadBehind', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'FetchRemoteBranches' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*}:fetchRemoteBranches', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'FetchRepositoryHistory' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*}:fetchHistory', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetCompilationResult' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/compilationResults/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetConfig' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/config}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetFolder' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/folders/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetIamPolicy' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/repositories/*}:getIamPolicy', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/folders/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/teamFolders/*}:getIamPolicy', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'GetReleaseConfig' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/releaseConfigs/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetRepository' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetTeamFolder' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/teamFolders/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetWorkflowConfig' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetWorkflowInvocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetWorkspace' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'InstallNpmPackages' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:installNpmPackages', - 'body' => '*', - 'placeholders' => [ - 'workspace' => [ - 'getters' => [ - 'getWorkspace', - ], - ], - ], - ], - 'ListCompilationResults' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/repositories/*}/compilationResults', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListReleaseConfigs' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/repositories/*}/releaseConfigs', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListRepositories' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/repositories', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListWorkflowConfigs' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/repositories/*}/workflowConfigs', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListWorkflowInvocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/repositories/*}/workflowInvocations', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListWorkspaces' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/repositories/*}/workspaces', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'MakeDirectory' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:makeDirectory', - 'body' => '*', - 'placeholders' => [ - 'workspace' => [ - 'getters' => [ - 'getWorkspace', - ], - ], - ], - ], - 'MoveDirectory' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:moveDirectory', - 'body' => '*', - 'placeholders' => [ - 'workspace' => [ - 'getters' => [ - 'getWorkspace', - ], - ], - ], - ], - 'MoveFile' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:moveFile', - 'body' => '*', - 'placeholders' => [ - 'workspace' => [ - 'getters' => [ - 'getWorkspace', - ], - ], - ], - ], - 'MoveFolder' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/folders/*}:move', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'MoveRepository' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*}:move', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'PullGitCommits' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:pull', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'PushGitCommits' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:push', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'QueryCompilationResultActions' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/compilationResults/*}:query', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'QueryDirectoryContents' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:queryDirectoryContents', - 'placeholders' => [ - 'workspace' => [ - 'getters' => [ - 'getWorkspace', - ], - ], - ], - ], - 'QueryFolderContents' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{folder=projects/*/locations/*/folders/*}:queryFolderContents', - 'placeholders' => [ - 'folder' => [ - 'getters' => [ - 'getFolder', - ], - ], - ], - ], - 'QueryRepositoryDirectoryContents' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*}:queryDirectoryContents', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'QueryTeamFolderContents' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{team_folder=projects/*/locations/*/teamFolders/*}:queryContents', - 'placeholders' => [ - 'team_folder' => [ - 'getters' => [ - 'getTeamFolder', - ], - ], - ], - ], - 'QueryUserRootContents' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{location=projects/*/locations/*}:queryUserRootContents', - 'placeholders' => [ - 'location' => [ - 'getters' => [ - 'getLocation', - ], - ], - ], - ], - 'QueryWorkflowInvocationActions' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}:query', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ReadFile' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:readFile', - 'placeholders' => [ - 'workspace' => [ - 'getters' => [ - 'getWorkspace', - ], - ], - ], - ], - 'ReadRepositoryFile' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*}:readFile', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'RemoveDirectory' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:removeDirectory', - 'body' => '*', - 'placeholders' => [ - 'workspace' => [ - 'getters' => [ - 'getWorkspace', - ], - ], - ], - ], - 'RemoveFile' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:removeFile', - 'body' => '*', - 'placeholders' => [ - 'workspace' => [ - 'getters' => [ - 'getWorkspace', - ], - ], - ], - ], - 'ResetWorkspaceChanges' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:reset', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'SearchFiles' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:searchFiles', - 'placeholders' => [ - 'workspace' => [ - 'getters' => [ - 'getWorkspace', - ], - ], - ], - ], - 'SearchTeamFolders' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{location=projects/*/locations/*}/teamFolders:search', - 'placeholders' => [ - 'location' => [ - 'getters' => [ - 'getLocation', - ], - ], - ], - ], - 'SetIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/repositories/*}:setIamPolicy', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/folders/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/teamFolders/*}:setIamPolicy', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'TestIamPermissions' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/repositories/*}:testIamPermissions', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/folders/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/teamFolders/*}:testIamPermissions', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'UpdateConfig' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{config.name=projects/*/locations/*/config}', - 'body' => 'config', - 'placeholders' => [ - 'config.name' => [ - 'getters' => [ - 'getConfig', - 'getName', - ], - ], - ], - ], - 'UpdateFolder' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{folder.name=projects/*/locations/*/folders/*}', - 'body' => 'folder', - 'placeholders' => [ - 'folder.name' => [ - 'getters' => [ - 'getFolder', - 'getName', - ], - ], - ], - ], - 'UpdateReleaseConfig' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{release_config.name=projects/*/locations/*/repositories/*/releaseConfigs/*}', - 'body' => 'release_config', - 'placeholders' => [ - 'release_config.name' => [ - 'getters' => [ - 'getReleaseConfig', - 'getName', - ], - ], - ], - ], - 'UpdateRepository' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{repository.name=projects/*/locations/*/repositories/*}', - 'body' => 'repository', - 'placeholders' => [ - 'repository.name' => [ - 'getters' => [ - 'getRepository', - 'getName', - ], - ], - ], - ], - 'UpdateTeamFolder' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{team_folder.name=projects/*/locations/*/teamFolders/*}', - 'body' => 'team_folder', - 'placeholders' => [ - 'team_folder.name' => [ - 'getters' => [ - 'getTeamFolder', - 'getName', - ], - ], - ], - ], - 'UpdateWorkflowConfig' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{workflow_config.name=projects/*/locations/*/repositories/*/workflowConfigs/*}', - 'body' => 'workflow_config', - 'placeholders' => [ - 'workflow_config.name' => [ - 'getters' => [ - 'getWorkflowConfig', - 'getName', - ], - ], - ], - ], - 'WriteFile' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:writeFile', - 'body' => '*', - 'placeholders' => [ - 'workspace' => [ - 'getters' => [ - 'getWorkspace', - ], - ], - ], - ], - ], - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/locations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Dataform/v1/tests/Unit/V1/Client/DataformClientTest.php b/owl-bot-staging/Dataform/v1/tests/Unit/V1/Client/DataformClientTest.php deleted file mode 100644 index 7a6f6ce09db6..000000000000 --- a/owl-bot-staging/Dataform/v1/tests/Unit/V1/Client/DataformClientTest.php +++ /dev/null @@ -1,6042 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return DataformClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new DataformClient($options); - } - - /** @test */ - public function cancelWorkflowInvocationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new CancelWorkflowInvocationResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->workflowInvocationName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_INVOCATION]'); - $request = (new CancelWorkflowInvocationRequest()) - ->setName($formattedName); - $response = $gapicClient->cancelWorkflowInvocation($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/CancelWorkflowInvocation', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function cancelWorkflowInvocationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->workflowInvocationName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_INVOCATION]'); - $request = (new CancelWorkflowInvocationRequest()) - ->setName($formattedName); - try { - $gapicClient->cancelWorkflowInvocation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function commitRepositoryChangesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $commitSha = 'commitSha1018601892'; - $expectedResponse = new CommitRepositoryChangesResponse(); - $expectedResponse->setCommitSha($commitSha); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $commitMetadata = new CommitMetadata(); - $commitMetadataAuthor = new CommitAuthor(); - $authorName = 'authorName-1501539658'; - $commitMetadataAuthor->setName($authorName); - $authorEmailAddress = 'authorEmailAddress-6398493'; - $commitMetadataAuthor->setEmailAddress($authorEmailAddress); - $commitMetadata->setAuthor($commitMetadataAuthor); - $request = (new CommitRepositoryChangesRequest()) - ->setName($formattedName) - ->setCommitMetadata($commitMetadata); - $response = $gapicClient->commitRepositoryChanges($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/CommitRepositoryChanges', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualRequestObject->getCommitMetadata(); - $this->assertProtobufEquals($commitMetadata, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function commitRepositoryChangesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $commitMetadata = new CommitMetadata(); - $commitMetadataAuthor = new CommitAuthor(); - $authorName = 'authorName-1501539658'; - $commitMetadataAuthor->setName($authorName); - $authorEmailAddress = 'authorEmailAddress-6398493'; - $commitMetadataAuthor->setEmailAddress($authorEmailAddress); - $commitMetadata->setAuthor($commitMetadataAuthor); - $request = (new CommitRepositoryChangesRequest()) - ->setName($formattedName) - ->setCommitMetadata($commitMetadata); - try { - $gapicClient->commitRepositoryChanges($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function commitWorkspaceChangesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new CommitWorkspaceChangesResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $author = new CommitAuthor(); - $authorName = 'authorName-1501539658'; - $author->setName($authorName); - $authorEmailAddress = 'authorEmailAddress-6398493'; - $author->setEmailAddress($authorEmailAddress); - $request = (new CommitWorkspaceChangesRequest()) - ->setName($formattedName) - ->setAuthor($author); - $response = $gapicClient->commitWorkspaceChanges($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/CommitWorkspaceChanges', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualRequestObject->getAuthor(); - $this->assertProtobufEquals($author, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function commitWorkspaceChangesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $author = new CommitAuthor(); - $authorName = 'authorName-1501539658'; - $author->setName($authorName); - $authorEmailAddress = 'authorEmailAddress-6398493'; - $author->setEmailAddress($authorEmailAddress); - $request = (new CommitWorkspaceChangesRequest()) - ->setName($formattedName) - ->setAuthor($author); - try { - $gapicClient->commitWorkspaceChanges($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function computeRepositoryAccessTokenStatusTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ComputeRepositoryAccessTokenStatusResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ComputeRepositoryAccessTokenStatusRequest()) - ->setName($formattedName); - $response = $gapicClient->computeRepositoryAccessTokenStatus($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/ComputeRepositoryAccessTokenStatus', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function computeRepositoryAccessTokenStatusExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ComputeRepositoryAccessTokenStatusRequest()) - ->setName($formattedName); - try { - $gapicClient->computeRepositoryAccessTokenStatus($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createCompilationResultTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $gitCommitish = 'gitCommitish-459981894'; - $name = 'name3373707'; - $resolvedGitCommitSha = 'resolvedGitCommitSha-1974209704'; - $dataformCoreVersion = 'dataformCoreVersion1918089577'; - $internalMetadata = 'internalMetadata-1087755663'; - $expectedResponse = new CompilationResult(); - $expectedResponse->setGitCommitish($gitCommitish); - $expectedResponse->setName($name); - $expectedResponse->setResolvedGitCommitSha($resolvedGitCommitSha); - $expectedResponse->setDataformCoreVersion($dataformCoreVersion); - $expectedResponse->setInternalMetadata($internalMetadata); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $compilationResult = new CompilationResult(); - $request = (new CreateCompilationResultRequest()) - ->setParent($formattedParent) - ->setCompilationResult($compilationResult); - $response = $gapicClient->createCompilationResult($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/CreateCompilationResult', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getCompilationResult(); - $this->assertProtobufEquals($compilationResult, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createCompilationResultExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $compilationResult = new CompilationResult(); - $request = (new CreateCompilationResultRequest()) - ->setParent($formattedParent) - ->setCompilationResult($compilationResult); - try { - $gapicClient->createCompilationResult($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createFolderTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $containingFolder = 'containingFolder2137746239'; - $teamFolderName = 'teamFolderName-1375688486'; - $internalMetadata = 'internalMetadata-1087755663'; - $creatorIamPrincipal = 'creatorIamPrincipal866086897'; - $expectedResponse = new Folder(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setContainingFolder($containingFolder); - $expectedResponse->setTeamFolderName($teamFolderName); - $expectedResponse->setInternalMetadata($internalMetadata); - $expectedResponse->setCreatorIamPrincipal($creatorIamPrincipal); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $folder = new Folder(); - $folderDisplayName = 'folderDisplayName1703145759'; - $folder->setDisplayName($folderDisplayName); - $request = (new CreateFolderRequest()) - ->setParent($formattedParent) - ->setFolder($folder); - $response = $gapicClient->createFolder($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/CreateFolder', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getFolder(); - $this->assertProtobufEquals($folder, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createFolderExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $folder = new Folder(); - $folderDisplayName = 'folderDisplayName1703145759'; - $folder->setDisplayName($folderDisplayName); - $request = (new CreateFolderRequest()) - ->setParent($formattedParent) - ->setFolder($folder); - try { - $gapicClient->createFolder($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createReleaseConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $gitCommitish = 'gitCommitish-459981894'; - $cronSchedule = 'cronSchedule206244136'; - $timeZone = 'timeZone36848094'; - $releaseCompilationResult = 'releaseCompilationResult1831489873'; - $disabled = true; - $internalMetadata = 'internalMetadata-1087755663'; - $expectedResponse = new ReleaseConfig(); - $expectedResponse->setName($name); - $expectedResponse->setGitCommitish($gitCommitish); - $expectedResponse->setCronSchedule($cronSchedule); - $expectedResponse->setTimeZone($timeZone); - $expectedResponse->setReleaseCompilationResult($releaseCompilationResult); - $expectedResponse->setDisabled($disabled); - $expectedResponse->setInternalMetadata($internalMetadata); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $releaseConfig = new ReleaseConfig(); - $releaseConfigGitCommitish = 'releaseConfigGitCommitish1714987262'; - $releaseConfig->setGitCommitish($releaseConfigGitCommitish); - $releaseConfigId = 'releaseConfigId-113371904'; - $request = (new CreateReleaseConfigRequest()) - ->setParent($formattedParent) - ->setReleaseConfig($releaseConfig) - ->setReleaseConfigId($releaseConfigId); - $response = $gapicClient->createReleaseConfig($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/CreateReleaseConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getReleaseConfig(); - $this->assertProtobufEquals($releaseConfig, $actualValue); - $actualValue = $actualRequestObject->getReleaseConfigId(); - $this->assertProtobufEquals($releaseConfigId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createReleaseConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $releaseConfig = new ReleaseConfig(); - $releaseConfigGitCommitish = 'releaseConfigGitCommitish1714987262'; - $releaseConfig->setGitCommitish($releaseConfigGitCommitish); - $releaseConfigId = 'releaseConfigId-113371904'; - $request = (new CreateReleaseConfigRequest()) - ->setParent($formattedParent) - ->setReleaseConfig($releaseConfig) - ->setReleaseConfigId($releaseConfigId); - try { - $gapicClient->createReleaseConfig($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createRepositoryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $containingFolder = 'containingFolder2137746239'; - $teamFolderName = 'teamFolderName-1375688486'; - $displayName = 'displayName1615086568'; - $npmrcEnvironmentVariablesSecretVersion = 'npmrcEnvironmentVariablesSecretVersion-2118517056'; - $setAuthenticatedUserAdmin = true; - $serviceAccount = 'serviceAccount-1948028253'; - $kmsKeyName = 'kmsKeyName2094986649'; - $internalMetadata = 'internalMetadata-1087755663'; - $expectedResponse = new Repository(); - $expectedResponse->setName($name); - $expectedResponse->setContainingFolder($containingFolder); - $expectedResponse->setTeamFolderName($teamFolderName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setNpmrcEnvironmentVariablesSecretVersion($npmrcEnvironmentVariablesSecretVersion); - $expectedResponse->setSetAuthenticatedUserAdmin($setAuthenticatedUserAdmin); - $expectedResponse->setServiceAccount($serviceAccount); - $expectedResponse->setKmsKeyName($kmsKeyName); - $expectedResponse->setInternalMetadata($internalMetadata); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $repository = new Repository(); - $repositoryId = 'repositoryId1101683248'; - $request = (new CreateRepositoryRequest()) - ->setParent($formattedParent) - ->setRepository($repository) - ->setRepositoryId($repositoryId); - $response = $gapicClient->createRepository($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/CreateRepository', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getRepository(); - $this->assertProtobufEquals($repository, $actualValue); - $actualValue = $actualRequestObject->getRepositoryId(); - $this->assertProtobufEquals($repositoryId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createRepositoryExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $repository = new Repository(); - $repositoryId = 'repositoryId1101683248'; - $request = (new CreateRepositoryRequest()) - ->setParent($formattedParent) - ->setRepository($repository) - ->setRepositoryId($repositoryId); - try { - $gapicClient->createRepository($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createTeamFolderTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $internalMetadata = 'internalMetadata-1087755663'; - $creatorIamPrincipal = 'creatorIamPrincipal866086897'; - $expectedResponse = new TeamFolder(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setInternalMetadata($internalMetadata); - $expectedResponse->setCreatorIamPrincipal($creatorIamPrincipal); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $teamFolder = new TeamFolder(); - $teamFolderDisplayName = 'teamFolderDisplayName136139842'; - $teamFolder->setDisplayName($teamFolderDisplayName); - $request = (new CreateTeamFolderRequest()) - ->setParent($formattedParent) - ->setTeamFolder($teamFolder); - $response = $gapicClient->createTeamFolder($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/CreateTeamFolder', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getTeamFolder(); - $this->assertProtobufEquals($teamFolder, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createTeamFolderExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $teamFolder = new TeamFolder(); - $teamFolderDisplayName = 'teamFolderDisplayName136139842'; - $teamFolder->setDisplayName($teamFolderDisplayName); - $request = (new CreateTeamFolderRequest()) - ->setParent($formattedParent) - ->setTeamFolder($teamFolder); - try { - $gapicClient->createTeamFolder($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createWorkflowConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $releaseConfig = 'releaseConfig582587002'; - $cronSchedule = 'cronSchedule206244136'; - $timeZone = 'timeZone36848094'; - $disabled = true; - $internalMetadata = 'internalMetadata-1087755663'; - $expectedResponse = new WorkflowConfig(); - $expectedResponse->setName($name); - $expectedResponse->setReleaseConfig($releaseConfig); - $expectedResponse->setCronSchedule($cronSchedule); - $expectedResponse->setTimeZone($timeZone); - $expectedResponse->setDisabled($disabled); - $expectedResponse->setInternalMetadata($internalMetadata); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $workflowConfig = new WorkflowConfig(); - $workflowConfigReleaseConfig = $gapicClient->releaseConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[RELEASE_CONFIG]'); - $workflowConfig->setReleaseConfig($workflowConfigReleaseConfig); - $workflowConfigId = 'workflowConfigId-60129608'; - $request = (new CreateWorkflowConfigRequest()) - ->setParent($formattedParent) - ->setWorkflowConfig($workflowConfig) - ->setWorkflowConfigId($workflowConfigId); - $response = $gapicClient->createWorkflowConfig($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/CreateWorkflowConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getWorkflowConfig(); - $this->assertProtobufEquals($workflowConfig, $actualValue); - $actualValue = $actualRequestObject->getWorkflowConfigId(); - $this->assertProtobufEquals($workflowConfigId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createWorkflowConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $workflowConfig = new WorkflowConfig(); - $workflowConfigReleaseConfig = $gapicClient->releaseConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[RELEASE_CONFIG]'); - $workflowConfig->setReleaseConfig($workflowConfigReleaseConfig); - $workflowConfigId = 'workflowConfigId-60129608'; - $request = (new CreateWorkflowConfigRequest()) - ->setParent($formattedParent) - ->setWorkflowConfig($workflowConfig) - ->setWorkflowConfigId($workflowConfigId); - try { - $gapicClient->createWorkflowConfig($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createWorkflowInvocationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $compilationResult = 'compilationResult-2035984871'; - $name = 'name3373707'; - $resolvedCompilationResult = 'resolvedCompilationResult-2110280256'; - $internalMetadata = 'internalMetadata-1087755663'; - $expectedResponse = new WorkflowInvocation(); - $expectedResponse->setCompilationResult($compilationResult); - $expectedResponse->setName($name); - $expectedResponse->setResolvedCompilationResult($resolvedCompilationResult); - $expectedResponse->setInternalMetadata($internalMetadata); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $workflowInvocation = new WorkflowInvocation(); - $request = (new CreateWorkflowInvocationRequest()) - ->setParent($formattedParent) - ->setWorkflowInvocation($workflowInvocation); - $response = $gapicClient->createWorkflowInvocation($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/CreateWorkflowInvocation', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getWorkflowInvocation(); - $this->assertProtobufEquals($workflowInvocation, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createWorkflowInvocationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $workflowInvocation = new WorkflowInvocation(); - $request = (new CreateWorkflowInvocationRequest()) - ->setParent($formattedParent) - ->setWorkflowInvocation($workflowInvocation); - try { - $gapicClient->createWorkflowInvocation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createWorkspaceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $internalMetadata = 'internalMetadata-1087755663'; - $disableMoves = false; - $expectedResponse = new Workspace(); - $expectedResponse->setName($name); - $expectedResponse->setInternalMetadata($internalMetadata); - $expectedResponse->setDisableMoves($disableMoves); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $workspace = new Workspace(); - $workspaceId = 'workspaceId1578483973'; - $request = (new CreateWorkspaceRequest()) - ->setParent($formattedParent) - ->setWorkspace($workspace) - ->setWorkspaceId($workspaceId); - $response = $gapicClient->createWorkspace($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/CreateWorkspace', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getWorkspace(); - $this->assertProtobufEquals($workspace, $actualValue); - $actualValue = $actualRequestObject->getWorkspaceId(); - $this->assertProtobufEquals($workspaceId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createWorkspaceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $workspace = new Workspace(); - $workspaceId = 'workspaceId1578483973'; - $request = (new CreateWorkspaceRequest()) - ->setParent($formattedParent) - ->setWorkspace($workspace) - ->setWorkspaceId($workspaceId); - try { - $gapicClient->createWorkspace($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteFolderTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); - $request = (new DeleteFolderRequest()) - ->setName($formattedName); - $gapicClient->deleteFolder($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/DeleteFolder', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteFolderExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); - $request = (new DeleteFolderRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteFolder($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteFolderTreeTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteFolderTreeTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteFolderTreeTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); - $request = (new DeleteFolderTreeRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteFolderTree($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/DeleteFolderTree', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteFolderTreeTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteFolderTreeExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteFolderTreeTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); - $request = (new DeleteFolderTreeRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteFolderTree($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteFolderTreeTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteReleaseConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->releaseConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[RELEASE_CONFIG]'); - $request = (new DeleteReleaseConfigRequest()) - ->setName($formattedName); - $gapicClient->deleteReleaseConfig($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/DeleteReleaseConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteReleaseConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->releaseConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[RELEASE_CONFIG]'); - $request = (new DeleteReleaseConfigRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteReleaseConfig($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteRepositoryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new DeleteRepositoryRequest()) - ->setName($formattedName); - $gapicClient->deleteRepository($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/DeleteRepository', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteRepositoryExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new DeleteRepositoryRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteRepository($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteTeamFolderTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->teamFolderName('[PROJECT]', '[LOCATION]', '[TEAM_FOLDER]'); - $request = (new DeleteTeamFolderRequest()) - ->setName($formattedName); - $gapicClient->deleteTeamFolder($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/DeleteTeamFolder', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteTeamFolderExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->teamFolderName('[PROJECT]', '[LOCATION]', '[TEAM_FOLDER]'); - $request = (new DeleteTeamFolderRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteTeamFolder($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteTeamFolderTreeTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteTeamFolderTreeTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteTeamFolderTreeTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->teamFolderName('[PROJECT]', '[LOCATION]', '[TEAM_FOLDER]'); - $request = (new DeleteTeamFolderTreeRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteTeamFolderTree($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/DeleteTeamFolderTree', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteTeamFolderTreeTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteTeamFolderTreeExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteTeamFolderTreeTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->teamFolderName('[PROJECT]', '[LOCATION]', '[TEAM_FOLDER]'); - $request = (new DeleteTeamFolderTreeRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteTeamFolderTree($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteTeamFolderTreeTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteWorkflowConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->workflowConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_CONFIG]'); - $request = (new DeleteWorkflowConfigRequest()) - ->setName($formattedName); - $gapicClient->deleteWorkflowConfig($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/DeleteWorkflowConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteWorkflowConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->workflowConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_CONFIG]'); - $request = (new DeleteWorkflowConfigRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteWorkflowConfig($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteWorkflowInvocationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->workflowInvocationName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_INVOCATION]'); - $request = (new DeleteWorkflowInvocationRequest()) - ->setName($formattedName); - $gapicClient->deleteWorkflowInvocation($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/DeleteWorkflowInvocation', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteWorkflowInvocationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->workflowInvocationName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_INVOCATION]'); - $request = (new DeleteWorkflowInvocationRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteWorkflowInvocation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteWorkspaceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new DeleteWorkspaceRequest()) - ->setName($formattedName); - $gapicClient->deleteWorkspace($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/DeleteWorkspace', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteWorkspaceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new DeleteWorkspaceRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteWorkspace($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function fetchFileDiffTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $formattedDiff = 'formattedDiff-1687410264'; - $expectedResponse = new FetchFileDiffResponse(); - $expectedResponse->setFormattedDiff($formattedDiff); - $transport->addResponse($expectedResponse); - // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $path = 'path3433509'; - $request = (new FetchFileDiffRequest()) - ->setWorkspace($formattedWorkspace) - ->setPath($path); - $response = $gapicClient->fetchFileDiff($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/FetchFileDiff', $actualFuncCall); - $actualValue = $actualRequestObject->getWorkspace(); - $this->assertProtobufEquals($formattedWorkspace, $actualValue); - $actualValue = $actualRequestObject->getPath(); - $this->assertProtobufEquals($path, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function fetchFileDiffExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $path = 'path3433509'; - $request = (new FetchFileDiffRequest()) - ->setWorkspace($formattedWorkspace) - ->setPath($path); - try { - $gapicClient->fetchFileDiff($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function fetchFileGitStatusesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new FetchFileGitStatusesResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new FetchFileGitStatusesRequest()) - ->setName($formattedName); - $response = $gapicClient->fetchFileGitStatuses($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/FetchFileGitStatuses', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function fetchFileGitStatusesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new FetchFileGitStatusesRequest()) - ->setName($formattedName); - try { - $gapicClient->fetchFileGitStatuses($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function fetchGitAheadBehindTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $commitsAhead = 1216483806; - $commitsBehind = 917751619; - $expectedResponse = new FetchGitAheadBehindResponse(); - $expectedResponse->setCommitsAhead($commitsAhead); - $expectedResponse->setCommitsBehind($commitsBehind); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new FetchGitAheadBehindRequest()) - ->setName($formattedName); - $response = $gapicClient->fetchGitAheadBehind($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/FetchGitAheadBehind', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function fetchGitAheadBehindExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new FetchGitAheadBehindRequest()) - ->setName($formattedName); - try { - $gapicClient->fetchGitAheadBehind($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function fetchRemoteBranchesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new FetchRemoteBranchesResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new FetchRemoteBranchesRequest()) - ->setName($formattedName); - $response = $gapicClient->fetchRemoteBranches($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/FetchRemoteBranches', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function fetchRemoteBranchesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new FetchRemoteBranchesRequest()) - ->setName($formattedName); - try { - $gapicClient->fetchRemoteBranches($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function fetchRepositoryHistoryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $commitsElement = new CommitLogEntry(); - $commits = [ - $commitsElement, - ]; - $expectedResponse = new FetchRepositoryHistoryResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setCommits($commits); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new FetchRepositoryHistoryRequest()) - ->setName($formattedName); - $response = $gapicClient->fetchRepositoryHistory($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getCommits()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/FetchRepositoryHistory', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function fetchRepositoryHistoryExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new FetchRepositoryHistoryRequest()) - ->setName($formattedName); - try { - $gapicClient->fetchRepositoryHistory($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCompilationResultTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $gitCommitish = 'gitCommitish-459981894'; - $name2 = 'name2-1052831874'; - $resolvedGitCommitSha = 'resolvedGitCommitSha-1974209704'; - $dataformCoreVersion = 'dataformCoreVersion1918089577'; - $internalMetadata = 'internalMetadata-1087755663'; - $expectedResponse = new CompilationResult(); - $expectedResponse->setGitCommitish($gitCommitish); - $expectedResponse->setName($name2); - $expectedResponse->setResolvedGitCommitSha($resolvedGitCommitSha); - $expectedResponse->setDataformCoreVersion($dataformCoreVersion); - $expectedResponse->setInternalMetadata($internalMetadata); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->compilationResultName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[COMPILATION_RESULT]'); - $request = (new GetCompilationResultRequest()) - ->setName($formattedName); - $response = $gapicClient->getCompilationResult($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/GetCompilationResult', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCompilationResultExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->compilationResultName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[COMPILATION_RESULT]'); - $request = (new GetCompilationResultRequest()) - ->setName($formattedName); - try { - $gapicClient->getCompilationResult($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $defaultKmsKeyName = 'defaultKmsKeyName-635012393'; - $internalMetadata = 'internalMetadata-1087755663'; - $expectedResponse = new Config(); - $expectedResponse->setName($name2); - $expectedResponse->setDefaultKmsKeyName($defaultKmsKeyName); - $expectedResponse->setInternalMetadata($internalMetadata); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->configName('[PROJECT]', '[LOCATION]'); - $request = (new GetConfigRequest()) - ->setName($formattedName); - $response = $gapicClient->getConfig($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/GetConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->configName('[PROJECT]', '[LOCATION]'); - $request = (new GetConfigRequest()) - ->setName($formattedName); - try { - $gapicClient->getConfig($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getFolderTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $containingFolder = 'containingFolder2137746239'; - $teamFolderName = 'teamFolderName-1375688486'; - $internalMetadata = 'internalMetadata-1087755663'; - $creatorIamPrincipal = 'creatorIamPrincipal866086897'; - $expectedResponse = new Folder(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setContainingFolder($containingFolder); - $expectedResponse->setTeamFolderName($teamFolderName); - $expectedResponse->setInternalMetadata($internalMetadata); - $expectedResponse->setCreatorIamPrincipal($creatorIamPrincipal); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); - $request = (new GetFolderRequest()) - ->setName($formattedName); - $response = $gapicClient->getFolder($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/GetFolder', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getFolderExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); - $request = (new GetFolderRequest()) - ->setName($formattedName); - try { - $gapicClient->getFolder($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - $response = $gapicClient->getIamPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/GetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getIamPolicyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - try { - $gapicClient->getIamPolicy($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getReleaseConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $gitCommitish = 'gitCommitish-459981894'; - $cronSchedule = 'cronSchedule206244136'; - $timeZone = 'timeZone36848094'; - $releaseCompilationResult = 'releaseCompilationResult1831489873'; - $disabled = true; - $internalMetadata = 'internalMetadata-1087755663'; - $expectedResponse = new ReleaseConfig(); - $expectedResponse->setName($name2); - $expectedResponse->setGitCommitish($gitCommitish); - $expectedResponse->setCronSchedule($cronSchedule); - $expectedResponse->setTimeZone($timeZone); - $expectedResponse->setReleaseCompilationResult($releaseCompilationResult); - $expectedResponse->setDisabled($disabled); - $expectedResponse->setInternalMetadata($internalMetadata); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->releaseConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[RELEASE_CONFIG]'); - $request = (new GetReleaseConfigRequest()) - ->setName($formattedName); - $response = $gapicClient->getReleaseConfig($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/GetReleaseConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getReleaseConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->releaseConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[RELEASE_CONFIG]'); - $request = (new GetReleaseConfigRequest()) - ->setName($formattedName); - try { - $gapicClient->getReleaseConfig($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRepositoryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $containingFolder = 'containingFolder2137746239'; - $teamFolderName = 'teamFolderName-1375688486'; - $displayName = 'displayName1615086568'; - $npmrcEnvironmentVariablesSecretVersion = 'npmrcEnvironmentVariablesSecretVersion-2118517056'; - $setAuthenticatedUserAdmin = true; - $serviceAccount = 'serviceAccount-1948028253'; - $kmsKeyName = 'kmsKeyName2094986649'; - $internalMetadata = 'internalMetadata-1087755663'; - $expectedResponse = new Repository(); - $expectedResponse->setName($name2); - $expectedResponse->setContainingFolder($containingFolder); - $expectedResponse->setTeamFolderName($teamFolderName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setNpmrcEnvironmentVariablesSecretVersion($npmrcEnvironmentVariablesSecretVersion); - $expectedResponse->setSetAuthenticatedUserAdmin($setAuthenticatedUserAdmin); - $expectedResponse->setServiceAccount($serviceAccount); - $expectedResponse->setKmsKeyName($kmsKeyName); - $expectedResponse->setInternalMetadata($internalMetadata); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new GetRepositoryRequest()) - ->setName($formattedName); - $response = $gapicClient->getRepository($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/GetRepository', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRepositoryExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new GetRepositoryRequest()) - ->setName($formattedName); - try { - $gapicClient->getRepository($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getTeamFolderTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $internalMetadata = 'internalMetadata-1087755663'; - $creatorIamPrincipal = 'creatorIamPrincipal866086897'; - $expectedResponse = new TeamFolder(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setInternalMetadata($internalMetadata); - $expectedResponse->setCreatorIamPrincipal($creatorIamPrincipal); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->teamFolderName('[PROJECT]', '[LOCATION]', '[TEAM_FOLDER]'); - $request = (new GetTeamFolderRequest()) - ->setName($formattedName); - $response = $gapicClient->getTeamFolder($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/GetTeamFolder', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getTeamFolderExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->teamFolderName('[PROJECT]', '[LOCATION]', '[TEAM_FOLDER]'); - $request = (new GetTeamFolderRequest()) - ->setName($formattedName); - try { - $gapicClient->getTeamFolder($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getWorkflowConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $releaseConfig = 'releaseConfig582587002'; - $cronSchedule = 'cronSchedule206244136'; - $timeZone = 'timeZone36848094'; - $disabled = true; - $internalMetadata = 'internalMetadata-1087755663'; - $expectedResponse = new WorkflowConfig(); - $expectedResponse->setName($name2); - $expectedResponse->setReleaseConfig($releaseConfig); - $expectedResponse->setCronSchedule($cronSchedule); - $expectedResponse->setTimeZone($timeZone); - $expectedResponse->setDisabled($disabled); - $expectedResponse->setInternalMetadata($internalMetadata); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->workflowConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_CONFIG]'); - $request = (new GetWorkflowConfigRequest()) - ->setName($formattedName); - $response = $gapicClient->getWorkflowConfig($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/GetWorkflowConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getWorkflowConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->workflowConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_CONFIG]'); - $request = (new GetWorkflowConfigRequest()) - ->setName($formattedName); - try { - $gapicClient->getWorkflowConfig($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getWorkflowInvocationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $compilationResult = 'compilationResult-2035984871'; - $name2 = 'name2-1052831874'; - $resolvedCompilationResult = 'resolvedCompilationResult-2110280256'; - $internalMetadata = 'internalMetadata-1087755663'; - $expectedResponse = new WorkflowInvocation(); - $expectedResponse->setCompilationResult($compilationResult); - $expectedResponse->setName($name2); - $expectedResponse->setResolvedCompilationResult($resolvedCompilationResult); - $expectedResponse->setInternalMetadata($internalMetadata); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->workflowInvocationName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_INVOCATION]'); - $request = (new GetWorkflowInvocationRequest()) - ->setName($formattedName); - $response = $gapicClient->getWorkflowInvocation($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/GetWorkflowInvocation', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getWorkflowInvocationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->workflowInvocationName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_INVOCATION]'); - $request = (new GetWorkflowInvocationRequest()) - ->setName($formattedName); - try { - $gapicClient->getWorkflowInvocation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getWorkspaceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $internalMetadata = 'internalMetadata-1087755663'; - $disableMoves = false; - $expectedResponse = new Workspace(); - $expectedResponse->setName($name2); - $expectedResponse->setInternalMetadata($internalMetadata); - $expectedResponse->setDisableMoves($disableMoves); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new GetWorkspaceRequest()) - ->setName($formattedName); - $response = $gapicClient->getWorkspace($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/GetWorkspace', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getWorkspaceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new GetWorkspaceRequest()) - ->setName($formattedName); - try { - $gapicClient->getWorkspace($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function installNpmPackagesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new InstallNpmPackagesResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new InstallNpmPackagesRequest()) - ->setWorkspace($formattedWorkspace); - $response = $gapicClient->installNpmPackages($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/InstallNpmPackages', $actualFuncCall); - $actualValue = $actualRequestObject->getWorkspace(); - $this->assertProtobufEquals($formattedWorkspace, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function installNpmPackagesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new InstallNpmPackagesRequest()) - ->setWorkspace($formattedWorkspace); - try { - $gapicClient->installNpmPackages($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCompilationResultsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $compilationResultsElement = new CompilationResult(); - $compilationResults = [ - $compilationResultsElement, - ]; - $expectedResponse = new ListCompilationResultsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setCompilationResults($compilationResults); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ListCompilationResultsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listCompilationResults($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getCompilationResults()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/ListCompilationResults', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCompilationResultsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ListCompilationResultsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listCompilationResults($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listReleaseConfigsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $releaseConfigsElement = new ReleaseConfig(); - $releaseConfigs = [ - $releaseConfigsElement, - ]; - $expectedResponse = new ListReleaseConfigsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setReleaseConfigs($releaseConfigs); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ListReleaseConfigsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listReleaseConfigs($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getReleaseConfigs()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/ListReleaseConfigs', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listReleaseConfigsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ListReleaseConfigsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listReleaseConfigs($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRepositoriesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $repositoriesElement = new Repository(); - $repositories = [ - $repositoriesElement, - ]; - $expectedResponse = new ListRepositoriesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setRepositories($repositories); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListRepositoriesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listRepositories($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getRepositories()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/ListRepositories', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRepositoriesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListRepositoriesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listRepositories($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listWorkflowConfigsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $workflowConfigsElement = new WorkflowConfig(); - $workflowConfigs = [ - $workflowConfigsElement, - ]; - $expectedResponse = new ListWorkflowConfigsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setWorkflowConfigs($workflowConfigs); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ListWorkflowConfigsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listWorkflowConfigs($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getWorkflowConfigs()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/ListWorkflowConfigs', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listWorkflowConfigsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ListWorkflowConfigsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listWorkflowConfigs($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listWorkflowInvocationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $workflowInvocationsElement = new WorkflowInvocation(); - $workflowInvocations = [ - $workflowInvocationsElement, - ]; - $expectedResponse = new ListWorkflowInvocationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setWorkflowInvocations($workflowInvocations); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ListWorkflowInvocationsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listWorkflowInvocations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getWorkflowInvocations()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/ListWorkflowInvocations', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listWorkflowInvocationsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ListWorkflowInvocationsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listWorkflowInvocations($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listWorkspacesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $workspacesElement = new Workspace(); - $workspaces = [ - $workspacesElement, - ]; - $expectedResponse = new ListWorkspacesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setWorkspaces($workspaces); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ListWorkspacesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listWorkspaces($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getWorkspaces()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/ListWorkspaces', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listWorkspacesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ListWorkspacesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listWorkspaces($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function makeDirectoryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new MakeDirectoryResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $path = 'path3433509'; - $request = (new MakeDirectoryRequest()) - ->setWorkspace($formattedWorkspace) - ->setPath($path); - $response = $gapicClient->makeDirectory($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/MakeDirectory', $actualFuncCall); - $actualValue = $actualRequestObject->getWorkspace(); - $this->assertProtobufEquals($formattedWorkspace, $actualValue); - $actualValue = $actualRequestObject->getPath(); - $this->assertProtobufEquals($path, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function makeDirectoryExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $path = 'path3433509'; - $request = (new MakeDirectoryRequest()) - ->setWorkspace($formattedWorkspace) - ->setPath($path); - try { - $gapicClient->makeDirectory($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function moveDirectoryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new MoveDirectoryResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $path = 'path3433509'; - $newPath = 'newPath1377204068'; - $request = (new MoveDirectoryRequest()) - ->setWorkspace($formattedWorkspace) - ->setPath($path) - ->setNewPath($newPath); - $response = $gapicClient->moveDirectory($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/MoveDirectory', $actualFuncCall); - $actualValue = $actualRequestObject->getWorkspace(); - $this->assertProtobufEquals($formattedWorkspace, $actualValue); - $actualValue = $actualRequestObject->getPath(); - $this->assertProtobufEquals($path, $actualValue); - $actualValue = $actualRequestObject->getNewPath(); - $this->assertProtobufEquals($newPath, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function moveDirectoryExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $path = 'path3433509'; - $newPath = 'newPath1377204068'; - $request = (new MoveDirectoryRequest()) - ->setWorkspace($formattedWorkspace) - ->setPath($path) - ->setNewPath($newPath); - try { - $gapicClient->moveDirectory($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function moveFileTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new MoveFileResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $path = 'path3433509'; - $newPath = 'newPath1377204068'; - $request = (new MoveFileRequest()) - ->setWorkspace($formattedWorkspace) - ->setPath($path) - ->setNewPath($newPath); - $response = $gapicClient->moveFile($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/MoveFile', $actualFuncCall); - $actualValue = $actualRequestObject->getWorkspace(); - $this->assertProtobufEquals($formattedWorkspace, $actualValue); - $actualValue = $actualRequestObject->getPath(); - $this->assertProtobufEquals($path, $actualValue); - $actualValue = $actualRequestObject->getNewPath(); - $this->assertProtobufEquals($newPath, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function moveFileExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $path = 'path3433509'; - $newPath = 'newPath1377204068'; - $request = (new MoveFileRequest()) - ->setWorkspace($formattedWorkspace) - ->setPath($path) - ->setNewPath($newPath); - try { - $gapicClient->moveFile($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function moveFolderTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/moveFolderTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/moveFolderTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); - $request = (new MoveFolderRequest()) - ->setName($formattedName); - $response = $gapicClient->moveFolder($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/MoveFolder', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/moveFolderTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function moveFolderExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/moveFolderTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); - $request = (new MoveFolderRequest()) - ->setName($formattedName); - $response = $gapicClient->moveFolder($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/moveFolderTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function moveRepositoryTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/moveRepositoryTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/moveRepositoryTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new MoveRepositoryRequest()) - ->setName($formattedName); - $response = $gapicClient->moveRepository($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/MoveRepository', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/moveRepositoryTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function moveRepositoryExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/moveRepositoryTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new MoveRepositoryRequest()) - ->setName($formattedName); - $response = $gapicClient->moveRepository($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/moveRepositoryTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function pullGitCommitsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new PullGitCommitsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $author = new CommitAuthor(); - $authorName = 'authorName-1501539658'; - $author->setName($authorName); - $authorEmailAddress = 'authorEmailAddress-6398493'; - $author->setEmailAddress($authorEmailAddress); - $request = (new PullGitCommitsRequest()) - ->setName($formattedName) - ->setAuthor($author); - $response = $gapicClient->pullGitCommits($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/PullGitCommits', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualRequestObject->getAuthor(); - $this->assertProtobufEquals($author, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function pullGitCommitsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $author = new CommitAuthor(); - $authorName = 'authorName-1501539658'; - $author->setName($authorName); - $authorEmailAddress = 'authorEmailAddress-6398493'; - $author->setEmailAddress($authorEmailAddress); - $request = (new PullGitCommitsRequest()) - ->setName($formattedName) - ->setAuthor($author); - try { - $gapicClient->pullGitCommits($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function pushGitCommitsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new PushGitCommitsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new PushGitCommitsRequest()) - ->setName($formattedName); - $response = $gapicClient->pushGitCommits($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/PushGitCommits', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function pushGitCommitsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new PushGitCommitsRequest()) - ->setName($formattedName); - try { - $gapicClient->pushGitCommits($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryCompilationResultActionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $compilationResultActionsElement = new CompilationResultAction(); - $compilationResultActions = [ - $compilationResultActionsElement, - ]; - $expectedResponse = new QueryCompilationResultActionsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setCompilationResultActions($compilationResultActions); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->compilationResultName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[COMPILATION_RESULT]'); - $request = (new QueryCompilationResultActionsRequest()) - ->setName($formattedName); - $response = $gapicClient->queryCompilationResultActions($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getCompilationResultActions()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/QueryCompilationResultActions', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryCompilationResultActionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->compilationResultName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[COMPILATION_RESULT]'); - $request = (new QueryCompilationResultActionsRequest()) - ->setName($formattedName); - try { - $gapicClient->queryCompilationResultActions($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryDirectoryContentsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $directoryEntriesElement = new DirectoryEntry(); - $directoryEntries = [ - $directoryEntriesElement, - ]; - $expectedResponse = new QueryDirectoryContentsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDirectoryEntries($directoryEntries); - $transport->addResponse($expectedResponse); - // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new QueryDirectoryContentsRequest()) - ->setWorkspace($formattedWorkspace); - $response = $gapicClient->queryDirectoryContents($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDirectoryEntries()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/QueryDirectoryContents', $actualFuncCall); - $actualValue = $actualRequestObject->getWorkspace(); - $this->assertProtobufEquals($formattedWorkspace, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryDirectoryContentsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new QueryDirectoryContentsRequest()) - ->setWorkspace($formattedWorkspace); - try { - $gapicClient->queryDirectoryContents($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryFolderContentsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $entriesElement = new FolderContentsEntry(); - $entries = [ - $entriesElement, - ]; - $expectedResponse = new QueryFolderContentsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setEntries($entries); - $transport->addResponse($expectedResponse); - // Mock request - $formattedFolder = $gapicClient->folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); - $request = (new QueryFolderContentsRequest()) - ->setFolder($formattedFolder); - $response = $gapicClient->queryFolderContents($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getEntries()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/QueryFolderContents', $actualFuncCall); - $actualValue = $actualRequestObject->getFolder(); - $this->assertProtobufEquals($formattedFolder, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryFolderContentsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedFolder = $gapicClient->folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); - $request = (new QueryFolderContentsRequest()) - ->setFolder($formattedFolder); - try { - $gapicClient->queryFolderContents($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryRepositoryDirectoryContentsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $directoryEntriesElement = new DirectoryEntry(); - $directoryEntries = [ - $directoryEntriesElement, - ]; - $expectedResponse = new QueryRepositoryDirectoryContentsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDirectoryEntries($directoryEntries); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new QueryRepositoryDirectoryContentsRequest()) - ->setName($formattedName); - $response = $gapicClient->queryRepositoryDirectoryContents($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDirectoryEntries()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/QueryRepositoryDirectoryContents', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryRepositoryDirectoryContentsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new QueryRepositoryDirectoryContentsRequest()) - ->setName($formattedName); - try { - $gapicClient->queryRepositoryDirectoryContents($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryTeamFolderContentsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $entriesElement = new TeamFolderContentsEntry(); - $entries = [ - $entriesElement, - ]; - $expectedResponse = new QueryTeamFolderContentsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setEntries($entries); - $transport->addResponse($expectedResponse); - // Mock request - $formattedTeamFolder = $gapicClient->teamFolderName('[PROJECT]', '[LOCATION]', '[TEAM_FOLDER]'); - $request = (new QueryTeamFolderContentsRequest()) - ->setTeamFolder($formattedTeamFolder); - $response = $gapicClient->queryTeamFolderContents($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getEntries()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/QueryTeamFolderContents', $actualFuncCall); - $actualValue = $actualRequestObject->getTeamFolder(); - $this->assertProtobufEquals($formattedTeamFolder, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryTeamFolderContentsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedTeamFolder = $gapicClient->teamFolderName('[PROJECT]', '[LOCATION]', '[TEAM_FOLDER]'); - $request = (new QueryTeamFolderContentsRequest()) - ->setTeamFolder($formattedTeamFolder); - try { - $gapicClient->queryTeamFolderContents($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryUserRootContentsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $entriesElement = new RootContentsEntry(); - $entries = [ - $entriesElement, - ]; - $expectedResponse = new QueryUserRootContentsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setEntries($entries); - $transport->addResponse($expectedResponse); - // Mock request - $formattedLocation = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new QueryUserRootContentsRequest()) - ->setLocation($formattedLocation); - $response = $gapicClient->queryUserRootContents($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getEntries()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/QueryUserRootContents', $actualFuncCall); - $actualValue = $actualRequestObject->getLocation(); - $this->assertProtobufEquals($formattedLocation, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryUserRootContentsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedLocation = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new QueryUserRootContentsRequest()) - ->setLocation($formattedLocation); - try { - $gapicClient->queryUserRootContents($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryWorkflowInvocationActionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $workflowInvocationActionsElement = new WorkflowInvocationAction(); - $workflowInvocationActions = [ - $workflowInvocationActionsElement, - ]; - $expectedResponse = new QueryWorkflowInvocationActionsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setWorkflowInvocationActions($workflowInvocationActions); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->workflowInvocationName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_INVOCATION]'); - $request = (new QueryWorkflowInvocationActionsRequest()) - ->setName($formattedName); - $response = $gapicClient->queryWorkflowInvocationActions($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getWorkflowInvocationActions()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/QueryWorkflowInvocationActions', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryWorkflowInvocationActionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->workflowInvocationName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_INVOCATION]'); - $request = (new QueryWorkflowInvocationActionsRequest()) - ->setName($formattedName); - try { - $gapicClient->queryWorkflowInvocationActions($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function readFileTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $fileContents = '125'; - $expectedResponse = new ReadFileResponse(); - $expectedResponse->setFileContents($fileContents); - $transport->addResponse($expectedResponse); - // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $path = 'path3433509'; - $request = (new ReadFileRequest()) - ->setWorkspace($formattedWorkspace) - ->setPath($path); - $response = $gapicClient->readFile($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/ReadFile', $actualFuncCall); - $actualValue = $actualRequestObject->getWorkspace(); - $this->assertProtobufEquals($formattedWorkspace, $actualValue); - $actualValue = $actualRequestObject->getPath(); - $this->assertProtobufEquals($path, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function readFileExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $path = 'path3433509'; - $request = (new ReadFileRequest()) - ->setWorkspace($formattedWorkspace) - ->setPath($path); - try { - $gapicClient->readFile($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function readRepositoryFileTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $contents = '26'; - $expectedResponse = new ReadRepositoryFileResponse(); - $expectedResponse->setContents($contents); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $path = 'path3433509'; - $request = (new ReadRepositoryFileRequest()) - ->setName($formattedName) - ->setPath($path); - $response = $gapicClient->readRepositoryFile($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/ReadRepositoryFile', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualRequestObject->getPath(); - $this->assertProtobufEquals($path, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function readRepositoryFileExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $path = 'path3433509'; - $request = (new ReadRepositoryFileRequest()) - ->setName($formattedName) - ->setPath($path); - try { - $gapicClient->readRepositoryFile($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function removeDirectoryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new RemoveDirectoryResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $path = 'path3433509'; - $request = (new RemoveDirectoryRequest()) - ->setWorkspace($formattedWorkspace) - ->setPath($path); - $response = $gapicClient->removeDirectory($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/RemoveDirectory', $actualFuncCall); - $actualValue = $actualRequestObject->getWorkspace(); - $this->assertProtobufEquals($formattedWorkspace, $actualValue); - $actualValue = $actualRequestObject->getPath(); - $this->assertProtobufEquals($path, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function removeDirectoryExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $path = 'path3433509'; - $request = (new RemoveDirectoryRequest()) - ->setWorkspace($formattedWorkspace) - ->setPath($path); - try { - $gapicClient->removeDirectory($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function removeFileTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new RemoveFileResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $path = 'path3433509'; - $request = (new RemoveFileRequest()) - ->setWorkspace($formattedWorkspace) - ->setPath($path); - $response = $gapicClient->removeFile($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/RemoveFile', $actualFuncCall); - $actualValue = $actualRequestObject->getWorkspace(); - $this->assertProtobufEquals($formattedWorkspace, $actualValue); - $actualValue = $actualRequestObject->getPath(); - $this->assertProtobufEquals($path, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function removeFileExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $path = 'path3433509'; - $request = (new RemoveFileRequest()) - ->setWorkspace($formattedWorkspace) - ->setPath($path); - try { - $gapicClient->removeFile($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function resetWorkspaceChangesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ResetWorkspaceChangesResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new ResetWorkspaceChangesRequest()) - ->setName($formattedName); - $response = $gapicClient->resetWorkspaceChanges($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/ResetWorkspaceChanges', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function resetWorkspaceChangesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new ResetWorkspaceChangesRequest()) - ->setName($formattedName); - try { - $gapicClient->resetWorkspaceChanges($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchFilesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $searchResultsElement = new SearchResult(); - $searchResults = [ - $searchResultsElement, - ]; - $expectedResponse = new SearchFilesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setSearchResults($searchResults); - $transport->addResponse($expectedResponse); - // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new SearchFilesRequest()) - ->setWorkspace($formattedWorkspace); - $response = $gapicClient->searchFiles($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getSearchResults()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/SearchFiles', $actualFuncCall); - $actualValue = $actualRequestObject->getWorkspace(); - $this->assertProtobufEquals($formattedWorkspace, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchFilesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new SearchFilesRequest()) - ->setWorkspace($formattedWorkspace); - try { - $gapicClient->searchFiles($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchTeamFoldersTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $resultsElement = new TeamFolderSearchResult(); - $results = [ - $resultsElement, - ]; - $expectedResponse = new SearchTeamFoldersResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setResults($results); - $transport->addResponse($expectedResponse); - // Mock request - $formattedLocation = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new SearchTeamFoldersRequest()) - ->setLocation($formattedLocation); - $response = $gapicClient->searchTeamFolders($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getResults()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/SearchTeamFolders', $actualFuncCall); - $actualValue = $actualRequestObject->getLocation(); - $this->assertProtobufEquals($formattedLocation, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchTeamFoldersExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedLocation = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new SearchTeamFoldersRequest()) - ->setLocation($formattedLocation); - try { - $gapicClient->searchTeamFolders($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - $response = $gapicClient->setIamPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/SetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPolicy(); - $this->assertProtobufEquals($policy, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setIamPolicyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - try { - $gapicClient->setIamPolicy($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function testIamPermissionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new TestIamPermissionsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $permissions = []; - $request = (new TestIamPermissionsRequest()) - ->setResource($resource) - ->setPermissions($permissions); - $response = $gapicClient->testIamPermissions($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/TestIamPermissions', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPermissions(); - $this->assertProtobufEquals($permissions, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function testIamPermissionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $resource = 'resource-341064690'; - $permissions = []; - $request = (new TestIamPermissionsRequest()) - ->setResource($resource) - ->setPermissions($permissions); - try { - $gapicClient->testIamPermissions($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $defaultKmsKeyName = 'defaultKmsKeyName-635012393'; - $internalMetadata = 'internalMetadata-1087755663'; - $expectedResponse = new Config(); - $expectedResponse->setName($name); - $expectedResponse->setDefaultKmsKeyName($defaultKmsKeyName); - $expectedResponse->setInternalMetadata($internalMetadata); - $transport->addResponse($expectedResponse); - // Mock request - $config = new Config(); - $request = (new UpdateConfigRequest()) - ->setConfig($config); - $response = $gapicClient->updateConfig($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/UpdateConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getConfig(); - $this->assertProtobufEquals($config, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $config = new Config(); - $request = (new UpdateConfigRequest()) - ->setConfig($config); - try { - $gapicClient->updateConfig($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateFolderTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $containingFolder = 'containingFolder2137746239'; - $teamFolderName = 'teamFolderName-1375688486'; - $internalMetadata = 'internalMetadata-1087755663'; - $creatorIamPrincipal = 'creatorIamPrincipal866086897'; - $expectedResponse = new Folder(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setContainingFolder($containingFolder); - $expectedResponse->setTeamFolderName($teamFolderName); - $expectedResponse->setInternalMetadata($internalMetadata); - $expectedResponse->setCreatorIamPrincipal($creatorIamPrincipal); - $transport->addResponse($expectedResponse); - // Mock request - $folder = new Folder(); - $folderDisplayName = 'folderDisplayName1703145759'; - $folder->setDisplayName($folderDisplayName); - $request = (new UpdateFolderRequest()) - ->setFolder($folder); - $response = $gapicClient->updateFolder($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/UpdateFolder', $actualFuncCall); - $actualValue = $actualRequestObject->getFolder(); - $this->assertProtobufEquals($folder, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateFolderExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $folder = new Folder(); - $folderDisplayName = 'folderDisplayName1703145759'; - $folder->setDisplayName($folderDisplayName); - $request = (new UpdateFolderRequest()) - ->setFolder($folder); - try { - $gapicClient->updateFolder($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateReleaseConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $gitCommitish = 'gitCommitish-459981894'; - $cronSchedule = 'cronSchedule206244136'; - $timeZone = 'timeZone36848094'; - $releaseCompilationResult = 'releaseCompilationResult1831489873'; - $disabled = true; - $internalMetadata = 'internalMetadata-1087755663'; - $expectedResponse = new ReleaseConfig(); - $expectedResponse->setName($name); - $expectedResponse->setGitCommitish($gitCommitish); - $expectedResponse->setCronSchedule($cronSchedule); - $expectedResponse->setTimeZone($timeZone); - $expectedResponse->setReleaseCompilationResult($releaseCompilationResult); - $expectedResponse->setDisabled($disabled); - $expectedResponse->setInternalMetadata($internalMetadata); - $transport->addResponse($expectedResponse); - // Mock request - $releaseConfig = new ReleaseConfig(); - $releaseConfigGitCommitish = 'releaseConfigGitCommitish1714987262'; - $releaseConfig->setGitCommitish($releaseConfigGitCommitish); - $request = (new UpdateReleaseConfigRequest()) - ->setReleaseConfig($releaseConfig); - $response = $gapicClient->updateReleaseConfig($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/UpdateReleaseConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getReleaseConfig(); - $this->assertProtobufEquals($releaseConfig, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateReleaseConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $releaseConfig = new ReleaseConfig(); - $releaseConfigGitCommitish = 'releaseConfigGitCommitish1714987262'; - $releaseConfig->setGitCommitish($releaseConfigGitCommitish); - $request = (new UpdateReleaseConfigRequest()) - ->setReleaseConfig($releaseConfig); - try { - $gapicClient->updateReleaseConfig($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateRepositoryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $containingFolder = 'containingFolder2137746239'; - $teamFolderName = 'teamFolderName-1375688486'; - $displayName = 'displayName1615086568'; - $npmrcEnvironmentVariablesSecretVersion = 'npmrcEnvironmentVariablesSecretVersion-2118517056'; - $setAuthenticatedUserAdmin = true; - $serviceAccount = 'serviceAccount-1948028253'; - $kmsKeyName = 'kmsKeyName2094986649'; - $internalMetadata = 'internalMetadata-1087755663'; - $expectedResponse = new Repository(); - $expectedResponse->setName($name); - $expectedResponse->setContainingFolder($containingFolder); - $expectedResponse->setTeamFolderName($teamFolderName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setNpmrcEnvironmentVariablesSecretVersion($npmrcEnvironmentVariablesSecretVersion); - $expectedResponse->setSetAuthenticatedUserAdmin($setAuthenticatedUserAdmin); - $expectedResponse->setServiceAccount($serviceAccount); - $expectedResponse->setKmsKeyName($kmsKeyName); - $expectedResponse->setInternalMetadata($internalMetadata); - $transport->addResponse($expectedResponse); - // Mock request - $repository = new Repository(); - $request = (new UpdateRepositoryRequest()) - ->setRepository($repository); - $response = $gapicClient->updateRepository($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/UpdateRepository', $actualFuncCall); - $actualValue = $actualRequestObject->getRepository(); - $this->assertProtobufEquals($repository, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateRepositoryExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $repository = new Repository(); - $request = (new UpdateRepositoryRequest()) - ->setRepository($repository); - try { - $gapicClient->updateRepository($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateTeamFolderTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $internalMetadata = 'internalMetadata-1087755663'; - $creatorIamPrincipal = 'creatorIamPrincipal866086897'; - $expectedResponse = new TeamFolder(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setInternalMetadata($internalMetadata); - $expectedResponse->setCreatorIamPrincipal($creatorIamPrincipal); - $transport->addResponse($expectedResponse); - // Mock request - $teamFolder = new TeamFolder(); - $teamFolderDisplayName = 'teamFolderDisplayName136139842'; - $teamFolder->setDisplayName($teamFolderDisplayName); - $request = (new UpdateTeamFolderRequest()) - ->setTeamFolder($teamFolder); - $response = $gapicClient->updateTeamFolder($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/UpdateTeamFolder', $actualFuncCall); - $actualValue = $actualRequestObject->getTeamFolder(); - $this->assertProtobufEquals($teamFolder, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateTeamFolderExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $teamFolder = new TeamFolder(); - $teamFolderDisplayName = 'teamFolderDisplayName136139842'; - $teamFolder->setDisplayName($teamFolderDisplayName); - $request = (new UpdateTeamFolderRequest()) - ->setTeamFolder($teamFolder); - try { - $gapicClient->updateTeamFolder($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateWorkflowConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $releaseConfig = 'releaseConfig582587002'; - $cronSchedule = 'cronSchedule206244136'; - $timeZone = 'timeZone36848094'; - $disabled = true; - $internalMetadata = 'internalMetadata-1087755663'; - $expectedResponse = new WorkflowConfig(); - $expectedResponse->setName($name); - $expectedResponse->setReleaseConfig($releaseConfig); - $expectedResponse->setCronSchedule($cronSchedule); - $expectedResponse->setTimeZone($timeZone); - $expectedResponse->setDisabled($disabled); - $expectedResponse->setInternalMetadata($internalMetadata); - $transport->addResponse($expectedResponse); - // Mock request - $workflowConfig = new WorkflowConfig(); - $workflowConfigReleaseConfig = $gapicClient->releaseConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[RELEASE_CONFIG]'); - $workflowConfig->setReleaseConfig($workflowConfigReleaseConfig); - $request = (new UpdateWorkflowConfigRequest()) - ->setWorkflowConfig($workflowConfig); - $response = $gapicClient->updateWorkflowConfig($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/UpdateWorkflowConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getWorkflowConfig(); - $this->assertProtobufEquals($workflowConfig, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateWorkflowConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $workflowConfig = new WorkflowConfig(); - $workflowConfigReleaseConfig = $gapicClient->releaseConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[RELEASE_CONFIG]'); - $workflowConfig->setReleaseConfig($workflowConfigReleaseConfig); - $request = (new UpdateWorkflowConfigRequest()) - ->setWorkflowConfig($workflowConfig); - try { - $gapicClient->updateWorkflowConfig($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function writeFileTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new WriteFileResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $path = 'path3433509'; - $contents = '26'; - $request = (new WriteFileRequest()) - ->setWorkspace($formattedWorkspace) - ->setPath($path) - ->setContents($contents); - $response = $gapicClient->writeFile($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/WriteFile', $actualFuncCall); - $actualValue = $actualRequestObject->getWorkspace(); - $this->assertProtobufEquals($formattedWorkspace, $actualValue); - $actualValue = $actualRequestObject->getPath(); - $this->assertProtobufEquals($path, $actualValue); - $actualValue = $actualRequestObject->getContents(); - $this->assertProtobufEquals($contents, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function writeFileExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $path = 'path3433509'; - $contents = '26'; - $request = (new WriteFileRequest()) - ->setWorkspace($formattedWorkspace) - ->setPath($path) - ->setContents($contents); - try { - $gapicClient->writeFile($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function cancelOperationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $name = 'name3373707'; - $request = (new CancelOperationRequest()) - ->setName($name); - $gapicClient->cancelOperation($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/CancelOperation', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($name, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function cancelOperationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $name = 'name3373707'; - $request = (new CancelOperationRequest()) - ->setName($name); - try { - $gapicClient->cancelOperation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteOperationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $name = 'name3373707'; - $request = (new DeleteOperationRequest()) - ->setName($name); - $gapicClient->deleteOperation($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/DeleteOperation', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($name, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteOperationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $name = 'name3373707'; - $request = (new DeleteOperationRequest()) - ->setName($name); - try { - $gapicClient->deleteOperation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getOperationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $done = true; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setDone($done); - $transport->addResponse($expectedResponse); - // Mock request - $name = 'name3373707'; - $request = (new GetOperationRequest()) - ->setName($name); - $response = $gapicClient->getOperation($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($name, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getOperationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $name = 'name3373707'; - $request = (new GetOperationRequest()) - ->setName($name); - try { - $gapicClient->getOperation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listOperationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $operationsElement = new Operation(); - $operations = [ - $operationsElement, - ]; - $expectedResponse = new ListOperationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setOperations($operations); - $transport->addResponse($expectedResponse); - // Mock request - $name = 'name3373707'; - $filter = 'filter-1274492040'; - $request = (new ListOperationsRequest()) - ->setName($name) - ->setFilter($filter); - $response = $gapicClient->listOperations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getOperations()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/ListOperations', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($name, $actualValue); - $actualValue = $actualRequestObject->getFilter(); - $this->assertProtobufEquals($filter, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listOperationsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $name = 'name3373707'; - $filter = 'filter-1274492040'; - $request = (new ListOperationsRequest()) - ->setName($name) - ->setFilter($filter); - try { - $gapicClient->listOperations($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getLocationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $locationId = 'locationId552319461'; - $displayName = 'displayName1615086568'; - $expectedResponse = new Location(); - $expectedResponse->setName($name2); - $expectedResponse->setLocationId($locationId); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - $request = new GetLocationRequest(); - $response = $gapicClient->getLocation($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/GetLocation', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getLocationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new GetLocationRequest(); - try { - $gapicClient->getLocation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLocationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $locationsElement = new Location(); - $locations = [ - $locationsElement, - ]; - $expectedResponse = new ListLocationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setLocations($locations); - $transport->addResponse($expectedResponse); - $request = new ListLocationsRequest(); - $response = $gapicClient->listLocations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLocationsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListLocationsRequest(); - try { - $gapicClient->listLocations($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function cancelWorkflowInvocationAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new CancelWorkflowInvocationResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->workflowInvocationName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_INVOCATION]'); - $request = (new CancelWorkflowInvocationRequest()) - ->setName($formattedName); - $response = $gapicClient->cancelWorkflowInvocationAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1.Dataform/CancelWorkflowInvocation', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/GPBMetadata/Google/Cloud/Dataform/V1Beta1/Dataform.php b/owl-bot-staging/Dataform/v1beta1/proto/src/GPBMetadata/Google/Cloud/Dataform/V1Beta1/Dataform.php deleted file mode 100644 index 7cf6d0bfc40e..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/GPBMetadata/Google/Cloud/Dataform/V1Beta1/Dataform.php +++ /dev/null @@ -1,36 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xED\xFC\x02\x0A,google/cloud/dataform/v1beta1/dataform.proto\x12\x1Dgoogle.cloud.dataform.v1beta1\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\x0A\x13DataEncryptionState\x12N\x0A\x14kms_key_version_name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(cloudkms.googleapis.com/CryptoKeyVersion\"\xB0\x0E\x0A\x0ARepository\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12#\x0A\x11containing_folder\x18\x10 \x01(\x09B\x03\xE0A\x01H\x00\x88\x01\x01\x12\"\x0A\x10team_folder_name\x18\x12 \x01(\x09B\x03\xE0A\x03H\x01\x88\x01\x01\x124\x0A\x0Bcreate_time\x18\x0D \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x19\x0A\x0Cdisplay_name\x18\x08 \x01(\x09B\x03\xE0A\x01\x12]\x0A\x13git_remote_settings\x18\x02 \x01(\x0B2;.google.cloud.dataform.v1beta1.Repository.GitRemoteSettingsB\x03\xE0A\x01\x12f\x0A*npmrc_environment_variables_secret_version\x18\x03 \x01(\x09B2\xE0A\x01\xFAA,\x0A*secretmanager.googleapis.com/SecretVersion\x12u\x0A\x1Fworkspace_compilation_overrides\x18\x04 \x01(\x0B2G.google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverridesB\x03\xE0A\x01\x12J\x0A\x06labels\x18\x05 \x03(\x0B25.google.cloud.dataform.v1beta1.Repository.LabelsEntryB\x03\xE0A\x01\x12,\x0A\x1Cset_authenticated_user_admin\x18\x09 \x01(\x08B\x06\xE0A\x01\xE0A\x04\x12\x1C\x0A\x0Fservice_account\x18\x0A \x01(\x09B\x03\xE0A\x01\x12?\x0A\x0Ckms_key_name\x18\x0B \x01(\x09B)\xE0A\x01\xFAA#\x0A!cloudkms.googleapis.com/CryptoKey\x12V\x0A\x15data_encryption_state\x18\x0C \x01(\x0B22.google.cloud.dataform.v1beta1.DataEncryptionStateB\x03\xE0A\x03\x12#\x0A\x11internal_metadata\x18\x0F \x01(\x09B\x03\xE0A\x03H\x02\x88\x01\x01\x1A\xF1\x04\x0A\x11GitRemoteSettings\x12\x10\x0A\x03url\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x1B\x0A\x0Edefault_branch\x18\x02 \x01(\x09B\x03\xE0A\x02\x12_\x0A#authentication_token_secret_version\x18\x03 \x01(\x09B2\xE0A\x01\xFAA,\x0A*secretmanager.googleapis.com/SecretVersion\x12{\x0A\x19ssh_authentication_config\x18\x05 \x01(\x0B2S.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfigB\x03\xE0A\x01\x12d\x0A\x0Ctoken_status\x18\x04 \x01(\x0E2G.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatusB\x05\x18\x01\xE0A\x03\x1A\x94\x01\x0A\x17SshAuthenticationConfig\x12[\x0A\x1Fuser_private_key_secret_version\x18\x01 \x01(\x09B2\xE0A\x02\xFAA,\x0A*secretmanager.googleapis.com/SecretVersion\x12\x1C\x0A\x0Fhost_public_key\x18\x02 \x01(\x09B\x03\xE0A\x02\"R\x0A\x0BTokenStatus\x12\x1C\x0A\x18TOKEN_STATUS_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09NOT_FOUND\x10\x01\x12\x0B\x0A\x07INVALID\x10\x02\x12\x09\x0A\x05VALID\x10\x03\x1Au\x0A\x1DWorkspaceCompilationOverrides\x12\x1D\x0A\x10default_database\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Dschema_suffix\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Ctable_prefix\x18\x03 \x01(\x09B\x03\xE0A\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:\x85\x01\xEAA\x81\x01\x0A\"dataform.googleapis.com/Repository\x12Aprojects/{project}/locations/{location}/repositories/{repository}*\x0Crepositories2\x0ArepositoryB\x14\x0A\x12_containing_folderB\x13\x0A\x11_team_folder_nameB\x14\x0A\x12_internal_metadata\"3\x0A\x17PrivateResourceMetadata\x12\x18\x0A\x0Buser_scoped\x18\x01 \x01(\x08B\x03\xE0A\x03\"\xB1\x01\x0A\x17ListRepositoriesRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\x89\x01\x0A\x18ListRepositoriesResponse\x12?\x0A\x0Crepositories\x18\x01 \x03(\x0B2).google.cloud.dataform.v1beta1.Repository\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x13\x0A\x0Bunreachable\x18\x03 \x03(\x09\"\xA4\x01\x0A\x15MoveRepositoryRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12/\x0A\x1Ddestination_containing_folder\x18\x02 \x01(\x09B\x03\xE0A\x01H\x00\x88\x01\x01B \x0A\x1E_destination_containing_folder\"P\x0A\x14GetRepositoryRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\"\xB4\x01\x0A\x17CreateRepositoryRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12B\x0A\x0Arepository\x18\x02 \x01(\x0B2).google.cloud.dataform.v1beta1.RepositoryB\x03\xE0A\x02\x12\x1A\x0A\x0Drepository_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"\x93\x01\x0A\x17UpdateRepositoryRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12B\x0A\x0Arepository\x18\x02 \x01(\x0B2).google.cloud.dataform.v1beta1.RepositoryB\x03\xE0A\x02\"g\x0A\x17DeleteRepositoryRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x12\x0A\x05force\x18\x02 \x01(\x08B\x03\xE0A\x01\"\xEC\x05\x0A\x1ECommitRepositoryChangesRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12K\x0A\x0Fcommit_metadata\x18\x02 \x01(\x0B2-.google.cloud.dataform.v1beta1.CommitMetadataB\x03\xE0A\x02\x12%\x0A\x18required_head_commit_sha\x18\x04 \x01(\x09B\x03\xE0A\x01\x12o\x0A\x0Ffile_operations\x18\x03 \x03(\x0B2Q.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperationsEntryB\x03\xE0A\x01\x1A\xA5\x02\x0A\x0DFileOperation\x12k\x0A\x0Awrite_file\x18\x01 \x01(\x0B2U.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFileH\x00\x12m\x0A\x0Bdelete_file\x18\x02 \x01(\x0B2V.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFileH\x00\x1A\x1D\x0A\x09WriteFile\x12\x10\x0A\x08contents\x18\x01 \x01(\x0C\x1A\x0C\x0A\x0ADeleteFileB\x0B\x0A\x09operation\x1A\x82\x01\x0A\x13FileOperationsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12Z\x0A\x05value\x18\x02 \x01(\x0B2K.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation:\x028\x01\"5\x0A\x1FCommitRepositoryChangesResponse\x12\x12\x0A\x0Acommit_sha\x18\x01 \x01(\x09\"\x81\x01\x0A\x19ReadRepositoryFileRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x17\x0A\x0Acommit_sha\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04path\x18\x03 \x01(\x09B\x03\xE0A\x02\".\x0A\x1AReadRepositoryFileResponse\x12\x10\x0A\x08contents\x18\x01 \x01(\x0C\"\xC0\x01\x0A'QueryRepositoryDirectoryContentsRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x17\x0A\x0Acommit_sha\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04path\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09page_size\x18\x04 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x05 \x01(\x09B\x03\xE0A\x01\"\x8D\x01\x0A(QueryRepositoryDirectoryContentsResponse\x12H\x0A\x11directory_entries\x18\x01 \x03(\x0B2-.google.cloud.dataform.v1beta1.DirectoryEntry\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x8A\x01\x0A\x1DFetchRepositoryHistoryRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x05 \x01(\x09B\x03\xE0A\x01\"y\x0A\x1EFetchRepositoryHistoryResponse\x12>\x0A\x07commits\x18\x01 \x03(\x0B2-.google.cloud.dataform.v1beta1.CommitLogEntry\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xAA\x01\x0A\x0ECommitLogEntry\x12/\x0A\x0Bcommit_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x12\x0A\x0Acommit_sha\x18\x02 \x01(\x09\x12;\x0A\x06author\x18\x03 \x01(\x0B2+.google.cloud.dataform.v1beta1.CommitAuthor\x12\x16\x0A\x0Ecommit_message\x18\x04 \x01(\x09\"o\x0A\x0ECommitMetadata\x12@\x0A\x06author\x18\x01 \x01(\x0B2+.google.cloud.dataform.v1beta1.CommitAuthorB\x03\xE0A\x02\x12\x1B\x0A\x0Ecommit_message\x18\x02 \x01(\x09B\x03\xE0A\x01\"e\x0A)ComputeRepositoryAccessTokenStatusRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\"\xED\x01\x0A*ComputeRepositoryAccessTokenStatusResponse\x12k\x0A\x0Ctoken_status\x18\x01 \x01(\x0E2U.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus\"R\x0A\x0BTokenStatus\x12\x1C\x0A\x18TOKEN_STATUS_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09NOT_FOUND\x10\x01\x12\x0B\x0A\x07INVALID\x10\x02\x12\x09\x0A\x05VALID\x10\x03\"V\x0A\x1AFetchRemoteBranchesRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\"/\x0A\x1BFetchRemoteBranchesResponse\x12\x10\x0A\x08branches\x18\x01 \x03(\x09\"\x95\x04\x0A\x09Workspace\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12V\x0A\x15data_encryption_state\x18\x02 \x01(\x0B22.google.cloud.dataform.v1beta1.DataEncryptionStateB\x03\xE0A\x03\x12#\x0A\x11internal_metadata\x18\x05 \x01(\x09B\x03\xE0A\x03H\x00\x88\x01\x01\x12\x1F\x0A\x0Ddisable_moves\x18\x06 \x01(\x08B\x03\xE0A\x01H\x01\x88\x01\x01\x12^\x0A\x19private_resource_metadata\x18\x08 \x01(\x0B26.google.cloud.dataform.v1beta1.PrivateResourceMetadataB\x03\xE0A\x03:\x98\x01\xEAA\x94\x01\x0A!dataform.googleapis.com/Workspace\x12Xprojects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace}*\x0Aworkspaces2\x09workspaceB\x14\x0A\x12_internal_metadataB\x10\x0A\x0E_disable_moves\"\xB0\x01\x0A\x15ListWorkspacesRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\x84\x01\x0A\x16ListWorkspacesResponse\x12<\x0A\x0Aworkspaces\x18\x01 \x03(\x0B2(.google.cloud.dataform.v1beta1.Workspace\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x13\x0A\x0Bunreachable\x18\x03 \x03(\x09\"N\x0A\x13GetWorkspaceRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\"\xB1\x01\x0A\x16CreateWorkspaceRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12@\x0A\x09workspace\x18\x02 \x01(\x0B2(.google.cloud.dataform.v1beta1.WorkspaceB\x03\xE0A\x02\x12\x19\x0A\x0Cworkspace_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"Q\x0A\x16DeleteWorkspaceRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\"=\x0A\x0CCommitAuthor\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x1A\x0A\x0Demail_address\x18\x02 \x01(\x09B\x03\xE0A\x02\"\xAE\x01\x0A\x15PullGitCommitsRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x1A\x0A\x0Dremote_branch\x18\x02 \x01(\x09B\x03\xE0A\x01\x12@\x0A\x06author\x18\x03 \x01(\x0B2+.google.cloud.dataform.v1beta1.CommitAuthorB\x03\xE0A\x02\"\x18\x0A\x16PullGitCommitsResponse\"l\x0A\x15PushGitCommitsRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x1A\x0A\x0Dremote_branch\x18\x02 \x01(\x09B\x03\xE0A\x01\"\x18\x0A\x16PushGitCommitsResponse\"V\x0A\x1BFetchFileGitStatusesRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\"\x81\x03\x0A\x1CFetchFileGitStatusesResponse\x12s\x0A\x18uncommitted_file_changes\x18\x01 \x03(\x0B2Q.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange\x1A\xEB\x01\x0A\x15UncommittedFileChange\x12\x0C\x0A\x04path\x18\x01 \x01(\x09\x12k\x0A\x05state\x18\x02 \x01(\x0E2W.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.StateB\x03\xE0A\x03\"W\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05ADDED\x10\x01\x12\x0B\x0A\x07DELETED\x10\x02\x12\x0C\x0A\x08MODIFIED\x10\x03\x12\x11\x0A\x0DHAS_CONFLICTS\x10\x04\"q\x0A\x1AFetchGitAheadBehindRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x1A\x0A\x0Dremote_branch\x18\x02 \x01(\x09B\x03\xE0A\x01\"L\x0A\x1BFetchGitAheadBehindResponse\x12\x15\x0A\x0Dcommits_ahead\x18\x01 \x01(\x05\x12\x16\x0A\x0Ecommits_behind\x18\x02 \x01(\x05\"\xCB\x01\x0A\x1DCommitWorkspaceChangesRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12@\x0A\x06author\x18\x04 \x01(\x0B2+.google.cloud.dataform.v1beta1.CommitAuthorB\x03\xE0A\x02\x12\x1B\x0A\x0Ecommit_message\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x12\x0A\x05paths\x18\x03 \x03(\x09B\x03\xE0A\x01\" \x0A\x1ECommitWorkspaceChangesResponse\"\x7F\x0A\x1CResetWorkspaceChangesRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x12\x0A\x05paths\x18\x02 \x03(\x09B\x03\xE0A\x01\x12\x12\x0A\x05clean\x18\x03 \x01(\x08B\x03\xE0A\x01\"\x1F\x0A\x1DResetWorkspaceChangesResponse\"g\x0A\x14FetchFileDiffRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\"/\x0A\x15FetchFileDiffResponse\x12\x16\x0A\x0Eformatted_diff\x18\x01 \x01(\x09\"\xA1\x01\x0A\x1DQueryDirectoryContentsRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09page_size\x18\x03 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x04 \x01(\x09B\x03\xE0A\x01\"\x83\x01\x0A\x1EQueryDirectoryContentsResponse\x12H\x0A\x11directory_entries\x18\x01 \x03(\x0B2-.google.cloud.dataform.v1beta1.DirectoryEntry\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\">\x0A\x0EDirectoryEntry\x12\x0E\x0A\x04file\x18\x01 \x01(\x09H\x00\x12\x13\x0A\x09directory\x18\x02 \x01(\x09H\x00B\x07\x0A\x05entry\"\x98\x01\x0A\x12SearchFilesRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\"x\x0A\x13SearchFilesResponse\x12C\x0A\x0Esearch_results\x18\x01 \x03(\x0B2+.google.cloud.dataform.v1beta1.SearchResult\x12\x1C\x0A\x0Fnext_page_token\x18\x02 \x01(\x09B\x03\xE0A\x01\"\xA3\x01\x0A\x0CSearchResult\x12?\x0A\x04file\x18\x01 \x01(\x0B2/.google.cloud.dataform.v1beta1.FileSearchResultH\x00\x12I\x0A\x09directory\x18\x02 \x01(\x0B24.google.cloud.dataform.v1beta1.DirectorySearchResultH\x00B\x07\x0A\x05entry\" \x0A\x10FileSearchResult\x12\x0C\x0A\x04path\x18\x01 \x01(\x09\"%\x0A\x15DirectorySearchResult\x12\x0C\x0A\x04path\x18\x01 \x01(\x09\"g\x0A\x14MakeDirectoryRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\"\x17\x0A\x15MakeDirectoryResponse\"i\x0A\x16RemoveDirectoryRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\"\x19\x0A\x17RemoveDirectoryResponse\"~\x0A\x14MoveDirectoryRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08new_path\x18\x03 \x01(\x09B\x03\xE0A\x02\"\x17\x0A\x15MoveDirectoryResponse\"y\x0A\x0FReadFileRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08revision\x18\x03 \x01(\x09B\x03\xE0A\x01\")\x0A\x10ReadFileResponse\x12\x15\x0A\x0Dfile_contents\x18\x01 \x01(\x0C\"d\x0A\x11RemoveFileRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\"\x14\x0A\x12RemoveFileResponse\"y\x0A\x0FMoveFileRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08new_path\x18\x03 \x01(\x09B\x03\xE0A\x02\"\x12\x0A\x10MoveFileResponse\"z\x0A\x10WriteFileRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x15\x0A\x08contents\x18\x03 \x01(\x0CB\x03\xE0A\x02\"\x13\x0A\x11WriteFileResponse\"Y\x0A\x19InstallNpmPackagesRequest\x12<\x0A\x09workspace\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataform.googleapis.com/Workspace\"\x1C\x0A\x1AInstallNpmPackagesResponse\"\xF1\x06\x0A\x0DReleaseConfig\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x1A\x0A\x0Dgit_commitish\x18\x02 \x01(\x09B\x03\xE0A\x02\x12Z\x0A\x17code_compilation_config\x18\x03 \x01(\x0B24.google.cloud.dataform.v1beta1.CodeCompilationConfigB\x03\xE0A\x01\x12\x1A\x0A\x0Dcron_schedule\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09time_zone\x18\x07 \x01(\x09B\x03\xE0A\x01\x12r\x0A recent_scheduled_release_records\x18\x05 \x03(\x0B2C.google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecordB\x03\xE0A\x03\x12U\x0A\x1Arelease_compilation_result\x18\x06 \x01(\x09B1\xE0A\x01\xFAA+\x0A)dataform.googleapis.com/CompilationResult\x12\x15\x0A\x08disabled\x18\x08 \x01(\x08B\x03\xE0A\x01\x12#\x0A\x11internal_metadata\x18\x09 \x01(\x09B\x03\xE0A\x03H\x00\x88\x01\x01\x1A\xD3\x01\x0A\x16ScheduledReleaseRecord\x12L\x0A\x12compilation_result\x18\x02 \x01(\x09B.\xFAA+\x0A)dataform.googleapis.com/CompilationResultH\x00\x12*\x0A\x0Cerror_status\x18\x03 \x01(\x0B2\x12.google.rpc.StatusH\x00\x125\x0A\x0Crelease_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03B\x08\x0A\x06result:\xAD\x01\xEAA\xA9\x01\x0A%dataform.googleapis.com/ReleaseConfig\x12aprojects/{project}/locations/{location}/repositories/{repository}/releaseConfigs/{release_config}*\x0EreleaseConfigs2\x0DreleaseConfigB\x14\x0A\x12_internal_metadata\"\x88\x01\x0A\x19ListReleaseConfigsRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"\x91\x01\x0A\x1AListReleaseConfigsResponse\x12E\x0A\x0Frelease_configs\x18\x01 \x03(\x0B2,.google.cloud.dataform.v1beta1.ReleaseConfig\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x13\x0A\x0Bunreachable\x18\x03 \x03(\x09\"V\x0A\x17GetReleaseConfigRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%dataform.googleapis.com/ReleaseConfig\"\xC3\x01\x0A\x1ACreateReleaseConfigRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12I\x0A\x0Erelease_config\x18\x02 \x01(\x0B2,.google.cloud.dataform.v1beta1.ReleaseConfigB\x03\xE0A\x02\x12\x1E\x0A\x11release_config_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"\x9D\x01\x0A\x1AUpdateReleaseConfigRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12I\x0A\x0Erelease_config\x18\x02 \x01(\x0B2,.google.cloud.dataform.v1beta1.ReleaseConfigB\x03\xE0A\x02\"Y\x0A\x1ADeleteReleaseConfigRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%dataform.googleapis.com/ReleaseConfig\"\xE3\x08\x0A\x11CompilationResult\x12\x1C\x0A\x0Dgit_commitish\x18\x02 \x01(\x09B\x03\xE0A\x05H\x00\x12>\x0A\x09workspace\x18\x03 \x01(\x09B)\xE0A\x05\xFAA#\x0A!dataform.googleapis.com/WorkspaceH\x00\x12G\x0A\x0Erelease_config\x18\x07 \x01(\x09B-\xE0A\x05\xFAA'\x0A%dataform.googleapis.com/ReleaseConfigH\x00\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12Z\x0A\x17code_compilation_config\x18\x04 \x01(\x0B24.google.cloud.dataform.v1beta1.CodeCompilationConfigB\x03\xE0A\x05\x12\$\x0A\x17resolved_git_commit_sha\x18\x08 \x01(\x09B\x03\xE0A\x03\x12\"\x0A\x15dataform_core_version\x18\x05 \x01(\x09B\x03\xE0A\x03\x12b\x0A\x12compilation_errors\x18\x06 \x03(\x0B2A.google.cloud.dataform.v1beta1.CompilationResult.CompilationErrorB\x03\xE0A\x03\x12V\x0A\x15data_encryption_state\x18\x09 \x01(\x0B22.google.cloud.dataform.v1beta1.DataEncryptionStateB\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x0A \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12#\x0A\x11internal_metadata\x18\x0B \x01(\x09B\x03\xE0A\x03H\x01\x88\x01\x01\x12^\x0A\x19private_resource_metadata\x18\x0C \x01(\x0B26.google.cloud.dataform.v1beta1.PrivateResourceMetadataB\x03\xE0A\x03\x1A\x92\x01\x0A\x10CompilationError\x12\x14\x0A\x07message\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x12\x0A\x05stack\x18\x02 \x01(\x09B\x03\xE0A\x03\x12\x11\x0A\x04path\x18\x03 \x01(\x09B\x03\xE0A\x03\x12A\x0A\x0Daction_target\x18\x04 \x01(\x0B2%.google.cloud.dataform.v1beta1.TargetB\x03\xE0A\x03:\xC1\x01\xEAA\xBD\x01\x0A)dataform.googleapis.com/CompilationResult\x12iprojects/{project}/locations/{location}/repositories/{repository}/compilationResults/{compilation_result}*\x12compilationResults2\x11compilationResultB\x08\x0A\x06sourceB\x14\x0A\x12_internal_metadata\"\xF8\x03\x0A\x15CodeCompilationConfig\x12\x1D\x0A\x10default_database\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x1B\x0A\x0Edefault_schema\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x1D\x0A\x10default_location\x18\x08 \x01(\x09B\x03\xE0A\x01\x12\x1D\x0A\x10assertion_schema\x18\x03 \x01(\x09B\x03\xE0A\x01\x12Q\x0A\x04vars\x18\x04 \x03(\x0B2>.google.cloud.dataform.v1beta1.CodeCompilationConfig.VarsEntryB\x03\xE0A\x01\x12\x1C\x0A\x0Fdatabase_suffix\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Dschema_suffix\x18\x06 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Ctable_prefix\x18\x07 \x01(\x09B\x03\xE0A\x01\x12*\x0A\x1Dbuiltin_assertion_name_prefix\x18\x0A \x01(\x09B\x03\xE0A\x01\x12d\x0A default_notebook_runtime_options\x18\x09 \x01(\x0B25.google.cloud.dataform.v1beta1.NotebookRuntimeOptionsB\x03\xE0A\x01\x1A+\x0A\x09VarsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\xB6\x01\x0A\x16NotebookRuntimeOptions\x12 \x0A\x11gcs_output_bucket\x18\x01 \x01(\x09B\x03\xE0A\x01H\x00\x12h\x0A%ai_platform_notebook_runtime_template\x18\x02 \x01(\x09B9\xE0A\x01\xFAA3\x0A1aiplatform.googleapis.com/NotebookRuntimeTemplateB\x10\x0A\x0Eexecution_sink\"\xB8\x01\x0A\x1DListCompilationResultsRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\x9D\x01\x0A\x1EListCompilationResultsResponse\x12M\x0A\x13compilation_results\x18\x01 \x03(\x0B20.google.cloud.dataform.v1beta1.CompilationResult\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x13\x0A\x0Bunreachable\x18\x03 \x03(\x09\"^\x0A\x1BGetCompilationResultRequest\x12?\x0A\x04name\x18\x01 \x01(\x09B1\xE0A\x02\xFAA+\x0A)dataform.googleapis.com/CompilationResult\"\xAF\x01\x0A\x1ECreateCompilationResultRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12Q\x0A\x12compilation_result\x18\x02 \x01(\x0B20.google.cloud.dataform.v1beta1.CompilationResultB\x03\xE0A\x02\"G\x0A\x06Target\x12\x15\x0A\x08database\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06schema\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04name\x18\x03 \x01(\x09B\x03\xE0A\x01\"\xEA\x02\x0A\x12RelationDescriptor\x12\x13\x0A\x0Bdescription\x18\x01 \x01(\x09\x12S\x0A\x07columns\x18\x02 \x03(\x0B2B.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor\x12^\x0A\x0Fbigquery_labels\x18\x03 \x03(\x0B2E.google.cloud.dataform.v1beta1.RelationDescriptor.BigqueryLabelsEntry\x1AS\x0A\x10ColumnDescriptor\x12\x0C\x0A\x04path\x18\x01 \x03(\x09\x12\x13\x0A\x0Bdescription\x18\x02 \x01(\x09\x12\x1C\x0A\x14bigquery_policy_tags\x18\x03 \x03(\x09\x1A5\x0A\x13BigqueryLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\xBE\x1F\x0A\x17CompilationResultAction\x12S\x0A\x08relation\x18\x04 \x01(\x0B2?.google.cloud.dataform.v1beta1.CompilationResultAction.RelationH\x00\x12W\x0A\x0Aoperations\x18\x05 \x01(\x0B2A.google.cloud.dataform.v1beta1.CompilationResultAction.OperationsH\x00\x12U\x0A\x09assertion\x18\x06 \x01(\x0B2@.google.cloud.dataform.v1beta1.CompilationResultAction.AssertionH\x00\x12Y\x0A\x0Bdeclaration\x18\x07 \x01(\x0B2B.google.cloud.dataform.v1beta1.CompilationResultAction.DeclarationH\x00\x12S\x0A\x08notebook\x18\x08 \x01(\x0B2?.google.cloud.dataform.v1beta1.CompilationResultAction.NotebookH\x00\x12b\x0A\x10data_preparation\x18\x09 \x01(\x0B2F.google.cloud.dataform.v1beta1.CompilationResultAction.DataPreparationH\x00\x125\x0A\x06target\x18\x01 \x01(\x0B2%.google.cloud.dataform.v1beta1.Target\x12?\x0A\x10canonical_target\x18\x02 \x01(\x0B2%.google.cloud.dataform.v1beta1.Target\x12\x11\x0A\x09file_path\x18\x03 \x01(\x09\x12#\x0A\x11internal_metadata\x18\x0A \x01(\x09B\x03\xE0A\x03H\x01\x88\x01\x01\x1A\xD1\x0B\x0A\x08Relation\x12A\x0A\x12dependency_targets\x18\x01 \x03(\x0B2%.google.cloud.dataform.v1beta1.Target\x12\x10\x0A\x08disabled\x18\x02 \x01(\x08\x12\x0C\x0A\x04tags\x18\x03 \x03(\x09\x12N\x0A\x13relation_descriptor\x18\x04 \x01(\x0B21.google.cloud.dataform.v1beta1.RelationDescriptor\x12c\x0A\x0Drelation_type\x18\x05 \x01(\x0E2L.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType\x12\x14\x0A\x0Cselect_query\x18\x06 \x01(\x09\x12\x16\x0A\x0Epre_operations\x18\x07 \x03(\x09\x12\x17\x0A\x0Fpost_operations\x18\x08 \x03(\x09\x12x\x0A\x18incremental_table_config\x18\x09 \x01(\x0B2V.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig\x12\x1C\x0A\x14partition_expression\x18\x0A \x01(\x09\x12\x1B\x0A\x13cluster_expressions\x18\x0B \x03(\x09\x12!\x0A\x19partition_expiration_days\x18\x0C \x01(\x05\x12 \x0A\x18require_partition_filter\x18\x0D \x01(\x08\x12r\x0A\x12additional_options\x18\x0E \x03(\x0B2V.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.AdditionalOptionsEntry\x12\x17\x0A\x0Aconnection\x18\x0F \x01(\x09B\x03\xE0A\x01\x12f\x0A\x0Ctable_format\x18\x10 \x01(\x0E2K.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.TableFormatB\x03\xE0A\x01\x12d\x0A\x0Bfile_format\x18\x11 \x01(\x0E2J.google.cloud.dataform.v1beta1.CompilationResultAction.Relation.FileFormatB\x03\xE0A\x01\x12\x18\x0A\x0Bstorage_uri\x18\x12 \x01(\x09B\x03\xE0A\x01\x1A\xD8\x01\x0A\x16IncrementalTableConfig\x12 \x0A\x18incremental_select_query\x18\x01 \x01(\x09\x12\x18\x0A\x10refresh_disabled\x18\x02 \x01(\x08\x12\x18\x0A\x10unique_key_parts\x18\x03 \x03(\x09\x12\x1F\x0A\x17update_partition_filter\x18\x04 \x01(\x09\x12\"\x0A\x1Aincremental_pre_operations\x18\x05 \x03(\x09\x12#\x0A\x1Bincremental_post_operations\x18\x06 \x03(\x09\x1A8\x0A\x16AdditionalOptionsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"p\x0A\x0CRelationType\x12\x1D\x0A\x19RELATION_TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05TABLE\x10\x01\x12\x08\x0A\x04VIEW\x10\x02\x12\x15\x0A\x11INCREMENTAL_TABLE\x10\x03\x12\x15\x0A\x11MATERIALIZED_VIEW\x10\x04\"8\x0A\x0BTableFormat\x12\x1C\x0A\x18TABLE_FORMAT_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07ICEBERG\x10\x01\"6\x0A\x0AFileFormat\x12\x1B\x0A\x17FILE_FORMAT_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07PARQUET\x10\x01\x1A\xE4\x01\x0A\x0AOperations\x12A\x0A\x12dependency_targets\x18\x01 \x03(\x0B2%.google.cloud.dataform.v1beta1.Target\x12\x10\x0A\x08disabled\x18\x02 \x01(\x08\x12\x0C\x0A\x04tags\x18\x03 \x03(\x09\x12N\x0A\x13relation_descriptor\x18\x06 \x01(\x0B21.google.cloud.dataform.v1beta1.RelationDescriptor\x12\x0F\x0A\x07queries\x18\x04 \x03(\x09\x12\x12\x0A\x0Ahas_output\x18\x05 \x01(\x08\x1A\x92\x02\x0A\x09Assertion\x12A\x0A\x12dependency_targets\x18\x01 \x03(\x0B2%.google.cloud.dataform.v1beta1.Target\x12<\x0A\x0Dparent_action\x18\x05 \x01(\x0B2%.google.cloud.dataform.v1beta1.Target\x12\x10\x0A\x08disabled\x18\x02 \x01(\x08\x12\x0C\x0A\x04tags\x18\x03 \x03(\x09\x12\x14\x0A\x0Cselect_query\x18\x04 \x01(\x09\x12N\x0A\x13relation_descriptor\x18\x06 \x01(\x0B21.google.cloud.dataform.v1beta1.RelationDescriptor\x1A]\x0A\x0BDeclaration\x12N\x0A\x13relation_descriptor\x18\x01 \x01(\x0B21.google.cloud.dataform.v1beta1.RelationDescriptor\x1A\x7F\x0A\x08Notebook\x12A\x0A\x12dependency_targets\x18\x01 \x03(\x0B2%.google.cloud.dataform.v1beta1.Target\x12\x10\x0A\x08disabled\x18\x02 \x01(\x08\x12\x10\x0A\x08contents\x18\x03 \x01(\x09\x12\x0C\x0A\x04tags\x18\x04 \x03(\x09\x1A\xC0\x04\x0A\x0FDataPreparation\x12\x17\x0A\x0Dcontents_yaml\x18\x05 \x01(\x09H\x00\x12l\x0A\x0Ccontents_sql\x18\x06 \x01(\x0B2T.google.cloud.dataform.v1beta1.CompilationResultAction.DataPreparation.SqlDefinitionH\x00\x12A\x0A\x12dependency_targets\x18\x01 \x03(\x0B2%.google.cloud.dataform.v1beta1.Target\x12\x10\x0A\x08disabled\x18\x02 \x01(\x08\x12\x0C\x0A\x04tags\x18\x04 \x03(\x09\x1A\xD7\x01\x0A\x0DSqlDefinition\x12\x0D\x0A\x05query\x18\x01 \x01(\x09\x12f\x0A\x0Berror_table\x18\x02 \x01(\x0B2Q.google.cloud.dataform.v1beta1.CompilationResultAction.DataPreparation.ErrorTable\x12O\x0A\x04load\x18\x03 \x01(\x0B2A.google.cloud.dataform.v1beta1.CompilationResultAction.LoadConfig\x1A[\x0A\x0AErrorTable\x125\x0A\x06target\x18\x01 \x01(\x0B2%.google.cloud.dataform.v1beta1.Target\x12\x16\x0A\x0Eretention_days\x18\x02 \x01(\x05B\x0C\x0A\x0Adefinition\x1A\x84\x03\x0A\x0ALoadConfig\x12X\x0A\x07replace\x18\x01 \x01(\x0B2E.google.cloud.dataform.v1beta1.CompilationResultAction.SimpleLoadModeH\x00\x12W\x0A\x06append\x18\x02 \x01(\x0B2E.google.cloud.dataform.v1beta1.CompilationResultAction.SimpleLoadModeH\x00\x12]\x0A\x07maximum\x18\x03 \x01(\x0B2J.google.cloud.dataform.v1beta1.CompilationResultAction.IncrementalLoadModeH\x00\x12\\\x0A\x06unique\x18\x04 \x01(\x0B2J.google.cloud.dataform.v1beta1.CompilationResultAction.IncrementalLoadModeH\x00B\x06\x0A\x04mode\x1A\x10\x0A\x0ESimpleLoadMode\x1A%\x0A\x13IncrementalLoadMode\x12\x0E\x0A\x06column\x18\x01 \x01(\x09B\x11\x0A\x0Fcompiled_objectB\x14\x0A\x12_internal_metadata\"\xAD\x01\x0A\$QueryCompilationResultActionsRequest\x12?\x0A\x04name\x18\x01 \x01(\x09B1\xE0A\x02\xFAA+\x0A)dataform.googleapis.com/CompilationResult\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\"\x9C\x01\x0A%QueryCompilationResultActionsResponse\x12Z\x0A\x1Acompilation_result_actions\x18\x01 \x03(\x0B26.google.cloud.dataform.v1beta1.CompilationResultAction\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xB7\x07\x0A\x0EWorkflowConfig\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12E\x0A\x0Erelease_config\x18\x02 \x01(\x09B-\xE0A\x02\xFAA'\x0A%dataform.googleapis.com/ReleaseConfig\x12O\x0A\x11invocation_config\x18\x03 \x01(\x0B2/.google.cloud.dataform.v1beta1.InvocationConfigB\x03\xE0A\x01\x12\x1A\x0A\x0Dcron_schedule\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09time_zone\x18\x07 \x01(\x09B\x03\xE0A\x01\x12w\x0A\"recent_scheduled_execution_records\x18\x05 \x03(\x0B2F.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecordB\x03\xE0A\x03\x12\x15\x0A\x08disabled\x18\x08 \x01(\x08B\x03\xE0A\x01\x124\x0A\x0Bcreate_time\x18\x09 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x0A \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12#\x0A\x11internal_metadata\x18\x0B \x01(\x09B\x03\xE0A\x03H\x00\x88\x01\x01\x1A\xD9\x01\x0A\x18ScheduledExecutionRecord\x12N\x0A\x13workflow_invocation\x18\x02 \x01(\x09B/\xFAA,\x0A*dataform.googleapis.com/WorkflowInvocationH\x00\x12*\x0A\x0Cerror_status\x18\x03 \x01(\x0B2\x12.google.rpc.StatusH\x00\x127\x0A\x0Eexecution_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03B\x08\x0A\x06result:\xB2\x01\xEAA\xAE\x01\x0A&dataform.googleapis.com/WorkflowConfig\x12cprojects/{project}/locations/{location}/repositories/{repository}/workflowConfigs/{workflow_config}*\x0FworkflowConfigs2\x0EworkflowConfigB\x14\x0A\x12_internal_metadata\"\xE6\x03\x0A\x10InvocationConfig\x12D\x0A\x10included_targets\x18\x01 \x03(\x0B2%.google.cloud.dataform.v1beta1.TargetB\x03\xE0A\x01\x12\x1A\x0A\x0Dincluded_tags\x18\x02 \x03(\x09B\x03\xE0A\x01\x12-\x0A transitive_dependencies_included\x18\x03 \x01(\x08B\x03\xE0A\x01\x12+\x0A\x1Etransitive_dependents_included\x18\x04 \x01(\x08B\x03\xE0A\x01\x125\x0A(fully_refresh_incremental_tables_enabled\x18\x05 \x01(\x08B\x03\xE0A\x01\x12\x1C\x0A\x0Fservice_account\x18\x06 \x01(\x09B\x03\xE0A\x01\x12_\x0A\x0Equery_priority\x18\x09 \x01(\x0E2=.google.cloud.dataform.v1beta1.InvocationConfig.QueryPriorityB\x03\xE0A\x01H\x00\x88\x01\x01\"K\x0A\x0DQueryPriority\x12\x1E\x0A\x1AQUERY_PRIORITY_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BINTERACTIVE\x10\x01\x12\x09\x0A\x05BATCH\x10\x02B\x11\x0A\x0F_query_priority\"\x89\x01\x0A\x1AListWorkflowConfigsRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"\x94\x01\x0A\x1BListWorkflowConfigsResponse\x12G\x0A\x10workflow_configs\x18\x01 \x03(\x0B2-.google.cloud.dataform.v1beta1.WorkflowConfig\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x13\x0A\x0Bunreachable\x18\x03 \x03(\x09\"X\x0A\x18GetWorkflowConfigRequest\x12<\x0A\x04name\x18\x01 \x01(\x09B.\xE0A\x02\xFAA(\x0A&dataform.googleapis.com/WorkflowConfig\"\xC7\x01\x0A\x1BCreateWorkflowConfigRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12K\x0A\x0Fworkflow_config\x18\x02 \x01(\x0B2-.google.cloud.dataform.v1beta1.WorkflowConfigB\x03\xE0A\x02\x12\x1F\x0A\x12workflow_config_id\x18\x03 \x01(\x09B\x03\xE0A\x02\"\xA0\x01\x0A\x1BUpdateWorkflowConfigRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12K\x0A\x0Fworkflow_config\x18\x02 \x01(\x0B2-.google.cloud.dataform.v1beta1.WorkflowConfigB\x03\xE0A\x02\"[\x0A\x1BDeleteWorkflowConfigRequest\x12<\x0A\x04name\x18\x01 \x01(\x09B.\xE0A\x02\xFAA(\x0A&dataform.googleapis.com/WorkflowConfig\"\xA8\x08\x0A\x12WorkflowInvocation\x12O\x0A\x12compilation_result\x18\x02 \x01(\x09B1\xE0A\x05\xFAA+\x0A)dataform.googleapis.com/CompilationResultH\x00\x12I\x0A\x0Fworkflow_config\x18\x06 \x01(\x09B.\xE0A\x05\xFAA(\x0A&dataform.googleapis.com/WorkflowConfigH\x00\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12O\x0A\x11invocation_config\x18\x03 \x01(\x0B2/.google.cloud.dataform.v1beta1.InvocationConfigB\x03\xE0A\x05\x12K\x0A\x05state\x18\x04 \x01(\x0E27.google.cloud.dataform.v1beta1.WorkflowInvocation.StateB\x03\xE0A\x03\x125\x0A\x11invocation_timing\x18\x05 \x01(\x0B2\x15.google.type.IntervalB\x03\xE0A\x03\x12V\x0A\x1Bresolved_compilation_result\x18\x07 \x01(\x09B1\xE0A\x03\xFAA+\x0A)dataform.googleapis.com/CompilationResult\x12V\x0A\x15data_encryption_state\x18\x08 \x01(\x0B22.google.cloud.dataform.v1beta1.DataEncryptionStateB\x03\xE0A\x03\x12#\x0A\x11internal_metadata\x18\x09 \x01(\x09B\x03\xE0A\x03H\x01\x88\x01\x01\x12^\x0A\x19private_resource_metadata\x18\x0A \x01(\x0B26.google.cloud.dataform.v1beta1.PrivateResourceMetadataB\x03\xE0A\x03\"d\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07RUNNING\x10\x01\x12\x0D\x0A\x09SUCCEEDED\x10\x02\x12\x0D\x0A\x09CANCELLED\x10\x03\x12\x0A\x0A\x06FAILED\x10\x04\x12\x0D\x0A\x09CANCELING\x10\x05:\xC6\x01\xEAA\xC2\x01\x0A*dataform.googleapis.com/WorkflowInvocation\x12kprojects/{project}/locations/{location}/repositories/{repository}/workflowInvocations/{workflow_invocation}*\x13workflowInvocations2\x12workflowInvocationB\x14\x0A\x12compilation_sourceB\x14\x0A\x12_internal_metadata\"\xB9\x01\x0A\x1EListWorkflowInvocationsRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\xA0\x01\x0A\x1FListWorkflowInvocationsResponse\x12O\x0A\x14workflow_invocations\x18\x01 \x03(\x0B21.google.cloud.dataform.v1beta1.WorkflowInvocation\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x13\x0A\x0Bunreachable\x18\x03 \x03(\x09\"`\x0A\x1CGetWorkflowInvocationRequest\x12@\x0A\x04name\x18\x01 \x01(\x09B2\xE0A\x02\xFAA,\x0A*dataform.googleapis.com/WorkflowInvocation\"\xB2\x01\x0A\x1FCreateWorkflowInvocationRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/Repository\x12S\x0A\x13workflow_invocation\x18\x02 \x01(\x0B21.google.cloud.dataform.v1beta1.WorkflowInvocationB\x03\xE0A\x02\"c\x0A\x1FDeleteWorkflowInvocationRequest\x12@\x0A\x04name\x18\x01 \x01(\x09B2\xE0A\x02\xFAA,\x0A*dataform.googleapis.com/WorkflowInvocation\"c\x0A\x1FCancelWorkflowInvocationRequest\x12@\x0A\x04name\x18\x01 \x01(\x09B2\xE0A\x02\xFAA,\x0A*dataform.googleapis.com/WorkflowInvocation\"\"\x0A CancelWorkflowInvocationResponse\"\xE1\x10\x0A\x18WorkflowInvocationAction\x12f\x0A\x0Fbigquery_action\x18\x06 \x01(\x0B2F.google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryActionB\x03\xE0A\x03H\x00\x12f\x0A\x0Fnotebook_action\x18\x08 \x01(\x0B2F.google.cloud.dataform.v1beta1.WorkflowInvocationAction.NotebookActionB\x03\xE0A\x03H\x00\x12u\x0A\x17data_preparation_action\x18\x09 \x01(\x0B2M.google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationActionB\x03\xE0A\x03H\x00\x12:\x0A\x06target\x18\x01 \x01(\x0B2%.google.cloud.dataform.v1beta1.TargetB\x03\xE0A\x03\x12D\x0A\x10canonical_target\x18\x02 \x01(\x0B2%.google.cloud.dataform.v1beta1.TargetB\x03\xE0A\x03\x12Q\x0A\x05state\x18\x04 \x01(\x0E2=.google.cloud.dataform.v1beta1.WorkflowInvocationAction.StateB\x03\xE0A\x03\x12\x1B\x0A\x0Efailure_reason\x18\x07 \x01(\x09B\x03\xE0A\x03\x125\x0A\x11invocation_timing\x18\x05 \x01(\x0B2\x15.google.type.IntervalB\x03\xE0A\x03\x12#\x0A\x11internal_metadata\x18\x0A \x01(\x09B\x03\xE0A\x03H\x01\x88\x01\x01\x1A>\x0A\x0EBigQueryAction\x12\x17\x0A\x0Asql_script\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x13\x0A\x06job_id\x18\x02 \x01(\x09B\x03\xE0A\x03\x1A<\x0A\x0ENotebookAction\x12\x15\x0A\x08contents\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x13\x0A\x06job_id\x18\x02 \x01(\x09B\x03\xE0A\x03\x1A\xA9\x09\x0A\x15DataPreparationAction\x12\x1C\x0A\x0Dcontents_yaml\x18\x02 \x01(\x09B\x03\xE0A\x03H\x00\x12y\x0A\x0Ccontents_sql\x18\x06 \x01(\x0B2a.google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionSqlDefinitionH\x00\x12\x1A\x0A\x0Dgenerated_sql\x18\x03 \x01(\x09B\x03\xE0A\x03\x12\x13\x0A\x06job_id\x18\x04 \x01(\x09B\x03\xE0A\x03\x1A\x8E\x02\x0A\x13ActionSqlDefinition\x12\x0D\x0A\x05query\x18\x01 \x01(\x09\x12s\x0A\x0Berror_table\x18\x02 \x01(\x0B2^.google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionErrorTable\x12s\x0A\x0Bload_config\x18\x03 \x01(\x0B2^.google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionLoadConfig\x1Aa\x0A\x10ActionErrorTable\x125\x0A\x06target\x18\x01 \x01(\x0B2%.google.cloud.dataform.v1beta1.Target\x12\x16\x0A\x0Eretention_days\x18\x02 \x01(\x05\x1A\xFE\x03\x0A\x10ActionLoadConfig\x12u\x0A\x07replace\x18\x01 \x01(\x0B2b.google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadModeH\x00\x12t\x0A\x06append\x18\x02 \x01(\x0B2b.google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadModeH\x00\x12z\x0A\x07maximum\x18\x03 \x01(\x0B2g.google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadModeH\x00\x12y\x0A\x06unique\x18\x04 \x01(\x0B2g.google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadModeH\x00B\x06\x0A\x04mode\x1A\x16\x0A\x14ActionSimpleLoadMode\x1A+\x0A\x19ActionIncrementalLoadMode\x12\x0E\x0A\x06column\x18\x01 \x01(\x09B\x0C\x0A\x0Adefinition\"f\x0A\x05State\x12\x0B\x0A\x07PENDING\x10\x00\x12\x0B\x0A\x07RUNNING\x10\x01\x12\x0B\x0A\x07SKIPPED\x10\x02\x12\x0C\x0A\x08DISABLED\x10\x03\x12\x0D\x0A\x09SUCCEEDED\x10\x04\x12\x0D\x0A\x09CANCELLED\x10\x05\x12\x0A\x0A\x06FAILED\x10\x06B\x08\x0A\x06actionB\x14\x0A\x12_internal_metadata\"\x9A\x01\x0A%QueryWorkflowInvocationActionsRequest\x12@\x0A\x04name\x18\x01 \x01(\x09B2\xE0A\x02\xFAA,\x0A*dataform.googleapis.com/WorkflowInvocation\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"\x9F\x01\x0A&QueryWorkflowInvocationActionsResponse\x12\\\x0A\x1Bworkflow_invocation_actions\x18\x01 \x03(\x0B27.google.cloud.dataform.v1beta1.WorkflowInvocationAction\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x85\x02\x0A\x06Config\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12G\x0A\x14default_kms_key_name\x18\x02 \x01(\x09B)\xE0A\x01\xFAA#\x0A!cloudkms.googleapis.com/CryptoKey\x12#\x0A\x11internal_metadata\x18\x07 \x01(\x09B\x03\xE0A\x03H\x00\x88\x01\x01:d\xEAAa\x0A\x1Edataform.googleapis.com/Config\x12.projects/{project}/locations/{location}/config*\x07configs2\x06configB\x14\x0A\x12_internal_metadata\"H\x0A\x10GetConfigRequest\x124\x0A\x04name\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Edataform.googleapis.com/Config\"\x87\x01\x0A\x13UpdateConfigRequest\x12:\x0A\x06config\x18\x01 \x01(\x0B2%.google.cloud.dataform.v1beta1.ConfigB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\"\xCF\x03\x0A\x06Folder\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x1E\x0A\x11containing_folder\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x1D\x0A\x10team_folder_name\x18\x04 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12#\x0A\x11internal_metadata\x18\x07 \x01(\x09B\x03\xE0A\x03H\x00\x88\x01\x01\x12'\x0A\x15creator_iam_principal\x18\x08 \x01(\x09B\x03\xE0A\x03H\x01\x88\x01\x01:n\xEAAk\x0A\x1Edataform.googleapis.com/Folder\x128projects/{project}/locations/{location}/folders/{folder}*\x07folders2\x06folderB\x14\x0A\x12_internal_metadataB\x18\x0A\x16_creator_iam_principal\"\x9F\x01\x0A\x13CreateFolderRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12:\x0A\x06folder\x18\x02 \x01(\x0B2%.google.cloud.dataform.v1beta1.FolderB\x03\xE0A\x02\x12\x11\x0A\x09folder_id\x18\x03 \x01(\x09\"\x9C\x01\x0A\x11MoveFolderRequest\x124\x0A\x04name\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Edataform.googleapis.com/Folder\x12/\x0A\x1Ddestination_containing_folder\x18\x02 \x01(\x09B\x03\xE0A\x01H\x00\x88\x01\x01B \x0A\x1E_destination_containing_folder\"H\x0A\x10GetFolderRequest\x124\x0A\x04name\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Edataform.googleapis.com/Folder\"\x87\x01\x0A\x13UpdateFolderRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12:\x0A\x06folder\x18\x02 \x01(\x0B2%.google.cloud.dataform.v1beta1.FolderB\x03\xE0A\x02\"K\x0A\x13DeleteFolderRequest\x124\x0A\x04name\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Edataform.googleapis.com/Folder\"\xB1\x01\x0A\x1AQueryFolderContentsRequest\x126\x0A\x06folder\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Edataform.googleapis.com/Folder\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\xB2\x02\x0A\x1BQueryFolderContentsResponse\x12_\x0A\x07entries\x18\x01 \x03(\x0B2N.google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x1A\x98\x01\x0A\x13FolderContentsEntry\x127\x0A\x06folder\x18\x01 \x01(\x0B2%.google.cloud.dataform.v1beta1.FolderH\x00\x12?\x0A\x0Arepository\x18\x02 \x01(\x0B2).google.cloud.dataform.v1beta1.RepositoryH\x00B\x07\x0A\x05entry\"\xB8\x01\x0A\x1CQueryUserRootContentsRequest\x12;\x0A\x08location\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\xB2\x02\x0A\x1DQueryUserRootContentsResponse\x12_\x0A\x07entries\x18\x01 \x03(\x0B2N.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x1A\x96\x01\x0A\x11RootContentsEntry\x127\x0A\x06folder\x18\x01 \x01(\x0B2%.google.cloud.dataform.v1beta1.FolderH\x00\x12?\x0A\x0Arepository\x18\x02 \x01(\x0B2).google.cloud.dataform.v1beta1.RepositoryH\x00B\x07\x0A\x05entry\"\xAB\x03\x0A\x0ATeamFolder\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x02\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12#\x0A\x11internal_metadata\x18\x05 \x01(\x09B\x03\xE0A\x03H\x00\x88\x01\x01\x12'\x0A\x15creator_iam_principal\x18\x06 \x01(\x09B\x03\xE0A\x03H\x01\x88\x01\x01:\x84\x01\xEAA\x80\x01\x0A\"dataform.googleapis.com/TeamFolder\x12Aprojects/{project}/locations/{location}/teamFolders/{team_folder}*\x0BteamFolders2\x0AteamFolderB\x14\x0A\x12_internal_metadataB\x18\x0A\x16_creator_iam_principal\"\xB1\x01\x0A\x17CreateTeamFolderRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12C\x0A\x0Bteam_folder\x18\x02 \x01(\x0B2).google.cloud.dataform.v1beta1.TeamFolderB\x03\xE0A\x02\x12\x16\x0A\x0Eteam_folder_id\x18\x03 \x01(\x09\"P\x0A\x14GetTeamFolderRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/TeamFolder\"\x94\x01\x0A\x17UpdateTeamFolderRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12C\x0A\x0Bteam_folder\x18\x02 \x01(\x0B2).google.cloud.dataform.v1beta1.TeamFolderB\x03\xE0A\x02\"S\x0A\x17DeleteTeamFolderRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/TeamFolder\"\xBE\x01\x0A\x1EQueryTeamFolderContentsRequest\x12?\x0A\x0Bteam_folder\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataform.googleapis.com/TeamFolder\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\xC2\x02\x0A\x1FQueryTeamFolderContentsResponse\x12g\x0A\x07entries\x18\x01 \x03(\x0B2V.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x1A\x9C\x01\x0A\x17TeamFolderContentsEntry\x127\x0A\x06folder\x18\x01 \x01(\x0B2%.google.cloud.dataform.v1beta1.FolderH\x00\x12?\x0A\x0Arepository\x18\x02 \x01(\x0B2).google.cloud.dataform.v1beta1.RepositoryH\x00B\x07\x0A\x05entry\"\xB4\x01\x0A\x18SearchTeamFoldersRequest\x12;\x0A\x08location\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x05 \x01(\x09B\x03\xE0A\x01\"\xFB\x01\x0A\x19SearchTeamFoldersResponse\x12`\x0A\x07results\x18\x01 \x03(\x0B2O.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x1Ac\x0A\x16TeamFolderSearchResult\x12@\x0A\x0Bteam_folder\x18\x02 \x01(\x0B2).google.cloud.dataform.v1beta1.TeamFolderH\x00B\x07\x0A\x05entry\"\xCF\x02\x0A\x12MoveFolderMetadata\x124\x0A\x0Bcreate_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x121\x0A\x08end_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x13\x0A\x06target\x18\x03 \x01(\x09B\x03\xE0A\x03\x12F\x0A\x05state\x18\x04 \x01(\x0E27.google.cloud.dataform.v1beta1.MoveFolderMetadata.State\x12\x18\x0A\x10percent_complete\x18\x05 \x01(\x05\"Y\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BINITIALIZED\x10\x01\x12\x0F\x0A\x0BIN_PROGRESS\x10\x02\x12\x0B\x0A\x07SUCCESS\x10\x03\x12\x0A\x0A\x06FAILED\x10\x04\"\xD7\x02\x0A\x16MoveRepositoryMetadata\x124\x0A\x0Bcreate_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x121\x0A\x08end_time\x18\x02 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x13\x0A\x06target\x18\x03 \x01(\x09B\x03\xE0A\x03\x12J\x0A\x05state\x18\x04 \x01(\x0E2;.google.cloud.dataform.v1beta1.MoveRepositoryMetadata.State\x12\x18\x0A\x10percent_complete\x18\x05 \x01(\x05\"Y\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BINITIALIZED\x10\x01\x12\x0F\x0A\x0BIN_PROGRESS\x10\x02\x12\x0B\x0A\x07SUCCESS\x10\x03\x12\x0A\x0A\x06FAILED\x10\x042\x8B\x82\x01\x0A\x08Dataform\x12\xB4\x01\x0A\x0DGetTeamFolder\x123.google.cloud.dataform.v1beta1.GetTeamFolderRequest\x1A).google.cloud.dataform.v1beta1.TeamFolder\"C\xDAA\x04name\x82\xD3\xE4\x93\x026\x124/v1beta1/{name=projects/*/locations/*/teamFolders/*}\x12\xD5\x01\x0A\x10CreateTeamFolder\x126.google.cloud.dataform.v1beta1.CreateTeamFolderRequest\x1A).google.cloud.dataform.v1beta1.TeamFolder\"^\xDAA\x12parent,team_folder\x82\xD3\xE4\x93\x02C\"4/v1beta1/{parent=projects/*/locations/*}/teamFolders:\x0Bteam_folder\x12\xE6\x01\x0A\x10UpdateTeamFolder\x126.google.cloud.dataform.v1beta1.UpdateTeamFolderRequest\x1A).google.cloud.dataform.v1beta1.TeamFolder\"o\xDAA\x17team_folder,update_mask\x82\xD3\xE4\x93\x02O2@/v1beta1/{team_folder.name=projects/*/locations/*/teamFolders/*}:\x0Bteam_folder\x12\xA7\x01\x0A\x10DeleteTeamFolder\x126.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest\x1A\x16.google.protobuf.Empty\"C\xDAA\x04name\x82\xD3\xE4\x93\x026*4/v1beta1/{name=projects/*/locations/*/teamFolders/*}\x12\xF9\x01\x0A\x17QueryTeamFolderContents\x12=.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest\x1A>.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse\"_\xDAA\x0Bteam_folder\x82\xD3\xE4\x93\x02K\x12I/v1beta1/{team_folder=projects/*/locations/*/teamFolders/*}:queryContents\x12\xCD\x01\x0A\x11SearchTeamFolders\x127.google.cloud.dataform.v1beta1.SearchTeamFoldersRequest\x1A8.google.cloud.dataform.v1beta1.SearchTeamFoldersResponse\"E\x82\xD3\xE4\x93\x02?\x12=/v1beta1/{location=projects/*/locations/*}/teamFolders:search\x12\xA4\x01\x0A\x09GetFolder\x12/.google.cloud.dataform.v1beta1.GetFolderRequest\x1A%.google.cloud.dataform.v1beta1.Folder\"?\xDAA\x04name\x82\xD3\xE4\x93\x022\x120/v1beta1/{name=projects/*/locations/*/folders/*}\x12\xBB\x01\x0A\x0CCreateFolder\x122.google.cloud.dataform.v1beta1.CreateFolderRequest\x1A%.google.cloud.dataform.v1beta1.Folder\"P\xDAA\x0Dparent,folder\x82\xD3\xE4\x93\x02:\"0/v1beta1/{parent=projects/*/locations/*}/folders:\x06folder\x12\xC7\x01\x0A\x0CUpdateFolder\x122.google.cloud.dataform.v1beta1.UpdateFolderRequest\x1A%.google.cloud.dataform.v1beta1.Folder\"\\\xDAA\x12folder,update_mask\x82\xD3\xE4\x93\x02A27/v1beta1/{folder.name=projects/*/locations/*/folders/*}:\x06folder\x12\x9B\x01\x0A\x0CDeleteFolder\x122.google.cloud.dataform.v1beta1.DeleteFolderRequest\x1A\x16.google.protobuf.Empty\"?\xDAA\x04name\x82\xD3\xE4\x93\x022*0/v1beta1/{name=projects/*/locations/*/folders/*}\x12\xE5\x01\x0A\x13QueryFolderContents\x129.google.cloud.dataform.v1beta1.QueryFolderContentsRequest\x1A:.google.cloud.dataform.v1beta1.QueryFolderContentsResponse\"W\xDAA\x06folder\x82\xD3\xE4\x93\x02H\x12F/v1beta1/{folder=projects/*/locations/*/folders/*}:queryFolderContents\x12\xE7\x01\x0A\x15QueryUserRootContents\x12;.google.cloud.dataform.v1beta1.QueryUserRootContentsRequest\x1A<.google.cloud.dataform.v1beta1.QueryUserRootContentsResponse\"S\xDAA\x08location\x82\xD3\xE4\x93\x02B\x12@/v1beta1/{location=projects/*/locations/*}:queryUserRootContents\x12\xF3\x01\x0A\x0AMoveFolder\x120.google.cloud.dataform.v1beta1.MoveFolderRequest\x1A\x1D.google.longrunning.Operation\"\x93\x01\xCAA+\x0A\x15google.protobuf.Empty\x12\x12MoveFolderMetadata\xDAA\"name,destination_containing_folder\x82\xD3\xE4\x93\x02:\"5/v1beta1/{name=projects/*/locations/*/folders/*}:move:\x01*\x12\xCB\x01\x0A\x10ListRepositories\x126.google.cloud.dataform.v1beta1.ListRepositoriesRequest\x1A7.google.cloud.dataform.v1beta1.ListRepositoriesResponse\"F\xDAA\x06parent\x82\xD3\xE4\x93\x027\x125/v1beta1/{parent=projects/*/locations/*}/repositories\x12\xB5\x01\x0A\x0DGetRepository\x123.google.cloud.dataform.v1beta1.GetRepositoryRequest\x1A).google.cloud.dataform.v1beta1.Repository\"D\xDAA\x04name\x82\xD3\xE4\x93\x027\x125/v1beta1/{name=projects/*/locations/*/repositories/*}\x12\xE2\x01\x0A\x10CreateRepository\x126.google.cloud.dataform.v1beta1.CreateRepositoryRequest\x1A).google.cloud.dataform.v1beta1.Repository\"k\xDAA\x1Fparent,repository,repository_id\x82\xD3\xE4\x93\x02C\"5/v1beta1/{parent=projects/*/locations/*}/repositories:\x0Arepository\x12\xE4\x01\x0A\x10UpdateRepository\x126.google.cloud.dataform.v1beta1.UpdateRepositoryRequest\x1A).google.cloud.dataform.v1beta1.Repository\"m\xDAA\x16repository,update_mask\x82\xD3\xE4\x93\x02N2@/v1beta1/{repository.name=projects/*/locations/*/repositories/*}:\x0Arepository\x12\xA8\x01\x0A\x10DeleteRepository\x126.google.cloud.dataform.v1beta1.DeleteRepositoryRequest\x1A\x16.google.protobuf.Empty\"D\xDAA\x04name\x82\xD3\xE4\x93\x027*5/v1beta1/{name=projects/*/locations/*/repositories/*}\x12\x84\x02\x0A\x0EMoveRepository\x124.google.cloud.dataform.v1beta1.MoveRepositoryRequest\x1A\x1D.google.longrunning.Operation\"\x9C\x01\xCAA/\x0A\x15google.protobuf.Empty\x12\x16MoveRepositoryMetadata\xDAA\"name,destination_containing_folder\x82\xD3\xE4\x93\x02?\":/v1beta1/{name=projects/*/locations/*/repositories/*}:move:\x01*\x12\xE1\x01\x0A\x17CommitRepositoryChanges\x12=.google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest\x1A>.google.cloud.dataform.v1beta1.CommitRepositoryChangesResponse\"G\x82\xD3\xE4\x93\x02A\"/v1beta1/{name=projects/*/locations/*/repositories/*}:readFile\x12\x89\x02\x0A QueryRepositoryDirectoryContents\x12F.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest\x1AG.google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse\"T\x82\xD3\xE4\x93\x02N\x12L/v1beta1/{name=projects/*/locations/*/repositories/*}:queryDirectoryContents\x12\xE1\x01\x0A\x16FetchRepositoryHistory\x12<.google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest\x1A=.google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse\"J\x82\xD3\xE4\x93\x02D\x12B/v1beta1/{name=projects/*/locations/*/repositories/*}:fetchHistory\x12\x91\x02\x0A\"ComputeRepositoryAccessTokenStatus\x12H.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest\x1AI.google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse\"V\x82\xD3\xE4\x93\x02P\x12N/v1beta1/{name=projects/*/locations/*/repositories/*}:computeAccessTokenStatus\x12\xDF\x01\x0A\x13FetchRemoteBranches\x129.google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest\x1A:.google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse\"Q\x82\xD3\xE4\x93\x02K\x12I/v1beta1/{name=projects/*/locations/*/repositories/*}:fetchRemoteBranches\x12\xD2\x01\x0A\x0EListWorkspaces\x124.google.cloud.dataform.v1beta1.ListWorkspacesRequest\x1A5.google.cloud.dataform.v1beta1.ListWorkspacesResponse\"S\xDAA\x06parent\x82\xD3\xE4\x93\x02D\x12B/v1beta1/{parent=projects/*/locations/*/repositories/*}/workspaces\x12\xBF\x01\x0A\x0CGetWorkspace\x122.google.cloud.dataform.v1beta1.GetWorkspaceRequest\x1A(.google.cloud.dataform.v1beta1.Workspace\"Q\xDAA\x04name\x82\xD3\xE4\x93\x02D\x12B/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}\x12\xE9\x01\x0A\x0FCreateWorkspace\x125.google.cloud.dataform.v1beta1.CreateWorkspaceRequest\x1A(.google.cloud.dataform.v1beta1.Workspace\"u\xDAA\x1Dparent,workspace,workspace_id\x82\xD3\xE4\x93\x02O\"B/v1beta1/{parent=projects/*/locations/*/repositories/*}/workspaces:\x09workspace\x12\xB3\x01\x0A\x0FDeleteWorkspace\x125.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest\x1A\x16.google.protobuf.Empty\"Q\xDAA\x04name\x82\xD3\xE4\x93\x02D*B/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}\x12\xF0\x01\x0A\x12InstallNpmPackages\x128.google.cloud.dataform.v1beta1.InstallNpmPackagesRequest\x1A9.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse\"e\x82\xD3\xE4\x93\x02_\"Z/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:installNpmPackages:\x01*\x12\xD1\x01\x0A\x0EPullGitCommits\x124.google.cloud.dataform.v1beta1.PullGitCommitsRequest\x1A5.google.cloud.dataform.v1beta1.PullGitCommitsResponse\"R\x82\xD3\xE4\x93\x02L\"G/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}:pull:\x01*\x12\xD1\x01\x0A\x0EPushGitCommits\x124.google.cloud.dataform.v1beta1.PushGitCommitsRequest\x1A5.google.cloud.dataform.v1beta1.PushGitCommitsResponse\"R\x82\xD3\xE4\x93\x02L\"G/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}:push:\x01*\x12\xF0\x01\x0A\x14FetchFileGitStatuses\x12:.google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest\x1A;.google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse\"_\x82\xD3\xE4\x93\x02Y\x12W/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}:fetchFileGitStatuses\x12\xEC\x01\x0A\x13FetchGitAheadBehind\x129.google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest\x1A:.google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse\"^\x82\xD3\xE4\x93\x02X\x12V/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}:fetchGitAheadBehind\x12\xEB\x01\x0A\x16CommitWorkspaceChanges\x12<.google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest\x1A=.google.cloud.dataform.v1beta1.CommitWorkspaceChangesResponse\"T\x82\xD3\xE4\x93\x02N\"I/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}:commit:\x01*\x12\xE7\x01\x0A\x15ResetWorkspaceChanges\x12;.google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest\x1A<.google.cloud.dataform.v1beta1.ResetWorkspaceChangesResponse\"S\x82\xD3\xE4\x93\x02M\"H/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}:reset:\x01*\x12\xD9\x01\x0A\x0DFetchFileDiff\x123.google.cloud.dataform.v1beta1.FetchFileDiffRequest\x1A4.google.cloud.dataform.v1beta1.FetchFileDiffResponse\"]\x82\xD3\xE4\x93\x02W\x12U/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:fetchFileDiff\x12\xFD\x01\x0A\x16QueryDirectoryContents\x12<.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest\x1A=.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse\"f\x82\xD3\xE4\x93\x02`\x12^/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:queryDirectoryContents\x12\xD1\x01\x0A\x0BSearchFiles\x121.google.cloud.dataform.v1beta1.SearchFilesRequest\x1A2.google.cloud.dataform.v1beta1.SearchFilesResponse\"[\x82\xD3\xE4\x93\x02U\x12S/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:searchFiles\x12\xDC\x01\x0A\x0DMakeDirectory\x123.google.cloud.dataform.v1beta1.MakeDirectoryRequest\x1A4.google.cloud.dataform.v1beta1.MakeDirectoryResponse\"`\x82\xD3\xE4\x93\x02Z\"U/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:makeDirectory:\x01*\x12\xE4\x01\x0A\x0FRemoveDirectory\x125.google.cloud.dataform.v1beta1.RemoveDirectoryRequest\x1A6.google.cloud.dataform.v1beta1.RemoveDirectoryResponse\"b\x82\xD3\xE4\x93\x02\\\"W/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:removeDirectory:\x01*\x12\xDC\x01\x0A\x0DMoveDirectory\x123.google.cloud.dataform.v1beta1.MoveDirectoryRequest\x1A4.google.cloud.dataform.v1beta1.MoveDirectoryResponse\"`\x82\xD3\xE4\x93\x02Z\"U/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:moveDirectory:\x01*\x12\xC5\x01\x0A\x08ReadFile\x12..google.cloud.dataform.v1beta1.ReadFileRequest\x1A/.google.cloud.dataform.v1beta1.ReadFileResponse\"X\x82\xD3\xE4\x93\x02R\x12P/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:readFile\x12\xD0\x01\x0A\x0ARemoveFile\x120.google.cloud.dataform.v1beta1.RemoveFileRequest\x1A1.google.cloud.dataform.v1beta1.RemoveFileResponse\"]\x82\xD3\xE4\x93\x02W\"R/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:removeFile:\x01*\x12\xC8\x01\x0A\x08MoveFile\x12..google.cloud.dataform.v1beta1.MoveFileRequest\x1A/.google.cloud.dataform.v1beta1.MoveFileResponse\"[\x82\xD3\xE4\x93\x02U\"P/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:moveFile:\x01*\x12\xCC\x01\x0A\x09WriteFile\x12/.google.cloud.dataform.v1beta1.WriteFileRequest\x1A0.google.cloud.dataform.v1beta1.WriteFileResponse\"\\\x82\xD3\xE4\x93\x02V\"Q/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:writeFile:\x01*\x12\xE2\x01\x0A\x12ListReleaseConfigs\x128.google.cloud.dataform.v1beta1.ListReleaseConfigsRequest\x1A9.google.cloud.dataform.v1beta1.ListReleaseConfigsResponse\"W\xDAA\x06parent\x82\xD3\xE4\x93\x02H\x12F/v1beta1/{parent=projects/*/locations/*/repositories/*}/releaseConfigs\x12\xCF\x01\x0A\x10GetReleaseConfig\x126.google.cloud.dataform.v1beta1.GetReleaseConfigRequest\x1A,.google.cloud.dataform.v1beta1.ReleaseConfig\"U\xDAA\x04name\x82\xD3\xE4\x93\x02H\x12F/v1beta1/{name=projects/*/locations/*/repositories/*/releaseConfigs/*}\x12\x89\x02\x0A\x13CreateReleaseConfig\x129.google.cloud.dataform.v1beta1.CreateReleaseConfigRequest\x1A,.google.cloud.dataform.v1beta1.ReleaseConfig\"\x88\x01\xDAA'parent,release_config,release_config_id\x82\xD3\xE4\x93\x02X\"F/v1beta1/{parent=projects/*/locations/*/repositories/*}/releaseConfigs:\x0Erelease_config\x12\x8B\x02\x0A\x13UpdateReleaseConfig\x129.google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest\x1A,.google.cloud.dataform.v1beta1.ReleaseConfig\"\x8A\x01\xDAA\x1Arelease_config,update_mask\x82\xD3\xE4\x93\x02g2U/v1beta1/{release_config.name=projects/*/locations/*/repositories/*/releaseConfigs/*}:\x0Erelease_config\x12\xBF\x01\x0A\x13DeleteReleaseConfig\x129.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest\x1A\x16.google.protobuf.Empty\"U\xDAA\x04name\x82\xD3\xE4\x93\x02H*F/v1beta1/{name=projects/*/locations/*/repositories/*/releaseConfigs/*}\x12\xF2\x01\x0A\x16ListCompilationResults\x12<.google.cloud.dataform.v1beta1.ListCompilationResultsRequest\x1A=.google.cloud.dataform.v1beta1.ListCompilationResultsResponse\"[\xDAA\x06parent\x82\xD3\xE4\x93\x02L\x12J/v1beta1/{parent=projects/*/locations/*/repositories/*}/compilationResults\x12\xDF\x01\x0A\x14GetCompilationResult\x12:.google.cloud.dataform.v1beta1.GetCompilationResultRequest\x1A0.google.cloud.dataform.v1beta1.CompilationResult\"Y\xDAA\x04name\x82\xD3\xE4\x93\x02L\x12J/v1beta1/{name=projects/*/locations/*/repositories/*/compilationResults/*}\x12\x8F\x02\x0A\x17CreateCompilationResult\x12=.google.cloud.dataform.v1beta1.CreateCompilationResultRequest\x1A0.google.cloud.dataform.v1beta1.CompilationResult\"\x82\x01\xDAA\x19parent,compilation_result\x82\xD3\xE4\x93\x02`\"J/v1beta1/{parent=projects/*/locations/*/repositories/*}/compilationResults:\x12compilation_result\x12\x84\x02\x0A\x1DQueryCompilationResultActions\x12C.google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest\x1AD.google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse\"X\x82\xD3\xE4\x93\x02R\x12P/v1beta1/{name=projects/*/locations/*/repositories/*/compilationResults/*}:query\x12\xE6\x01\x0A\x13ListWorkflowConfigs\x129.google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest\x1A:.google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse\"X\xDAA\x06parent\x82\xD3\xE4\x93\x02I\x12G/v1beta1/{parent=projects/*/locations/*/repositories/*}/workflowConfigs\x12\xD3\x01\x0A\x11GetWorkflowConfig\x127.google.cloud.dataform.v1beta1.GetWorkflowConfigRequest\x1A-.google.cloud.dataform.v1beta1.WorkflowConfig\"V\xDAA\x04name\x82\xD3\xE4\x93\x02I\x12G/v1beta1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}\x12\x90\x02\x0A\x14CreateWorkflowConfig\x12:.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest\x1A-.google.cloud.dataform.v1beta1.WorkflowConfig\"\x8C\x01\xDAA)parent,workflow_config,workflow_config_id\x82\xD3\xE4\x93\x02Z\"G/v1beta1/{parent=projects/*/locations/*/repositories/*}/workflowConfigs:\x0Fworkflow_config\x12\x92\x02\x0A\x14UpdateWorkflowConfig\x12:.google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest\x1A-.google.cloud.dataform.v1beta1.WorkflowConfig\"\x8E\x01\xDAA\x1Bworkflow_config,update_mask\x82\xD3\xE4\x93\x02j2W/v1beta1/{workflow_config.name=projects/*/locations/*/repositories/*/workflowConfigs/*}:\x0Fworkflow_config\x12\xC2\x01\x0A\x14DeleteWorkflowConfig\x12:.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest\x1A\x16.google.protobuf.Empty\"V\xDAA\x04name\x82\xD3\xE4\x93\x02I*G/v1beta1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}\x12\xF6\x01\x0A\x17ListWorkflowInvocations\x12=.google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest\x1A>.google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse\"\\\xDAA\x06parent\x82\xD3\xE4\x93\x02M\x12K/v1beta1/{parent=projects/*/locations/*/repositories/*}/workflowInvocations\x12\xE3\x01\x0A\x15GetWorkflowInvocation\x12;.google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest\x1A1.google.cloud.dataform.v1beta1.WorkflowInvocation\"Z\xDAA\x04name\x82\xD3\xE4\x93\x02M\x12K/v1beta1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}\x12\x95\x02\x0A\x18CreateWorkflowInvocation\x12>.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest\x1A1.google.cloud.dataform.v1beta1.WorkflowInvocation\"\x85\x01\xDAA\x1Aparent,workflow_invocation\x82\xD3\xE4\x93\x02b\"K/v1beta1/{parent=projects/*/locations/*/repositories/*}/workflowInvocations:\x13workflow_invocation\x12\xCE\x01\x0A\x18DeleteWorkflowInvocation\x12>.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest\x1A\x16.google.protobuf.Empty\"Z\xDAA\x04name\x82\xD3\xE4\x93\x02M*K/v1beta1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}\x12\xFA\x01\x0A\x18CancelWorkflowInvocation\x12>.google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest\x1A?.google.cloud.dataform.v1beta1.CancelWorkflowInvocationResponse\"]\x82\xD3\xE4\x93\x02W\"R/v1beta1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}:cancel:\x01*\x12\x88\x02\x0A\x1EQueryWorkflowInvocationActions\x12D.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest\x1AE.google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse\"Y\x82\xD3\xE4\x93\x02S\x12Q/v1beta1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}:query\x12\xA1\x01\x0A\x09GetConfig\x12/.google.cloud.dataform.v1beta1.GetConfigRequest\x1A%.google.cloud.dataform.v1beta1.Config\"<\xDAA\x04name\x82\xD3\xE4\x93\x02/\x12-/v1beta1/{name=projects/*/locations/*/config}\x12\xC4\x01\x0A\x0CUpdateConfig\x122.google.cloud.dataform.v1beta1.UpdateConfigRequest\x1A%.google.cloud.dataform.v1beta1.Config\"Y\xDAA\x12config,update_mask\x82\xD3\xE4\x93\x02>24/v1beta1/{config.name=projects/*/locations/*/config}:\x06config\x12\x8B\x03\x0A\x0CGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1A\x15.google.iam.v1.Policy\"\xBF\x02\xDAA\x08resource\x82\xD3\xE4\x93\x02\xAD\x02\x12F/v1beta1/{resource=projects/*/locations/*/repositories/*}:getIamPolicyZU\x12S/v1beta1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:getIamPolicyZC\x12A/v1beta1/{resource=projects/*/locations/*/folders/*}:getIamPolicyZG\x12E/v1beta1/{resource=projects/*/locations/*/teamFolders/*}:getIamPolicy\x12\x8C\x03\x0A\x0CSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1A\x15.google.iam.v1.Policy\"\xC0\x02\x82\xD3\xE4\x93\x02\xB9\x02\"F/v1beta1/{resource=projects/*/locations/*/repositories/*}:setIamPolicy:\x01*ZX\"S/v1beta1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:setIamPolicy:\x01*ZF\"A/v1beta1/{resource=projects/*/locations/*/folders/*}:setIamPolicy:\x01*ZJ\"E/v1beta1/{resource=projects/*/locations/*/teamFolders/*}:setIamPolicy:\x01*\x12\xC4\x03\x0A\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1A).google.iam.v1.TestIamPermissionsResponse\"\xD8\x02\x82\xD3\xE4\x93\x02\xD1\x02\"L/v1beta1/{resource=projects/*/locations/*/repositories/*}:testIamPermissions:\x01*Z^\"Y/v1beta1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:testIamPermissions:\x01*ZL\"G/v1beta1/{resource=projects/*/locations/*/folders/*}:testIamPermissions:\x01*ZP\"K/v1beta1/{resource=projects/*/locations/*/teamFolders/*}:testIamPermissions:\x01*\x1At\xCAA\x17dataform.googleapis.com\xD2AWhttps://www.googleapis.com/auth/bigquery,https://www.googleapis.com/auth/cloud-platformB\xF7\x05\x0A!com.google.cloud.dataform.v1beta1B\x0DDataformProtoP\x01Z=cloud.google.com/go/dataform/apiv1beta1/dataformpb;dataformpb\xAA\x02\x1DGoogle.Cloud.Dataform.V1Beta1\xCA\x02\x1DGoogle\\Cloud\\Dataform\\V1beta1\xEA\x02 Google::Cloud::Dataform::V1beta1\xEAAd\x0A*secretmanager.googleapis.com/SecretVersion\x126projects/{project}/secrets/{secret}/versions/{version}\xEAAx\x0A!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\xEAA\xA6\x01\x0A(cloudkms.googleapis.com/CryptoKeyVersion\x12zprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}\xEAA\x91\x01\x0A1aiplatform.googleapis.com/NotebookRuntimeTemplate\x12\\projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CancelWorkflowInvocationRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CancelWorkflowInvocationRequest.php deleted file mode 100644 index 455ade46f032..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CancelWorkflowInvocationRequest.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.dataform.v1beta1.CancelWorkflowInvocationRequest - */ -class CancelWorkflowInvocationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workflow invocation resource's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The workflow invocation resource's name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workflow invocation resource's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The workflow invocation resource's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CancelWorkflowInvocationResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CancelWorkflowInvocationResponse.php deleted file mode 100644 index c20551c8068a..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CancelWorkflowInvocationResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.dataform.v1beta1.CancelWorkflowInvocationResponse - */ -class CancelWorkflowInvocationResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CodeCompilationConfig.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CodeCompilationConfig.php deleted file mode 100644 index cebd39602a9b..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CodeCompilationConfig.php +++ /dev/null @@ -1,403 +0,0 @@ -google.cloud.dataform.v1beta1.CodeCompilationConfig - */ -class CodeCompilationConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The default database (Google Cloud project ID). - * - * Generated from protobuf field string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $default_database = ''; - /** - * Optional. The default schema (BigQuery dataset ID). - * - * Generated from protobuf field string default_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $default_schema = ''; - /** - * 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. - * - * Generated from protobuf field string default_location = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $default_location = ''; - /** - * Optional. The default schema (BigQuery dataset ID) for assertions. - * - * Generated from protobuf field string assertion_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $assertion_schema = ''; - /** - * Optional. User-defined variables that are made available to project code - * during compilation. - * - * Generated from protobuf field map vars = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $vars; - /** - * Optional. The suffix that should be appended to all database (Google Cloud - * project ID) names. - * - * Generated from protobuf field string database_suffix = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $database_suffix = ''; - /** - * Optional. The suffix that should be appended to all schema (BigQuery - * dataset ID) names. - * - * Generated from protobuf field string schema_suffix = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $schema_suffix = ''; - /** - * Optional. The prefix that should be prepended to all table names. - * - * Generated from protobuf field string table_prefix = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $table_prefix = ''; - /** - * Optional. The prefix to prepend to built-in assertion names. - * - * Generated from protobuf field string builtin_assertion_name_prefix = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $builtin_assertion_name_prefix = ''; - /** - * Optional. The default notebook runtime options. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.NotebookRuntimeOptions default_notebook_runtime_options = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $default_notebook_runtime_options = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $default_database - * Optional. The default database (Google Cloud project ID). - * @type string $default_schema - * Optional. The default schema (BigQuery dataset ID). - * @type string $default_location - * 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. - * @type string $assertion_schema - * Optional. The default schema (BigQuery dataset ID) for assertions. - * @type array|\Google\Protobuf\Internal\MapField $vars - * Optional. User-defined variables that are made available to project code - * during compilation. - * @type string $database_suffix - * Optional. The suffix that should be appended to all database (Google Cloud - * project ID) names. - * @type string $schema_suffix - * Optional. The suffix that should be appended to all schema (BigQuery - * dataset ID) names. - * @type string $table_prefix - * Optional. The prefix that should be prepended to all table names. - * @type string $builtin_assertion_name_prefix - * Optional. The prefix to prepend to built-in assertion names. - * @type \Google\Cloud\Dataform\V1beta1\NotebookRuntimeOptions $default_notebook_runtime_options - * Optional. The default notebook runtime options. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The default database (Google Cloud project ID). - * - * Generated from protobuf field string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDefaultDatabase() - { - return $this->default_database; - } - - /** - * Optional. The default database (Google Cloud project ID). - * - * Generated from protobuf field string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDefaultDatabase($var) - { - GPBUtil::checkString($var, True); - $this->default_database = $var; - - return $this; - } - - /** - * Optional. The default schema (BigQuery dataset ID). - * - * Generated from protobuf field string default_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDefaultSchema() - { - return $this->default_schema; - } - - /** - * Optional. The default schema (BigQuery dataset ID). - * - * Generated from protobuf field string default_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDefaultSchema($var) - { - GPBUtil::checkString($var, True); - $this->default_schema = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string default_location = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDefaultLocation() - { - return $this->default_location; - } - - /** - * 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. - * - * Generated from protobuf field string default_location = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDefaultLocation($var) - { - GPBUtil::checkString($var, True); - $this->default_location = $var; - - return $this; - } - - /** - * Optional. The default schema (BigQuery dataset ID) for assertions. - * - * Generated from protobuf field string assertion_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getAssertionSchema() - { - return $this->assertion_schema; - } - - /** - * Optional. The default schema (BigQuery dataset ID) for assertions. - * - * Generated from protobuf field string assertion_schema = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setAssertionSchema($var) - { - GPBUtil::checkString($var, True); - $this->assertion_schema = $var; - - return $this; - } - - /** - * Optional. User-defined variables that are made available to project code - * during compilation. - * - * Generated from protobuf field map vars = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getVars() - { - return $this->vars; - } - - /** - * Optional. User-defined variables that are made available to project code - * during compilation. - * - * Generated from protobuf field map vars = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setVars($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->vars = $arr; - - return $this; - } - - /** - * Optional. The suffix that should be appended to all database (Google Cloud - * project ID) names. - * - * Generated from protobuf field string database_suffix = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDatabaseSuffix() - { - return $this->database_suffix; - } - - /** - * Optional. The suffix that should be appended to all database (Google Cloud - * project ID) names. - * - * Generated from protobuf field string database_suffix = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDatabaseSuffix($var) - { - GPBUtil::checkString($var, True); - $this->database_suffix = $var; - - return $this; - } - - /** - * Optional. The suffix that should be appended to all schema (BigQuery - * dataset ID) names. - * - * Generated from protobuf field string schema_suffix = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getSchemaSuffix() - { - return $this->schema_suffix; - } - - /** - * Optional. The suffix that should be appended to all schema (BigQuery - * dataset ID) names. - * - * Generated from protobuf field string schema_suffix = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setSchemaSuffix($var) - { - GPBUtil::checkString($var, True); - $this->schema_suffix = $var; - - return $this; - } - - /** - * Optional. The prefix that should be prepended to all table names. - * - * Generated from protobuf field string table_prefix = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getTablePrefix() - { - return $this->table_prefix; - } - - /** - * Optional. The prefix that should be prepended to all table names. - * - * Generated from protobuf field string table_prefix = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setTablePrefix($var) - { - GPBUtil::checkString($var, True); - $this->table_prefix = $var; - - return $this; - } - - /** - * Optional. The prefix to prepend to built-in assertion names. - * - * Generated from protobuf field string builtin_assertion_name_prefix = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getBuiltinAssertionNamePrefix() - { - return $this->builtin_assertion_name_prefix; - } - - /** - * Optional. The prefix to prepend to built-in assertion names. - * - * Generated from protobuf field string builtin_assertion_name_prefix = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setBuiltinAssertionNamePrefix($var) - { - GPBUtil::checkString($var, True); - $this->builtin_assertion_name_prefix = $var; - - return $this; - } - - /** - * Optional. The default notebook runtime options. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.NotebookRuntimeOptions default_notebook_runtime_options = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataform\V1beta1\NotebookRuntimeOptions|null - */ - public function getDefaultNotebookRuntimeOptions() - { - return $this->default_notebook_runtime_options; - } - - public function hasDefaultNotebookRuntimeOptions() - { - return isset($this->default_notebook_runtime_options); - } - - public function clearDefaultNotebookRuntimeOptions() - { - unset($this->default_notebook_runtime_options); - } - - /** - * Optional. The default notebook runtime options. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.NotebookRuntimeOptions default_notebook_runtime_options = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataform\V1beta1\NotebookRuntimeOptions $var - * @return $this - */ - public function setDefaultNotebookRuntimeOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\NotebookRuntimeOptions::class); - $this->default_notebook_runtime_options = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitAuthor.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitAuthor.php deleted file mode 100644 index 16c0ecc12fad..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitAuthor.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.dataform.v1beta1.CommitAuthor - */ -class CommitAuthor extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The commit author's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Required. The commit author's email address. - * - * Generated from protobuf field string email_address = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $email_address = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The commit author's name. - * @type string $email_address - * Required. The commit author's email address. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The commit author's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The commit author's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The commit author's email address. - * - * Generated from protobuf field string email_address = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getEmailAddress() - { - return $this->email_address; - } - - /** - * Required. The commit author's email address. - * - * Generated from protobuf field string email_address = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setEmailAddress($var) - { - GPBUtil::checkString($var, True); - $this->email_address = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitLogEntry.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitLogEntry.php deleted file mode 100644 index 0000fb4bac56..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitLogEntry.php +++ /dev/null @@ -1,189 +0,0 @@ -google.cloud.dataform.v1beta1.CommitLogEntry - */ -class CommitLogEntry extends \Google\Protobuf\Internal\Message -{ - /** - * Commit timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp commit_time = 1; - */ - protected $commit_time = null; - /** - * The commit SHA for this commit log entry. - * - * Generated from protobuf field string commit_sha = 2; - */ - protected $commit_sha = ''; - /** - * The commit author for this commit log entry. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CommitAuthor author = 3; - */ - protected $author = null; - /** - * The commit message for this commit log entry. - * - * Generated from protobuf field string commit_message = 4; - */ - protected $commit_message = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $commit_time - * Commit timestamp. - * @type string $commit_sha - * The commit SHA for this commit log entry. - * @type \Google\Cloud\Dataform\V1beta1\CommitAuthor $author - * The commit author for this commit log entry. - * @type string $commit_message - * The commit message for this commit log entry. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Commit timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp commit_time = 1; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCommitTime() - { - return $this->commit_time; - } - - public function hasCommitTime() - { - return isset($this->commit_time); - } - - public function clearCommitTime() - { - unset($this->commit_time); - } - - /** - * Commit timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp commit_time = 1; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCommitTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->commit_time = $var; - - return $this; - } - - /** - * The commit SHA for this commit log entry. - * - * Generated from protobuf field string commit_sha = 2; - * @return string - */ - public function getCommitSha() - { - return $this->commit_sha; - } - - /** - * The commit SHA for this commit log entry. - * - * Generated from protobuf field string commit_sha = 2; - * @param string $var - * @return $this - */ - public function setCommitSha($var) - { - GPBUtil::checkString($var, True); - $this->commit_sha = $var; - - return $this; - } - - /** - * The commit author for this commit log entry. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CommitAuthor author = 3; - * @return \Google\Cloud\Dataform\V1beta1\CommitAuthor|null - */ - public function getAuthor() - { - return $this->author; - } - - public function hasAuthor() - { - return isset($this->author); - } - - public function clearAuthor() - { - unset($this->author); - } - - /** - * The commit author for this commit log entry. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CommitAuthor author = 3; - * @param \Google\Cloud\Dataform\V1beta1\CommitAuthor $var - * @return $this - */ - public function setAuthor($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CommitAuthor::class); - $this->author = $var; - - return $this; - } - - /** - * The commit message for this commit log entry. - * - * Generated from protobuf field string commit_message = 4; - * @return string - */ - public function getCommitMessage() - { - return $this->commit_message; - } - - /** - * The commit message for this commit log entry. - * - * Generated from protobuf field string commit_message = 4; - * @param string $var - * @return $this - */ - public function setCommitMessage($var) - { - GPBUtil::checkString($var, True); - $this->commit_message = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitMetadata.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitMetadata.php deleted file mode 100644 index badca8b21a82..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitMetadata.php +++ /dev/null @@ -1,111 +0,0 @@ -google.cloud.dataform.v1beta1.CommitMetadata - */ -class CommitMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The commit's author. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CommitAuthor author = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $author = null; - /** - * Optional. The commit's message. - * - * Generated from protobuf field string commit_message = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $commit_message = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1beta1\CommitAuthor $author - * Required. The commit's author. - * @type string $commit_message - * Optional. The commit's message. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The commit's author. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CommitAuthor author = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataform\V1beta1\CommitAuthor|null - */ - public function getAuthor() - { - return $this->author; - } - - public function hasAuthor() - { - return isset($this->author); - } - - public function clearAuthor() - { - unset($this->author); - } - - /** - * Required. The commit's author. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CommitAuthor author = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataform\V1beta1\CommitAuthor $var - * @return $this - */ - public function setAuthor($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CommitAuthor::class); - $this->author = $var; - - return $this; - } - - /** - * Optional. The commit's message. - * - * Generated from protobuf field string commit_message = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getCommitMessage() - { - return $this->commit_message; - } - - /** - * Optional. The commit's message. - * - * Generated from protobuf field string commit_message = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setCommitMessage($var) - { - GPBUtil::checkString($var, True); - $this->commit_message = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesRequest.php deleted file mode 100644 index c011f90c6db0..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesRequest.php +++ /dev/null @@ -1,191 +0,0 @@ -google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest - */ -class CommitRepositoryChangesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Required. The changes to commit to the repository. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $commit_metadata = null; - /** - * 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. - * - * Generated from protobuf field string required_head_commit_sha = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $required_head_commit_sha = ''; - /** - * Optional. A map to the path of the file to the operation. The path is the - * full file path including filename, from repository root. - * - * Generated from protobuf field map file_operations = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $file_operations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The repository's name. - * @type \Google\Cloud\Dataform\V1beta1\CommitMetadata $commit_metadata - * Required. The changes to commit to the repository. - * @type string $required_head_commit_sha - * 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. - * @type array|\Google\Protobuf\Internal\MapField $file_operations - * Optional. A map to the path of the file to the operation. The path is the - * full file path including filename, from repository root. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The changes to commit to the repository. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataform\V1beta1\CommitMetadata|null - */ - public function getCommitMetadata() - { - return $this->commit_metadata; - } - - public function hasCommitMetadata() - { - return isset($this->commit_metadata); - } - - public function clearCommitMetadata() - { - unset($this->commit_metadata); - } - - /** - * Required. The changes to commit to the repository. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CommitMetadata commit_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataform\V1beta1\CommitMetadata $var - * @return $this - */ - public function setCommitMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CommitMetadata::class); - $this->commit_metadata = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string required_head_commit_sha = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequiredHeadCommitSha() - { - return $this->required_head_commit_sha; - } - - /** - * 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. - * - * Generated from protobuf field string required_head_commit_sha = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequiredHeadCommitSha($var) - { - GPBUtil::checkString($var, True); - $this->required_head_commit_sha = $var; - - return $this; - } - - /** - * Optional. A map to the path of the file to the operation. The path is the - * full file path including filename, from repository root. - * - * Generated from protobuf field map file_operations = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getFileOperations() - { - return $this->file_operations; - } - - /** - * Optional. A map to the path of the file to the operation. The path is the - * full file path including filename, from repository root. - * - * Generated from protobuf field map file_operations = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setFileOperations($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\CommitRepositoryChangesRequest\FileOperation::class); - $this->file_operations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesRequest/FileOperation.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesRequest/FileOperation.php deleted file mode 100644 index 0145516b80f5..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesRequest/FileOperation.php +++ /dev/null @@ -1,108 +0,0 @@ -google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation - */ -class FileOperation extends \Google\Protobuf\Internal\Message -{ - protected $operation; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1beta1\CommitRepositoryChangesRequest\FileOperation\WriteFile $write_file - * Represents the write operation. - * @type \Google\Cloud\Dataform\V1beta1\CommitRepositoryChangesRequest\FileOperation\DeleteFile $delete_file - * Represents the delete operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Represents the write operation. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile write_file = 1; - * @return \Google\Cloud\Dataform\V1beta1\CommitRepositoryChangesRequest\FileOperation\WriteFile|null - */ - public function getWriteFile() - { - return $this->readOneof(1); - } - - public function hasWriteFile() - { - return $this->hasOneof(1); - } - - /** - * Represents the write operation. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile write_file = 1; - * @param \Google\Cloud\Dataform\V1beta1\CommitRepositoryChangesRequest\FileOperation\WriteFile $var - * @return $this - */ - public function setWriteFile($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CommitRepositoryChangesRequest\FileOperation\WriteFile::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Represents the delete operation. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile delete_file = 2; - * @return \Google\Cloud\Dataform\V1beta1\CommitRepositoryChangesRequest\FileOperation\DeleteFile|null - */ - public function getDeleteFile() - { - return $this->readOneof(2); - } - - public function hasDeleteFile() - { - return $this->hasOneof(2); - } - - /** - * Represents the delete operation. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile delete_file = 2; - * @param \Google\Cloud\Dataform\V1beta1\CommitRepositoryChangesRequest\FileOperation\DeleteFile $var - * @return $this - */ - public function setDeleteFile($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CommitRepositoryChangesRequest\FileOperation\DeleteFile::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getOperation() - { - return $this->whichOneof("operation"); - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesRequest/FileOperation/DeleteFile.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesRequest/FileOperation/DeleteFile.php deleted file mode 100644 index 788950be7443..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesRequest/FileOperation/DeleteFile.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile - */ -class DeleteFile extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesRequest/FileOperation/WriteFile.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesRequest/FileOperation/WriteFile.php deleted file mode 100644 index d7064e81b90e..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesRequest/FileOperation/WriteFile.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile - */ -class WriteFile extends \Google\Protobuf\Internal\Message -{ - /** - * The file's contents. - * - * Generated from protobuf field bytes contents = 1; - */ - protected $contents = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $contents - * The file's contents. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * The file's contents. - * - * Generated from protobuf field bytes contents = 1; - * @return string - */ - public function getContents() - { - return $this->contents; - } - - /** - * The file's contents. - * - * Generated from protobuf field bytes contents = 1; - * @param string $var - * @return $this - */ - public function setContents($var) - { - GPBUtil::checkString($var, False); - $this->contents = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesResponse.php deleted file mode 100644 index 31e8c4d37739..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.dataform.v1beta1.CommitRepositoryChangesResponse - */ -class CommitRepositoryChangesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The commit SHA of the current commit. - * - * Generated from protobuf field string commit_sha = 1; - */ - protected $commit_sha = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $commit_sha - * The commit SHA of the current commit. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * The commit SHA of the current commit. - * - * Generated from protobuf field string commit_sha = 1; - * @return string - */ - public function getCommitSha() - { - return $this->commit_sha; - } - - /** - * The commit SHA of the current commit. - * - * Generated from protobuf field string commit_sha = 1; - * @param string $var - * @return $this - */ - public function setCommitSha($var) - { - GPBUtil::checkString($var, True); - $this->commit_sha = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitWorkspaceChangesRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitWorkspaceChangesRequest.php deleted file mode 100644 index 97d49e03287a..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitWorkspaceChangesRequest.php +++ /dev/null @@ -1,183 +0,0 @@ -google.cloud.dataform.v1beta1.CommitWorkspaceChangesRequest - */ -class CommitWorkspaceChangesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Required. The commit's author. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CommitAuthor author = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $author = null; - /** - * Optional. The commit's message. - * - * Generated from protobuf field string commit_message = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $commit_message = ''; - /** - * Optional. Full file paths to commit including filename, rooted at workspace - * root. If left empty, all files will be committed. - * - * Generated from protobuf field repeated string paths = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $paths; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The workspace's name. - * @type \Google\Cloud\Dataform\V1beta1\CommitAuthor $author - * Required. The commit's author. - * @type string $commit_message - * Optional. The commit's message. - * @type string[] $paths - * Optional. Full file paths to commit including filename, rooted at workspace - * root. If left empty, all files will be committed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The commit's author. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CommitAuthor author = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataform\V1beta1\CommitAuthor|null - */ - public function getAuthor() - { - return $this->author; - } - - public function hasAuthor() - { - return isset($this->author); - } - - public function clearAuthor() - { - unset($this->author); - } - - /** - * Required. The commit's author. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CommitAuthor author = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataform\V1beta1\CommitAuthor $var - * @return $this - */ - public function setAuthor($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CommitAuthor::class); - $this->author = $var; - - return $this; - } - - /** - * Optional. The commit's message. - * - * Generated from protobuf field string commit_message = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getCommitMessage() - { - return $this->commit_message; - } - - /** - * Optional. The commit's message. - * - * Generated from protobuf field string commit_message = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setCommitMessage($var) - { - GPBUtil::checkString($var, True); - $this->commit_message = $var; - - return $this; - } - - /** - * Optional. Full file paths to commit including filename, rooted at workspace - * root. If left empty, all files will be committed. - * - * Generated from protobuf field repeated string paths = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getPaths() - { - return $this->paths; - } - - /** - * Optional. Full file paths to commit including filename, rooted at workspace - * root. If left empty, all files will be committed. - * - * Generated from protobuf field repeated string paths = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setPaths($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->paths = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitWorkspaceChangesResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitWorkspaceChangesResponse.php deleted file mode 100644 index b183710f8517..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitWorkspaceChangesResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.dataform.v1beta1.CommitWorkspaceChangesResponse - */ -class CommitWorkspaceChangesResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResult.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResult.php deleted file mode 100644 index 1c5f2ee724b3..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResult.php +++ /dev/null @@ -1,539 +0,0 @@ -google.cloud.dataform.v1beta1.CompilationResult - */ -class CompilationResult extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The compilation result's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Immutable. If set, fields of `code_compilation_config` override the default - * compilation settings that are specified in dataform.json. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $code_compilation_config = null; - /** - * Output only. The fully resolved Git commit SHA of the code that was - * compiled. Not set for compilation results whose source is a workspace. - * - * Generated from protobuf field string resolved_git_commit_sha = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $resolved_git_commit_sha = ''; - /** - * Output only. The version of `\@dataform/core` that was used for compilation. - * - * Generated from protobuf field string dataform_core_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $dataform_core_version = ''; - /** - * Output only. Errors encountered during project compilation. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $compilation_errors; - /** - * Output only. Only set if the repository has a KMS Key. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.DataEncryptionState data_encryption_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $data_encryption_state = null; - /** - * Output only. The timestamp of when the compilation result was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $internal_metadata = null; - /** - * Output only. Metadata indicating whether this resource is user-scoped. - * `CompilationResult` resource is `user_scoped` only if it is sourced - * from a workspace. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $private_resource_metadata = null; - protected $source; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $git_commitish - * 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` - * @type string $workspace - * Immutable. The name of the workspace to compile. Must be in the format - * `projects/{@*}locations/{@*}repositories/{@*}workspaces/*`. - * @type string $release_config - * Immutable. The name of the release config to compile. Must be in the - * format `projects/{@*}locations/{@*}repositories/{@*}releaseConfigs/*`. - * @type string $name - * Output only. The compilation result's name. - * @type \Google\Cloud\Dataform\V1beta1\CodeCompilationConfig $code_compilation_config - * Immutable. If set, fields of `code_compilation_config` override the default - * compilation settings that are specified in dataform.json. - * @type string $resolved_git_commit_sha - * Output only. The fully resolved Git commit SHA of the code that was - * compiled. Not set for compilation results whose source is a workspace. - * @type string $dataform_core_version - * Output only. The version of `\@dataform/core` that was used for compilation. - * @type \Google\Cloud\Dataform\V1beta1\CompilationResult\CompilationError[] $compilation_errors - * Output only. Errors encountered during project compilation. - * @type \Google\Cloud\Dataform\V1beta1\DataEncryptionState $data_encryption_state - * Output only. Only set if the repository has a KMS Key. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The timestamp of when the compilation result was created. - * @type string $internal_metadata - * 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. - * @type \Google\Cloud\Dataform\V1beta1\PrivateResourceMetadata $private_resource_metadata - * Output only. Metadata indicating whether this resource is user-scoped. - * `CompilationResult` resource is `user_scoped` only if it is sourced - * from a workspace. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * 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` - * - * Generated from protobuf field string git_commitish = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getGitCommitish() - { - return $this->readOneof(2); - } - - public function hasGitCommitish() - { - return $this->hasOneof(2); - } - - /** - * 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` - * - * Generated from protobuf field string git_commitish = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setGitCommitish($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Immutable. The name of the workspace to compile. Must be in the format - * `projects/{@*}locations/{@*}repositories/{@*}workspaces/*`. - * - * Generated from protobuf field string workspace = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @return string - */ - public function getWorkspace() - { - return $this->readOneof(3); - } - - public function hasWorkspace() - { - return $this->hasOneof(3); - } - - /** - * Immutable. The name of the workspace to compile. Must be in the format - * `projects/{@*}locations/{@*}repositories/{@*}workspaces/*`. - * - * Generated from protobuf field string workspace = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setWorkspace($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Immutable. The name of the release config to compile. Must be in the - * format `projects/{@*}locations/{@*}repositories/{@*}releaseConfigs/*`. - * - * Generated from protobuf field string release_config = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @return string - */ - public function getReleaseConfig() - { - return $this->readOneof(7); - } - - public function hasReleaseConfig() - { - return $this->hasOneof(7); - } - - /** - * Immutable. The name of the release config to compile. Must be in the - * format `projects/{@*}locations/{@*}repositories/{@*}releaseConfigs/*`. - * - * Generated from protobuf field string release_config = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setReleaseConfig($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * Output only. The compilation result's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The compilation result's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Immutable. If set, fields of `code_compilation_config` override the default - * compilation settings that are specified in dataform.json. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Cloud\Dataform\V1beta1\CodeCompilationConfig|null - */ - public function getCodeCompilationConfig() - { - return $this->code_compilation_config; - } - - public function hasCodeCompilationConfig() - { - return isset($this->code_compilation_config); - } - - public function clearCodeCompilationConfig() - { - unset($this->code_compilation_config); - } - - /** - * Immutable. If set, fields of `code_compilation_config` override the default - * compilation settings that are specified in dataform.json. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CodeCompilationConfig code_compilation_config = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Cloud\Dataform\V1beta1\CodeCompilationConfig $var - * @return $this - */ - public function setCodeCompilationConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CodeCompilationConfig::class); - $this->code_compilation_config = $var; - - return $this; - } - - /** - * Output only. The fully resolved Git commit SHA of the code that was - * compiled. Not set for compilation results whose source is a workspace. - * - * Generated from protobuf field string resolved_git_commit_sha = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getResolvedGitCommitSha() - { - return $this->resolved_git_commit_sha; - } - - /** - * Output only. The fully resolved Git commit SHA of the code that was - * compiled. Not set for compilation results whose source is a workspace. - * - * Generated from protobuf field string resolved_git_commit_sha = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setResolvedGitCommitSha($var) - { - GPBUtil::checkString($var, True); - $this->resolved_git_commit_sha = $var; - - return $this; - } - - /** - * Output only. The version of `\@dataform/core` that was used for compilation. - * - * Generated from protobuf field string dataform_core_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDataformCoreVersion() - { - return $this->dataform_core_version; - } - - /** - * Output only. The version of `\@dataform/core` that was used for compilation. - * - * Generated from protobuf field string dataform_core_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDataformCoreVersion($var) - { - GPBUtil::checkString($var, True); - $this->dataform_core_version = $var; - - return $this; - } - - /** - * Output only. Errors encountered during project compilation. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\CompilationResult\CompilationError> - */ - public function getCompilationErrors() - { - return $this->compilation_errors; - } - - /** - * Output only. Errors encountered during project compilation. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.CompilationResult.CompilationError compilation_errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataform\V1beta1\CompilationResult\CompilationError[] $var - * @return $this - */ - public function setCompilationErrors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\CompilationResult\CompilationError::class); - $this->compilation_errors = $arr; - - return $this; - } - - /** - * Output only. Only set if the repository has a KMS Key. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.DataEncryptionState data_encryption_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataform\V1beta1\DataEncryptionState|null - */ - public function getDataEncryptionState() - { - return $this->data_encryption_state; - } - - public function hasDataEncryptionState() - { - return isset($this->data_encryption_state); - } - - public function clearDataEncryptionState() - { - unset($this->data_encryption_state); - } - - /** - * Output only. Only set if the repository has a KMS Key. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.DataEncryptionState data_encryption_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataform\V1beta1\DataEncryptionState $var - * @return $this - */ - public function setDataEncryptionState($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\DataEncryptionState::class); - $this->data_encryption_state = $var; - - return $this; - } - - /** - * Output only. The timestamp of when the compilation result was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The timestamp of when the compilation result was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getInternalMetadata() - { - return isset($this->internal_metadata) ? $this->internal_metadata : ''; - } - - public function hasInternalMetadata() - { - return isset($this->internal_metadata); - } - - public function clearInternalMetadata() - { - unset($this->internal_metadata); - } - - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setInternalMetadata($var) - { - GPBUtil::checkString($var, True); - $this->internal_metadata = $var; - - return $this; - } - - /** - * Output only. Metadata indicating whether this resource is user-scoped. - * `CompilationResult` resource is `user_scoped` only if it is sourced - * from a workspace. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataform\V1beta1\PrivateResourceMetadata|null - */ - public function getPrivateResourceMetadata() - { - return $this->private_resource_metadata; - } - - public function hasPrivateResourceMetadata() - { - return isset($this->private_resource_metadata); - } - - public function clearPrivateResourceMetadata() - { - unset($this->private_resource_metadata); - } - - /** - * Output only. Metadata indicating whether this resource is user-scoped. - * `CompilationResult` resource is `user_scoped` only if it is sourced - * from a workspace. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataform\V1beta1\PrivateResourceMetadata $var - * @return $this - */ - public function setPrivateResourceMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\PrivateResourceMetadata::class); - $this->private_resource_metadata = $var; - - return $this; - } - - /** - * @return string - */ - public function getSource() - { - return $this->whichOneof("source"); - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResult/CompilationError.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResult/CompilationError.php deleted file mode 100644 index 5ebf8d27c434..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResult/CompilationError.php +++ /dev/null @@ -1,187 +0,0 @@ -google.cloud.dataform.v1beta1.CompilationResult.CompilationError - */ -class CompilationError extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The error's top level message. - * - * Generated from protobuf field string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $message = ''; - /** - * Output only. The error's full stack trace. - * - * Generated from protobuf field string stack = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $stack = ''; - /** - * Output only. The path of the file where this error occurred, if - * available, relative to the project root. - * - * Generated from protobuf field string path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $path = ''; - /** - * Output only. The identifier of the action where this error occurred, if - * available. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $action_target = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $message - * Output only. The error's top level message. - * @type string $stack - * Output only. The error's full stack trace. - * @type string $path - * Output only. The path of the file where this error occurred, if - * available, relative to the project root. - * @type \Google\Cloud\Dataform\V1beta1\Target $action_target - * Output only. The identifier of the action where this error occurred, if - * available. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The error's top level message. - * - * Generated from protobuf field string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * Output only. The error's top level message. - * - * Generated from protobuf field string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - - /** - * Output only. The error's full stack trace. - * - * Generated from protobuf field string stack = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getStack() - { - return $this->stack; - } - - /** - * Output only. The error's full stack trace. - * - * Generated from protobuf field string stack = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setStack($var) - { - GPBUtil::checkString($var, True); - $this->stack = $var; - - return $this; - } - - /** - * Output only. The path of the file where this error occurred, if - * available, relative to the project root. - * - * Generated from protobuf field string path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * Output only. The path of the file where this error occurred, if - * available, relative to the project root. - * - * Generated from protobuf field string path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - - /** - * Output only. The identifier of the action where this error occurred, if - * available. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataform\V1beta1\Target|null - */ - public function getActionTarget() - { - return $this->action_target; - } - - public function hasActionTarget() - { - return isset($this->action_target); - } - - public function clearActionTarget() - { - unset($this->action_target); - } - - /** - * Output only. The identifier of the action where this error occurred, if - * available. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Target action_target = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataform\V1beta1\Target $var - * @return $this - */ - public function setActionTarget($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Target::class); - $this->action_target = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction.php deleted file mode 100644 index 29b58bdbc005..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction.php +++ /dev/null @@ -1,422 +0,0 @@ -google.cloud.dataform.v1beta1.CompilationResultAction - */ -class CompilationResultAction extends \Google\Protobuf\Internal\Message -{ - /** - * This action's identifier. Unique within the compilation result. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Target target = 1; - */ - protected $target = null; - /** - * The action's identifier if the project had been compiled without any - * overrides configured. Unique within the compilation result. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Target canonical_target = 2; - */ - protected $canonical_target = null; - /** - * The full path including filename in which this action is located, relative - * to the workspace root. - * - * Generated from protobuf field string file_path = 3; - */ - protected $file_path = ''; - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $internal_metadata = null; - protected $compiled_object; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Relation $relation - * The database relation created/updated by this action. - * @type \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Operations $operations - * The database operations executed by this action. - * @type \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Assertion $assertion - * The assertion executed by this action. - * @type \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Declaration $declaration - * The declaration declared by this action. - * @type \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Notebook $notebook - * The notebook executed by this action. - * @type \Google\Cloud\Dataform\V1beta1\CompilationResultAction\DataPreparation $data_preparation - * The data preparation executed by this action. - * @type \Google\Cloud\Dataform\V1beta1\Target $target - * This action's identifier. Unique within the compilation result. - * @type \Google\Cloud\Dataform\V1beta1\Target $canonical_target - * The action's identifier if the project had been compiled without any - * overrides configured. Unique within the compilation result. - * @type string $file_path - * The full path including filename in which this action is located, relative - * to the workspace root. - * @type string $internal_metadata - * 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. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * The database relation created/updated by this action. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.Relation relation = 4; - * @return \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Relation|null - */ - public function getRelation() - { - return $this->readOneof(4); - } - - public function hasRelation() - { - return $this->hasOneof(4); - } - - /** - * The database relation created/updated by this action. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.Relation relation = 4; - * @param \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Relation $var - * @return $this - */ - public function setRelation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Relation::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * The database operations executed by this action. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.Operations operations = 5; - * @return \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Operations|null - */ - public function getOperations() - { - return $this->readOneof(5); - } - - public function hasOperations() - { - return $this->hasOneof(5); - } - - /** - * The database operations executed by this action. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.Operations operations = 5; - * @param \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Operations $var - * @return $this - */ - public function setOperations($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Operations::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * The assertion executed by this action. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.Assertion assertion = 6; - * @return \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Assertion|null - */ - public function getAssertion() - { - return $this->readOneof(6); - } - - public function hasAssertion() - { - return $this->hasOneof(6); - } - - /** - * The assertion executed by this action. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.Assertion assertion = 6; - * @param \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Assertion $var - * @return $this - */ - public function setAssertion($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Assertion::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * The declaration declared by this action. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.Declaration declaration = 7; - * @return \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Declaration|null - */ - public function getDeclaration() - { - return $this->readOneof(7); - } - - public function hasDeclaration() - { - return $this->hasOneof(7); - } - - /** - * The declaration declared by this action. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.Declaration declaration = 7; - * @param \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Declaration $var - * @return $this - */ - public function setDeclaration($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Declaration::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * The notebook executed by this action. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.Notebook notebook = 8; - * @return \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Notebook|null - */ - public function getNotebook() - { - return $this->readOneof(8); - } - - public function hasNotebook() - { - return $this->hasOneof(8); - } - - /** - * The notebook executed by this action. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.Notebook notebook = 8; - * @param \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Notebook $var - * @return $this - */ - public function setNotebook($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Notebook::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * The data preparation executed by this action. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.DataPreparation data_preparation = 9; - * @return \Google\Cloud\Dataform\V1beta1\CompilationResultAction\DataPreparation|null - */ - public function getDataPreparation() - { - return $this->readOneof(9); - } - - public function hasDataPreparation() - { - return $this->hasOneof(9); - } - - /** - * The data preparation executed by this action. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.DataPreparation data_preparation = 9; - * @param \Google\Cloud\Dataform\V1beta1\CompilationResultAction\DataPreparation $var - * @return $this - */ - public function setDataPreparation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CompilationResultAction\DataPreparation::class); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * This action's identifier. Unique within the compilation result. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Target target = 1; - * @return \Google\Cloud\Dataform\V1beta1\Target|null - */ - public function getTarget() - { - return $this->target; - } - - public function hasTarget() - { - return isset($this->target); - } - - public function clearTarget() - { - unset($this->target); - } - - /** - * This action's identifier. Unique within the compilation result. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Target target = 1; - * @param \Google\Cloud\Dataform\V1beta1\Target $var - * @return $this - */ - public function setTarget($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Target::class); - $this->target = $var; - - return $this; - } - - /** - * The action's identifier if the project had been compiled without any - * overrides configured. Unique within the compilation result. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Target canonical_target = 2; - * @return \Google\Cloud\Dataform\V1beta1\Target|null - */ - public function getCanonicalTarget() - { - return $this->canonical_target; - } - - public function hasCanonicalTarget() - { - return isset($this->canonical_target); - } - - public function clearCanonicalTarget() - { - unset($this->canonical_target); - } - - /** - * The action's identifier if the project had been compiled without any - * overrides configured. Unique within the compilation result. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Target canonical_target = 2; - * @param \Google\Cloud\Dataform\V1beta1\Target $var - * @return $this - */ - public function setCanonicalTarget($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Target::class); - $this->canonical_target = $var; - - return $this; - } - - /** - * The full path including filename in which this action is located, relative - * to the workspace root. - * - * Generated from protobuf field string file_path = 3; - * @return string - */ - public function getFilePath() - { - return $this->file_path; - } - - /** - * The full path including filename in which this action is located, relative - * to the workspace root. - * - * Generated from protobuf field string file_path = 3; - * @param string $var - * @return $this - */ - public function setFilePath($var) - { - GPBUtil::checkString($var, True); - $this->file_path = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getInternalMetadata() - { - return isset($this->internal_metadata) ? $this->internal_metadata : ''; - } - - public function hasInternalMetadata() - { - return isset($this->internal_metadata); - } - - public function clearInternalMetadata() - { - unset($this->internal_metadata); - } - - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setInternalMetadata($var) - { - GPBUtil::checkString($var, True); - $this->internal_metadata = $var; - - return $this; - } - - /** - * @return string - */ - public function getCompiledObject() - { - return $this->whichOneof("compiled_object"); - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Assertion.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Assertion.php deleted file mode 100644 index 31f1a75de7b8..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Assertion.php +++ /dev/null @@ -1,270 +0,0 @@ -google.cloud.dataform.v1beta1.CompilationResultAction.Assertion - */ -class Assertion extends \Google\Protobuf\Internal\Message -{ - /** - * A list of actions that this action depends on. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; - */ - private $dependency_targets; - /** - * The parent action of this assertion. Only set if this assertion was - * automatically generated. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Target parent_action = 5; - */ - protected $parent_action = null; - /** - * Whether this action is disabled (i.e. should not be run). - * - * Generated from protobuf field bool disabled = 2; - */ - protected $disabled = false; - /** - * Arbitrary, user-defined tags on this action. - * - * Generated from protobuf field repeated string tags = 3; - */ - private $tags; - /** - * The SELECT query which must return zero rows in order for this assertion - * to succeed. - * - * Generated from protobuf field string select_query = 4; - */ - protected $select_query = ''; - /** - * Descriptor for the assertion's automatically-generated view and its - * columns. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6; - */ - protected $relation_descriptor = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1beta1\Target[] $dependency_targets - * A list of actions that this action depends on. - * @type \Google\Cloud\Dataform\V1beta1\Target $parent_action - * The parent action of this assertion. Only set if this assertion was - * automatically generated. - * @type bool $disabled - * Whether this action is disabled (i.e. should not be run). - * @type string[] $tags - * Arbitrary, user-defined tags on this action. - * @type string $select_query - * The SELECT query which must return zero rows in order for this assertion - * to succeed. - * @type \Google\Cloud\Dataform\V1beta1\RelationDescriptor $relation_descriptor - * Descriptor for the assertion's automatically-generated view and its - * columns. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * A list of actions that this action depends on. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; - * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\Target> - */ - public function getDependencyTargets() - { - return $this->dependency_targets; - } - - /** - * A list of actions that this action depends on. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; - * @param \Google\Cloud\Dataform\V1beta1\Target[] $var - * @return $this - */ - public function setDependencyTargets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\Target::class); - $this->dependency_targets = $arr; - - return $this; - } - - /** - * The parent action of this assertion. Only set if this assertion was - * automatically generated. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Target parent_action = 5; - * @return \Google\Cloud\Dataform\V1beta1\Target|null - */ - public function getParentAction() - { - return $this->parent_action; - } - - public function hasParentAction() - { - return isset($this->parent_action); - } - - public function clearParentAction() - { - unset($this->parent_action); - } - - /** - * The parent action of this assertion. Only set if this assertion was - * automatically generated. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Target parent_action = 5; - * @param \Google\Cloud\Dataform\V1beta1\Target $var - * @return $this - */ - public function setParentAction($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Target::class); - $this->parent_action = $var; - - return $this; - } - - /** - * Whether this action is disabled (i.e. should not be run). - * - * Generated from protobuf field bool disabled = 2; - * @return bool - */ - public function getDisabled() - { - return $this->disabled; - } - - /** - * Whether this action is disabled (i.e. should not be run). - * - * Generated from protobuf field bool disabled = 2; - * @param bool $var - * @return $this - */ - public function setDisabled($var) - { - GPBUtil::checkBool($var); - $this->disabled = $var; - - return $this; - } - - /** - * Arbitrary, user-defined tags on this action. - * - * Generated from protobuf field repeated string tags = 3; - * @return RepeatedField - */ - public function getTags() - { - return $this->tags; - } - - /** - * Arbitrary, user-defined tags on this action. - * - * Generated from protobuf field repeated string tags = 3; - * @param string[] $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->tags = $arr; - - return $this; - } - - /** - * The SELECT query which must return zero rows in order for this assertion - * to succeed. - * - * Generated from protobuf field string select_query = 4; - * @return string - */ - public function getSelectQuery() - { - return $this->select_query; - } - - /** - * The SELECT query which must return zero rows in order for this assertion - * to succeed. - * - * Generated from protobuf field string select_query = 4; - * @param string $var - * @return $this - */ - public function setSelectQuery($var) - { - GPBUtil::checkString($var, True); - $this->select_query = $var; - - return $this; - } - - /** - * Descriptor for the assertion's automatically-generated view and its - * columns. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6; - * @return \Google\Cloud\Dataform\V1beta1\RelationDescriptor|null - */ - public function getRelationDescriptor() - { - return $this->relation_descriptor; - } - - public function hasRelationDescriptor() - { - return isset($this->relation_descriptor); - } - - public function clearRelationDescriptor() - { - unset($this->relation_descriptor); - } - - /** - * Descriptor for the assertion's automatically-generated view and its - * columns. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6; - * @param \Google\Cloud\Dataform\V1beta1\RelationDescriptor $var - * @return $this - */ - public function setRelationDescriptor($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\RelationDescriptor::class); - $this->relation_descriptor = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/DataPreparation.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/DataPreparation.php deleted file mode 100644 index 536adb911cb1..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/DataPreparation.php +++ /dev/null @@ -1,213 +0,0 @@ -google.cloud.dataform.v1beta1.CompilationResultAction.DataPreparation - */ -class DataPreparation extends \Google\Protobuf\Internal\Message -{ - /** - * A list of actions that this action depends on. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; - */ - private $dependency_targets; - /** - * Whether this action is disabled (i.e. should not be run). - * - * Generated from protobuf field bool disabled = 2; - */ - protected $disabled = false; - /** - * Arbitrary, user-defined tags on this action. - * - * Generated from protobuf field repeated string tags = 4; - */ - private $tags; - protected $definition; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $contents_yaml - * The data preparation definition, stored as a YAML string. - * @type \Google\Cloud\Dataform\V1beta1\CompilationResultAction\DataPreparation\SqlDefinition $contents_sql - * SQL definition for a Data Preparation. Contains a SQL query and - * additional context information. - * @type \Google\Cloud\Dataform\V1beta1\Target[] $dependency_targets - * A list of actions that this action depends on. - * @type bool $disabled - * Whether this action is disabled (i.e. should not be run). - * @type string[] $tags - * Arbitrary, user-defined tags on this action. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * The data preparation definition, stored as a YAML string. - * - * Generated from protobuf field string contents_yaml = 5; - * @return string - */ - public function getContentsYaml() - { - return $this->readOneof(5); - } - - public function hasContentsYaml() - { - return $this->hasOneof(5); - } - - /** - * The data preparation definition, stored as a YAML string. - * - * Generated from protobuf field string contents_yaml = 5; - * @param string $var - * @return $this - */ - public function setContentsYaml($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * SQL definition for a Data Preparation. Contains a SQL query and - * additional context information. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.DataPreparation.SqlDefinition contents_sql = 6; - * @return \Google\Cloud\Dataform\V1beta1\CompilationResultAction\DataPreparation\SqlDefinition|null - */ - public function getContentsSql() - { - return $this->readOneof(6); - } - - public function hasContentsSql() - { - return $this->hasOneof(6); - } - - /** - * SQL definition for a Data Preparation. Contains a SQL query and - * additional context information. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.DataPreparation.SqlDefinition contents_sql = 6; - * @param \Google\Cloud\Dataform\V1beta1\CompilationResultAction\DataPreparation\SqlDefinition $var - * @return $this - */ - public function setContentsSql($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CompilationResultAction\DataPreparation\SqlDefinition::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * A list of actions that this action depends on. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; - * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\Target> - */ - public function getDependencyTargets() - { - return $this->dependency_targets; - } - - /** - * A list of actions that this action depends on. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; - * @param \Google\Cloud\Dataform\V1beta1\Target[] $var - * @return $this - */ - public function setDependencyTargets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\Target::class); - $this->dependency_targets = $arr; - - return $this; - } - - /** - * Whether this action is disabled (i.e. should not be run). - * - * Generated from protobuf field bool disabled = 2; - * @return bool - */ - public function getDisabled() - { - return $this->disabled; - } - - /** - * Whether this action is disabled (i.e. should not be run). - * - * Generated from protobuf field bool disabled = 2; - * @param bool $var - * @return $this - */ - public function setDisabled($var) - { - GPBUtil::checkBool($var); - $this->disabled = $var; - - return $this; - } - - /** - * Arbitrary, user-defined tags on this action. - * - * Generated from protobuf field repeated string tags = 4; - * @return RepeatedField - */ - public function getTags() - { - return $this->tags; - } - - /** - * Arbitrary, user-defined tags on this action. - * - * Generated from protobuf field repeated string tags = 4; - * @param string[] $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->tags = $arr; - - return $this; - } - - /** - * @return string - */ - public function getDefinition() - { - return $this->whichOneof("definition"); - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/DataPreparation/ErrorTable.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/DataPreparation/ErrorTable.php deleted file mode 100644 index d2f5f7adc345..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/DataPreparation/ErrorTable.php +++ /dev/null @@ -1,116 +0,0 @@ -google.cloud.dataform.v1beta1.CompilationResultAction.DataPreparation.ErrorTable - */ -class ErrorTable extends \Google\Protobuf\Internal\Message -{ - /** - * Error Table target. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Target target = 1; - */ - protected $target = null; - /** - * Error table partition expiration in days. Only positive values are - * allowed. - * - * Generated from protobuf field int32 retention_days = 2; - */ - protected $retention_days = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1beta1\Target $target - * Error Table target. - * @type int $retention_days - * Error table partition expiration in days. Only positive values are - * allowed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Error Table target. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Target target = 1; - * @return \Google\Cloud\Dataform\V1beta1\Target|null - */ - public function getTarget() - { - return $this->target; - } - - public function hasTarget() - { - return isset($this->target); - } - - public function clearTarget() - { - unset($this->target); - } - - /** - * Error Table target. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Target target = 1; - * @param \Google\Cloud\Dataform\V1beta1\Target $var - * @return $this - */ - public function setTarget($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Target::class); - $this->target = $var; - - return $this; - } - - /** - * Error table partition expiration in days. Only positive values are - * allowed. - * - * Generated from protobuf field int32 retention_days = 2; - * @return int - */ - public function getRetentionDays() - { - return $this->retention_days; - } - - /** - * Error table partition expiration in days. Only positive values are - * allowed. - * - * Generated from protobuf field int32 retention_days = 2; - * @param int $var - * @return $this - */ - public function setRetentionDays($var) - { - GPBUtil::checkInt32($var); - $this->retention_days = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/DataPreparation/SqlDefinition.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/DataPreparation/SqlDefinition.php deleted file mode 100644 index 3889e560941e..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/DataPreparation/SqlDefinition.php +++ /dev/null @@ -1,159 +0,0 @@ -google.cloud.dataform.v1beta1.CompilationResultAction.DataPreparation.SqlDefinition - */ -class SqlDefinition extends \Google\Protobuf\Internal\Message -{ - /** - * The SQL query representing the data preparation steps. Formatted as a - * Pipe SQL query statement. - * - * Generated from protobuf field string query = 1; - */ - protected $query = ''; - /** - * Error table configuration, - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.DataPreparation.ErrorTable error_table = 2; - */ - protected $error_table = null; - /** - * Load configuration. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.LoadConfig load = 3; - */ - protected $load = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $query - * The SQL query representing the data preparation steps. Formatted as a - * Pipe SQL query statement. - * @type \Google\Cloud\Dataform\V1beta1\CompilationResultAction\DataPreparation\ErrorTable $error_table - * Error table configuration, - * @type \Google\Cloud\Dataform\V1beta1\CompilationResultAction\LoadConfig $load - * Load configuration. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * The SQL query representing the data preparation steps. Formatted as a - * Pipe SQL query statement. - * - * Generated from protobuf field string query = 1; - * @return string - */ - public function getQuery() - { - return $this->query; - } - - /** - * The SQL query representing the data preparation steps. Formatted as a - * Pipe SQL query statement. - * - * Generated from protobuf field string query = 1; - * @param string $var - * @return $this - */ - public function setQuery($var) - { - GPBUtil::checkString($var, True); - $this->query = $var; - - return $this; - } - - /** - * Error table configuration, - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.DataPreparation.ErrorTable error_table = 2; - * @return \Google\Cloud\Dataform\V1beta1\CompilationResultAction\DataPreparation\ErrorTable|null - */ - public function getErrorTable() - { - return $this->error_table; - } - - public function hasErrorTable() - { - return isset($this->error_table); - } - - public function clearErrorTable() - { - unset($this->error_table); - } - - /** - * Error table configuration, - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.DataPreparation.ErrorTable error_table = 2; - * @param \Google\Cloud\Dataform\V1beta1\CompilationResultAction\DataPreparation\ErrorTable $var - * @return $this - */ - public function setErrorTable($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CompilationResultAction\DataPreparation\ErrorTable::class); - $this->error_table = $var; - - return $this; - } - - /** - * Load configuration. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.LoadConfig load = 3; - * @return \Google\Cloud\Dataform\V1beta1\CompilationResultAction\LoadConfig|null - */ - public function getLoad() - { - return $this->load; - } - - public function hasLoad() - { - return isset($this->load); - } - - public function clearLoad() - { - unset($this->load); - } - - /** - * Load configuration. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.LoadConfig load = 3; - * @param \Google\Cloud\Dataform\V1beta1\CompilationResultAction\LoadConfig $var - * @return $this - */ - public function setLoad($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CompilationResultAction\LoadConfig::class); - $this->load = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Declaration.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Declaration.php deleted file mode 100644 index 98d1624fecc8..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Declaration.php +++ /dev/null @@ -1,82 +0,0 @@ -google.cloud.dataform.v1beta1.CompilationResultAction.Declaration - */ -class Declaration extends \Google\Protobuf\Internal\Message -{ - /** - * 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. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 1; - */ - protected $relation_descriptor = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1beta1\RelationDescriptor $relation_descriptor - * 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. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * 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. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 1; - * @return \Google\Cloud\Dataform\V1beta1\RelationDescriptor|null - */ - public function getRelationDescriptor() - { - return $this->relation_descriptor; - } - - public function hasRelationDescriptor() - { - return isset($this->relation_descriptor); - } - - public function clearRelationDescriptor() - { - unset($this->relation_descriptor); - } - - /** - * 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. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 1; - * @param \Google\Cloud\Dataform\V1beta1\RelationDescriptor $var - * @return $this - */ - public function setRelationDescriptor($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\RelationDescriptor::class); - $this->relation_descriptor = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/IncrementalLoadMode.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/IncrementalLoadMode.php deleted file mode 100644 index 1762e02b41cf..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/IncrementalLoadMode.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.dataform.v1beta1.CompilationResultAction.IncrementalLoadMode - */ -class IncrementalLoadMode extends \Google\Protobuf\Internal\Message -{ - /** - * Column name for incremental load modes - * - * Generated from protobuf field string column = 1; - */ - protected $column = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $column - * Column name for incremental load modes - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Column name for incremental load modes - * - * Generated from protobuf field string column = 1; - * @return string - */ - public function getColumn() - { - return $this->column; - } - - /** - * Column name for incremental load modes - * - * Generated from protobuf field string column = 1; - * @param string $var - * @return $this - */ - public function setColumn($var) - { - GPBUtil::checkString($var, True); - $this->column = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/LoadConfig.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/LoadConfig.php deleted file mode 100644 index aaee9763a65c..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/LoadConfig.php +++ /dev/null @@ -1,180 +0,0 @@ -google.cloud.dataform.v1beta1.CompilationResultAction.LoadConfig - */ -class LoadConfig extends \Google\Protobuf\Internal\Message -{ - protected $mode; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1beta1\CompilationResultAction\SimpleLoadMode $replace - * Replace destination table - * @type \Google\Cloud\Dataform\V1beta1\CompilationResultAction\SimpleLoadMode $append - * Append into destination table - * @type \Google\Cloud\Dataform\V1beta1\CompilationResultAction\IncrementalLoadMode $maximum - * Insert records where the value exceeds the previous maximum value for a - * column in the destination table - * @type \Google\Cloud\Dataform\V1beta1\CompilationResultAction\IncrementalLoadMode $unique - * Insert records where the value of a column is not already present in - * the destination table - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Replace destination table - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.SimpleLoadMode replace = 1; - * @return \Google\Cloud\Dataform\V1beta1\CompilationResultAction\SimpleLoadMode|null - */ - public function getReplace() - { - return $this->readOneof(1); - } - - public function hasReplace() - { - return $this->hasOneof(1); - } - - /** - * Replace destination table - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.SimpleLoadMode replace = 1; - * @param \Google\Cloud\Dataform\V1beta1\CompilationResultAction\SimpleLoadMode $var - * @return $this - */ - public function setReplace($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CompilationResultAction\SimpleLoadMode::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Append into destination table - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.SimpleLoadMode append = 2; - * @return \Google\Cloud\Dataform\V1beta1\CompilationResultAction\SimpleLoadMode|null - */ - public function getAppend() - { - return $this->readOneof(2); - } - - public function hasAppend() - { - return $this->hasOneof(2); - } - - /** - * Append into destination table - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.SimpleLoadMode append = 2; - * @param \Google\Cloud\Dataform\V1beta1\CompilationResultAction\SimpleLoadMode $var - * @return $this - */ - public function setAppend($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CompilationResultAction\SimpleLoadMode::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Insert records where the value exceeds the previous maximum value for a - * column in the destination table - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.IncrementalLoadMode maximum = 3; - * @return \Google\Cloud\Dataform\V1beta1\CompilationResultAction\IncrementalLoadMode|null - */ - public function getMaximum() - { - return $this->readOneof(3); - } - - public function hasMaximum() - { - return $this->hasOneof(3); - } - - /** - * Insert records where the value exceeds the previous maximum value for a - * column in the destination table - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.IncrementalLoadMode maximum = 3; - * @param \Google\Cloud\Dataform\V1beta1\CompilationResultAction\IncrementalLoadMode $var - * @return $this - */ - public function setMaximum($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CompilationResultAction\IncrementalLoadMode::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Insert records where the value of a column is not already present in - * the destination table - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.IncrementalLoadMode unique = 4; - * @return \Google\Cloud\Dataform\V1beta1\CompilationResultAction\IncrementalLoadMode|null - */ - public function getUnique() - { - return $this->readOneof(4); - } - - public function hasUnique() - { - return $this->hasOneof(4); - } - - /** - * Insert records where the value of a column is not already present in - * the destination table - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.IncrementalLoadMode unique = 4; - * @param \Google\Cloud\Dataform\V1beta1\CompilationResultAction\IncrementalLoadMode $var - * @return $this - */ - public function setUnique($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CompilationResultAction\IncrementalLoadMode::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getMode() - { - return $this->whichOneof("mode"); - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Notebook.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Notebook.php deleted file mode 100644 index e848bff3b740..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Notebook.php +++ /dev/null @@ -1,169 +0,0 @@ -google.cloud.dataform.v1beta1.CompilationResultAction.Notebook - */ -class Notebook extends \Google\Protobuf\Internal\Message -{ - /** - * A list of actions that this action depends on. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; - */ - private $dependency_targets; - /** - * Whether this action is disabled (i.e. should not be run). - * - * Generated from protobuf field bool disabled = 2; - */ - protected $disabled = false; - /** - * The contents of the notebook. - * - * Generated from protobuf field string contents = 3; - */ - protected $contents = ''; - /** - * Arbitrary, user-defined tags on this action. - * - * Generated from protobuf field repeated string tags = 4; - */ - private $tags; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1beta1\Target[] $dependency_targets - * A list of actions that this action depends on. - * @type bool $disabled - * Whether this action is disabled (i.e. should not be run). - * @type string $contents - * The contents of the notebook. - * @type string[] $tags - * Arbitrary, user-defined tags on this action. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * A list of actions that this action depends on. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; - * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\Target> - */ - public function getDependencyTargets() - { - return $this->dependency_targets; - } - - /** - * A list of actions that this action depends on. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; - * @param \Google\Cloud\Dataform\V1beta1\Target[] $var - * @return $this - */ - public function setDependencyTargets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\Target::class); - $this->dependency_targets = $arr; - - return $this; - } - - /** - * Whether this action is disabled (i.e. should not be run). - * - * Generated from protobuf field bool disabled = 2; - * @return bool - */ - public function getDisabled() - { - return $this->disabled; - } - - /** - * Whether this action is disabled (i.e. should not be run). - * - * Generated from protobuf field bool disabled = 2; - * @param bool $var - * @return $this - */ - public function setDisabled($var) - { - GPBUtil::checkBool($var); - $this->disabled = $var; - - return $this; - } - - /** - * The contents of the notebook. - * - * Generated from protobuf field string contents = 3; - * @return string - */ - public function getContents() - { - return $this->contents; - } - - /** - * The contents of the notebook. - * - * Generated from protobuf field string contents = 3; - * @param string $var - * @return $this - */ - public function setContents($var) - { - GPBUtil::checkString($var, True); - $this->contents = $var; - - return $this; - } - - /** - * Arbitrary, user-defined tags on this action. - * - * Generated from protobuf field repeated string tags = 4; - * @return RepeatedField - */ - public function getTags() - { - return $this->tags; - } - - /** - * Arbitrary, user-defined tags on this action. - * - * Generated from protobuf field repeated string tags = 4; - * @param string[] $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->tags = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Operations.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Operations.php deleted file mode 100644 index 2a1521922d37..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Operations.php +++ /dev/null @@ -1,255 +0,0 @@ -google.cloud.dataform.v1beta1.CompilationResultAction.Operations - */ -class Operations extends \Google\Protobuf\Internal\Message -{ - /** - * A list of actions that this action depends on. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; - */ - private $dependency_targets; - /** - * Whether this action is disabled (i.e. should not be run). - * - * Generated from protobuf field bool disabled = 2; - */ - protected $disabled = false; - /** - * Arbitrary, user-defined tags on this action. - * - * Generated from protobuf field repeated string tags = 3; - */ - private $tags; - /** - * Descriptor for any output relation and its columns. Only set if - * `has_output` is true. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6; - */ - protected $relation_descriptor = null; - /** - * A list of arbitrary SQL statements that will be executed without - * alteration. - * - * Generated from protobuf field repeated string queries = 4; - */ - private $queries; - /** - * Whether these operations produce an output relation. - * - * Generated from protobuf field bool has_output = 5; - */ - protected $has_output = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1beta1\Target[] $dependency_targets - * A list of actions that this action depends on. - * @type bool $disabled - * Whether this action is disabled (i.e. should not be run). - * @type string[] $tags - * Arbitrary, user-defined tags on this action. - * @type \Google\Cloud\Dataform\V1beta1\RelationDescriptor $relation_descriptor - * Descriptor for any output relation and its columns. Only set if - * `has_output` is true. - * @type string[] $queries - * A list of arbitrary SQL statements that will be executed without - * alteration. - * @type bool $has_output - * Whether these operations produce an output relation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * A list of actions that this action depends on. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; - * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\Target> - */ - public function getDependencyTargets() - { - return $this->dependency_targets; - } - - /** - * A list of actions that this action depends on. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; - * @param \Google\Cloud\Dataform\V1beta1\Target[] $var - * @return $this - */ - public function setDependencyTargets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\Target::class); - $this->dependency_targets = $arr; - - return $this; - } - - /** - * Whether this action is disabled (i.e. should not be run). - * - * Generated from protobuf field bool disabled = 2; - * @return bool - */ - public function getDisabled() - { - return $this->disabled; - } - - /** - * Whether this action is disabled (i.e. should not be run). - * - * Generated from protobuf field bool disabled = 2; - * @param bool $var - * @return $this - */ - public function setDisabled($var) - { - GPBUtil::checkBool($var); - $this->disabled = $var; - - return $this; - } - - /** - * Arbitrary, user-defined tags on this action. - * - * Generated from protobuf field repeated string tags = 3; - * @return RepeatedField - */ - public function getTags() - { - return $this->tags; - } - - /** - * Arbitrary, user-defined tags on this action. - * - * Generated from protobuf field repeated string tags = 3; - * @param string[] $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->tags = $arr; - - return $this; - } - - /** - * Descriptor for any output relation and its columns. Only set if - * `has_output` is true. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6; - * @return \Google\Cloud\Dataform\V1beta1\RelationDescriptor|null - */ - public function getRelationDescriptor() - { - return $this->relation_descriptor; - } - - public function hasRelationDescriptor() - { - return isset($this->relation_descriptor); - } - - public function clearRelationDescriptor() - { - unset($this->relation_descriptor); - } - - /** - * Descriptor for any output relation and its columns. Only set if - * `has_output` is true. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 6; - * @param \Google\Cloud\Dataform\V1beta1\RelationDescriptor $var - * @return $this - */ - public function setRelationDescriptor($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\RelationDescriptor::class); - $this->relation_descriptor = $var; - - return $this; - } - - /** - * A list of arbitrary SQL statements that will be executed without - * alteration. - * - * Generated from protobuf field repeated string queries = 4; - * @return RepeatedField - */ - public function getQueries() - { - return $this->queries; - } - - /** - * A list of arbitrary SQL statements that will be executed without - * alteration. - * - * Generated from protobuf field repeated string queries = 4; - * @param string[] $var - * @return $this - */ - public function setQueries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->queries = $arr; - - return $this; - } - - /** - * Whether these operations produce an output relation. - * - * Generated from protobuf field bool has_output = 5; - * @return bool - */ - public function getHasOutput() - { - return $this->has_output; - } - - /** - * Whether these operations produce an output relation. - * - * Generated from protobuf field bool has_output = 5; - * @param bool $var - * @return $this - */ - public function setHasOutput($var) - { - GPBUtil::checkBool($var); - $this->has_output = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation.php deleted file mode 100644 index 34f6a0a95566..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation.php +++ /dev/null @@ -1,709 +0,0 @@ -google.cloud.dataform.v1beta1.CompilationResultAction.Relation - */ -class Relation extends \Google\Protobuf\Internal\Message -{ - /** - * A list of actions that this action depends on. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; - */ - private $dependency_targets; - /** - * Whether this action is disabled (i.e. should not be run). - * - * Generated from protobuf field bool disabled = 2; - */ - protected $disabled = false; - /** - * Arbitrary, user-defined tags on this action. - * - * Generated from protobuf field repeated string tags = 3; - */ - private $tags; - /** - * Descriptor for the relation and its columns. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 4; - */ - protected $relation_descriptor = null; - /** - * The type of this relation. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType relation_type = 5; - */ - protected $relation_type = 0; - /** - * The SELECT query which returns rows which this relation should contain. - * - * Generated from protobuf field string select_query = 6; - */ - protected $select_query = ''; - /** - * SQL statements to be executed before creating the relation. - * - * Generated from protobuf field repeated string pre_operations = 7; - */ - private $pre_operations; - /** - * SQL statements to be executed after creating the relation. - * - * Generated from protobuf field repeated string post_operations = 8; - */ - private $post_operations; - /** - * Configures `INCREMENTAL_TABLE` settings for this relation. Only set if - * `relation_type` is `INCREMENTAL_TABLE`. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9; - */ - protected $incremental_table_config = null; - /** - * The SQL expression used to partition the relation. - * - * Generated from protobuf field string partition_expression = 10; - */ - protected $partition_expression = ''; - /** - * A list of columns or SQL expressions used to cluster the table. - * - * Generated from protobuf field repeated string cluster_expressions = 11; - */ - private $cluster_expressions; - /** - * Sets the partition expiration in days. - * - * Generated from protobuf field int32 partition_expiration_days = 12; - */ - protected $partition_expiration_days = 0; - /** - * Specifies whether queries on this table must include a predicate filter - * that filters on the partitioning column. - * - * Generated from protobuf field bool require_partition_filter = 13; - */ - protected $require_partition_filter = false; - /** - * 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. - * - * Generated from protobuf field map additional_options = 14; - */ - private $additional_options; - /** - * 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. - * - * Generated from protobuf field string connection = 15 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $connection = ''; - /** - * Optional. The table format for the BigQuery table. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.TableFormat table_format = 16 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $table_format = 0; - /** - * Optional. The file format for the BigQuery table. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.FileFormat file_format = 17 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $file_format = 0; - /** - * 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/`. - * - * Generated from protobuf field string storage_uri = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $storage_uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1beta1\Target[] $dependency_targets - * A list of actions that this action depends on. - * @type bool $disabled - * Whether this action is disabled (i.e. should not be run). - * @type string[] $tags - * Arbitrary, user-defined tags on this action. - * @type \Google\Cloud\Dataform\V1beta1\RelationDescriptor $relation_descriptor - * Descriptor for the relation and its columns. - * @type int $relation_type - * The type of this relation. - * @type string $select_query - * The SELECT query which returns rows which this relation should contain. - * @type string[] $pre_operations - * SQL statements to be executed before creating the relation. - * @type string[] $post_operations - * SQL statements to be executed after creating the relation. - * @type \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Relation\IncrementalTableConfig $incremental_table_config - * Configures `INCREMENTAL_TABLE` settings for this relation. Only set if - * `relation_type` is `INCREMENTAL_TABLE`. - * @type string $partition_expression - * The SQL expression used to partition the relation. - * @type string[] $cluster_expressions - * A list of columns or SQL expressions used to cluster the table. - * @type int $partition_expiration_days - * Sets the partition expiration in days. - * @type bool $require_partition_filter - * Specifies whether queries on this table must include a predicate filter - * that filters on the partitioning column. - * @type array|\Google\Protobuf\Internal\MapField $additional_options - * 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. - * @type string $connection - * 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. - * @type int $table_format - * Optional. The table format for the BigQuery table. - * @type int $file_format - * Optional. The file format for the BigQuery table. - * @type string $storage_uri - * 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/`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * A list of actions that this action depends on. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; - * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\Target> - */ - public function getDependencyTargets() - { - return $this->dependency_targets; - } - - /** - * A list of actions that this action depends on. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Target dependency_targets = 1; - * @param \Google\Cloud\Dataform\V1beta1\Target[] $var - * @return $this - */ - public function setDependencyTargets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\Target::class); - $this->dependency_targets = $arr; - - return $this; - } - - /** - * Whether this action is disabled (i.e. should not be run). - * - * Generated from protobuf field bool disabled = 2; - * @return bool - */ - public function getDisabled() - { - return $this->disabled; - } - - /** - * Whether this action is disabled (i.e. should not be run). - * - * Generated from protobuf field bool disabled = 2; - * @param bool $var - * @return $this - */ - public function setDisabled($var) - { - GPBUtil::checkBool($var); - $this->disabled = $var; - - return $this; - } - - /** - * Arbitrary, user-defined tags on this action. - * - * Generated from protobuf field repeated string tags = 3; - * @return RepeatedField - */ - public function getTags() - { - return $this->tags; - } - - /** - * Arbitrary, user-defined tags on this action. - * - * Generated from protobuf field repeated string tags = 3; - * @param string[] $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->tags = $arr; - - return $this; - } - - /** - * Descriptor for the relation and its columns. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 4; - * @return \Google\Cloud\Dataform\V1beta1\RelationDescriptor|null - */ - public function getRelationDescriptor() - { - return $this->relation_descriptor; - } - - public function hasRelationDescriptor() - { - return isset($this->relation_descriptor); - } - - public function clearRelationDescriptor() - { - unset($this->relation_descriptor); - } - - /** - * Descriptor for the relation and its columns. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.RelationDescriptor relation_descriptor = 4; - * @param \Google\Cloud\Dataform\V1beta1\RelationDescriptor $var - * @return $this - */ - public function setRelationDescriptor($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\RelationDescriptor::class); - $this->relation_descriptor = $var; - - return $this; - } - - /** - * The type of this relation. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType relation_type = 5; - * @return int - */ - public function getRelationType() - { - return $this->relation_type; - } - - /** - * The type of this relation. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType relation_type = 5; - * @param int $var - * @return $this - */ - public function setRelationType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Relation\RelationType::class); - $this->relation_type = $var; - - return $this; - } - - /** - * The SELECT query which returns rows which this relation should contain. - * - * Generated from protobuf field string select_query = 6; - * @return string - */ - public function getSelectQuery() - { - return $this->select_query; - } - - /** - * The SELECT query which returns rows which this relation should contain. - * - * Generated from protobuf field string select_query = 6; - * @param string $var - * @return $this - */ - public function setSelectQuery($var) - { - GPBUtil::checkString($var, True); - $this->select_query = $var; - - return $this; - } - - /** - * SQL statements to be executed before creating the relation. - * - * Generated from protobuf field repeated string pre_operations = 7; - * @return RepeatedField - */ - public function getPreOperations() - { - return $this->pre_operations; - } - - /** - * SQL statements to be executed before creating the relation. - * - * Generated from protobuf field repeated string pre_operations = 7; - * @param string[] $var - * @return $this - */ - public function setPreOperations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->pre_operations = $arr; - - return $this; - } - - /** - * SQL statements to be executed after creating the relation. - * - * Generated from protobuf field repeated string post_operations = 8; - * @return RepeatedField - */ - public function getPostOperations() - { - return $this->post_operations; - } - - /** - * SQL statements to be executed after creating the relation. - * - * Generated from protobuf field repeated string post_operations = 8; - * @param string[] $var - * @return $this - */ - public function setPostOperations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->post_operations = $arr; - - return $this; - } - - /** - * Configures `INCREMENTAL_TABLE` settings for this relation. Only set if - * `relation_type` is `INCREMENTAL_TABLE`. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9; - * @return \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Relation\IncrementalTableConfig|null - */ - public function getIncrementalTableConfig() - { - return $this->incremental_table_config; - } - - public function hasIncrementalTableConfig() - { - return isset($this->incremental_table_config); - } - - public function clearIncrementalTableConfig() - { - unset($this->incremental_table_config); - } - - /** - * Configures `INCREMENTAL_TABLE` settings for this relation. Only set if - * `relation_type` is `INCREMENTAL_TABLE`. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig incremental_table_config = 9; - * @param \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Relation\IncrementalTableConfig $var - * @return $this - */ - public function setIncrementalTableConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Relation\IncrementalTableConfig::class); - $this->incremental_table_config = $var; - - return $this; - } - - /** - * The SQL expression used to partition the relation. - * - * Generated from protobuf field string partition_expression = 10; - * @return string - */ - public function getPartitionExpression() - { - return $this->partition_expression; - } - - /** - * The SQL expression used to partition the relation. - * - * Generated from protobuf field string partition_expression = 10; - * @param string $var - * @return $this - */ - public function setPartitionExpression($var) - { - GPBUtil::checkString($var, True); - $this->partition_expression = $var; - - return $this; - } - - /** - * A list of columns or SQL expressions used to cluster the table. - * - * Generated from protobuf field repeated string cluster_expressions = 11; - * @return RepeatedField - */ - public function getClusterExpressions() - { - return $this->cluster_expressions; - } - - /** - * A list of columns or SQL expressions used to cluster the table. - * - * Generated from protobuf field repeated string cluster_expressions = 11; - * @param string[] $var - * @return $this - */ - public function setClusterExpressions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->cluster_expressions = $arr; - - return $this; - } - - /** - * Sets the partition expiration in days. - * - * Generated from protobuf field int32 partition_expiration_days = 12; - * @return int - */ - public function getPartitionExpirationDays() - { - return $this->partition_expiration_days; - } - - /** - * Sets the partition expiration in days. - * - * Generated from protobuf field int32 partition_expiration_days = 12; - * @param int $var - * @return $this - */ - public function setPartitionExpirationDays($var) - { - GPBUtil::checkInt32($var); - $this->partition_expiration_days = $var; - - return $this; - } - - /** - * Specifies whether queries on this table must include a predicate filter - * that filters on the partitioning column. - * - * Generated from protobuf field bool require_partition_filter = 13; - * @return bool - */ - public function getRequirePartitionFilter() - { - return $this->require_partition_filter; - } - - /** - * Specifies whether queries on this table must include a predicate filter - * that filters on the partitioning column. - * - * Generated from protobuf field bool require_partition_filter = 13; - * @param bool $var - * @return $this - */ - public function setRequirePartitionFilter($var) - { - GPBUtil::checkBool($var); - $this->require_partition_filter = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field map additional_options = 14; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAdditionalOptions() - { - return $this->additional_options; - } - - /** - * 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. - * - * Generated from protobuf field map additional_options = 14; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAdditionalOptions($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->additional_options = $arr; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string connection = 15 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getConnection() - { - return $this->connection; - } - - /** - * 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. - * - * Generated from protobuf field string connection = 15 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setConnection($var) - { - GPBUtil::checkString($var, True); - $this->connection = $var; - - return $this; - } - - /** - * Optional. The table format for the BigQuery table. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.TableFormat table_format = 16 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getTableFormat() - { - return $this->table_format; - } - - /** - * Optional. The table format for the BigQuery table. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.TableFormat table_format = 16 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setTableFormat($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Relation\TableFormat::class); - $this->table_format = $var; - - return $this; - } - - /** - * Optional. The file format for the BigQuery table. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.FileFormat file_format = 17 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getFileFormat() - { - return $this->file_format; - } - - /** - * Optional. The file format for the BigQuery table. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResultAction.Relation.FileFormat file_format = 17 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setFileFormat($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1beta1\CompilationResultAction\Relation\FileFormat::class); - $this->file_format = $var; - - return $this; - } - - /** - * 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/`. - * - * Generated from protobuf field string storage_uri = 18 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getStorageUri() - { - return $this->storage_uri; - } - - /** - * 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/`. - * - * Generated from protobuf field string storage_uri = 18 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setStorageUri($var) - { - GPBUtil::checkString($var, True); - $this->storage_uri = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation/FileFormat.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation/FileFormat.php deleted file mode 100644 index c5f32a098b5e..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation/FileFormat.php +++ /dev/null @@ -1,54 +0,0 @@ -google.cloud.dataform.v1beta1.CompilationResultAction.Relation.FileFormat - */ -class FileFormat -{ - /** - * Default value. - * - * Generated from protobuf enum FILE_FORMAT_UNSPECIFIED = 0; - */ - const FILE_FORMAT_UNSPECIFIED = 0; - /** - * Apache Parquet format. - * - * Generated from protobuf enum PARQUET = 1; - */ - const PARQUET = 1; - - private static $valueToName = [ - self::FILE_FORMAT_UNSPECIFIED => 'FILE_FORMAT_UNSPECIFIED', - self::PARQUET => 'PARQUET', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation/IncrementalTableConfig.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation/IncrementalTableConfig.php deleted file mode 100644 index f35751da0d61..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation/IncrementalTableConfig.php +++ /dev/null @@ -1,269 +0,0 @@ -google.cloud.dataform.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig - */ -class IncrementalTableConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The SELECT query which returns rows which should be inserted into the - * relation if it already exists and is not being refreshed. - * - * Generated from protobuf field string incremental_select_query = 1; - */ - protected $incremental_select_query = ''; - /** - * Whether this table should be protected from being refreshed. - * - * Generated from protobuf field bool refresh_disabled = 2; - */ - protected $refresh_disabled = false; - /** - * 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. - * - * Generated from protobuf field repeated string unique_key_parts = 3; - */ - private $unique_key_parts; - /** - * A SQL expression conditional used to limit the set of existing rows - * considered for a merge operation (see `unique_key_parts` for more - * information). - * - * Generated from protobuf field string update_partition_filter = 4; - */ - protected $update_partition_filter = ''; - /** - * SQL statements to be executed before inserting new rows into the - * relation. - * - * Generated from protobuf field repeated string incremental_pre_operations = 5; - */ - private $incremental_pre_operations; - /** - * SQL statements to be executed after inserting new rows into the - * relation. - * - * Generated from protobuf field repeated string incremental_post_operations = 6; - */ - private $incremental_post_operations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $incremental_select_query - * The SELECT query which returns rows which should be inserted into the - * relation if it already exists and is not being refreshed. - * @type bool $refresh_disabled - * Whether this table should be protected from being refreshed. - * @type string[] $unique_key_parts - * 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. - * @type string $update_partition_filter - * A SQL expression conditional used to limit the set of existing rows - * considered for a merge operation (see `unique_key_parts` for more - * information). - * @type string[] $incremental_pre_operations - * SQL statements to be executed before inserting new rows into the - * relation. - * @type string[] $incremental_post_operations - * SQL statements to be executed after inserting new rows into the - * relation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * The SELECT query which returns rows which should be inserted into the - * relation if it already exists and is not being refreshed. - * - * Generated from protobuf field string incremental_select_query = 1; - * @return string - */ - public function getIncrementalSelectQuery() - { - return $this->incremental_select_query; - } - - /** - * The SELECT query which returns rows which should be inserted into the - * relation if it already exists and is not being refreshed. - * - * Generated from protobuf field string incremental_select_query = 1; - * @param string $var - * @return $this - */ - public function setIncrementalSelectQuery($var) - { - GPBUtil::checkString($var, True); - $this->incremental_select_query = $var; - - return $this; - } - - /** - * Whether this table should be protected from being refreshed. - * - * Generated from protobuf field bool refresh_disabled = 2; - * @return bool - */ - public function getRefreshDisabled() - { - return $this->refresh_disabled; - } - - /** - * Whether this table should be protected from being refreshed. - * - * Generated from protobuf field bool refresh_disabled = 2; - * @param bool $var - * @return $this - */ - public function setRefreshDisabled($var) - { - GPBUtil::checkBool($var); - $this->refresh_disabled = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field repeated string unique_key_parts = 3; - * @return RepeatedField - */ - public function getUniqueKeyParts() - { - return $this->unique_key_parts; - } - - /** - * 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. - * - * Generated from protobuf field repeated string unique_key_parts = 3; - * @param string[] $var - * @return $this - */ - public function setUniqueKeyParts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unique_key_parts = $arr; - - return $this; - } - - /** - * A SQL expression conditional used to limit the set of existing rows - * considered for a merge operation (see `unique_key_parts` for more - * information). - * - * Generated from protobuf field string update_partition_filter = 4; - * @return string - */ - public function getUpdatePartitionFilter() - { - return $this->update_partition_filter; - } - - /** - * A SQL expression conditional used to limit the set of existing rows - * considered for a merge operation (see `unique_key_parts` for more - * information). - * - * Generated from protobuf field string update_partition_filter = 4; - * @param string $var - * @return $this - */ - public function setUpdatePartitionFilter($var) - { - GPBUtil::checkString($var, True); - $this->update_partition_filter = $var; - - return $this; - } - - /** - * SQL statements to be executed before inserting new rows into the - * relation. - * - * Generated from protobuf field repeated string incremental_pre_operations = 5; - * @return RepeatedField - */ - public function getIncrementalPreOperations() - { - return $this->incremental_pre_operations; - } - - /** - * SQL statements to be executed before inserting new rows into the - * relation. - * - * Generated from protobuf field repeated string incremental_pre_operations = 5; - * @param string[] $var - * @return $this - */ - public function setIncrementalPreOperations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->incremental_pre_operations = $arr; - - return $this; - } - - /** - * SQL statements to be executed after inserting new rows into the - * relation. - * - * Generated from protobuf field repeated string incremental_post_operations = 6; - * @return RepeatedField - */ - public function getIncrementalPostOperations() - { - return $this->incremental_post_operations; - } - - /** - * SQL statements to be executed after inserting new rows into the - * relation. - * - * Generated from protobuf field repeated string incremental_post_operations = 6; - * @param string[] $var - * @return $this - */ - public function setIncrementalPostOperations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->incremental_post_operations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation/RelationType.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation/RelationType.php deleted file mode 100644 index 54c84cd5e3fc..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation/RelationType.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType - */ -class RelationType -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum RELATION_TYPE_UNSPECIFIED = 0; - */ - const RELATION_TYPE_UNSPECIFIED = 0; - /** - * The relation is a table. - * - * Generated from protobuf enum TABLE = 1; - */ - const TABLE = 1; - /** - * The relation is a view. - * - * Generated from protobuf enum VIEW = 2; - */ - const VIEW = 2; - /** - * The relation is an incrementalized table. - * - * Generated from protobuf enum INCREMENTAL_TABLE = 3; - */ - const INCREMENTAL_TABLE = 3; - /** - * The relation is a materialized view. - * - * Generated from protobuf enum MATERIALIZED_VIEW = 4; - */ - const MATERIALIZED_VIEW = 4; - - private static $valueToName = [ - self::RELATION_TYPE_UNSPECIFIED => 'RELATION_TYPE_UNSPECIFIED', - self::TABLE => 'TABLE', - self::VIEW => 'VIEW', - self::INCREMENTAL_TABLE => 'INCREMENTAL_TABLE', - self::MATERIALIZED_VIEW => 'MATERIALIZED_VIEW', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation/TableFormat.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation/TableFormat.php deleted file mode 100644 index 6a5355e99fc4..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation/TableFormat.php +++ /dev/null @@ -1,54 +0,0 @@ -google.cloud.dataform.v1beta1.CompilationResultAction.Relation.TableFormat - */ -class TableFormat -{ - /** - * Default value. - * - * Generated from protobuf enum TABLE_FORMAT_UNSPECIFIED = 0; - */ - const TABLE_FORMAT_UNSPECIFIED = 0; - /** - * Apache Iceberg format. - * - * Generated from protobuf enum ICEBERG = 1; - */ - const ICEBERG = 1; - - private static $valueToName = [ - self::TABLE_FORMAT_UNSPECIFIED => 'TABLE_FORMAT_UNSPECIFIED', - self::ICEBERG => 'ICEBERG', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/SimpleLoadMode.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/SimpleLoadMode.php deleted file mode 100644 index 44f327841e2f..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/SimpleLoadMode.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.dataform.v1beta1.CompilationResultAction.SimpleLoadMode - */ -class SimpleLoadMode extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ComputeRepositoryAccessTokenStatusRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ComputeRepositoryAccessTokenStatusRequest.php deleted file mode 100644 index 82d5aa07ce9e..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ComputeRepositoryAccessTokenStatusRequest.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusRequest - */ -class ComputeRepositoryAccessTokenStatusRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The repository's name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ComputeRepositoryAccessTokenStatusResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ComputeRepositoryAccessTokenStatusResponse.php deleted file mode 100644 index a53a39e36467..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ComputeRepositoryAccessTokenStatusResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse - */ -class ComputeRepositoryAccessTokenStatusResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Indicates the status of the Git access token. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus token_status = 1; - */ - protected $token_status = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $token_status - * Indicates the status of the Git access token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Indicates the status of the Git access token. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus token_status = 1; - * @return int - */ - public function getTokenStatus() - { - return $this->token_status; - } - - /** - * Indicates the status of the Git access token. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus token_status = 1; - * @param int $var - * @return $this - */ - public function setTokenStatus($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1beta1\ComputeRepositoryAccessTokenStatusResponse\TokenStatus::class); - $this->token_status = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ComputeRepositoryAccessTokenStatusResponse/TokenStatus.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ComputeRepositoryAccessTokenStatusResponse/TokenStatus.php deleted file mode 100644 index ee61f9fb155c..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ComputeRepositoryAccessTokenStatusResponse/TokenStatus.php +++ /dev/null @@ -1,69 +0,0 @@ -google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus - */ -class TokenStatus -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum TOKEN_STATUS_UNSPECIFIED = 0; - */ - const 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). - * - * Generated from protobuf enum NOT_FOUND = 1; - */ - const NOT_FOUND = 1; - /** - * The token could not be used to authenticate against the Git remote. - * - * Generated from protobuf enum INVALID = 2; - */ - const INVALID = 2; - /** - * The token was used successfully to authenticate against the Git remote. - * - * Generated from protobuf enum VALID = 3; - */ - const VALID = 3; - - private static $valueToName = [ - self::TOKEN_STATUS_UNSPECIFIED => 'TOKEN_STATUS_UNSPECIFIED', - self::NOT_FOUND => 'NOT_FOUND', - self::INVALID => 'INVALID', - self::VALID => 'VALID', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Config.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Config.php deleted file mode 100644 index f36974d3475a..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Config.php +++ /dev/null @@ -1,157 +0,0 @@ -google.cloud.dataform.v1beta1.Config - */ -class Config extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The config name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Optional. The default KMS key that is used if no encryption key is provided - * when a repository is created. - * - * Generated from protobuf field string default_kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $default_kms_key_name = ''; - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $internal_metadata = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The config name. - * @type string $default_kms_key_name - * Optional. The default KMS key that is used if no encryption key is provided - * when a repository is created. - * @type string $internal_metadata - * 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. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The config name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The config name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. The default KMS key that is used if no encryption key is provided - * when a repository is created. - * - * Generated from protobuf field string default_kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getDefaultKmsKeyName() - { - return $this->default_kms_key_name; - } - - /** - * Optional. The default KMS key that is used if no encryption key is provided - * when a repository is created. - * - * Generated from protobuf field string default_kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setDefaultKmsKeyName($var) - { - GPBUtil::checkString($var, True); - $this->default_kms_key_name = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getInternalMetadata() - { - return isset($this->internal_metadata) ? $this->internal_metadata : ''; - } - - public function hasInternalMetadata() - { - return isset($this->internal_metadata); - } - - public function clearInternalMetadata() - { - unset($this->internal_metadata); - } - - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setInternalMetadata($var) - { - GPBUtil::checkString($var, True); - $this->internal_metadata = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateCompilationResultRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateCompilationResultRequest.php deleted file mode 100644 index 2606a5ce1508..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateCompilationResultRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -google.cloud.dataform.v1beta1.CreateCompilationResultRequest - */ -class CreateCompilationResultRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The repository in which to create the compilation result. Must be - * in the format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The compilation result to create. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResult compilation_result = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $compilation_result = null; - - /** - * @param string $parent Required. The repository in which to create the compilation result. Must be - * in the format `projects/*/locations/*/repositories/*`. Please see - * {@see DataformClient::repositoryName()} for help formatting this field. - * @param \Google\Cloud\Dataform\V1beta1\CompilationResult $compilationResult Required. The compilation result to create. - * - * @return \Google\Cloud\Dataform\V1beta1\CreateCompilationResultRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dataform\V1beta1\CompilationResult $compilationResult): self - { - return (new self()) - ->setParent($parent) - ->setCompilationResult($compilationResult); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The repository in which to create the compilation result. Must be - * in the format `projects/{@*}locations/{@*}repositories/*`. - * @type \Google\Cloud\Dataform\V1beta1\CompilationResult $compilation_result - * Required. The compilation result to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The repository in which to create the compilation result. Must be - * in the format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The repository in which to create the compilation result. Must be - * in the format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The compilation result to create. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResult compilation_result = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataform\V1beta1\CompilationResult|null - */ - public function getCompilationResult() - { - return $this->compilation_result; - } - - public function hasCompilationResult() - { - return isset($this->compilation_result); - } - - public function clearCompilationResult() - { - unset($this->compilation_result); - } - - /** - * Required. The compilation result to create. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CompilationResult compilation_result = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataform\V1beta1\CompilationResult $var - * @return $this - */ - public function setCompilationResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CompilationResult::class); - $this->compilation_result = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateFolderRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateFolderRequest.php deleted file mode 100644 index e58c68509258..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateFolderRequest.php +++ /dev/null @@ -1,170 +0,0 @@ -google.cloud.dataform.v1beta1.CreateFolderRequest - */ -class CreateFolderRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The location in which to create the Folder. Must be in the format - * `projects/{@*}locations/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The Folder to create. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $folder = null; - /** - * The ID to use for the Folder, which will become the final component of - * the Folder's resource name. - * - * Generated from protobuf field string folder_id = 3; - */ - protected $folder_id = ''; - - /** - * @param string $parent Required. The location in which to create the Folder. Must be in the format - * `projects/*/locations/*`. Please see - * {@see DataformClient::locationName()} for help formatting this field. - * @param \Google\Cloud\Dataform\V1beta1\Folder $folder Required. The Folder to create. - * - * @return \Google\Cloud\Dataform\V1beta1\CreateFolderRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dataform\V1beta1\Folder $folder): self - { - return (new self()) - ->setParent($parent) - ->setFolder($folder); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The location in which to create the Folder. Must be in the format - * `projects/{@*}locations/*`. - * @type \Google\Cloud\Dataform\V1beta1\Folder $folder - * Required. The Folder to create. - * @type string $folder_id - * The ID to use for the Folder, which will become the final component of - * the Folder's resource name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The location in which to create the Folder. Must be in the format - * `projects/{@*}locations/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The location in which to create the Folder. Must be in the format - * `projects/{@*}locations/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The Folder to create. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataform\V1beta1\Folder|null - */ - public function getFolder() - { - return $this->folder; - } - - public function hasFolder() - { - return isset($this->folder); - } - - public function clearFolder() - { - unset($this->folder); - } - - /** - * Required. The Folder to create. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataform\V1beta1\Folder $var - * @return $this - */ - public function setFolder($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Folder::class); - $this->folder = $var; - - return $this; - } - - /** - * The ID to use for the Folder, which will become the final component of - * the Folder's resource name. - * - * Generated from protobuf field string folder_id = 3; - * @return string - */ - public function getFolderId() - { - return $this->folder_id; - } - - /** - * The ID to use for the Folder, which will become the final component of - * the Folder's resource name. - * - * Generated from protobuf field string folder_id = 3; - * @param string $var - * @return $this - */ - public function setFolderId($var) - { - GPBUtil::checkString($var, True); - $this->folder_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateReleaseConfigRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateReleaseConfigRequest.php deleted file mode 100644 index 04b0cfdb568a..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateReleaseConfigRequest.php +++ /dev/null @@ -1,173 +0,0 @@ -google.cloud.dataform.v1beta1.CreateReleaseConfigRequest - */ -class CreateReleaseConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The repository in which to create the release config. Must be in - * the format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The release config to create. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $release_config = null; - /** - * Required. The ID to use for the release config, which will become the final - * component of the release config's resource name. - * - * Generated from protobuf field string release_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $release_config_id = ''; - - /** - * @param string $parent Required. The repository in which to create the release config. Must be in - * the format `projects/*/locations/*/repositories/*`. Please see - * {@see DataformClient::repositoryName()} for help formatting this field. - * @param \Google\Cloud\Dataform\V1beta1\ReleaseConfig $releaseConfig Required. The release config to create. - * @param string $releaseConfigId Required. The ID to use for the release config, which will become the final - * component of the release config's resource name. - * - * @return \Google\Cloud\Dataform\V1beta1\CreateReleaseConfigRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dataform\V1beta1\ReleaseConfig $releaseConfig, string $releaseConfigId): self - { - return (new self()) - ->setParent($parent) - ->setReleaseConfig($releaseConfig) - ->setReleaseConfigId($releaseConfigId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The repository in which to create the release config. Must be in - * the format `projects/{@*}locations/{@*}repositories/*`. - * @type \Google\Cloud\Dataform\V1beta1\ReleaseConfig $release_config - * Required. The release config to create. - * @type string $release_config_id - * Required. The ID to use for the release config, which will become the final - * component of the release config's resource name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The repository in which to create the release config. Must be in - * the format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The repository in which to create the release config. Must be in - * the format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The release config to create. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataform\V1beta1\ReleaseConfig|null - */ - public function getReleaseConfig() - { - return $this->release_config; - } - - public function hasReleaseConfig() - { - return isset($this->release_config); - } - - public function clearReleaseConfig() - { - unset($this->release_config); - } - - /** - * Required. The release config to create. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataform\V1beta1\ReleaseConfig $var - * @return $this - */ - public function setReleaseConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\ReleaseConfig::class); - $this->release_config = $var; - - return $this; - } - - /** - * Required. The ID to use for the release config, which will become the final - * component of the release config's resource name. - * - * Generated from protobuf field string release_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getReleaseConfigId() - { - return $this->release_config_id; - } - - /** - * Required. The ID to use for the release config, which will become the final - * component of the release config's resource name. - * - * Generated from protobuf field string release_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setReleaseConfigId($var) - { - GPBUtil::checkString($var, True); - $this->release_config_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateRepositoryRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateRepositoryRequest.php deleted file mode 100644 index f0cf98e1da4a..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateRepositoryRequest.php +++ /dev/null @@ -1,173 +0,0 @@ -google.cloud.dataform.v1beta1.CreateRepositoryRequest - */ -class CreateRepositoryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The location in which to create the repository. Must be in the - * format `projects/{@*}locations/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The repository to create. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $repository = null; - /** - * Required. The ID to use for the repository, which will become the final - * component of the repository's resource name. - * - * Generated from protobuf field string repository_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $repository_id = ''; - - /** - * @param string $parent Required. The location in which to create the repository. Must be in the - * format `projects/*/locations/*`. Please see - * {@see DataformClient::locationName()} for help formatting this field. - * @param \Google\Cloud\Dataform\V1beta1\Repository $repository Required. The repository to create. - * @param string $repositoryId Required. The ID to use for the repository, which will become the final - * component of the repository's resource name. - * - * @return \Google\Cloud\Dataform\V1beta1\CreateRepositoryRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dataform\V1beta1\Repository $repository, string $repositoryId): self - { - return (new self()) - ->setParent($parent) - ->setRepository($repository) - ->setRepositoryId($repositoryId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The location in which to create the repository. Must be in the - * format `projects/{@*}locations/*`. - * @type \Google\Cloud\Dataform\V1beta1\Repository $repository - * Required. The repository to create. - * @type string $repository_id - * Required. The ID to use for the repository, which will become the final - * component of the repository's resource name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The location in which to create the repository. Must be in the - * format `projects/{@*}locations/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The location in which to create the repository. Must be in the - * format `projects/{@*}locations/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The repository to create. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataform\V1beta1\Repository|null - */ - public function getRepository() - { - return $this->repository; - } - - public function hasRepository() - { - return isset($this->repository); - } - - public function clearRepository() - { - unset($this->repository); - } - - /** - * Required. The repository to create. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataform\V1beta1\Repository $var - * @return $this - */ - public function setRepository($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Repository::class); - $this->repository = $var; - - return $this; - } - - /** - * Required. The ID to use for the repository, which will become the final - * component of the repository's resource name. - * - * Generated from protobuf field string repository_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getRepositoryId() - { - return $this->repository_id; - } - - /** - * Required. The ID to use for the repository, which will become the final - * component of the repository's resource name. - * - * Generated from protobuf field string repository_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setRepositoryId($var) - { - GPBUtil::checkString($var, True); - $this->repository_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateTeamFolderRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateTeamFolderRequest.php deleted file mode 100644 index c1351c80b119..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateTeamFolderRequest.php +++ /dev/null @@ -1,170 +0,0 @@ -google.cloud.dataform.v1beta1.CreateTeamFolderRequest - */ -class CreateTeamFolderRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The location in which to create the TeamFolder. Must be in the - * format `projects/{@*}locations/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The TeamFolder to create. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $team_folder = null; - /** - * The ID to use for the TeamFolder, which will become the final component of - * the TeamFolder's resource name. - * - * Generated from protobuf field string team_folder_id = 3; - */ - protected $team_folder_id = ''; - - /** - * @param string $parent Required. The location in which to create the TeamFolder. Must be in the - * format `projects/*/locations/*`. Please see - * {@see DataformClient::locationName()} for help formatting this field. - * @param \Google\Cloud\Dataform\V1beta1\TeamFolder $teamFolder Required. The TeamFolder to create. - * - * @return \Google\Cloud\Dataform\V1beta1\CreateTeamFolderRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dataform\V1beta1\TeamFolder $teamFolder): self - { - return (new self()) - ->setParent($parent) - ->setTeamFolder($teamFolder); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The location in which to create the TeamFolder. Must be in the - * format `projects/{@*}locations/*`. - * @type \Google\Cloud\Dataform\V1beta1\TeamFolder $team_folder - * Required. The TeamFolder to create. - * @type string $team_folder_id - * The ID to use for the TeamFolder, which will become the final component of - * the TeamFolder's resource name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The location in which to create the TeamFolder. Must be in the - * format `projects/{@*}locations/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The location in which to create the TeamFolder. Must be in the - * format `projects/{@*}locations/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The TeamFolder to create. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataform\V1beta1\TeamFolder|null - */ - public function getTeamFolder() - { - return $this->team_folder; - } - - public function hasTeamFolder() - { - return isset($this->team_folder); - } - - public function clearTeamFolder() - { - unset($this->team_folder); - } - - /** - * Required. The TeamFolder to create. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataform\V1beta1\TeamFolder $var - * @return $this - */ - public function setTeamFolder($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\TeamFolder::class); - $this->team_folder = $var; - - return $this; - } - - /** - * The ID to use for the TeamFolder, which will become the final component of - * the TeamFolder's resource name. - * - * Generated from protobuf field string team_folder_id = 3; - * @return string - */ - public function getTeamFolderId() - { - return $this->team_folder_id; - } - - /** - * The ID to use for the TeamFolder, which will become the final component of - * the TeamFolder's resource name. - * - * Generated from protobuf field string team_folder_id = 3; - * @param string $var - * @return $this - */ - public function setTeamFolderId($var) - { - GPBUtil::checkString($var, True); - $this->team_folder_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateWorkflowConfigRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateWorkflowConfigRequest.php deleted file mode 100644 index f9217a7f1803..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateWorkflowConfigRequest.php +++ /dev/null @@ -1,173 +0,0 @@ -google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest - */ -class CreateWorkflowConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The repository in which to create the workflow config. Must be in - * the format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The workflow config to create. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $workflow_config = null; - /** - * Required. The ID to use for the workflow config, which will become the - * final component of the workflow config's resource name. - * - * Generated from protobuf field string workflow_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $workflow_config_id = ''; - - /** - * @param string $parent Required. The repository in which to create the workflow config. Must be in - * the format `projects/*/locations/*/repositories/*`. Please see - * {@see DataformClient::repositoryName()} for help formatting this field. - * @param \Google\Cloud\Dataform\V1beta1\WorkflowConfig $workflowConfig Required. The workflow config to create. - * @param string $workflowConfigId Required. The ID to use for the workflow config, which will become the - * final component of the workflow config's resource name. - * - * @return \Google\Cloud\Dataform\V1beta1\CreateWorkflowConfigRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dataform\V1beta1\WorkflowConfig $workflowConfig, string $workflowConfigId): self - { - return (new self()) - ->setParent($parent) - ->setWorkflowConfig($workflowConfig) - ->setWorkflowConfigId($workflowConfigId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The repository in which to create the workflow config. Must be in - * the format `projects/{@*}locations/{@*}repositories/*`. - * @type \Google\Cloud\Dataform\V1beta1\WorkflowConfig $workflow_config - * Required. The workflow config to create. - * @type string $workflow_config_id - * Required. The ID to use for the workflow config, which will become the - * final component of the workflow config's resource name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The repository in which to create the workflow config. Must be in - * the format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The repository in which to create the workflow config. Must be in - * the format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The workflow config to create. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataform\V1beta1\WorkflowConfig|null - */ - public function getWorkflowConfig() - { - return $this->workflow_config; - } - - public function hasWorkflowConfig() - { - return isset($this->workflow_config); - } - - public function clearWorkflowConfig() - { - unset($this->workflow_config); - } - - /** - * Required. The workflow config to create. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataform\V1beta1\WorkflowConfig $var - * @return $this - */ - public function setWorkflowConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\WorkflowConfig::class); - $this->workflow_config = $var; - - return $this; - } - - /** - * Required. The ID to use for the workflow config, which will become the - * final component of the workflow config's resource name. - * - * Generated from protobuf field string workflow_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getWorkflowConfigId() - { - return $this->workflow_config_id; - } - - /** - * Required. The ID to use for the workflow config, which will become the - * final component of the workflow config's resource name. - * - * Generated from protobuf field string workflow_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setWorkflowConfigId($var) - { - GPBUtil::checkString($var, True); - $this->workflow_config_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateWorkflowInvocationRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateWorkflowInvocationRequest.php deleted file mode 100644 index 6a0ab9f9bf69..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateWorkflowInvocationRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest - */ -class CreateWorkflowInvocationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The repository in which to create the workflow invocation. Must - * be in the format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The workflow invocation resource to create. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocation workflow_invocation = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $workflow_invocation = null; - - /** - * @param string $parent Required. The repository in which to create the workflow invocation. Must - * be in the format `projects/*/locations/*/repositories/*`. Please see - * {@see DataformClient::repositoryName()} for help formatting this field. - * @param \Google\Cloud\Dataform\V1beta1\WorkflowInvocation $workflowInvocation Required. The workflow invocation resource to create. - * - * @return \Google\Cloud\Dataform\V1beta1\CreateWorkflowInvocationRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dataform\V1beta1\WorkflowInvocation $workflowInvocation): self - { - return (new self()) - ->setParent($parent) - ->setWorkflowInvocation($workflowInvocation); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The repository in which to create the workflow invocation. Must - * be in the format `projects/{@*}locations/{@*}repositories/*`. - * @type \Google\Cloud\Dataform\V1beta1\WorkflowInvocation $workflow_invocation - * Required. The workflow invocation resource to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The repository in which to create the workflow invocation. Must - * be in the format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The repository in which to create the workflow invocation. Must - * be in the format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The workflow invocation resource to create. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocation workflow_invocation = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataform\V1beta1\WorkflowInvocation|null - */ - public function getWorkflowInvocation() - { - return $this->workflow_invocation; - } - - public function hasWorkflowInvocation() - { - return isset($this->workflow_invocation); - } - - public function clearWorkflowInvocation() - { - unset($this->workflow_invocation); - } - - /** - * Required. The workflow invocation resource to create. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocation workflow_invocation = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataform\V1beta1\WorkflowInvocation $var - * @return $this - */ - public function setWorkflowInvocation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\WorkflowInvocation::class); - $this->workflow_invocation = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateWorkspaceRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateWorkspaceRequest.php deleted file mode 100644 index 39399cfdbd22..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateWorkspaceRequest.php +++ /dev/null @@ -1,173 +0,0 @@ -google.cloud.dataform.v1beta1.CreateWorkspaceRequest - */ -class CreateWorkspaceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The repository in which to create the workspace. Must be in the - * format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The workspace to create. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $workspace = null; - /** - * Required. The ID to use for the workspace, which will become the final - * component of the workspace's resource name. - * - * Generated from protobuf field string workspace_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $workspace_id = ''; - - /** - * @param string $parent Required. The repository in which to create the workspace. Must be in the - * format `projects/*/locations/*/repositories/*`. Please see - * {@see DataformClient::repositoryName()} for help formatting this field. - * @param \Google\Cloud\Dataform\V1beta1\Workspace $workspace Required. The workspace to create. - * @param string $workspaceId Required. The ID to use for the workspace, which will become the final - * component of the workspace's resource name. - * - * @return \Google\Cloud\Dataform\V1beta1\CreateWorkspaceRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dataform\V1beta1\Workspace $workspace, string $workspaceId): self - { - return (new self()) - ->setParent($parent) - ->setWorkspace($workspace) - ->setWorkspaceId($workspaceId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The repository in which to create the workspace. Must be in the - * format `projects/{@*}locations/{@*}repositories/*`. - * @type \Google\Cloud\Dataform\V1beta1\Workspace $workspace - * Required. The workspace to create. - * @type string $workspace_id - * Required. The ID to use for the workspace, which will become the final - * component of the workspace's resource name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The repository in which to create the workspace. Must be in the - * format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The repository in which to create the workspace. Must be in the - * format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The workspace to create. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataform\V1beta1\Workspace|null - */ - public function getWorkspace() - { - return $this->workspace; - } - - public function hasWorkspace() - { - return isset($this->workspace); - } - - public function clearWorkspace() - { - unset($this->workspace); - } - - /** - * Required. The workspace to create. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Workspace workspace = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataform\V1beta1\Workspace $var - * @return $this - */ - public function setWorkspace($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Workspace::class); - $this->workspace = $var; - - return $this; - } - - /** - * Required. The ID to use for the workspace, which will become the final - * component of the workspace's resource name. - * - * Generated from protobuf field string workspace_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getWorkspaceId() - { - return $this->workspace_id; - } - - /** - * Required. The ID to use for the workspace, which will become the final - * component of the workspace's resource name. - * - * Generated from protobuf field string workspace_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setWorkspaceId($var) - { - GPBUtil::checkString($var, True); - $this->workspace_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DataEncryptionState.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DataEncryptionState.php deleted file mode 100644 index 1153bd4326f8..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DataEncryptionState.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.dataform.v1beta1.DataEncryptionState - */ -class DataEncryptionState extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The KMS key version name with which data of a resource is - * encrypted. - * - * Generated from protobuf field string kms_key_version_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $kms_key_version_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $kms_key_version_name - * Required. The KMS key version name with which data of a resource is - * encrypted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The KMS key version name with which data of a resource is - * encrypted. - * - * Generated from protobuf field string kms_key_version_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getKmsKeyVersionName() - { - return $this->kms_key_version_name; - } - - /** - * Required. The KMS key version name with which data of a resource is - * encrypted. - * - * Generated from protobuf field string kms_key_version_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setKmsKeyVersionName($var) - { - GPBUtil::checkString($var, True); - $this->kms_key_version_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteFolderRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteFolderRequest.php deleted file mode 100644 index 6dc78839acc6..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteFolderRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.dataform.v1beta1.DeleteFolderRequest - */ -class DeleteFolderRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The Folder's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The Folder's name. Please see - * {@see DataformClient::folderName()} for help formatting this field. - * - * @return \Google\Cloud\Dataform\V1beta1\DeleteFolderRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The Folder's name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Folder's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The Folder's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteReleaseConfigRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteReleaseConfigRequest.php deleted file mode 100644 index 374b0a0b2f74..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteReleaseConfigRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest - */ -class DeleteReleaseConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The release config's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The release config's name. Please see - * {@see DataformClient::releaseConfigName()} for help formatting this field. - * - * @return \Google\Cloud\Dataform\V1beta1\DeleteReleaseConfigRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The release config's name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The release config's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The release config's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteRepositoryRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteRepositoryRequest.php deleted file mode 100644 index 2ac5f56991c0..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteRepositoryRequest.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.dataform.v1beta1.DeleteRepositoryRequest - */ -class DeleteRepositoryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * 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.*. - * - * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $force = false; - - /** - * @param string $name Required. The repository's name. Please see - * {@see DataformClient::repositoryName()} for help formatting this field. - * - * @return \Google\Cloud\Dataform\V1beta1\DeleteRepositoryRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The repository's name. - * @type bool $force - * 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.*. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * 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.*. - * - * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getForce() - { - return $this->force; - } - - /** - * 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.*. - * - * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setForce($var) - { - GPBUtil::checkBool($var); - $this->force = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteTeamFolderRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteTeamFolderRequest.php deleted file mode 100644 index 4abf6efd7a1c..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteTeamFolderRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.dataform.v1beta1.DeleteTeamFolderRequest - */ -class DeleteTeamFolderRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The TeamFolder's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The TeamFolder's name. Please see - * {@see DataformClient::teamFolderName()} for help formatting this field. - * - * @return \Google\Cloud\Dataform\V1beta1\DeleteTeamFolderRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The TeamFolder's name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The TeamFolder's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The TeamFolder's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteWorkflowConfigRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteWorkflowConfigRequest.php deleted file mode 100644 index 1bcc0f5f5d00..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteWorkflowConfigRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest - */ -class DeleteWorkflowConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workflow config's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The workflow config's name. Please see - * {@see DataformClient::workflowConfigName()} for help formatting this field. - * - * @return \Google\Cloud\Dataform\V1beta1\DeleteWorkflowConfigRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The workflow config's name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workflow config's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The workflow config's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteWorkflowInvocationRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteWorkflowInvocationRequest.php deleted file mode 100644 index 5600b1a6d10a..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteWorkflowInvocationRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest - */ -class DeleteWorkflowInvocationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workflow invocation resource's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The workflow invocation resource's name. Please see - * {@see DataformClient::workflowInvocationName()} for help formatting this field. - * - * @return \Google\Cloud\Dataform\V1beta1\DeleteWorkflowInvocationRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The workflow invocation resource's name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workflow invocation resource's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The workflow invocation resource's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteWorkspaceRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteWorkspaceRequest.php deleted file mode 100644 index d93d81947911..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteWorkspaceRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.dataform.v1beta1.DeleteWorkspaceRequest - */ -class DeleteWorkspaceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workspace resource's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The workspace resource's name. Please see - * {@see DataformClient::workspaceName()} for help formatting this field. - * - * @return \Google\Cloud\Dataform\V1beta1\DeleteWorkspaceRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The workspace resource's name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workspace resource's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The workspace resource's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DirectoryEntry.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DirectoryEntry.php deleted file mode 100644 index 5c9358936db7..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DirectoryEntry.php +++ /dev/null @@ -1,108 +0,0 @@ -google.cloud.dataform.v1beta1.DirectoryEntry - */ -class DirectoryEntry extends \Google\Protobuf\Internal\Message -{ - protected $entry; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $file - * A file in the directory. - * @type string $directory - * A child directory in the directory. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * A file in the directory. - * - * Generated from protobuf field string file = 1; - * @return string - */ - public function getFile() - { - return $this->readOneof(1); - } - - public function hasFile() - { - return $this->hasOneof(1); - } - - /** - * A file in the directory. - * - * Generated from protobuf field string file = 1; - * @param string $var - * @return $this - */ - public function setFile($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * A child directory in the directory. - * - * Generated from protobuf field string directory = 2; - * @return string - */ - public function getDirectory() - { - return $this->readOneof(2); - } - - public function hasDirectory() - { - return $this->hasOneof(2); - } - - /** - * A child directory in the directory. - * - * Generated from protobuf field string directory = 2; - * @param string $var - * @return $this - */ - public function setDirectory($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getEntry() - { - return $this->whichOneof("entry"); - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DirectorySearchResult.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DirectorySearchResult.php deleted file mode 100644 index fdae8b6aa9e1..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DirectorySearchResult.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.dataform.v1beta1.DirectorySearchResult - */ -class DirectorySearchResult extends \Google\Protobuf\Internal\Message -{ - /** - * File system path relative to the workspace root. - * - * Generated from protobuf field string path = 1; - */ - protected $path = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $path - * File system path relative to the workspace root. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * File system path relative to the workspace root. - * - * Generated from protobuf field string path = 1; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * File system path relative to the workspace root. - * - * Generated from protobuf field string path = 1; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileDiffRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileDiffRequest.php deleted file mode 100644 index 1d241984ed41..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileDiffRequest.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.dataform.v1beta1.FetchFileDiffRequest - */ -class FetchFileDiffRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $workspace = ''; - /** - * Required. The file's full path including filename, relative to the - * workspace root. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $path = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $workspace - * Required. The workspace's name. - * @type string $path - * Required. The file's full path including filename, relative to the - * workspace root. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getWorkspace() - { - return $this->workspace; - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setWorkspace($var) - { - GPBUtil::checkString($var, True); - $this->workspace = $var; - - return $this; - } - - /** - * Required. The file's full path including filename, relative to the - * workspace root. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * Required. The file's full path including filename, relative to the - * workspace root. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileDiffResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileDiffResponse.php deleted file mode 100644 index d3e42ecff834..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileDiffResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.dataform.v1beta1.FetchFileDiffResponse - */ -class FetchFileDiffResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The raw formatted Git diff for the file. - * - * Generated from protobuf field string formatted_diff = 1; - */ - protected $formatted_diff = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $formatted_diff - * The raw formatted Git diff for the file. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * The raw formatted Git diff for the file. - * - * Generated from protobuf field string formatted_diff = 1; - * @return string - */ - public function getFormattedDiff() - { - return $this->formatted_diff; - } - - /** - * The raw formatted Git diff for the file. - * - * Generated from protobuf field string formatted_diff = 1; - * @param string $var - * @return $this - */ - public function setFormattedDiff($var) - { - GPBUtil::checkString($var, True); - $this->formatted_diff = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileGitStatusesRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileGitStatusesRequest.php deleted file mode 100644 index c5aae2cab628..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileGitStatusesRequest.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.dataform.v1beta1.FetchFileGitStatusesRequest - */ -class FetchFileGitStatusesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The workspace's name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileGitStatusesResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileGitStatusesResponse.php deleted file mode 100644 index 0740d22e8fde..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileGitStatusesResponse.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse - */ -class FetchFileGitStatusesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of all files which have uncommitted Git changes. There will only be - * a single entry for any given file. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; - */ - private $uncommitted_file_changes; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1beta1\FetchFileGitStatusesResponse\UncommittedFileChange[] $uncommitted_file_changes - * A list of all files which have uncommitted Git changes. There will only be - * a single entry for any given file. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * A list of all files which have uncommitted Git changes. There will only be - * a single entry for any given file. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; - * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\FetchFileGitStatusesResponse\UncommittedFileChange> - */ - public function getUncommittedFileChanges() - { - return $this->uncommitted_file_changes; - } - - /** - * A list of all files which have uncommitted Git changes. There will only be - * a single entry for any given file. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange uncommitted_file_changes = 1; - * @param \Google\Cloud\Dataform\V1beta1\FetchFileGitStatusesResponse\UncommittedFileChange[] $var - * @return $this - */ - public function setUncommittedFileChanges($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\FetchFileGitStatusesResponse\UncommittedFileChange::class); - $this->uncommitted_file_changes = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileGitStatusesResponse/UncommittedFileChange.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileGitStatusesResponse/UncommittedFileChange.php deleted file mode 100644 index 88742cfb99ab..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileGitStatusesResponse/UncommittedFileChange.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange - */ -class UncommittedFileChange extends \Google\Protobuf\Internal\Message -{ - /** - * The file's full path including filename, relative to the workspace root. - * - * Generated from protobuf field string path = 1; - */ - protected $path = ''; - /** - * Output only. Indicates the status of the file. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $path - * The file's full path including filename, relative to the workspace root. - * @type int $state - * Output only. Indicates the status of the file. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * The file's full path including filename, relative to the workspace root. - * - * Generated from protobuf field string path = 1; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * The file's full path including filename, relative to the workspace root. - * - * Generated from protobuf field string path = 1; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - - /** - * Output only. Indicates the status of the file. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. Indicates the status of the file. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1beta1\FetchFileGitStatusesResponse\UncommittedFileChange\State::class); - $this->state = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileGitStatusesResponse/UncommittedFileChange/State.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileGitStatusesResponse/UncommittedFileChange/State.php deleted file mode 100644 index 0b1873e7da06..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileGitStatusesResponse/UncommittedFileChange/State.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.State - */ -class State -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The file has been newly added. - * - * Generated from protobuf enum ADDED = 1; - */ - const ADDED = 1; - /** - * The file has been deleted. - * - * Generated from protobuf enum DELETED = 2; - */ - const DELETED = 2; - /** - * The file has been modified. - * - * Generated from protobuf enum MODIFIED = 3; - */ - const MODIFIED = 3; - /** - * The file contains merge conflicts. - * - * Generated from protobuf enum HAS_CONFLICTS = 4; - */ - const HAS_CONFLICTS = 4; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::ADDED => 'ADDED', - self::DELETED => 'DELETED', - self::MODIFIED => 'MODIFIED', - self::HAS_CONFLICTS => 'HAS_CONFLICTS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchGitAheadBehindRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchGitAheadBehindRequest.php deleted file mode 100644 index df387ca25ae1..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchGitAheadBehindRequest.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.dataform.v1beta1.FetchGitAheadBehindRequest - */ -class FetchGitAheadBehindRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * 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. - * - * Generated from protobuf field string remote_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $remote_branch = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The workspace's name. - * @type string $remote_branch - * 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. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string remote_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRemoteBranch() - { - return $this->remote_branch; - } - - /** - * 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. - * - * Generated from protobuf field string remote_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRemoteBranch($var) - { - GPBUtil::checkString($var, True); - $this->remote_branch = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchGitAheadBehindResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchGitAheadBehindResponse.php deleted file mode 100644 index f2b1cde31ee6..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchGitAheadBehindResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse - */ -class FetchGitAheadBehindResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The number of commits in the remote branch that are not in the workspace. - * - * Generated from protobuf field int32 commits_ahead = 1; - */ - protected $commits_ahead = 0; - /** - * The number of commits in the workspace that are not in the remote branch. - * - * Generated from protobuf field int32 commits_behind = 2; - */ - protected $commits_behind = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $commits_ahead - * The number of commits in the remote branch that are not in the workspace. - * @type int $commits_behind - * The number of commits in the workspace that are not in the remote branch. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * The number of commits in the remote branch that are not in the workspace. - * - * Generated from protobuf field int32 commits_ahead = 1; - * @return int - */ - public function getCommitsAhead() - { - return $this->commits_ahead; - } - - /** - * The number of commits in the remote branch that are not in the workspace. - * - * Generated from protobuf field int32 commits_ahead = 1; - * @param int $var - * @return $this - */ - public function setCommitsAhead($var) - { - GPBUtil::checkInt32($var); - $this->commits_ahead = $var; - - return $this; - } - - /** - * The number of commits in the workspace that are not in the remote branch. - * - * Generated from protobuf field int32 commits_behind = 2; - * @return int - */ - public function getCommitsBehind() - { - return $this->commits_behind; - } - - /** - * The number of commits in the workspace that are not in the remote branch. - * - * Generated from protobuf field int32 commits_behind = 2; - * @param int $var - * @return $this - */ - public function setCommitsBehind($var) - { - GPBUtil::checkInt32($var); - $this->commits_behind = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchRemoteBranchesRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchRemoteBranchesRequest.php deleted file mode 100644 index 4a4548ac7122..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchRemoteBranchesRequest.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.dataform.v1beta1.FetchRemoteBranchesRequest - */ -class FetchRemoteBranchesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The repository's name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchRemoteBranchesResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchRemoteBranchesResponse.php deleted file mode 100644 index 08d471bac1f9..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchRemoteBranchesResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse - */ -class FetchRemoteBranchesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The remote repository's branch names. - * - * Generated from protobuf field repeated string branches = 1; - */ - private $branches; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string[] $branches - * The remote repository's branch names. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * The remote repository's branch names. - * - * Generated from protobuf field repeated string branches = 1; - * @return RepeatedField - */ - public function getBranches() - { - return $this->branches; - } - - /** - * The remote repository's branch names. - * - * Generated from protobuf field repeated string branches = 1; - * @param string[] $var - * @return $this - */ - public function setBranches($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->branches = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchRepositoryHistoryRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchRepositoryHistoryRequest.php deleted file mode 100644 index efbda4e9e40c..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchRepositoryHistoryRequest.php +++ /dev/null @@ -1,159 +0,0 @@ -google.cloud.dataform.v1beta1.FetchRepositoryHistoryRequest - */ -class FetchRepositoryHistoryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. Maximum number of commits to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate - * default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * 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. - * - * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The repository's name. - * @type int $page_size - * Optional. Maximum number of commits to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate - * default. - * @type string $page_token - * 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. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. Maximum number of commits to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate - * default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Maximum number of commits to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate - * default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchRepositoryHistoryResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchRepositoryHistoryResponse.php deleted file mode 100644 index 8d01c2d726c9..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchRepositoryHistoryResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse - */ -class FetchRepositoryHistoryResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of commit logs, ordered by 'git log' default order. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.CommitLogEntry commits = 1; - */ - private $commits; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1beta1\CommitLogEntry[] $commits - * A list of commit logs, ordered by 'git log' default order. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * A list of commit logs, ordered by 'git log' default order. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.CommitLogEntry commits = 1; - * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\CommitLogEntry> - */ - public function getCommits() - { - return $this->commits; - } - - /** - * A list of commit logs, ordered by 'git log' default order. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.CommitLogEntry commits = 1; - * @param \Google\Cloud\Dataform\V1beta1\CommitLogEntry[] $var - * @return $this - */ - public function setCommits($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\CommitLogEntry::class); - $this->commits = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FileSearchResult.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FileSearchResult.php deleted file mode 100644 index 0e4bb0c4920a..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FileSearchResult.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.dataform.v1beta1.FileSearchResult - */ -class FileSearchResult extends \Google\Protobuf\Internal\Message -{ - /** - * File system path relative to the workspace root. - * - * Generated from protobuf field string path = 1; - */ - protected $path = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $path - * File system path relative to the workspace root. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * File system path relative to the workspace root. - * - * Generated from protobuf field string path = 1; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * File system path relative to the workspace root. - * - * Generated from protobuf field string path = 1; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Folder.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Folder.php deleted file mode 100644 index c2f0420231d0..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Folder.php +++ /dev/null @@ -1,386 +0,0 @@ -google.cloud.dataform.v1beta1.Folder - */ -class Folder extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The Folder's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Required. The Folder's user-friendly name. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * 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. - * - * Generated from protobuf field string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $containing_folder = ''; - /** - * 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. - * - * Generated from protobuf field string team_folder_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $team_folder_name = ''; - /** - * Output only. The timestamp of when the Folder was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The timestamp of when the Folder was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $internal_metadata = null; - /** - * Output only. The IAM principal identifier of the creator of the Folder. - * - * Generated from protobuf field optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $creator_iam_principal = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The Folder's name. - * @type string $display_name - * Required. The Folder's user-friendly name. - * @type string $containing_folder - * 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. - * @type string $team_folder_name - * 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. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The timestamp of when the Folder was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The timestamp of when the Folder was last updated. - * @type string $internal_metadata - * 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. - * @type string $creator_iam_principal - * Output only. The IAM principal identifier of the creator of the Folder. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The Folder's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The Folder's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The Folder's user-friendly name. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. The Folder's user-friendly name. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getContainingFolder() - { - return $this->containing_folder; - } - - /** - * 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. - * - * Generated from protobuf field string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setContainingFolder($var) - { - GPBUtil::checkString($var, True); - $this->containing_folder = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string team_folder_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getTeamFolderName() - { - return $this->team_folder_name; - } - - /** - * 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. - * - * Generated from protobuf field string team_folder_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setTeamFolderName($var) - { - GPBUtil::checkString($var, True); - $this->team_folder_name = $var; - - return $this; - } - - /** - * Output only. The timestamp of when the Folder was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The timestamp of when the Folder was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The timestamp of when the Folder was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The timestamp of when the Folder was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getInternalMetadata() - { - return isset($this->internal_metadata) ? $this->internal_metadata : ''; - } - - public function hasInternalMetadata() - { - return isset($this->internal_metadata); - } - - public function clearInternalMetadata() - { - unset($this->internal_metadata); - } - - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setInternalMetadata($var) - { - GPBUtil::checkString($var, True); - $this->internal_metadata = $var; - - return $this; - } - - /** - * Output only. The IAM principal identifier of the creator of the Folder. - * - * Generated from protobuf field optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getCreatorIamPrincipal() - { - return isset($this->creator_iam_principal) ? $this->creator_iam_principal : ''; - } - - public function hasCreatorIamPrincipal() - { - return isset($this->creator_iam_principal); - } - - public function clearCreatorIamPrincipal() - { - unset($this->creator_iam_principal); - } - - /** - * Output only. The IAM principal identifier of the creator of the Folder. - * - * Generated from protobuf field optional string creator_iam_principal = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setCreatorIamPrincipal($var) - { - GPBUtil::checkString($var, True); - $this->creator_iam_principal = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetCompilationResultRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetCompilationResultRequest.php deleted file mode 100644 index e05423c339cc..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetCompilationResultRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.dataform.v1beta1.GetCompilationResultRequest - */ -class GetCompilationResultRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The compilation result's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The compilation result's name. Please see - * {@see DataformClient::compilationResultName()} for help formatting this field. - * - * @return \Google\Cloud\Dataform\V1beta1\GetCompilationResultRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The compilation result's name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The compilation result's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The compilation result's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetConfigRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetConfigRequest.php deleted file mode 100644 index 791eeb2e28c6..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetConfigRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.dataform.v1beta1.GetConfigRequest - */ -class GetConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The config name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The config name. Please see - * {@see DataformClient::configName()} for help formatting this field. - * - * @return \Google\Cloud\Dataform\V1beta1\GetConfigRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The config name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The config name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The config name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetFolderRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetFolderRequest.php deleted file mode 100644 index 03ffc3c80652..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetFolderRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.dataform.v1beta1.GetFolderRequest - */ -class GetFolderRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The Folder's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The Folder's name. Please see - * {@see DataformClient::folderName()} for help formatting this field. - * - * @return \Google\Cloud\Dataform\V1beta1\GetFolderRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The Folder's name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Folder's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The Folder's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetReleaseConfigRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetReleaseConfigRequest.php deleted file mode 100644 index 1b0482e7d1c0..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetReleaseConfigRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.dataform.v1beta1.GetReleaseConfigRequest - */ -class GetReleaseConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The release config's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The release config's name. Please see - * {@see DataformClient::releaseConfigName()} for help formatting this field. - * - * @return \Google\Cloud\Dataform\V1beta1\GetReleaseConfigRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The release config's name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The release config's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The release config's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetRepositoryRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetRepositoryRequest.php deleted file mode 100644 index 26042530d1a1..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetRepositoryRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.dataform.v1beta1.GetRepositoryRequest - */ -class GetRepositoryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The repository's name. Please see - * {@see DataformClient::repositoryName()} for help formatting this field. - * - * @return \Google\Cloud\Dataform\V1beta1\GetRepositoryRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The repository's name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetTeamFolderRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetTeamFolderRequest.php deleted file mode 100644 index 030053e388e1..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetTeamFolderRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.dataform.v1beta1.GetTeamFolderRequest - */ -class GetTeamFolderRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The TeamFolder's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The TeamFolder's name. Please see - * {@see DataformClient::teamFolderName()} for help formatting this field. - * - * @return \Google\Cloud\Dataform\V1beta1\GetTeamFolderRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The TeamFolder's name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The TeamFolder's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The TeamFolder's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetWorkflowConfigRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetWorkflowConfigRequest.php deleted file mode 100644 index 4e6cfff7d838..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetWorkflowConfigRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.dataform.v1beta1.GetWorkflowConfigRequest - */ -class GetWorkflowConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workflow config's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The workflow config's name. Please see - * {@see DataformClient::workflowConfigName()} for help formatting this field. - * - * @return \Google\Cloud\Dataform\V1beta1\GetWorkflowConfigRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The workflow config's name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workflow config's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The workflow config's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetWorkflowInvocationRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetWorkflowInvocationRequest.php deleted file mode 100644 index 8ef750d53a72..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetWorkflowInvocationRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.dataform.v1beta1.GetWorkflowInvocationRequest - */ -class GetWorkflowInvocationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workflow invocation resource's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The workflow invocation resource's name. Please see - * {@see DataformClient::workflowInvocationName()} for help formatting this field. - * - * @return \Google\Cloud\Dataform\V1beta1\GetWorkflowInvocationRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The workflow invocation resource's name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workflow invocation resource's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The workflow invocation resource's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetWorkspaceRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetWorkspaceRequest.php deleted file mode 100644 index 0b7b2cc2b437..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetWorkspaceRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.dataform.v1beta1.GetWorkspaceRequest - */ -class GetWorkspaceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The workspace's name. Please see - * {@see DataformClient::workspaceName()} for help formatting this field. - * - * @return \Google\Cloud\Dataform\V1beta1\GetWorkspaceRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The workspace's name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/InstallNpmPackagesRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/InstallNpmPackagesRequest.php deleted file mode 100644 index e2e1bbb46b4c..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/InstallNpmPackagesRequest.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.dataform.v1beta1.InstallNpmPackagesRequest - */ -class InstallNpmPackagesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $workspace = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $workspace - * Required. The workspace's name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getWorkspace() - { - return $this->workspace; - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setWorkspace($var) - { - GPBUtil::checkString($var, True); - $this->workspace = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/InstallNpmPackagesResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/InstallNpmPackagesResponse.php deleted file mode 100644 index e498a4b5fa85..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/InstallNpmPackagesResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.dataform.v1beta1.InstallNpmPackagesResponse - */ -class InstallNpmPackagesResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/InvocationConfig.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/InvocationConfig.php deleted file mode 100644 index 5e7e704e5455..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/InvocationConfig.php +++ /dev/null @@ -1,299 +0,0 @@ -google.cloud.dataform.v1beta1.InvocationConfig - */ -class InvocationConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The set of action identifiers to include. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $included_targets; - /** - * Optional. The set of tags to include. - * - * Generated from protobuf field repeated string included_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $included_tags; - /** - * Optional. When set to true, transitive dependencies of included actions - * will be executed. - * - * Generated from protobuf field bool transitive_dependencies_included = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $transitive_dependencies_included = false; - /** - * Optional. When set to true, transitive dependents of included actions will - * be executed. - * - * Generated from protobuf field bool transitive_dependents_included = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $transitive_dependents_included = false; - /** - * Optional. When set to true, any incremental tables will be fully refreshed. - * - * Generated from protobuf field bool fully_refresh_incremental_tables_enabled = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $fully_refresh_incremental_tables_enabled = false; - /** - * Optional. The service account to run workflow invocations under. - * - * Generated from protobuf field string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $service_account = ''; - /** - * Optional. Specifies the priority for query execution in BigQuery. - * More information can be found at - * https://cloud.google.com/bigquery/docs/running-queries#queries. - * - * Generated from protobuf field optional .google.cloud.dataform.v1beta1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $query_priority = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1beta1\Target[] $included_targets - * Optional. The set of action identifiers to include. - * @type string[] $included_tags - * Optional. The set of tags to include. - * @type bool $transitive_dependencies_included - * Optional. When set to true, transitive dependencies of included actions - * will be executed. - * @type bool $transitive_dependents_included - * Optional. When set to true, transitive dependents of included actions will - * be executed. - * @type bool $fully_refresh_incremental_tables_enabled - * Optional. When set to true, any incremental tables will be fully refreshed. - * @type string $service_account - * Optional. The service account to run workflow invocations under. - * @type int $query_priority - * Optional. Specifies the priority for query execution in BigQuery. - * More information can be found at - * https://cloud.google.com/bigquery/docs/running-queries#queries. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The set of action identifiers to include. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\Target> - */ - public function getIncludedTargets() - { - return $this->included_targets; - } - - /** - * Optional. The set of action identifiers to include. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Target included_targets = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataform\V1beta1\Target[] $var - * @return $this - */ - public function setIncludedTargets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\Target::class); - $this->included_targets = $arr; - - return $this; - } - - /** - * Optional. The set of tags to include. - * - * Generated from protobuf field repeated string included_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getIncludedTags() - { - return $this->included_tags; - } - - /** - * Optional. The set of tags to include. - * - * Generated from protobuf field repeated string included_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setIncludedTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->included_tags = $arr; - - return $this; - } - - /** - * Optional. When set to true, transitive dependencies of included actions - * will be executed. - * - * Generated from protobuf field bool transitive_dependencies_included = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getTransitiveDependenciesIncluded() - { - return $this->transitive_dependencies_included; - } - - /** - * Optional. When set to true, transitive dependencies of included actions - * will be executed. - * - * Generated from protobuf field bool transitive_dependencies_included = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setTransitiveDependenciesIncluded($var) - { - GPBUtil::checkBool($var); - $this->transitive_dependencies_included = $var; - - return $this; - } - - /** - * Optional. When set to true, transitive dependents of included actions will - * be executed. - * - * Generated from protobuf field bool transitive_dependents_included = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getTransitiveDependentsIncluded() - { - return $this->transitive_dependents_included; - } - - /** - * Optional. When set to true, transitive dependents of included actions will - * be executed. - * - * Generated from protobuf field bool transitive_dependents_included = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setTransitiveDependentsIncluded($var) - { - GPBUtil::checkBool($var); - $this->transitive_dependents_included = $var; - - return $this; - } - - /** - * Optional. When set to true, any incremental tables will be fully refreshed. - * - * Generated from protobuf field bool fully_refresh_incremental_tables_enabled = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getFullyRefreshIncrementalTablesEnabled() - { - return $this->fully_refresh_incremental_tables_enabled; - } - - /** - * Optional. When set to true, any incremental tables will be fully refreshed. - * - * Generated from protobuf field bool fully_refresh_incremental_tables_enabled = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setFullyRefreshIncrementalTablesEnabled($var) - { - GPBUtil::checkBool($var); - $this->fully_refresh_incremental_tables_enabled = $var; - - return $this; - } - - /** - * Optional. The service account to run workflow invocations under. - * - * Generated from protobuf field string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getServiceAccount() - { - return $this->service_account; - } - - /** - * Optional. The service account to run workflow invocations under. - * - * Generated from protobuf field string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setServiceAccount($var) - { - GPBUtil::checkString($var, True); - $this->service_account = $var; - - return $this; - } - - /** - * Optional. Specifies the priority for query execution in BigQuery. - * More information can be found at - * https://cloud.google.com/bigquery/docs/running-queries#queries. - * - * Generated from protobuf field optional .google.cloud.dataform.v1beta1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getQueryPriority() - { - return isset($this->query_priority) ? $this->query_priority : 0; - } - - public function hasQueryPriority() - { - return isset($this->query_priority); - } - - public function clearQueryPriority() - { - unset($this->query_priority); - } - - /** - * Optional. Specifies the priority for query execution in BigQuery. - * More information can be found at - * https://cloud.google.com/bigquery/docs/running-queries#queries. - * - * Generated from protobuf field optional .google.cloud.dataform.v1beta1.InvocationConfig.QueryPriority query_priority = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setQueryPriority($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1beta1\InvocationConfig\QueryPriority::class); - $this->query_priority = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/InvocationConfig/QueryPriority.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/InvocationConfig/QueryPriority.php deleted file mode 100644 index d8c22486b793..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/InvocationConfig/QueryPriority.php +++ /dev/null @@ -1,65 +0,0 @@ -google.cloud.dataform.v1beta1.InvocationConfig.QueryPriority - */ -class QueryPriority -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum QUERY_PRIORITY_UNSPECIFIED = 0; - */ - const 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. - * - * Generated from protobuf enum INTERACTIVE = 1; - */ - const 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. - * - * Generated from protobuf enum BATCH = 2; - */ - const BATCH = 2; - - private static $valueToName = [ - self::QUERY_PRIORITY_UNSPECIFIED => 'QUERY_PRIORITY_UNSPECIFIED', - self::INTERACTIVE => 'INTERACTIVE', - self::BATCH => 'BATCH', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListCompilationResultsRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListCompilationResultsRequest.php deleted file mode 100644 index 5fd5b05ae6fd..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListCompilationResultsRequest.php +++ /dev/null @@ -1,254 +0,0 @@ -google.cloud.dataform.v1beta1.ListCompilationResultsRequest - */ -class ListCompilationResultsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The repository in which to list compilation results. Must be in - * the format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * 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. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * 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. - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Filter for the returned list. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The repository in which to list compilation results. Must be in - * the format `projects/*/locations/*/repositories/*`. Please see - * {@see DataformClient::repositoryName()} for help formatting this field. - * - * @return \Google\Cloud\Dataform\V1beta1\ListCompilationResultsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The repository in which to list compilation results. Must be in - * the format `projects/{@*}locations/{@*}repositories/*`. - * @type int $page_size - * 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. - * @type string $page_token - * 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. - * @type string $order_by - * 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. - * @type string $filter - * Optional. Filter for the returned list. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The repository in which to list compilation results. Must be in - * the format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The repository in which to list compilation results. Must be in - * the format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * 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. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * 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. - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Filter for the returned list. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filter for the returned list. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListCompilationResultsResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListCompilationResultsResponse.php deleted file mode 100644 index a6153b4db64e..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListCompilationResultsResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.dataform.v1beta1.ListCompilationResultsResponse - */ -class ListCompilationResultsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of compilation results. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.CompilationResult compilation_results = 1; - */ - private $compilation_results; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations which could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1beta1\CompilationResult[] $compilation_results - * List of compilation results. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type string[] $unreachable - * Locations which could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * List of compilation results. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.CompilationResult compilation_results = 1; - * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\CompilationResult> - */ - public function getCompilationResults() - { - return $this->compilation_results; - } - - /** - * List of compilation results. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.CompilationResult compilation_results = 1; - * @param \Google\Cloud\Dataform\V1beta1\CompilationResult[] $var - * @return $this - */ - public function setCompilationResults($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\CompilationResult::class); - $this->compilation_results = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations which could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations which could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param string[] $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListReleaseConfigsRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListReleaseConfigsRequest.php deleted file mode 100644 index 4c92c649e40c..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListReleaseConfigsRequest.php +++ /dev/null @@ -1,178 +0,0 @@ -google.cloud.dataform.v1beta1.ListReleaseConfigsRequest - */ -class ListReleaseConfigsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The repository in which to list release configs. Must be in the - * format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * 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. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The repository in which to list release configs. Must be in the - * format `projects/*/locations/*/repositories/*`. Please see - * {@see DataformClient::repositoryName()} for help formatting this field. - * - * @return \Google\Cloud\Dataform\V1beta1\ListReleaseConfigsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The repository in which to list release configs. Must be in the - * format `projects/{@*}locations/{@*}repositories/*`. - * @type int $page_size - * 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. - * @type string $page_token - * 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. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The repository in which to list release configs. Must be in the - * format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The repository in which to list release configs. Must be in the - * format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * 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. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListReleaseConfigsResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListReleaseConfigsResponse.php deleted file mode 100644 index dbfb0995dc07..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListReleaseConfigsResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.dataform.v1beta1.ListReleaseConfigsResponse - */ -class ListReleaseConfigsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of release configs. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.ReleaseConfig release_configs = 1; - */ - private $release_configs; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations which could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1beta1\ReleaseConfig[] $release_configs - * List of release configs. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type string[] $unreachable - * Locations which could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * List of release configs. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.ReleaseConfig release_configs = 1; - * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\ReleaseConfig> - */ - public function getReleaseConfigs() - { - return $this->release_configs; - } - - /** - * List of release configs. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.ReleaseConfig release_configs = 1; - * @param \Google\Cloud\Dataform\V1beta1\ReleaseConfig[] $var - * @return $this - */ - public function setReleaseConfigs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\ReleaseConfig::class); - $this->release_configs = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations which could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations which could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param string[] $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListRepositoriesRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListRepositoriesRequest.php deleted file mode 100644 index ed2011b3ad2e..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListRepositoriesRequest.php +++ /dev/null @@ -1,254 +0,0 @@ -google.cloud.dataform.v1beta1.ListRepositoriesRequest - */ -class ListRepositoriesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The location in which to list repositories. Must be in the format - * `projects/{@*}locations/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Maximum number of repositories to return. The server may return - * fewer items than requested. If unspecified, the server will pick an - * appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * 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. - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Filter for the returned list. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The location in which to list repositories. Must be in the format - * `projects/*/locations/*`. Please see - * {@see DataformClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\Dataform\V1beta1\ListRepositoriesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The location in which to list repositories. Must be in the format - * `projects/{@*}locations/*`. - * @type int $page_size - * Optional. Maximum number of repositories to return. The server may return - * fewer items than requested. If unspecified, the server will pick an - * appropriate default. - * @type string $page_token - * 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. - * @type string $order_by - * 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. - * @type string $filter - * Optional. Filter for the returned list. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The location in which to list repositories. Must be in the format - * `projects/{@*}locations/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The location in which to list repositories. Must be in the format - * `projects/{@*}locations/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. Maximum number of repositories to return. The server may return - * fewer items than requested. If unspecified, the server will pick an - * appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Maximum number of repositories to return. The server may return - * fewer items than requested. If unspecified, the server will pick an - * appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * 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. - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Filter for the returned list. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filter for the returned list. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListRepositoriesResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListRepositoriesResponse.php deleted file mode 100644 index 9245703f9bb6..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListRepositoriesResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.dataform.v1beta1.ListRepositoriesResponse - */ -class ListRepositoriesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of repositories. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Repository repositories = 1; - */ - private $repositories; - /** - * A token which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations which could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1beta1\Repository[] $repositories - * List of repositories. - * @type string $next_page_token - * A token which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type string[] $unreachable - * Locations which could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * List of repositories. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Repository repositories = 1; - * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\Repository> - */ - public function getRepositories() - { - return $this->repositories; - } - - /** - * List of repositories. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Repository repositories = 1; - * @param \Google\Cloud\Dataform\V1beta1\Repository[] $var - * @return $this - */ - public function setRepositories($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\Repository::class); - $this->repositories = $arr; - - return $this; - } - - /** - * A token which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations which could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations which could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param string[] $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkflowConfigsRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkflowConfigsRequest.php deleted file mode 100644 index 46315d861e47..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkflowConfigsRequest.php +++ /dev/null @@ -1,178 +0,0 @@ -google.cloud.dataform.v1beta1.ListWorkflowConfigsRequest - */ -class ListWorkflowConfigsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The repository in which to list workflow configs. Must be in the - * format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * 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. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The repository in which to list workflow configs. Must be in the - * format `projects/*/locations/*/repositories/*`. Please see - * {@see DataformClient::repositoryName()} for help formatting this field. - * - * @return \Google\Cloud\Dataform\V1beta1\ListWorkflowConfigsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The repository in which to list workflow configs. Must be in the - * format `projects/{@*}locations/{@*}repositories/*`. - * @type int $page_size - * 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. - * @type string $page_token - * 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. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The repository in which to list workflow configs. Must be in the - * format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The repository in which to list workflow configs. Must be in the - * format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * 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. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkflowConfigsResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkflowConfigsResponse.php deleted file mode 100644 index 49698697808d..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkflowConfigsResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse - */ -class ListWorkflowConfigsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of workflow configs. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.WorkflowConfig workflow_configs = 1; - */ - private $workflow_configs; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations which could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1beta1\WorkflowConfig[] $workflow_configs - * List of workflow configs. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type string[] $unreachable - * Locations which could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * List of workflow configs. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.WorkflowConfig workflow_configs = 1; - * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\WorkflowConfig> - */ - public function getWorkflowConfigs() - { - return $this->workflow_configs; - } - - /** - * List of workflow configs. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.WorkflowConfig workflow_configs = 1; - * @param \Google\Cloud\Dataform\V1beta1\WorkflowConfig[] $var - * @return $this - */ - public function setWorkflowConfigs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\WorkflowConfig::class); - $this->workflow_configs = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations which could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations which could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param string[] $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkflowInvocationsRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkflowInvocationsRequest.php deleted file mode 100644 index f4a38eb34dbe..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkflowInvocationsRequest.php +++ /dev/null @@ -1,254 +0,0 @@ -google.cloud.dataform.v1beta1.ListWorkflowInvocationsRequest - */ -class ListWorkflowInvocationsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource of the WorkflowInvocation type. Must be in - * the format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * 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. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * 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. - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Filter for the returned list. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The parent resource of the WorkflowInvocation type. Must be in - * the format `projects/*/locations/*/repositories/*`. Please see - * {@see DataformClient::repositoryName()} for help formatting this field. - * - * @return \Google\Cloud\Dataform\V1beta1\ListWorkflowInvocationsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource of the WorkflowInvocation type. Must be in - * the format `projects/{@*}locations/{@*}repositories/*`. - * @type int $page_size - * 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. - * @type string $page_token - * 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. - * @type string $order_by - * 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. - * @type string $filter - * Optional. Filter for the returned list. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource of the WorkflowInvocation type. Must be in - * the format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource of the WorkflowInvocation type. Must be in - * the format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * 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. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * 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. - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Filter for the returned list. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filter for the returned list. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkflowInvocationsResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkflowInvocationsResponse.php deleted file mode 100644 index b6046224114e..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkflowInvocationsResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse - */ -class ListWorkflowInvocationsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of workflow invocations. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.WorkflowInvocation workflow_invocations = 1; - */ - private $workflow_invocations; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations which could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1beta1\WorkflowInvocation[] $workflow_invocations - * List of workflow invocations. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type string[] $unreachable - * Locations which could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * List of workflow invocations. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.WorkflowInvocation workflow_invocations = 1; - * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\WorkflowInvocation> - */ - public function getWorkflowInvocations() - { - return $this->workflow_invocations; - } - - /** - * List of workflow invocations. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.WorkflowInvocation workflow_invocations = 1; - * @param \Google\Cloud\Dataform\V1beta1\WorkflowInvocation[] $var - * @return $this - */ - public function setWorkflowInvocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\WorkflowInvocation::class); - $this->workflow_invocations = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations which could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations which could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param string[] $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkspacesRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkspacesRequest.php deleted file mode 100644 index 99e4381b9990..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkspacesRequest.php +++ /dev/null @@ -1,254 +0,0 @@ -google.cloud.dataform.v1beta1.ListWorkspacesRequest - */ -class ListWorkspacesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The repository in which to list workspaces. Must be in the - * format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Maximum number of workspaces to return. The server may return - * fewer items than requested. If unspecified, the server will pick an - * appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * 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. - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Filter for the returned list. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The repository in which to list workspaces. Must be in the - * format `projects/*/locations/*/repositories/*`. Please see - * {@see DataformClient::repositoryName()} for help formatting this field. - * - * @return \Google\Cloud\Dataform\V1beta1\ListWorkspacesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The repository in which to list workspaces. Must be in the - * format `projects/{@*}locations/{@*}repositories/*`. - * @type int $page_size - * Optional. Maximum number of workspaces to return. The server may return - * fewer items than requested. If unspecified, the server will pick an - * appropriate default. - * @type string $page_token - * 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. - * @type string $order_by - * 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. - * @type string $filter - * Optional. Filter for the returned list. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The repository in which to list workspaces. Must be in the - * format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The repository in which to list workspaces. Must be in the - * format `projects/{@*}locations/{@*}repositories/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. Maximum number of workspaces to return. The server may return - * fewer items than requested. If unspecified, the server will pick an - * appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Maximum number of workspaces to return. The server may return - * fewer items than requested. If unspecified, the server will pick an - * appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * 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. - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Filter for the returned list. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filter for the returned list. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkspacesResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkspacesResponse.php deleted file mode 100644 index b3d8caa3386a..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ListWorkspacesResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.dataform.v1beta1.ListWorkspacesResponse - */ -class ListWorkspacesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of workspaces. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Workspace workspaces = 1; - */ - private $workspaces; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations which could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1beta1\Workspace[] $workspaces - * List of workspaces. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type string[] $unreachable - * Locations which could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * List of workspaces. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Workspace workspaces = 1; - * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\Workspace> - */ - public function getWorkspaces() - { - return $this->workspaces; - } - - /** - * List of workspaces. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Workspace workspaces = 1; - * @param \Google\Cloud\Dataform\V1beta1\Workspace[] $var - * @return $this - */ - public function setWorkspaces($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\Workspace::class); - $this->workspaces = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations which could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations which could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param string[] $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MakeDirectoryRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MakeDirectoryRequest.php deleted file mode 100644 index dd5f4cadc26e..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MakeDirectoryRequest.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.dataform.v1beta1.MakeDirectoryRequest - */ -class MakeDirectoryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $workspace = ''; - /** - * Required. The directory's full path including directory name, relative to - * the workspace root. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $path = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $workspace - * Required. The workspace's name. - * @type string $path - * Required. The directory's full path including directory name, relative to - * the workspace root. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getWorkspace() - { - return $this->workspace; - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setWorkspace($var) - { - GPBUtil::checkString($var, True); - $this->workspace = $var; - - return $this; - } - - /** - * Required. The directory's full path including directory name, relative to - * the workspace root. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * Required. The directory's full path including directory name, relative to - * the workspace root. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MakeDirectoryResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MakeDirectoryResponse.php deleted file mode 100644 index b5777e25349a..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MakeDirectoryResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.dataform.v1beta1.MakeDirectoryResponse - */ -class MakeDirectoryResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveDirectoryRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveDirectoryRequest.php deleted file mode 100644 index 9bcd0265bba9..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveDirectoryRequest.php +++ /dev/null @@ -1,143 +0,0 @@ -google.cloud.dataform.v1beta1.MoveDirectoryRequest - */ -class MoveDirectoryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $workspace = ''; - /** - * Required. The directory's full path including directory name, relative to - * the workspace root. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $path = ''; - /** - * Required. The new path for the directory including directory name, rooted - * at workspace root. - * - * Generated from protobuf field string new_path = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $new_path = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $workspace - * Required. The workspace's name. - * @type string $path - * Required. The directory's full path including directory name, relative to - * the workspace root. - * @type string $new_path - * Required. The new path for the directory including directory name, rooted - * at workspace root. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getWorkspace() - { - return $this->workspace; - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setWorkspace($var) - { - GPBUtil::checkString($var, True); - $this->workspace = $var; - - return $this; - } - - /** - * Required. The directory's full path including directory name, relative to - * the workspace root. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * Required. The directory's full path including directory name, relative to - * the workspace root. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - - /** - * Required. The new path for the directory including directory name, rooted - * at workspace root. - * - * Generated from protobuf field string new_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getNewPath() - { - return $this->new_path; - } - - /** - * Required. The new path for the directory including directory name, rooted - * at workspace root. - * - * Generated from protobuf field string new_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setNewPath($var) - { - GPBUtil::checkString($var, True); - $this->new_path = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveDirectoryResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveDirectoryResponse.php deleted file mode 100644 index bad21266d97d..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveDirectoryResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.dataform.v1beta1.MoveDirectoryResponse - */ -class MoveDirectoryResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveFileRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveFileRequest.php deleted file mode 100644 index 07df33a66fa3..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveFileRequest.php +++ /dev/null @@ -1,143 +0,0 @@ -google.cloud.dataform.v1beta1.MoveFileRequest - */ -class MoveFileRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $workspace = ''; - /** - * Required. The file's full path including filename, relative to the - * workspace root. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $path = ''; - /** - * Required. The file's new path including filename, relative to the workspace - * root. - * - * Generated from protobuf field string new_path = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $new_path = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $workspace - * Required. The workspace's name. - * @type string $path - * Required. The file's full path including filename, relative to the - * workspace root. - * @type string $new_path - * Required. The file's new path including filename, relative to the workspace - * root. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getWorkspace() - { - return $this->workspace; - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setWorkspace($var) - { - GPBUtil::checkString($var, True); - $this->workspace = $var; - - return $this; - } - - /** - * Required. The file's full path including filename, relative to the - * workspace root. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * Required. The file's full path including filename, relative to the - * workspace root. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - - /** - * Required. The file's new path including filename, relative to the workspace - * root. - * - * Generated from protobuf field string new_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getNewPath() - { - return $this->new_path; - } - - /** - * Required. The file's new path including filename, relative to the workspace - * root. - * - * Generated from protobuf field string new_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setNewPath($var) - { - GPBUtil::checkString($var, True); - $this->new_path = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveFileResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveFileResponse.php deleted file mode 100644 index 84c623ad6324..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveFileResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.dataform.v1beta1.MoveFileResponse - */ -class MoveFileResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveFolderMetadata.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveFolderMetadata.php deleted file mode 100644 index 83ac886f5fb0..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveFolderMetadata.php +++ /dev/null @@ -1,224 +0,0 @@ -google.cloud.dataform.v1beta1.MoveFolderMetadata - */ -class MoveFolderMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - /** - * Output only. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $target = ''; - /** - * The state of the move. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.MoveFolderMetadata.State state = 4; - */ - protected $state = 0; - /** - * Percent complete of the move [0, 100]. - * - * Generated from protobuf field int32 percent_complete = 5; - */ - protected $percent_complete = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time the operation was created. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. The time the operation finished running. - * @type string $target - * Output only. Server-defined resource path for the target of the operation. - * @type int $state - * The state of the move. - * @type int $percent_complete - * Percent complete of the move [0, 100]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * Output only. The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * Output only. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getTarget() - { - return $this->target; - } - - /** - * Output only. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setTarget($var) - { - GPBUtil::checkString($var, True); - $this->target = $var; - - return $this; - } - - /** - * The state of the move. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.MoveFolderMetadata.State state = 4; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * The state of the move. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.MoveFolderMetadata.State state = 4; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1beta1\MoveFolderMetadata\State::class); - $this->state = $var; - - return $this; - } - - /** - * Percent complete of the move [0, 100]. - * - * Generated from protobuf field int32 percent_complete = 5; - * @return int - */ - public function getPercentComplete() - { - return $this->percent_complete; - } - - /** - * Percent complete of the move [0, 100]. - * - * Generated from protobuf field int32 percent_complete = 5; - * @param int $var - * @return $this - */ - public function setPercentComplete($var) - { - GPBUtil::checkInt32($var); - $this->percent_complete = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveFolderMetadata/State.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveFolderMetadata/State.php deleted file mode 100644 index e7df3986915a..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveFolderMetadata/State.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.dataform.v1beta1.MoveFolderMetadata.State - */ -class State -{ - /** - * The state is unspecified. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The move was initialized and recorded by the server, but not yet started. - * - * Generated from protobuf enum INITIALIZED = 1; - */ - const INITIALIZED = 1; - /** - * The move is in progress. - * - * Generated from protobuf enum IN_PROGRESS = 2; - */ - const IN_PROGRESS = 2; - /** - * The move has completed successfully. - * - * Generated from protobuf enum SUCCESS = 3; - */ - const SUCCESS = 3; - /** - * The move has failed. - * - * Generated from protobuf enum FAILED = 4; - */ - const FAILED = 4; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::INITIALIZED => 'INITIALIZED', - self::IN_PROGRESS => 'IN_PROGRESS', - self::SUCCESS => 'SUCCESS', - self::FAILED => 'FAILED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveFolderRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveFolderRequest.php deleted file mode 100644 index 71164f80accc..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveFolderRequest.php +++ /dev/null @@ -1,137 +0,0 @@ -google.cloud.dataform.v1beta1.MoveFolderRequest - */ -class MoveFolderRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The full resource name of the Folder to move. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * 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/*` - * - * Generated from protobuf field optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $destination_containing_folder = null; - - /** - * @param string $name Required. The full resource name of the Folder to move. Please see - * {@see DataformClient::folderName()} for help formatting this field. - * @param string $destinationContainingFolder 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/*` - * - * @return \Google\Cloud\Dataform\V1beta1\MoveFolderRequest - * - * @experimental - */ - public static function build(string $name, string $destinationContainingFolder): self - { - return (new self()) - ->setName($name) - ->setDestinationContainingFolder($destinationContainingFolder); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The full resource name of the Folder to move. - * @type string $destination_containing_folder - * 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/*` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The full resource name of the Folder to move. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The full resource name of the Folder to move. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * 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/*` - * - * Generated from protobuf field optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDestinationContainingFolder() - { - return isset($this->destination_containing_folder) ? $this->destination_containing_folder : ''; - } - - public function hasDestinationContainingFolder() - { - return isset($this->destination_containing_folder); - } - - public function clearDestinationContainingFolder() - { - unset($this->destination_containing_folder); - } - - /** - * 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/*` - * - * Generated from protobuf field optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDestinationContainingFolder($var) - { - GPBUtil::checkString($var, True); - $this->destination_containing_folder = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveRepositoryMetadata.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveRepositoryMetadata.php deleted file mode 100644 index 84bfbb8f32bf..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveRepositoryMetadata.php +++ /dev/null @@ -1,224 +0,0 @@ -google.cloud.dataform.v1beta1.MoveRepositoryMetadata - */ -class MoveRepositoryMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - /** - * Output only. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $target = ''; - /** - * The state of the move. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.MoveRepositoryMetadata.State state = 4; - */ - protected $state = 0; - /** - * Percent complete of the move [0, 100]. - * - * Generated from protobuf field int32 percent_complete = 5; - */ - protected $percent_complete = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time the operation was created. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. The time the operation finished running. - * @type string $target - * Output only. Server-defined resource path for the target of the operation. - * @type int $state - * The state of the move. - * @type int $percent_complete - * Percent complete of the move [0, 100]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * Output only. The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * Output only. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getTarget() - { - return $this->target; - } - - /** - * Output only. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setTarget($var) - { - GPBUtil::checkString($var, True); - $this->target = $var; - - return $this; - } - - /** - * The state of the move. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.MoveRepositoryMetadata.State state = 4; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * The state of the move. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.MoveRepositoryMetadata.State state = 4; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1beta1\MoveRepositoryMetadata\State::class); - $this->state = $var; - - return $this; - } - - /** - * Percent complete of the move [0, 100]. - * - * Generated from protobuf field int32 percent_complete = 5; - * @return int - */ - public function getPercentComplete() - { - return $this->percent_complete; - } - - /** - * Percent complete of the move [0, 100]. - * - * Generated from protobuf field int32 percent_complete = 5; - * @param int $var - * @return $this - */ - public function setPercentComplete($var) - { - GPBUtil::checkInt32($var); - $this->percent_complete = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveRepositoryMetadata/State.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveRepositoryMetadata/State.php deleted file mode 100644 index 81149a50aa1f..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveRepositoryMetadata/State.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.dataform.v1beta1.MoveRepositoryMetadata.State - */ -class State -{ - /** - * The state is unspecified. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The move was initialized and recorded by the server, but not yet started. - * - * Generated from protobuf enum INITIALIZED = 1; - */ - const INITIALIZED = 1; - /** - * The move is in progress. - * - * Generated from protobuf enum IN_PROGRESS = 2; - */ - const IN_PROGRESS = 2; - /** - * The move has completed successfully. - * - * Generated from protobuf enum SUCCESS = 3; - */ - const SUCCESS = 3; - /** - * The move has failed. - * - * Generated from protobuf enum FAILED = 4; - */ - const FAILED = 4; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::INITIALIZED => 'INITIALIZED', - self::IN_PROGRESS => 'IN_PROGRESS', - self::SUCCESS => 'SUCCESS', - self::FAILED => 'FAILED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveRepositoryRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveRepositoryRequest.php deleted file mode 100644 index 291e77f36a51..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/MoveRepositoryRequest.php +++ /dev/null @@ -1,142 +0,0 @@ -google.cloud.dataform.v1beta1.MoveRepositoryRequest - */ -class MoveRepositoryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The full resource name of the repository to move. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * 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/*` - * - * Generated from protobuf field optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $destination_containing_folder = null; - - /** - * @param string $name Required. The full resource name of the repository to move. Please see - * {@see DataformClient::repositoryName()} for help formatting this field. - * @param string $destinationContainingFolder 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/*` - * - * @return \Google\Cloud\Dataform\V1beta1\MoveRepositoryRequest - * - * @experimental - */ - public static function build(string $name, string $destinationContainingFolder): self - { - return (new self()) - ->setName($name) - ->setDestinationContainingFolder($destinationContainingFolder); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The full resource name of the repository to move. - * @type string $destination_containing_folder - * 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/*` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The full resource name of the repository to move. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The full resource name of the repository to move. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * 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/*` - * - * Generated from protobuf field optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDestinationContainingFolder() - { - return isset($this->destination_containing_folder) ? $this->destination_containing_folder : ''; - } - - public function hasDestinationContainingFolder() - { - return isset($this->destination_containing_folder); - } - - public function clearDestinationContainingFolder() - { - unset($this->destination_containing_folder); - } - - /** - * 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/*` - * - * Generated from protobuf field optional string destination_containing_folder = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDestinationContainingFolder($var) - { - GPBUtil::checkString($var, True); - $this->destination_containing_folder = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/NotebookRuntimeOptions.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/NotebookRuntimeOptions.php deleted file mode 100644 index 07c4dc41205a..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/NotebookRuntimeOptions.php +++ /dev/null @@ -1,124 +0,0 @@ -google.cloud.dataform.v1beta1.NotebookRuntimeOptions - */ -class NotebookRuntimeOptions extends \Google\Protobuf\Internal\Message -{ - /** - * 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. - * - * Generated from protobuf field string ai_platform_notebook_runtime_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $ai_platform_notebook_runtime_template = ''; - protected $execution_sink; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $gcs_output_bucket - * Optional. The Google Cloud Storage location to upload the result to. - * Format: `gs://bucket-name`. - * @type string $ai_platform_notebook_runtime_template - * 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. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The Google Cloud Storage location to upload the result to. - * Format: `gs://bucket-name`. - * - * Generated from protobuf field string gcs_output_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getGcsOutputBucket() - { - return $this->readOneof(1); - } - - public function hasGcsOutputBucket() - { - return $this->hasOneof(1); - } - - /** - * Optional. The Google Cloud Storage location to upload the result to. - * Format: `gs://bucket-name`. - * - * Generated from protobuf field string gcs_output_bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setGcsOutputBucket($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string ai_platform_notebook_runtime_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getAiPlatformNotebookRuntimeTemplate() - { - return $this->ai_platform_notebook_runtime_template; - } - - /** - * 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. - * - * Generated from protobuf field string ai_platform_notebook_runtime_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setAiPlatformNotebookRuntimeTemplate($var) - { - GPBUtil::checkString($var, True); - $this->ai_platform_notebook_runtime_template = $var; - - return $this; - } - - /** - * @return string - */ - public function getExecutionSink() - { - return $this->whichOneof("execution_sink"); - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/PrivateResourceMetadata.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/PrivateResourceMetadata.php deleted file mode 100644 index fb3058dca6d3..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/PrivateResourceMetadata.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.dataform.v1beta1.PrivateResourceMetadata - */ -class PrivateResourceMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. If true, this resource is user-scoped, meaning it is either a - * workspace or sourced from a workspace. - * - * Generated from protobuf field bool user_scoped = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $user_scoped = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $user_scoped - * Output only. If true, this resource is user-scoped, meaning it is either a - * workspace or sourced from a workspace. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Output only. If true, this resource is user-scoped, meaning it is either a - * workspace or sourced from a workspace. - * - * Generated from protobuf field bool user_scoped = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getUserScoped() - { - return $this->user_scoped; - } - - /** - * Output only. If true, this resource is user-scoped, meaning it is either a - * workspace or sourced from a workspace. - * - * Generated from protobuf field bool user_scoped = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setUserScoped($var) - { - GPBUtil::checkBool($var); - $this->user_scoped = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/PullGitCommitsRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/PullGitCommitsRequest.php deleted file mode 100644 index ee9655523293..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/PullGitCommitsRequest.php +++ /dev/null @@ -1,153 +0,0 @@ -google.cloud.dataform.v1beta1.PullGitCommitsRequest - */ -class PullGitCommitsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * 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. - * - * Generated from protobuf field string remote_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $remote_branch = ''; - /** - * Required. The author of any merge commit which may be created as a result - * of merging fetched Git commits into this workspace. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $author = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The workspace's name. - * @type string $remote_branch - * 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. - * @type \Google\Cloud\Dataform\V1beta1\CommitAuthor $author - * Required. The author of any merge commit which may be created as a result - * of merging fetched Git commits into this workspace. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string remote_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRemoteBranch() - { - return $this->remote_branch; - } - - /** - * 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. - * - * Generated from protobuf field string remote_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRemoteBranch($var) - { - GPBUtil::checkString($var, True); - $this->remote_branch = $var; - - return $this; - } - - /** - * Required. The author of any merge commit which may be created as a result - * of merging fetched Git commits into this workspace. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataform\V1beta1\CommitAuthor|null - */ - public function getAuthor() - { - return $this->author; - } - - public function hasAuthor() - { - return isset($this->author); - } - - public function clearAuthor() - { - unset($this->author); - } - - /** - * Required. The author of any merge commit which may be created as a result - * of merging fetched Git commits into this workspace. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CommitAuthor author = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataform\V1beta1\CommitAuthor $var - * @return $this - */ - public function setAuthor($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CommitAuthor::class); - $this->author = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/PullGitCommitsResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/PullGitCommitsResponse.php deleted file mode 100644 index b4c3c25ede7e..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/PullGitCommitsResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.dataform.v1beta1.PullGitCommitsResponse - */ -class PullGitCommitsResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/PushGitCommitsRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/PushGitCommitsRequest.php deleted file mode 100644 index 73b75ecd1f33..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/PushGitCommitsRequest.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.dataform.v1beta1.PushGitCommitsRequest - */ -class PushGitCommitsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * 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. - * - * Generated from protobuf field string remote_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $remote_branch = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The workspace's name. - * @type string $remote_branch - * 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. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string remote_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRemoteBranch() - { - return $this->remote_branch; - } - - /** - * 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. - * - * Generated from protobuf field string remote_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRemoteBranch($var) - { - GPBUtil::checkString($var, True); - $this->remote_branch = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/PushGitCommitsResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/PushGitCommitsResponse.php deleted file mode 100644 index 13004679bc9d..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/PushGitCommitsResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.dataform.v1beta1.PushGitCommitsResponse - */ -class PushGitCommitsResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryCompilationResultActionsRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryCompilationResultActionsRequest.php deleted file mode 100644 index 834a2f4eb299..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryCompilationResultActionsRequest.php +++ /dev/null @@ -1,201 +0,0 @@ -google.cloud.dataform.v1beta1.QueryCompilationResultActionsRequest - */ -class QueryCompilationResultActionsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The compilation result's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * 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. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Optional filter for the returned list. Filtering is only - * currently supported on the `file_path` field. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The compilation result's name. - * @type int $page_size - * 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. - * @type string $page_token - * 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. - * @type string $filter - * Optional. Optional filter for the returned list. Filtering is only - * currently supported on the `file_path` field. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The compilation result's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The compilation result's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * 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. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Optional filter for the returned list. Filtering is only - * currently supported on the `file_path` field. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Optional filter for the returned list. Filtering is only - * currently supported on the `file_path` field. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryCompilationResultActionsResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryCompilationResultActionsResponse.php deleted file mode 100644 index ec66454b2b18..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryCompilationResultActionsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse - */ -class QueryCompilationResultActionsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of compilation result actions. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.CompilationResultAction compilation_result_actions = 1; - */ - private $compilation_result_actions; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1beta1\CompilationResultAction[] $compilation_result_actions - * List of compilation result actions. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * List of compilation result actions. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.CompilationResultAction compilation_result_actions = 1; - * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\CompilationResultAction> - */ - public function getCompilationResultActions() - { - return $this->compilation_result_actions; - } - - /** - * List of compilation result actions. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.CompilationResultAction compilation_result_actions = 1; - * @param \Google\Cloud\Dataform\V1beta1\CompilationResultAction[] $var - * @return $this - */ - public function setCompilationResultActions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\CompilationResultAction::class); - $this->compilation_result_actions = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryDirectoryContentsRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryDirectoryContentsRequest.php deleted file mode 100644 index 706f7a1073fc..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryDirectoryContentsRequest.php +++ /dev/null @@ -1,197 +0,0 @@ -google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest - */ -class QueryDirectoryContentsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $workspace = ''; - /** - * Optional. The directory's full path including directory name, relative to - * the workspace root. If left unset, the workspace root is used. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $path = ''; - /** - * Optional. Maximum number of paths to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate - * default. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * 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. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $workspace - * Required. The workspace's name. - * @type string $path - * Optional. The directory's full path including directory name, relative to - * the workspace root. If left unset, the workspace root is used. - * @type int $page_size - * Optional. Maximum number of paths to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate - * default. - * @type string $page_token - * 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. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getWorkspace() - { - return $this->workspace; - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setWorkspace($var) - { - GPBUtil::checkString($var, True); - $this->workspace = $var; - - return $this; - } - - /** - * Optional. The directory's full path including directory name, relative to - * the workspace root. If left unset, the workspace root is used. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * Optional. The directory's full path including directory name, relative to - * the workspace root. If left unset, the workspace root is used. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - - /** - * Optional. Maximum number of paths to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate - * default. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Maximum number of paths to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate - * default. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryDirectoryContentsResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryDirectoryContentsResponse.php deleted file mode 100644 index 192fc14f011c..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryDirectoryContentsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse - */ -class QueryDirectoryContentsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of entries in the directory. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; - */ - private $directory_entries; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1beta1\DirectoryEntry[] $directory_entries - * List of entries in the directory. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * List of entries in the directory. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; - * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\DirectoryEntry> - */ - public function getDirectoryEntries() - { - return $this->directory_entries; - } - - /** - * List of entries in the directory. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; - * @param \Google\Cloud\Dataform\V1beta1\DirectoryEntry[] $var - * @return $this - */ - public function setDirectoryEntries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\DirectoryEntry::class); - $this->directory_entries = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryFolderContentsRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryFolderContentsRequest.php deleted file mode 100644 index 5b032a63c326..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryFolderContentsRequest.php +++ /dev/null @@ -1,282 +0,0 @@ -google.cloud.dataform.v1beta1.QueryFolderContentsRequest - */ -class QueryFolderContentsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the folder whose contents to list. - * Format: projects/{@*}locations/{@*}folders/* - * - * Generated from protobuf field string folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $folder = ''; - /** - * Optional. Maximum number of paths to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate - * default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * 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"` - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Optional filtering for the returned list. Filtering is currently - * only supported on the `display_name` field. - * Example: - * - `filter="display_name="MyFolder""` - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $folder Required. Name of the folder whose contents to list. - * Format: projects/*/locations/*/folders/* - * Please see {@see DataformClient::folderName()} for help formatting this field. - * - * @return \Google\Cloud\Dataform\V1beta1\QueryFolderContentsRequest - * - * @experimental - */ - public static function build(string $folder): self - { - return (new self()) - ->setFolder($folder); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $folder - * Required. Name of the folder whose contents to list. - * Format: projects/{@*}locations/{@*}folders/* - * @type int $page_size - * Optional. Maximum number of paths to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate - * default. - * @type string $page_token - * 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. - * @type string $order_by - * 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"` - * @type string $filter - * Optional. Optional filtering for the returned list. Filtering is currently - * only supported on the `display_name` field. - * Example: - * - `filter="display_name="MyFolder""` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the folder whose contents to list. - * Format: projects/{@*}locations/{@*}folders/* - * - * Generated from protobuf field string folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getFolder() - { - return $this->folder; - } - - /** - * Required. Name of the folder whose contents to list. - * Format: projects/{@*}locations/{@*}folders/* - * - * Generated from protobuf field string folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setFolder($var) - { - GPBUtil::checkString($var, True); - $this->folder = $var; - - return $this; - } - - /** - * Optional. Maximum number of paths to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate - * default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Maximum number of paths to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate - * default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * 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"` - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * 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"` - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Optional filtering for the returned list. Filtering is currently - * only supported on the `display_name` field. - * Example: - * - `filter="display_name="MyFolder""` - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Optional filtering for the returned list. Filtering is currently - * only supported on the `display_name` field. - * Example: - * - `filter="display_name="MyFolder""` - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryFolderContentsResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryFolderContentsResponse.php deleted file mode 100644 index 77c9fde89359..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryFolderContentsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.dataform.v1beta1.QueryFolderContentsResponse - */ -class QueryFolderContentsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of entries in the folder. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; - */ - private $entries; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1beta1\QueryFolderContentsResponse\FolderContentsEntry[] $entries - * List of entries in the folder. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * List of entries in the folder. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; - * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\QueryFolderContentsResponse\FolderContentsEntry> - */ - public function getEntries() - { - return $this->entries; - } - - /** - * List of entries in the folder. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry entries = 1; - * @param \Google\Cloud\Dataform\V1beta1\QueryFolderContentsResponse\FolderContentsEntry[] $var - * @return $this - */ - public function setEntries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\QueryFolderContentsResponse\FolderContentsEntry::class); - $this->entries = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryFolderContentsResponse/FolderContentsEntry.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryFolderContentsResponse/FolderContentsEntry.php deleted file mode 100644 index 6254ad341b1b..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryFolderContentsResponse/FolderContentsEntry.php +++ /dev/null @@ -1,108 +0,0 @@ -google.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry - */ -class FolderContentsEntry extends \Google\Protobuf\Internal\Message -{ - protected $entry; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1beta1\Folder $folder - * A subfolder. - * @type \Google\Cloud\Dataform\V1beta1\Repository $repository - * A repository. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * A subfolder. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Folder folder = 1; - * @return \Google\Cloud\Dataform\V1beta1\Folder|null - */ - public function getFolder() - { - return $this->readOneof(1); - } - - public function hasFolder() - { - return $this->hasOneof(1); - } - - /** - * A subfolder. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Folder folder = 1; - * @param \Google\Cloud\Dataform\V1beta1\Folder $var - * @return $this - */ - public function setFolder($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Folder::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * A repository. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository repository = 2; - * @return \Google\Cloud\Dataform\V1beta1\Repository|null - */ - public function getRepository() - { - return $this->readOneof(2); - } - - public function hasRepository() - { - return $this->hasOneof(2); - } - - /** - * A repository. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository repository = 2; - * @param \Google\Cloud\Dataform\V1beta1\Repository $var - * @return $this - */ - public function setRepository($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Repository::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getEntry() - { - return $this->whichOneof("entry"); - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryRepositoryDirectoryContentsRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryRepositoryDirectoryContentsRequest.php deleted file mode 100644 index b44897a06e1e..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryRepositoryDirectoryContentsRequest.php +++ /dev/null @@ -1,239 +0,0 @@ -google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsRequest - */ -class QueryRepositoryDirectoryContentsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. The Commit SHA for the commit to query from. If unset, the - * directory will be queried from HEAD. - * - * Generated from protobuf field string commit_sha = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $commit_sha = ''; - /** - * Optional. The directory's full path including directory name, relative to - * root. If left unset, the root is used. - * - * Generated from protobuf field string path = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $path = ''; - /** - * Optional. Maximum number of paths to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate - * default. - * - * Generated from protobuf field int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * 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. - * - * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The repository's name. - * @type string $commit_sha - * Optional. The Commit SHA for the commit to query from. If unset, the - * directory will be queried from HEAD. - * @type string $path - * Optional. The directory's full path including directory name, relative to - * root. If left unset, the root is used. - * @type int $page_size - * Optional. Maximum number of paths to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate - * default. - * @type string $page_token - * 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. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. The Commit SHA for the commit to query from. If unset, the - * directory will be queried from HEAD. - * - * Generated from protobuf field string commit_sha = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getCommitSha() - { - return $this->commit_sha; - } - - /** - * Optional. The Commit SHA for the commit to query from. If unset, the - * directory will be queried from HEAD. - * - * Generated from protobuf field string commit_sha = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setCommitSha($var) - { - GPBUtil::checkString($var, True); - $this->commit_sha = $var; - - return $this; - } - - /** - * Optional. The directory's full path including directory name, relative to - * root. If left unset, the root is used. - * - * Generated from protobuf field string path = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * Optional. The directory's full path including directory name, relative to - * root. If left unset, the root is used. - * - * Generated from protobuf field string path = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - - /** - * Optional. Maximum number of paths to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate - * default. - * - * Generated from protobuf field int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Maximum number of paths to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate - * default. - * - * Generated from protobuf field int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryRepositoryDirectoryContentsResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryRepositoryDirectoryContentsResponse.php deleted file mode 100644 index 7a2221dc9428..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryRepositoryDirectoryContentsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse - */ -class QueryRepositoryDirectoryContentsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of entries in the directory. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; - */ - private $directory_entries; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1beta1\DirectoryEntry[] $directory_entries - * List of entries in the directory. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * List of entries in the directory. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; - * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\DirectoryEntry> - */ - public function getDirectoryEntries() - { - return $this->directory_entries; - } - - /** - * List of entries in the directory. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.DirectoryEntry directory_entries = 1; - * @param \Google\Cloud\Dataform\V1beta1\DirectoryEntry[] $var - * @return $this - */ - public function setDirectoryEntries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\DirectoryEntry::class); - $this->directory_entries = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryTeamFolderContentsRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryTeamFolderContentsRequest.php deleted file mode 100644 index 76d32624941b..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryTeamFolderContentsRequest.php +++ /dev/null @@ -1,282 +0,0 @@ -google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest - */ -class QueryTeamFolderContentsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the team_folder whose contents to list. - * Format: `projects/{@*}locations/{@*}teamFolders/*`. - * - * Generated from protobuf field string team_folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $team_folder = ''; - /** - * Optional. Maximum number of paths to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate - * default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * 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"` - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Optional filtering for the returned list. Filtering is currently - * only supported on the `display_name` field. - * Example: - * - `filter="display_name="MyFolder""` - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $teamFolder Required. Name of the team_folder whose contents to list. - * Format: `projects/*/locations/*/teamFolders/*`. Please see - * {@see DataformClient::teamFolderName()} for help formatting this field. - * - * @return \Google\Cloud\Dataform\V1beta1\QueryTeamFolderContentsRequest - * - * @experimental - */ - public static function build(string $teamFolder): self - { - return (new self()) - ->setTeamFolder($teamFolder); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $team_folder - * Required. Name of the team_folder whose contents to list. - * Format: `projects/{@*}locations/{@*}teamFolders/*`. - * @type int $page_size - * Optional. Maximum number of paths to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate - * default. - * @type string $page_token - * 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. - * @type string $order_by - * 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"` - * @type string $filter - * Optional. Optional filtering for the returned list. Filtering is currently - * only supported on the `display_name` field. - * Example: - * - `filter="display_name="MyFolder""` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the team_folder whose contents to list. - * Format: `projects/{@*}locations/{@*}teamFolders/*`. - * - * Generated from protobuf field string team_folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getTeamFolder() - { - return $this->team_folder; - } - - /** - * Required. Name of the team_folder whose contents to list. - * Format: `projects/{@*}locations/{@*}teamFolders/*`. - * - * Generated from protobuf field string team_folder = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setTeamFolder($var) - { - GPBUtil::checkString($var, True); - $this->team_folder = $var; - - return $this; - } - - /** - * Optional. Maximum number of paths to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate - * default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Maximum number of paths to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate - * default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * 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"` - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * 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"` - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Optional filtering for the returned list. Filtering is currently - * only supported on the `display_name` field. - * Example: - * - `filter="display_name="MyFolder""` - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Optional filtering for the returned list. Filtering is currently - * only supported on the `display_name` field. - * Example: - * - `filter="display_name="MyFolder""` - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryTeamFolderContentsResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryTeamFolderContentsResponse.php deleted file mode 100644 index c9a498313597..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryTeamFolderContentsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse - */ -class QueryTeamFolderContentsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of entries in the TeamFolder. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; - */ - private $entries; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1beta1\QueryTeamFolderContentsResponse\TeamFolderContentsEntry[] $entries - * List of entries in the TeamFolder. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * List of entries in the TeamFolder. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; - * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\QueryTeamFolderContentsResponse\TeamFolderContentsEntry> - */ - public function getEntries() - { - return $this->entries; - } - - /** - * List of entries in the TeamFolder. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry entries = 1; - * @param \Google\Cloud\Dataform\V1beta1\QueryTeamFolderContentsResponse\TeamFolderContentsEntry[] $var - * @return $this - */ - public function setEntries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\QueryTeamFolderContentsResponse\TeamFolderContentsEntry::class); - $this->entries = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryTeamFolderContentsResponse/TeamFolderContentsEntry.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryTeamFolderContentsResponse/TeamFolderContentsEntry.php deleted file mode 100644 index 06e5f5def31d..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryTeamFolderContentsResponse/TeamFolderContentsEntry.php +++ /dev/null @@ -1,108 +0,0 @@ -google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry - */ -class TeamFolderContentsEntry extends \Google\Protobuf\Internal\Message -{ - protected $entry; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1beta1\Folder $folder - * A subfolder. - * @type \Google\Cloud\Dataform\V1beta1\Repository $repository - * A repository. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * A subfolder. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Folder folder = 1; - * @return \Google\Cloud\Dataform\V1beta1\Folder|null - */ - public function getFolder() - { - return $this->readOneof(1); - } - - public function hasFolder() - { - return $this->hasOneof(1); - } - - /** - * A subfolder. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Folder folder = 1; - * @param \Google\Cloud\Dataform\V1beta1\Folder $var - * @return $this - */ - public function setFolder($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Folder::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * A repository. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository repository = 2; - * @return \Google\Cloud\Dataform\V1beta1\Repository|null - */ - public function getRepository() - { - return $this->readOneof(2); - } - - public function hasRepository() - { - return $this->hasOneof(2); - } - - /** - * A repository. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository repository = 2; - * @param \Google\Cloud\Dataform\V1beta1\Repository $var - * @return $this - */ - public function setRepository($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Repository::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getEntry() - { - return $this->whichOneof("entry"); - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryUserRootContentsRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryUserRootContentsRequest.php deleted file mode 100644 index 8b1ebee0ee27..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryUserRootContentsRequest.php +++ /dev/null @@ -1,278 +0,0 @@ -google.cloud.dataform.v1beta1.QueryUserRootContentsRequest - */ -class QueryUserRootContentsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Location of the user root folder whose contents to list. - * Format: projects/{@*}locations/* - * - * Generated from protobuf field string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $location = ''; - /** - * Optional. Maximum number of paths to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate - * default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * 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"` - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Optional filtering for the returned list. Filtering is currently - * only supported on the `display_name` field. - * Example: - * - `filter="display_name="MyFolder""` - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $location Required. Location of the user root folder whose contents to list. - * Format: projects/*/locations/* - * Please see {@see DataformClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\Dataform\V1beta1\QueryUserRootContentsRequest - * - * @experimental - */ - public static function build(string $location): self - { - return (new self()) - ->setLocation($location); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $location - * Required. Location of the user root folder whose contents to list. - * Format: projects/{@*}locations/* - * @type int $page_size - * Optional. Maximum number of paths to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate - * default. - * @type string $page_token - * 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. - * @type string $order_by - * 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"` - * @type string $filter - * Optional. Optional filtering for the returned list. Filtering is currently - * only supported on the `display_name` field. - * Example: - * - `filter="display_name="MyFolder""` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. Location of the user root folder whose contents to list. - * Format: projects/{@*}locations/* - * - * Generated from protobuf field string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * Required. Location of the user root folder whose contents to list. - * Format: projects/{@*}locations/* - * - * Generated from protobuf field string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - - /** - * Optional. Maximum number of paths to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate - * default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Maximum number of paths to return. The server may return fewer - * items than requested. If unspecified, the server will pick an appropriate - * default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * 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"` - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * 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"` - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Optional filtering for the returned list. Filtering is currently - * only supported on the `display_name` field. - * Example: - * - `filter="display_name="MyFolder""` - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Optional filtering for the returned list. Filtering is currently - * only supported on the `display_name` field. - * Example: - * - `filter="display_name="MyFolder""` - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryUserRootContentsResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryUserRootContentsResponse.php deleted file mode 100644 index 74ff65d7fefc..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryUserRootContentsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.dataform.v1beta1.QueryUserRootContentsResponse - */ -class QueryUserRootContentsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of entries in the folder. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; - */ - private $entries; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1beta1\QueryUserRootContentsResponse\RootContentsEntry[] $entries - * List of entries in the folder. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * List of entries in the folder. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; - * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\QueryUserRootContentsResponse\RootContentsEntry> - */ - public function getEntries() - { - return $this->entries; - } - - /** - * List of entries in the folder. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry entries = 1; - * @param \Google\Cloud\Dataform\V1beta1\QueryUserRootContentsResponse\RootContentsEntry[] $var - * @return $this - */ - public function setEntries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\QueryUserRootContentsResponse\RootContentsEntry::class); - $this->entries = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryUserRootContentsResponse/RootContentsEntry.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryUserRootContentsResponse/RootContentsEntry.php deleted file mode 100644 index 4db6b9e0fd01..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryUserRootContentsResponse/RootContentsEntry.php +++ /dev/null @@ -1,108 +0,0 @@ -google.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry - */ -class RootContentsEntry extends \Google\Protobuf\Internal\Message -{ - protected $entry; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1beta1\Folder $folder - * A subfolder. - * @type \Google\Cloud\Dataform\V1beta1\Repository $repository - * A repository. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * A subfolder. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Folder folder = 1; - * @return \Google\Cloud\Dataform\V1beta1\Folder|null - */ - public function getFolder() - { - return $this->readOneof(1); - } - - public function hasFolder() - { - return $this->hasOneof(1); - } - - /** - * A subfolder. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Folder folder = 1; - * @param \Google\Cloud\Dataform\V1beta1\Folder $var - * @return $this - */ - public function setFolder($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Folder::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * A repository. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository repository = 2; - * @return \Google\Cloud\Dataform\V1beta1\Repository|null - */ - public function getRepository() - { - return $this->readOneof(2); - } - - public function hasRepository() - { - return $this->hasOneof(2); - } - - /** - * A repository. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository repository = 2; - * @param \Google\Cloud\Dataform\V1beta1\Repository $var - * @return $this - */ - public function setRepository($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Repository::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getEntry() - { - return $this->whichOneof("entry"); - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryWorkflowInvocationActionsRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryWorkflowInvocationActionsRequest.php deleted file mode 100644 index 41287e25b14f..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryWorkflowInvocationActionsRequest.php +++ /dev/null @@ -1,163 +0,0 @@ -google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsRequest - */ -class QueryWorkflowInvocationActionsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workflow invocation's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * 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. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The workflow invocation's name. - * @type int $page_size - * 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. - * @type string $page_token - * 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. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workflow invocation's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The workflow invocation's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * 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. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryWorkflowInvocationActionsResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryWorkflowInvocationActionsResponse.php deleted file mode 100644 index 6860c9bb9382..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryWorkflowInvocationActionsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse - */ -class QueryWorkflowInvocationActionsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of workflow invocation actions. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.WorkflowInvocationAction workflow_invocation_actions = 1; - */ - private $workflow_invocation_actions; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction[] $workflow_invocation_actions - * List of workflow invocation actions. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * List of workflow invocation actions. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.WorkflowInvocationAction workflow_invocation_actions = 1; - * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction> - */ - public function getWorkflowInvocationActions() - { - return $this->workflow_invocation_actions; - } - - /** - * List of workflow invocation actions. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.WorkflowInvocationAction workflow_invocation_actions = 1; - * @param \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction[] $var - * @return $this - */ - public function setWorkflowInvocationActions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction::class); - $this->workflow_invocation_actions = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReadFileRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReadFileRequest.php deleted file mode 100644 index f805ae6fffca..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReadFileRequest.php +++ /dev/null @@ -1,143 +0,0 @@ -google.cloud.dataform.v1beta1.ReadFileRequest - */ -class ReadFileRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $workspace = ''; - /** - * Required. The file's full path including filename, relative to the - * workspace root. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $path = ''; - /** - * Optional. The Git revision of the file to return. If left empty, the - * current contents of `path` will be returned. - * - * Generated from protobuf field string revision = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $revision = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $workspace - * Required. The workspace's name. - * @type string $path - * Required. The file's full path including filename, relative to the - * workspace root. - * @type string $revision - * Optional. The Git revision of the file to return. If left empty, the - * current contents of `path` will be returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getWorkspace() - { - return $this->workspace; - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setWorkspace($var) - { - GPBUtil::checkString($var, True); - $this->workspace = $var; - - return $this; - } - - /** - * Required. The file's full path including filename, relative to the - * workspace root. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * Required. The file's full path including filename, relative to the - * workspace root. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - - /** - * Optional. The Git revision of the file to return. If left empty, the - * current contents of `path` will be returned. - * - * Generated from protobuf field string revision = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRevision() - { - return $this->revision; - } - - /** - * Optional. The Git revision of the file to return. If left empty, the - * current contents of `path` will be returned. - * - * Generated from protobuf field string revision = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRevision($var) - { - GPBUtil::checkString($var, True); - $this->revision = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReadFileResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReadFileResponse.php deleted file mode 100644 index 5d9a497da9d7..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReadFileResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.dataform.v1beta1.ReadFileResponse - */ -class ReadFileResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The file's contents. - * - * Generated from protobuf field bytes file_contents = 1; - */ - protected $file_contents = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $file_contents - * The file's contents. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * The file's contents. - * - * Generated from protobuf field bytes file_contents = 1; - * @return string - */ - public function getFileContents() - { - return $this->file_contents; - } - - /** - * The file's contents. - * - * Generated from protobuf field bytes file_contents = 1; - * @param string $var - * @return $this - */ - public function setFileContents($var) - { - GPBUtil::checkString($var, False); - $this->file_contents = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReadRepositoryFileRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReadRepositoryFileRequest.php deleted file mode 100644 index 5d0e0f1c67eb..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReadRepositoryFileRequest.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.dataform.v1beta1.ReadRepositoryFileRequest - */ -class ReadRepositoryFileRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. The commit SHA for the commit to read from. If unset, the file - * will be read from HEAD. - * - * Generated from protobuf field string commit_sha = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $commit_sha = ''; - /** - * Required. Full file path to read including filename, from repository root. - * - * Generated from protobuf field string path = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $path = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The repository's name. - * @type string $commit_sha - * Optional. The commit SHA for the commit to read from. If unset, the file - * will be read from HEAD. - * @type string $path - * Required. Full file path to read including filename, from repository root. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. The commit SHA for the commit to read from. If unset, the file - * will be read from HEAD. - * - * Generated from protobuf field string commit_sha = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getCommitSha() - { - return $this->commit_sha; - } - - /** - * Optional. The commit SHA for the commit to read from. If unset, the file - * will be read from HEAD. - * - * Generated from protobuf field string commit_sha = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setCommitSha($var) - { - GPBUtil::checkString($var, True); - $this->commit_sha = $var; - - return $this; - } - - /** - * Required. Full file path to read including filename, from repository root. - * - * Generated from protobuf field string path = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * Required. Full file path to read including filename, from repository root. - * - * Generated from protobuf field string path = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReadRepositoryFileResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReadRepositoryFileResponse.php deleted file mode 100644 index 29c7a6ac2085..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReadRepositoryFileResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.dataform.v1beta1.ReadRepositoryFileResponse - */ -class ReadRepositoryFileResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The file's contents. - * - * Generated from protobuf field bytes contents = 1; - */ - protected $contents = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $contents - * The file's contents. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * The file's contents. - * - * Generated from protobuf field bytes contents = 1; - * @return string - */ - public function getContents() - { - return $this->contents; - } - - /** - * The file's contents. - * - * Generated from protobuf field bytes contents = 1; - * @param string $var - * @return $this - */ - public function setContents($var) - { - GPBUtil::checkString($var, False); - $this->contents = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RelationDescriptor.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RelationDescriptor.php deleted file mode 100644 index aad0db0d7d96..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RelationDescriptor.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.dataform.v1beta1.RelationDescriptor - */ -class RelationDescriptor extends \Google\Protobuf\Internal\Message -{ - /** - * A text description of the relation. - * - * Generated from protobuf field string description = 1; - */ - protected $description = ''; - /** - * A list of descriptions of columns within the relation. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor columns = 2; - */ - private $columns; - /** - * A set of BigQuery labels that should be applied to the relation. - * - * Generated from protobuf field map bigquery_labels = 3; - */ - private $bigquery_labels; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $description - * A text description of the relation. - * @type \Google\Cloud\Dataform\V1beta1\RelationDescriptor\ColumnDescriptor[] $columns - * A list of descriptions of columns within the relation. - * @type array|\Google\Protobuf\Internal\MapField $bigquery_labels - * A set of BigQuery labels that should be applied to the relation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * A text description of the relation. - * - * Generated from protobuf field string description = 1; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * A text description of the relation. - * - * Generated from protobuf field string description = 1; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * A list of descriptions of columns within the relation. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor columns = 2; - * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\RelationDescriptor\ColumnDescriptor> - */ - public function getColumns() - { - return $this->columns; - } - - /** - * A list of descriptions of columns within the relation. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor columns = 2; - * @param \Google\Cloud\Dataform\V1beta1\RelationDescriptor\ColumnDescriptor[] $var - * @return $this - */ - public function setColumns($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\RelationDescriptor\ColumnDescriptor::class); - $this->columns = $arr; - - return $this; - } - - /** - * A set of BigQuery labels that should be applied to the relation. - * - * Generated from protobuf field map bigquery_labels = 3; - * @return \Google\Protobuf\Internal\MapField - */ - public function getBigqueryLabels() - { - return $this->bigquery_labels; - } - - /** - * A set of BigQuery labels that should be applied to the relation. - * - * Generated from protobuf field map bigquery_labels = 3; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setBigqueryLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->bigquery_labels = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RelationDescriptor/ColumnDescriptor.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RelationDescriptor/ColumnDescriptor.php deleted file mode 100644 index 1daa6b6cc441..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RelationDescriptor/ColumnDescriptor.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor - */ -class ColumnDescriptor extends \Google\Protobuf\Internal\Message -{ - /** - * The identifier for the column. Each entry in `path` represents one level - * of nesting. - * - * Generated from protobuf field repeated string path = 1; - */ - private $path; - /** - * A textual description of the column. - * - * Generated from protobuf field string description = 2; - */ - protected $description = ''; - /** - * A list of BigQuery policy tags that will be applied to the column. - * - * Generated from protobuf field repeated string bigquery_policy_tags = 3; - */ - private $bigquery_policy_tags; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string[] $path - * The identifier for the column. Each entry in `path` represents one level - * of nesting. - * @type string $description - * A textual description of the column. - * @type string[] $bigquery_policy_tags - * A list of BigQuery policy tags that will be applied to the column. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * The identifier for the column. Each entry in `path` represents one level - * of nesting. - * - * Generated from protobuf field repeated string path = 1; - * @return RepeatedField - */ - public function getPath() - { - return $this->path; - } - - /** - * The identifier for the column. Each entry in `path` represents one level - * of nesting. - * - * Generated from protobuf field repeated string path = 1; - * @param string[] $var - * @return $this - */ - public function setPath($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->path = $arr; - - return $this; - } - - /** - * A textual description of the column. - * - * Generated from protobuf field string description = 2; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * A textual description of the column. - * - * Generated from protobuf field string description = 2; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * A list of BigQuery policy tags that will be applied to the column. - * - * Generated from protobuf field repeated string bigquery_policy_tags = 3; - * @return RepeatedField - */ - public function getBigqueryPolicyTags() - { - return $this->bigquery_policy_tags; - } - - /** - * A list of BigQuery policy tags that will be applied to the column. - * - * Generated from protobuf field repeated string bigquery_policy_tags = 3; - * @param string[] $var - * @return $this - */ - public function setBigqueryPolicyTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->bigquery_policy_tags = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReleaseConfig.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReleaseConfig.php deleted file mode 100644 index 27363ff9c9d7..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReleaseConfig.php +++ /dev/null @@ -1,435 +0,0 @@ -google.cloud.dataform.v1beta1.ReleaseConfig - */ -class ReleaseConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The release config's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * 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` - * - * Generated from protobuf field string git_commitish = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $git_commitish = ''; - /** - * Optional. If set, fields of `code_compilation_config` override the default - * compilation settings that are specified in dataform.json. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CodeCompilationConfig code_compilation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $code_compilation_config = null; - /** - * Optional. Optional schedule (in cron format) for automatic creation of - * compilation results. - * - * Generated from protobuf field string cron_schedule = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $cron_schedule = ''; - /** - * 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. - * - * Generated from protobuf field string time_zone = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $time_zone = ''; - /** - * 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. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord recent_scheduled_release_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $recent_scheduled_release_records; - /** - * 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/*`. - * - * Generated from protobuf field string release_compilation_result = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $release_compilation_result = ''; - /** - * Optional. Disables automatic creation of compilation results. - * - * Generated from protobuf field bool disabled = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $disabled = false; - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $internal_metadata = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The release config's name. - * @type string $git_commitish - * 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` - * @type \Google\Cloud\Dataform\V1beta1\CodeCompilationConfig $code_compilation_config - * Optional. If set, fields of `code_compilation_config` override the default - * compilation settings that are specified in dataform.json. - * @type string $cron_schedule - * Optional. Optional schedule (in cron format) for automatic creation of - * compilation results. - * @type string $time_zone - * 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. - * @type \Google\Cloud\Dataform\V1beta1\ReleaseConfig\ScheduledReleaseRecord[] $recent_scheduled_release_records - * 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. - * @type string $release_compilation_result - * 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/*`. - * @type bool $disabled - * Optional. Disables automatic creation of compilation results. - * @type string $internal_metadata - * 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. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The release config's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The release config's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * 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` - * - * Generated from protobuf field string git_commitish = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getGitCommitish() - { - return $this->git_commitish; - } - - /** - * 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` - * - * Generated from protobuf field string git_commitish = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setGitCommitish($var) - { - GPBUtil::checkString($var, True); - $this->git_commitish = $var; - - return $this; - } - - /** - * Optional. If set, fields of `code_compilation_config` override the default - * compilation settings that are specified in dataform.json. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CodeCompilationConfig code_compilation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataform\V1beta1\CodeCompilationConfig|null - */ - public function getCodeCompilationConfig() - { - return $this->code_compilation_config; - } - - public function hasCodeCompilationConfig() - { - return isset($this->code_compilation_config); - } - - public function clearCodeCompilationConfig() - { - unset($this->code_compilation_config); - } - - /** - * Optional. If set, fields of `code_compilation_config` override the default - * compilation settings that are specified in dataform.json. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.CodeCompilationConfig code_compilation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataform\V1beta1\CodeCompilationConfig $var - * @return $this - */ - public function setCodeCompilationConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\CodeCompilationConfig::class); - $this->code_compilation_config = $var; - - return $this; - } - - /** - * Optional. Optional schedule (in cron format) for automatic creation of - * compilation results. - * - * Generated from protobuf field string cron_schedule = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getCronSchedule() - { - return $this->cron_schedule; - } - - /** - * Optional. Optional schedule (in cron format) for automatic creation of - * compilation results. - * - * Generated from protobuf field string cron_schedule = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setCronSchedule($var) - { - GPBUtil::checkString($var, True); - $this->cron_schedule = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string time_zone = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getTimeZone() - { - return $this->time_zone; - } - - /** - * 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. - * - * Generated from protobuf field string time_zone = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setTimeZone($var) - { - GPBUtil::checkString($var, True); - $this->time_zone = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord recent_scheduled_release_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\ReleaseConfig\ScheduledReleaseRecord> - */ - public function getRecentScheduledReleaseRecords() - { - return $this->recent_scheduled_release_records; - } - - /** - * 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. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord recent_scheduled_release_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataform\V1beta1\ReleaseConfig\ScheduledReleaseRecord[] $var - * @return $this - */ - public function setRecentScheduledReleaseRecords($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\ReleaseConfig\ScheduledReleaseRecord::class); - $this->recent_scheduled_release_records = $arr; - - return $this; - } - - /** - * 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/*`. - * - * Generated from protobuf field string release_compilation_result = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getReleaseCompilationResult() - { - return $this->release_compilation_result; - } - - /** - * 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/*`. - * - * Generated from protobuf field string release_compilation_result = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setReleaseCompilationResult($var) - { - GPBUtil::checkString($var, True); - $this->release_compilation_result = $var; - - return $this; - } - - /** - * Optional. Disables automatic creation of compilation results. - * - * Generated from protobuf field bool disabled = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getDisabled() - { - return $this->disabled; - } - - /** - * Optional. Disables automatic creation of compilation results. - * - * Generated from protobuf field bool disabled = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setDisabled($var) - { - GPBUtil::checkBool($var); - $this->disabled = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getInternalMetadata() - { - return isset($this->internal_metadata) ? $this->internal_metadata : ''; - } - - public function hasInternalMetadata() - { - return isset($this->internal_metadata); - } - - public function clearInternalMetadata() - { - unset($this->internal_metadata); - } - - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setInternalMetadata($var) - { - GPBUtil::checkString($var, True); - $this->internal_metadata = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReleaseConfig/ScheduledReleaseRecord.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReleaseConfig/ScheduledReleaseRecord.php deleted file mode 100644 index d227af342ba8..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReleaseConfig/ScheduledReleaseRecord.php +++ /dev/null @@ -1,162 +0,0 @@ -google.cloud.dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecord - */ -class ScheduledReleaseRecord extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The timestamp of this release attempt. - * - * Generated from protobuf field .google.protobuf.Timestamp release_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $release_time = null; - protected $result; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $compilation_result - * The name of the created compilation result, if one was successfully - * created. Must be in the format - * `projects/{@*}locations/{@*}repositories/{@*}compilationResults/*`. - * @type \Google\Rpc\Status $error_status - * The error status encountered upon this attempt to create the - * compilation result, if the attempt was unsuccessful. - * @type \Google\Protobuf\Timestamp $release_time - * Output only. The timestamp of this release attempt. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * The name of the created compilation result, if one was successfully - * created. Must be in the format - * `projects/{@*}locations/{@*}repositories/{@*}compilationResults/*`. - * - * Generated from protobuf field string compilation_result = 2 [(.google.api.resource_reference) = { - * @return string - */ - public function getCompilationResult() - { - return $this->readOneof(2); - } - - public function hasCompilationResult() - { - return $this->hasOneof(2); - } - - /** - * The name of the created compilation result, if one was successfully - * created. Must be in the format - * `projects/{@*}locations/{@*}repositories/{@*}compilationResults/*`. - * - * Generated from protobuf field string compilation_result = 2 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setCompilationResult($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The error status encountered upon this attempt to create the - * compilation result, if the attempt was unsuccessful. - * - * Generated from protobuf field .google.rpc.Status error_status = 3; - * @return \Google\Rpc\Status|null - */ - public function getErrorStatus() - { - return $this->readOneof(3); - } - - public function hasErrorStatus() - { - return $this->hasOneof(3); - } - - /** - * The error status encountered upon this attempt to create the - * compilation result, if the attempt was unsuccessful. - * - * Generated from protobuf field .google.rpc.Status error_status = 3; - * @param \Google\Rpc\Status $var - * @return $this - */ - public function setErrorStatus($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Status::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Output only. The timestamp of this release attempt. - * - * Generated from protobuf field .google.protobuf.Timestamp release_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getReleaseTime() - { - return $this->release_time; - } - - public function hasReleaseTime() - { - return isset($this->release_time); - } - - public function clearReleaseTime() - { - unset($this->release_time); - } - - /** - * Output only. The timestamp of this release attempt. - * - * Generated from protobuf field .google.protobuf.Timestamp release_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setReleaseTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->release_time = $var; - - return $this; - } - - /** - * @return string - */ - public function getResult() - { - return $this->whichOneof("result"); - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RemoveDirectoryRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RemoveDirectoryRequest.php deleted file mode 100644 index 0c67b74a5b2f..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RemoveDirectoryRequest.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.dataform.v1beta1.RemoveDirectoryRequest - */ -class RemoveDirectoryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $workspace = ''; - /** - * Required. The directory's full path including directory name, relative to - * the workspace root. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $path = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $workspace - * Required. The workspace's name. - * @type string $path - * Required. The directory's full path including directory name, relative to - * the workspace root. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getWorkspace() - { - return $this->workspace; - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setWorkspace($var) - { - GPBUtil::checkString($var, True); - $this->workspace = $var; - - return $this; - } - - /** - * Required. The directory's full path including directory name, relative to - * the workspace root. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * Required. The directory's full path including directory name, relative to - * the workspace root. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RemoveDirectoryResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RemoveDirectoryResponse.php deleted file mode 100644 index 3d61e21a932c..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RemoveDirectoryResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.dataform.v1beta1.RemoveDirectoryResponse - */ -class RemoveDirectoryResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RemoveFileRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RemoveFileRequest.php deleted file mode 100644 index d541ca32807f..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RemoveFileRequest.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.dataform.v1beta1.RemoveFileRequest - */ -class RemoveFileRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $workspace = ''; - /** - * Required. The file's full path including filename, relative to the - * workspace root. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $path = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $workspace - * Required. The workspace's name. - * @type string $path - * Required. The file's full path including filename, relative to the - * workspace root. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getWorkspace() - { - return $this->workspace; - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setWorkspace($var) - { - GPBUtil::checkString($var, True); - $this->workspace = $var; - - return $this; - } - - /** - * Required. The file's full path including filename, relative to the - * workspace root. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * Required. The file's full path including filename, relative to the - * workspace root. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RemoveFileResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RemoveFileResponse.php deleted file mode 100644 index ada500e59942..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RemoveFileResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.dataform.v1beta1.RemoveFileResponse - */ -class RemoveFileResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository.php deleted file mode 100644 index 705bd4850627..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository.php +++ /dev/null @@ -1,671 +0,0 @@ -google.cloud.dataform.v1beta1.Repository - */ -class Repository extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * 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/*`. - * - * Generated from protobuf field optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $containing_folder = null; - /** - * 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. - * - * Generated from protobuf field optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $team_folder_name = null; - /** - * Output only. The timestamp of when the repository was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Optional. The repository's user-friendly name. - * - * Generated from protobuf field string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Optional. If set, configures this repository to be linked to a Git remote. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $git_remote_settings = null; - /** - * 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. - * - * Generated from protobuf field string npmrc_environment_variables_secret_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $npmrc_environment_variables_secret_version = ''; - /** - * 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. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides workspace_compilation_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $workspace_compilation_overrides = null; - /** - * Optional. Repository user labels. - * - * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Optional. Input only. If set to true, the authenticated user will be - * granted the roles/dataform.admin role on the created repository. To modify - * access to the created repository later apply setIamPolicy from - * https://cloud.google.com/dataform/reference/rest#rest-resource:-v1beta1.projects.locations.repositories - * - * Generated from protobuf field bool set_authenticated_user_admin = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $set_authenticated_user_admin = false; - /** - * Optional. The service account to run workflow invocations under. - * - * Generated from protobuf field string service_account = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $service_account = ''; - /** - * 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}` - * - * Generated from protobuf field string kms_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $kms_key_name = ''; - /** - * Output only. A data encryption state of a Git repository if this Repository - * is protected by a KMS key. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.DataEncryptionState data_encryption_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $data_encryption_state = null; - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $internal_metadata = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The repository's name. - * @type string $containing_folder - * 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/*`. - * @type string $team_folder_name - * 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. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The timestamp of when the repository was created. - * @type string $display_name - * Optional. The repository's user-friendly name. - * @type \Google\Cloud\Dataform\V1beta1\Repository\GitRemoteSettings $git_remote_settings - * Optional. If set, configures this repository to be linked to a Git remote. - * @type string $npmrc_environment_variables_secret_version - * 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. - * @type \Google\Cloud\Dataform\V1beta1\Repository\WorkspaceCompilationOverrides $workspace_compilation_overrides - * 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. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. Repository user labels. - * @type bool $set_authenticated_user_admin - * Optional. Input only. If set to true, the authenticated user will be - * granted the roles/dataform.admin role on the created repository. To modify - * access to the created repository later apply setIamPolicy from - * https://cloud.google.com/dataform/reference/rest#rest-resource:-v1beta1.projects.locations.repositories - * @type string $service_account - * Optional. The service account to run workflow invocations under. - * @type string $kms_key_name - * 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}` - * @type \Google\Cloud\Dataform\V1beta1\DataEncryptionState $data_encryption_state - * Output only. A data encryption state of a Git repository if this Repository - * is protected by a KMS key. - * @type string $internal_metadata - * 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. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The repository's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * 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/*`. - * - * Generated from protobuf field optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getContainingFolder() - { - return isset($this->containing_folder) ? $this->containing_folder : ''; - } - - public function hasContainingFolder() - { - return isset($this->containing_folder); - } - - public function clearContainingFolder() - { - unset($this->containing_folder); - } - - /** - * 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/*`. - * - * Generated from protobuf field optional string containing_folder = 16 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setContainingFolder($var) - { - GPBUtil::checkString($var, True); - $this->containing_folder = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getTeamFolderName() - { - return isset($this->team_folder_name) ? $this->team_folder_name : ''; - } - - public function hasTeamFolderName() - { - return isset($this->team_folder_name); - } - - public function clearTeamFolderName() - { - unset($this->team_folder_name); - } - - /** - * 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. - * - * Generated from protobuf field optional string team_folder_name = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setTeamFolderName($var) - { - GPBUtil::checkString($var, True); - $this->team_folder_name = $var; - - return $this; - } - - /** - * Output only. The timestamp of when the repository was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The timestamp of when the repository was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Optional. The repository's user-friendly name. - * - * Generated from protobuf field string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. The repository's user-friendly name. - * - * Generated from protobuf field string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. If set, configures this repository to be linked to a Git remote. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataform\V1beta1\Repository\GitRemoteSettings|null - */ - public function getGitRemoteSettings() - { - return $this->git_remote_settings; - } - - public function hasGitRemoteSettings() - { - return isset($this->git_remote_settings); - } - - public function clearGitRemoteSettings() - { - unset($this->git_remote_settings); - } - - /** - * Optional. If set, configures this repository to be linked to a Git remote. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings git_remote_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataform\V1beta1\Repository\GitRemoteSettings $var - * @return $this - */ - public function setGitRemoteSettings($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Repository\GitRemoteSettings::class); - $this->git_remote_settings = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string npmrc_environment_variables_secret_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getNpmrcEnvironmentVariablesSecretVersion() - { - return $this->npmrc_environment_variables_secret_version; - } - - /** - * 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. - * - * Generated from protobuf field string npmrc_environment_variables_secret_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setNpmrcEnvironmentVariablesSecretVersion($var) - { - GPBUtil::checkString($var, True); - $this->npmrc_environment_variables_secret_version = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides workspace_compilation_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataform\V1beta1\Repository\WorkspaceCompilationOverrides|null - */ - public function getWorkspaceCompilationOverrides() - { - return $this->workspace_compilation_overrides; - } - - public function hasWorkspaceCompilationOverrides() - { - return isset($this->workspace_compilation_overrides); - } - - public function clearWorkspaceCompilationOverrides() - { - unset($this->workspace_compilation_overrides); - } - - /** - * 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. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides workspace_compilation_overrides = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataform\V1beta1\Repository\WorkspaceCompilationOverrides $var - * @return $this - */ - public function setWorkspaceCompilationOverrides($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Repository\WorkspaceCompilationOverrides::class); - $this->workspace_compilation_overrides = $var; - - return $this; - } - - /** - * Optional. Repository user labels. - * - * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. Repository user labels. - * - * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Optional. Input only. If set to true, the authenticated user will be - * granted the roles/dataform.admin role on the created repository. To modify - * access to the created repository later apply setIamPolicy from - * https://cloud.google.com/dataform/reference/rest#rest-resource:-v1beta1.projects.locations.repositories - * - * Generated from protobuf field bool set_authenticated_user_admin = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; - * @return bool - */ - public function getSetAuthenticatedUserAdmin() - { - return $this->set_authenticated_user_admin; - } - - /** - * Optional. Input only. If set to true, the authenticated user will be - * granted the roles/dataform.admin role on the created repository. To modify - * access to the created repository later apply setIamPolicy from - * https://cloud.google.com/dataform/reference/rest#rest-resource:-v1beta1.projects.locations.repositories - * - * Generated from protobuf field bool set_authenticated_user_admin = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setSetAuthenticatedUserAdmin($var) - { - GPBUtil::checkBool($var); - $this->set_authenticated_user_admin = $var; - - return $this; - } - - /** - * Optional. The service account to run workflow invocations under. - * - * Generated from protobuf field string service_account = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getServiceAccount() - { - return $this->service_account; - } - - /** - * Optional. The service account to run workflow invocations under. - * - * Generated from protobuf field string service_account = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setServiceAccount($var) - { - GPBUtil::checkString($var, True); - $this->service_account = $var; - - return $this; - } - - /** - * 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}` - * - * Generated from protobuf field string kms_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getKmsKeyName() - { - return $this->kms_key_name; - } - - /** - * 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}` - * - * Generated from protobuf field string kms_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setKmsKeyName($var) - { - GPBUtil::checkString($var, True); - $this->kms_key_name = $var; - - return $this; - } - - /** - * Output only. A data encryption state of a Git repository if this Repository - * is protected by a KMS key. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.DataEncryptionState data_encryption_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataform\V1beta1\DataEncryptionState|null - */ - public function getDataEncryptionState() - { - return $this->data_encryption_state; - } - - public function hasDataEncryptionState() - { - return isset($this->data_encryption_state); - } - - public function clearDataEncryptionState() - { - unset($this->data_encryption_state); - } - - /** - * Output only. A data encryption state of a Git repository if this Repository - * is protected by a KMS key. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.DataEncryptionState data_encryption_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataform\V1beta1\DataEncryptionState $var - * @return $this - */ - public function setDataEncryptionState($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\DataEncryptionState::class); - $this->data_encryption_state = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getInternalMetadata() - { - return isset($this->internal_metadata) ? $this->internal_metadata : ''; - } - - public function hasInternalMetadata() - { - return isset($this->internal_metadata); - } - - public function clearInternalMetadata() - { - unset($this->internal_metadata); - } - - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setInternalMetadata($var) - { - GPBUtil::checkString($var, True); - $this->internal_metadata = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository/GitRemoteSettings.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository/GitRemoteSettings.php deleted file mode 100644 index e47d5d4c388c..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository/GitRemoteSettings.php +++ /dev/null @@ -1,236 +0,0 @@ -google.cloud.dataform.v1beta1.Repository.GitRemoteSettings - */ -class GitRemoteSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The Git remote's URL. - * - * Generated from protobuf field string url = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $url = ''; - /** - * Required. The Git remote's default branch name. - * - * Generated from protobuf field string default_branch = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $default_branch = ''; - /** - * 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/*`. - * - * Generated from protobuf field string authentication_token_secret_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $authentication_token_secret_version = ''; - /** - * Optional. Authentication fields for remote uris using SSH protocol. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig ssh_authentication_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $ssh_authentication_config = null; - /** - * Output only. Deprecated: The field does not contain any token status - * information. Instead use - * https://cloud.google.com/dataform/reference/rest/v1beta1/projects.locations.repositories/computeAccessTokenStatus - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @deprecated - */ - protected $token_status = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $url - * Required. The Git remote's URL. - * @type string $default_branch - * Required. The Git remote's default branch name. - * @type string $authentication_token_secret_version - * 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/*`. - * @type \Google\Cloud\Dataform\V1beta1\Repository\GitRemoteSettings\SshAuthenticationConfig $ssh_authentication_config - * Optional. Authentication fields for remote uris using SSH protocol. - * @type int $token_status - * Output only. Deprecated: The field does not contain any token status - * information. Instead use - * https://cloud.google.com/dataform/reference/rest/v1beta1/projects.locations.repositories/computeAccessTokenStatus - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Git remote's URL. - * - * Generated from protobuf field string url = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getUrl() - { - return $this->url; - } - - /** - * Required. The Git remote's URL. - * - * Generated from protobuf field string url = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setUrl($var) - { - GPBUtil::checkString($var, True); - $this->url = $var; - - return $this; - } - - /** - * Required. The Git remote's default branch name. - * - * Generated from protobuf field string default_branch = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDefaultBranch() - { - return $this->default_branch; - } - - /** - * Required. The Git remote's default branch name. - * - * Generated from protobuf field string default_branch = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDefaultBranch($var) - { - GPBUtil::checkString($var, True); - $this->default_branch = $var; - - return $this; - } - - /** - * 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/*`. - * - * Generated from protobuf field string authentication_token_secret_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getAuthenticationTokenSecretVersion() - { - return $this->authentication_token_secret_version; - } - - /** - * 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/*`. - * - * Generated from protobuf field string authentication_token_secret_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setAuthenticationTokenSecretVersion($var) - { - GPBUtil::checkString($var, True); - $this->authentication_token_secret_version = $var; - - return $this; - } - - /** - * Optional. Authentication fields for remote uris using SSH protocol. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig ssh_authentication_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataform\V1beta1\Repository\GitRemoteSettings\SshAuthenticationConfig|null - */ - public function getSshAuthenticationConfig() - { - return $this->ssh_authentication_config; - } - - public function hasSshAuthenticationConfig() - { - return isset($this->ssh_authentication_config); - } - - public function clearSshAuthenticationConfig() - { - unset($this->ssh_authentication_config); - } - - /** - * Optional. Authentication fields for remote uris using SSH protocol. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig ssh_authentication_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataform\V1beta1\Repository\GitRemoteSettings\SshAuthenticationConfig $var - * @return $this - */ - public function setSshAuthenticationConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Repository\GitRemoteSettings\SshAuthenticationConfig::class); - $this->ssh_authentication_config = $var; - - return $this; - } - - /** - * Output only. Deprecated: The field does not contain any token status - * information. Instead use - * https://cloud.google.com/dataform/reference/rest/v1beta1/projects.locations.repositories/computeAccessTokenStatus - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - * @deprecated - */ - public function getTokenStatus() - { - if ($this->token_status !== 0) { - @trigger_error('token_status is deprecated.', E_USER_DEPRECATED); - } - return $this->token_status; - } - - /** - * Output only. Deprecated: The field does not contain any token status - * information. Instead use - * https://cloud.google.com/dataform/reference/rest/v1beta1/projects.locations.repositories/computeAccessTokenStatus - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus token_status = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - * @deprecated - */ - public function setTokenStatus($var) - { - @trigger_error('token_status is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1beta1\Repository\GitRemoteSettings\TokenStatus::class); - $this->token_status = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository/GitRemoteSettings/SshAuthenticationConfig.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository/GitRemoteSettings/SshAuthenticationConfig.php deleted file mode 100644 index a04eb8e70168..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository/GitRemoteSettings/SshAuthenticationConfig.php +++ /dev/null @@ -1,113 +0,0 @@ -google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig - */ -class SshAuthenticationConfig extends \Google\Protobuf\Internal\Message -{ - /** - * 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/*`. - * - * Generated from protobuf field string user_private_key_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $user_private_key_secret_version = ''; - /** - * Required. Content of a public SSH key to verify an identity of a remote - * Git host. - * - * Generated from protobuf field string host_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $host_public_key = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $user_private_key_secret_version - * 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/*`. - * @type string $host_public_key - * Required. Content of a public SSH key to verify an identity of a remote - * Git host. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * 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/*`. - * - * Generated from protobuf field string user_private_key_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getUserPrivateKeySecretVersion() - { - return $this->user_private_key_secret_version; - } - - /** - * 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/*`. - * - * Generated from protobuf field string user_private_key_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setUserPrivateKeySecretVersion($var) - { - GPBUtil::checkString($var, True); - $this->user_private_key_secret_version = $var; - - return $this; - } - - /** - * Required. Content of a public SSH key to verify an identity of a remote - * Git host. - * - * Generated from protobuf field string host_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getHostPublicKey() - { - return $this->host_public_key; - } - - /** - * Required. Content of a public SSH key to verify an identity of a remote - * Git host. - * - * Generated from protobuf field string host_public_key = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setHostPublicKey($var) - { - GPBUtil::checkString($var, True); - $this->host_public_key = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository/GitRemoteSettings/TokenStatus.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository/GitRemoteSettings/TokenStatus.php deleted file mode 100644 index 9987a78b4f14..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository/GitRemoteSettings/TokenStatus.php +++ /dev/null @@ -1,69 +0,0 @@ -google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatus - */ -class TokenStatus -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum TOKEN_STATUS_UNSPECIFIED = 0; - */ - const 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). - * - * Generated from protobuf enum NOT_FOUND = 1; - */ - const NOT_FOUND = 1; - /** - * The token could not be used to authenticate against the Git remote. - * - * Generated from protobuf enum INVALID = 2; - */ - const INVALID = 2; - /** - * The token was used successfully to authenticate against the Git remote. - * - * Generated from protobuf enum VALID = 3; - */ - const VALID = 3; - - private static $valueToName = [ - self::TOKEN_STATUS_UNSPECIFIED => 'TOKEN_STATUS_UNSPECIFIED', - self::NOT_FOUND => 'NOT_FOUND', - self::INVALID => 'INVALID', - self::VALID => 'VALID', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository/WorkspaceCompilationOverrides.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository/WorkspaceCompilationOverrides.php deleted file mode 100644 index 385d8775b7ad..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository/WorkspaceCompilationOverrides.php +++ /dev/null @@ -1,146 +0,0 @@ -google.cloud.dataform.v1beta1.Repository.WorkspaceCompilationOverrides - */ -class WorkspaceCompilationOverrides extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The default database (Google Cloud project ID). - * - * Generated from protobuf field string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $default_database = ''; - /** - * Optional. The suffix that should be appended to all schema (BigQuery - * dataset ID) names. - * - * Generated from protobuf field string schema_suffix = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $schema_suffix = ''; - /** - * Optional. The prefix that should be prepended to all table names. - * - * Generated from protobuf field string table_prefix = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $table_prefix = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $default_database - * Optional. The default database (Google Cloud project ID). - * @type string $schema_suffix - * Optional. The suffix that should be appended to all schema (BigQuery - * dataset ID) names. - * @type string $table_prefix - * Optional. The prefix that should be prepended to all table names. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The default database (Google Cloud project ID). - * - * Generated from protobuf field string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDefaultDatabase() - { - return $this->default_database; - } - - /** - * Optional. The default database (Google Cloud project ID). - * - * Generated from protobuf field string default_database = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDefaultDatabase($var) - { - GPBUtil::checkString($var, True); - $this->default_database = $var; - - return $this; - } - - /** - * Optional. The suffix that should be appended to all schema (BigQuery - * dataset ID) names. - * - * Generated from protobuf field string schema_suffix = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getSchemaSuffix() - { - return $this->schema_suffix; - } - - /** - * Optional. The suffix that should be appended to all schema (BigQuery - * dataset ID) names. - * - * Generated from protobuf field string schema_suffix = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setSchemaSuffix($var) - { - GPBUtil::checkString($var, True); - $this->schema_suffix = $var; - - return $this; - } - - /** - * Optional. The prefix that should be prepended to all table names. - * - * Generated from protobuf field string table_prefix = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getTablePrefix() - { - return $this->table_prefix; - } - - /** - * Optional. The prefix that should be prepended to all table names. - * - * Generated from protobuf field string table_prefix = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setTablePrefix($var) - { - GPBUtil::checkString($var, True); - $this->table_prefix = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ResetWorkspaceChangesRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ResetWorkspaceChangesRequest.php deleted file mode 100644 index d3a46664e499..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ResetWorkspaceChangesRequest.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.dataform.v1beta1.ResetWorkspaceChangesRequest - */ -class ResetWorkspaceChangesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * 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. - * - * Generated from protobuf field repeated string paths = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $paths; - /** - * Optional. If set to true, untracked files will be deleted. - * - * Generated from protobuf field bool clean = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $clean = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The workspace's name. - * @type string[] $paths - * 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. - * @type bool $clean - * Optional. If set to true, untracked files will be deleted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field repeated string paths = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getPaths() - { - return $this->paths; - } - - /** - * 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. - * - * Generated from protobuf field repeated string paths = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setPaths($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->paths = $arr; - - return $this; - } - - /** - * Optional. If set to true, untracked files will be deleted. - * - * Generated from protobuf field bool clean = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getClean() - { - return $this->clean; - } - - /** - * Optional. If set to true, untracked files will be deleted. - * - * Generated from protobuf field bool clean = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setClean($var) - { - GPBUtil::checkBool($var); - $this->clean = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ResetWorkspaceChangesResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ResetWorkspaceChangesResponse.php deleted file mode 100644 index a64db49cbf2d..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ResetWorkspaceChangesResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.dataform.v1beta1.ResetWorkspaceChangesResponse - */ -class ResetWorkspaceChangesResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchFilesRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchFilesRequest.php deleted file mode 100644 index 4543da4ad0b1..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchFilesRequest.php +++ /dev/null @@ -1,201 +0,0 @@ -google.cloud.dataform.v1beta1.SearchFilesRequest - */ -class SearchFilesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $workspace = ''; - /** - * 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. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * 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. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $workspace - * Required. The workspace's name. - * @type int $page_size - * 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. - * @type string $page_token - * 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. - * @type string $filter - * 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. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getWorkspace() - { - return $this->workspace; - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setWorkspace($var) - { - GPBUtil::checkString($var, True); - $this->workspace = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * 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. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * 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. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchFilesResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchFilesResponse.php deleted file mode 100644 index ebad5d33cb69..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchFilesResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.dataform.v1beta1.SearchFilesResponse - */ -class SearchFilesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of matched results. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.SearchResult search_results = 1; - */ - private $search_results; - /** - * 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. - * - * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1beta1\SearchResult[] $search_results - * List of matched results. - * @type string $next_page_token - * 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. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * List of matched results. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.SearchResult search_results = 1; - * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\SearchResult> - */ - public function getSearchResults() - { - return $this->search_results; - } - - /** - * List of matched results. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.SearchResult search_results = 1; - * @param \Google\Cloud\Dataform\V1beta1\SearchResult[] $var - * @return $this - */ - public function setSearchResults($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\SearchResult::class); - $this->search_results = $arr; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * 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. - * - * Generated from protobuf field string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchResult.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchResult.php deleted file mode 100644 index ae46384e46d0..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchResult.php +++ /dev/null @@ -1,108 +0,0 @@ -google.cloud.dataform.v1beta1.SearchResult - */ -class SearchResult extends \Google\Protobuf\Internal\Message -{ - protected $entry; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1beta1\FileSearchResult $file - * Details when search result is a file. - * @type \Google\Cloud\Dataform\V1beta1\DirectorySearchResult $directory - * Details when search result is a directory. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Details when search result is a file. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.FileSearchResult file = 1; - * @return \Google\Cloud\Dataform\V1beta1\FileSearchResult|null - */ - public function getFile() - { - return $this->readOneof(1); - } - - public function hasFile() - { - return $this->hasOneof(1); - } - - /** - * Details when search result is a file. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.FileSearchResult file = 1; - * @param \Google\Cloud\Dataform\V1beta1\FileSearchResult $var - * @return $this - */ - public function setFile($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\FileSearchResult::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Details when search result is a directory. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.DirectorySearchResult directory = 2; - * @return \Google\Cloud\Dataform\V1beta1\DirectorySearchResult|null - */ - public function getDirectory() - { - return $this->readOneof(2); - } - - public function hasDirectory() - { - return $this->hasOneof(2); - } - - /** - * Details when search result is a directory. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.DirectorySearchResult directory = 2; - * @param \Google\Cloud\Dataform\V1beta1\DirectorySearchResult $var - * @return $this - */ - public function setDirectory($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\DirectorySearchResult::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getEntry() - { - return $this->whichOneof("entry"); - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchTeamFoldersRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchTeamFoldersRequest.php deleted file mode 100644 index f373d8a8941a..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchTeamFoldersRequest.php +++ /dev/null @@ -1,259 +0,0 @@ -google.cloud.dataform.v1beta1.SearchTeamFoldersRequest - */ -class SearchTeamFoldersRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Location in which to query TeamFolders. - * Format: `projects/{@*}locations/*`. - * - * Generated from protobuf field string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $location = ''; - /** - * Optional. Maximum number of TeamFolders to return. The server may return - * fewer items than requested. If unspecified, the server will pick an - * appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * 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"` - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Optional filtering for the returned list. Filtering is currently - * only supported on the `display_name` field. - * Example: - * - `filter="display_name="MyFolder""` - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $location - * Required. Location in which to query TeamFolders. - * Format: `projects/{@*}locations/*`. - * @type int $page_size - * Optional. Maximum number of TeamFolders to return. The server may return - * fewer items than requested. If unspecified, the server will pick an - * appropriate default. - * @type string $page_token - * 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. - * @type string $order_by - * 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"` - * @type string $filter - * Optional. Optional filtering for the returned list. Filtering is currently - * only supported on the `display_name` field. - * Example: - * - `filter="display_name="MyFolder""` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. Location in which to query TeamFolders. - * Format: `projects/{@*}locations/*`. - * - * Generated from protobuf field string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * Required. Location in which to query TeamFolders. - * Format: `projects/{@*}locations/*`. - * - * Generated from protobuf field string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - - /** - * Optional. Maximum number of TeamFolders to return. The server may return - * fewer items than requested. If unspecified, the server will pick an - * appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Maximum number of TeamFolders to return. The server may return - * fewer items than requested. If unspecified, the server will pick an - * appropriate default. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * 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. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * 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"` - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * 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"` - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. Optional filtering for the returned list. Filtering is currently - * only supported on the `display_name` field. - * Example: - * - `filter="display_name="MyFolder""` - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Optional filtering for the returned list. Filtering is currently - * only supported on the `display_name` field. - * Example: - * - `filter="display_name="MyFolder""` - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchTeamFoldersResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchTeamFoldersResponse.php deleted file mode 100644 index 72770eb9b8a8..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchTeamFoldersResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.dataform.v1beta1.SearchTeamFoldersResponse - */ -class SearchTeamFoldersResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of TeamFolders that match the search query. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; - */ - private $results; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1beta1\SearchTeamFoldersResponse\TeamFolderSearchResult[] $results - * List of TeamFolders that match the search query. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * List of TeamFolders that match the search query. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; - * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\SearchTeamFoldersResponse\TeamFolderSearchResult> - */ - public function getResults() - { - return $this->results; - } - - /** - * List of TeamFolders that match the search query. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult results = 1; - * @param \Google\Cloud\Dataform\V1beta1\SearchTeamFoldersResponse\TeamFolderSearchResult[] $var - * @return $this - */ - public function setResults($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\SearchTeamFoldersResponse\TeamFolderSearchResult::class); - $this->results = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchTeamFoldersResponse/TeamFolderSearchResult.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchTeamFoldersResponse/TeamFolderSearchResult.php deleted file mode 100644 index a02705799dd9..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/SearchTeamFoldersResponse/TeamFolderSearchResult.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult - */ -class TeamFolderSearchResult extends \Google\Protobuf\Internal\Message -{ - protected $entry; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1beta1\TeamFolder $team_folder - * A TeamFolder resource that is in the project / location. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * A TeamFolder resource that is in the project / location. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2; - * @return \Google\Cloud\Dataform\V1beta1\TeamFolder|null - */ - public function getTeamFolder() - { - return $this->readOneof(2); - } - - public function hasTeamFolder() - { - return $this->hasOneof(2); - } - - /** - * A TeamFolder resource that is in the project / location. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2; - * @param \Google\Cloud\Dataform\V1beta1\TeamFolder $var - * @return $this - */ - public function setTeamFolder($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\TeamFolder::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getEntry() - { - return $this->whichOneof("entry"); - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Target.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Target.php deleted file mode 100644 index b1afd829fb6f..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Target.php +++ /dev/null @@ -1,136 +0,0 @@ -google.cloud.dataform.v1beta1.Target - */ -class Target extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The action's database (Google Cloud project ID) . - * - * Generated from protobuf field string database = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $database = ''; - /** - * Optional. The action's schema (BigQuery dataset ID), within `database`. - * - * Generated from protobuf field string schema = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $schema = ''; - /** - * Optional. The action's name, within `database` and `schema`. - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $database - * Optional. The action's database (Google Cloud project ID) . - * @type string $schema - * Optional. The action's schema (BigQuery dataset ID), within `database`. - * @type string $name - * Optional. The action's name, within `database` and `schema`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The action's database (Google Cloud project ID) . - * - * Generated from protobuf field string database = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDatabase() - { - return $this->database; - } - - /** - * Optional. The action's database (Google Cloud project ID) . - * - * Generated from protobuf field string database = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDatabase($var) - { - GPBUtil::checkString($var, True); - $this->database = $var; - - return $this; - } - - /** - * Optional. The action's schema (BigQuery dataset ID), within `database`. - * - * Generated from protobuf field string schema = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getSchema() - { - return $this->schema; - } - - /** - * Optional. The action's schema (BigQuery dataset ID), within `database`. - * - * Generated from protobuf field string schema = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setSchema($var) - { - GPBUtil::checkString($var, True); - $this->schema = $var; - - return $this; - } - - /** - * Optional. The action's name, within `database` and `schema`. - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Optional. The action's name, within `database` and `schema`. - * - * Generated from protobuf field string name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/TeamFolder.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/TeamFolder.php deleted file mode 100644 index c3bfa5b7588c..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/TeamFolder.php +++ /dev/null @@ -1,287 +0,0 @@ -google.cloud.dataform.v1beta1.TeamFolder - */ -class TeamFolder extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The TeamFolder's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Required. The TeamFolder's user-friendly name. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Output only. The timestamp of when the TeamFolder was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The timestamp of when the TeamFolder was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $internal_metadata = null; - /** - * Output only. The IAM principal identifier of the creator of the TeamFolder. - * - * Generated from protobuf field optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $creator_iam_principal = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The TeamFolder's name. - * @type string $display_name - * Required. The TeamFolder's user-friendly name. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The timestamp of when the TeamFolder was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The timestamp of when the TeamFolder was last updated. - * @type string $internal_metadata - * 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. - * @type string $creator_iam_principal - * Output only. The IAM principal identifier of the creator of the TeamFolder. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The TeamFolder's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The TeamFolder's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The TeamFolder's user-friendly name. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. The TeamFolder's user-friendly name. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Output only. The timestamp of when the TeamFolder was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The timestamp of when the TeamFolder was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The timestamp of when the TeamFolder was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The timestamp of when the TeamFolder was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getInternalMetadata() - { - return isset($this->internal_metadata) ? $this->internal_metadata : ''; - } - - public function hasInternalMetadata() - { - return isset($this->internal_metadata); - } - - public function clearInternalMetadata() - { - unset($this->internal_metadata); - } - - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setInternalMetadata($var) - { - GPBUtil::checkString($var, True); - $this->internal_metadata = $var; - - return $this; - } - - /** - * Output only. The IAM principal identifier of the creator of the TeamFolder. - * - * Generated from protobuf field optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getCreatorIamPrincipal() - { - return isset($this->creator_iam_principal) ? $this->creator_iam_principal : ''; - } - - public function hasCreatorIamPrincipal() - { - return isset($this->creator_iam_principal); - } - - public function clearCreatorIamPrincipal() - { - unset($this->creator_iam_principal); - } - - /** - * Output only. The IAM principal identifier of the creator of the TeamFolder. - * - * Generated from protobuf field optional string creator_iam_principal = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setCreatorIamPrincipal($var) - { - GPBUtil::checkString($var, True); - $this->creator_iam_principal = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateConfigRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateConfigRequest.php deleted file mode 100644 index 581ffd423f45..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateConfigRequest.php +++ /dev/null @@ -1,136 +0,0 @@ -google.cloud.dataform.v1beta1.UpdateConfigRequest - */ -class UpdateConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The config to update. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $config = null; - /** - * Optional. Specifies the fields to be updated in the config. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\Dataform\V1beta1\Config $config Required. The config to update. - * @param \Google\Protobuf\FieldMask $updateMask Optional. Specifies the fields to be updated in the config. - * - * @return \Google\Cloud\Dataform\V1beta1\UpdateConfigRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Dataform\V1beta1\Config $config, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setConfig($config) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1beta1\Config $config - * Required. The config to update. - * @type \Google\Protobuf\FieldMask $update_mask - * Optional. Specifies the fields to be updated in the config. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The config to update. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataform\V1beta1\Config|null - */ - public function getConfig() - { - return $this->config; - } - - public function hasConfig() - { - return isset($this->config); - } - - public function clearConfig() - { - unset($this->config); - } - - /** - * Required. The config to update. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataform\V1beta1\Config $var - * @return $this - */ - public function setConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Config::class); - $this->config = $var; - - return $this; - } - - /** - * Optional. Specifies the fields to be updated in the config. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Optional. Specifies the fields to be updated in the config. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateFolderRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateFolderRequest.php deleted file mode 100644 index 98b80d7ec0e7..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateFolderRequest.php +++ /dev/null @@ -1,151 +0,0 @@ -google.cloud.dataform.v1beta1.UpdateFolderRequest - */ -class UpdateFolderRequest extends \Google\Protobuf\Internal\Message -{ - /** - * 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). - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - /** - * Required. The updated Folder. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $folder = null; - - /** - * @param \Google\Cloud\Dataform\V1beta1\Folder $folder Required. The updated Folder. - * @param \Google\Protobuf\FieldMask $updateMask 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). - * - * @return \Google\Cloud\Dataform\V1beta1\UpdateFolderRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Dataform\V1beta1\Folder $folder, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setFolder($folder) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * 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). - * @type \Google\Cloud\Dataform\V1beta1\Folder $folder - * Required. The updated Folder. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * 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). - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * 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). - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Required. The updated Folder. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataform\V1beta1\Folder|null - */ - public function getFolder() - { - return $this->folder; - } - - public function hasFolder() - { - return isset($this->folder); - } - - public function clearFolder() - { - unset($this->folder); - } - - /** - * Required. The updated Folder. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataform\V1beta1\Folder $var - * @return $this - */ - public function setFolder($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Folder::class); - $this->folder = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateReleaseConfigRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateReleaseConfigRequest.php deleted file mode 100644 index 80c496944bb4..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateReleaseConfigRequest.php +++ /dev/null @@ -1,141 +0,0 @@ -google.cloud.dataform.v1beta1.UpdateReleaseConfigRequest - */ -class UpdateReleaseConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Specifies the fields to be updated in the release config. If left - * unset, all fields will be updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - /** - * Required. The release config to update. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $release_config = null; - - /** - * @param \Google\Cloud\Dataform\V1beta1\ReleaseConfig $releaseConfig Required. The release config to update. - * @param \Google\Protobuf\FieldMask $updateMask Optional. Specifies the fields to be updated in the release config. If left - * unset, all fields will be updated. - * - * @return \Google\Cloud\Dataform\V1beta1\UpdateReleaseConfigRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Dataform\V1beta1\ReleaseConfig $releaseConfig, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setReleaseConfig($releaseConfig) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Optional. Specifies the fields to be updated in the release config. If left - * unset, all fields will be updated. - * @type \Google\Cloud\Dataform\V1beta1\ReleaseConfig $release_config - * Required. The release config to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Specifies the fields to be updated in the release config. If left - * unset, all fields will be updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Optional. Specifies the fields to be updated in the release config. If left - * unset, all fields will be updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Required. The release config to update. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataform\V1beta1\ReleaseConfig|null - */ - public function getReleaseConfig() - { - return $this->release_config; - } - - public function hasReleaseConfig() - { - return isset($this->release_config); - } - - public function clearReleaseConfig() - { - unset($this->release_config); - } - - /** - * Required. The release config to update. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.ReleaseConfig release_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataform\V1beta1\ReleaseConfig $var - * @return $this - */ - public function setReleaseConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\ReleaseConfig::class); - $this->release_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateRepositoryRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateRepositoryRequest.php deleted file mode 100644 index e36c020f4424..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateRepositoryRequest.php +++ /dev/null @@ -1,141 +0,0 @@ -google.cloud.dataform.v1beta1.UpdateRepositoryRequest - */ -class UpdateRepositoryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Specifies the fields to be updated in the repository. If left - * unset, all fields will be updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - /** - * Required. The repository to update. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $repository = null; - - /** - * @param \Google\Cloud\Dataform\V1beta1\Repository $repository Required. The repository to update. - * @param \Google\Protobuf\FieldMask $updateMask Optional. Specifies the fields to be updated in the repository. If left - * unset, all fields will be updated. - * - * @return \Google\Cloud\Dataform\V1beta1\UpdateRepositoryRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Dataform\V1beta1\Repository $repository, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setRepository($repository) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Optional. Specifies the fields to be updated in the repository. If left - * unset, all fields will be updated. - * @type \Google\Cloud\Dataform\V1beta1\Repository $repository - * Required. The repository to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Specifies the fields to be updated in the repository. If left - * unset, all fields will be updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Optional. Specifies the fields to be updated in the repository. If left - * unset, all fields will be updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Required. The repository to update. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataform\V1beta1\Repository|null - */ - public function getRepository() - { - return $this->repository; - } - - public function hasRepository() - { - return isset($this->repository); - } - - public function clearRepository() - { - unset($this->repository); - } - - /** - * Required. The repository to update. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataform\V1beta1\Repository $var - * @return $this - */ - public function setRepository($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Repository::class); - $this->repository = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateTeamFolderRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateTeamFolderRequest.php deleted file mode 100644 index 9148cc324676..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateTeamFolderRequest.php +++ /dev/null @@ -1,141 +0,0 @@ -google.cloud.dataform.v1beta1.UpdateTeamFolderRequest - */ -class UpdateTeamFolderRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Specifies the fields to be updated in the Folder. If left unset, - * all fields will be updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - /** - * Required. The updated TeamFolder. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $team_folder = null; - - /** - * @param \Google\Cloud\Dataform\V1beta1\TeamFolder $teamFolder Required. The updated TeamFolder. - * @param \Google\Protobuf\FieldMask $updateMask Optional. Specifies the fields to be updated in the Folder. If left unset, - * all fields will be updated. - * - * @return \Google\Cloud\Dataform\V1beta1\UpdateTeamFolderRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Dataform\V1beta1\TeamFolder $teamFolder, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setTeamFolder($teamFolder) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Optional. Specifies the fields to be updated in the Folder. If left unset, - * all fields will be updated. - * @type \Google\Cloud\Dataform\V1beta1\TeamFolder $team_folder - * Required. The updated TeamFolder. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Specifies the fields to be updated in the Folder. If left unset, - * all fields will be updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Optional. Specifies the fields to be updated in the Folder. If left unset, - * all fields will be updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Required. The updated TeamFolder. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataform\V1beta1\TeamFolder|null - */ - public function getTeamFolder() - { - return $this->team_folder; - } - - public function hasTeamFolder() - { - return isset($this->team_folder); - } - - public function clearTeamFolder() - { - unset($this->team_folder); - } - - /** - * Required. The updated TeamFolder. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.TeamFolder team_folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataform\V1beta1\TeamFolder $var - * @return $this - */ - public function setTeamFolder($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\TeamFolder::class); - $this->team_folder = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateWorkflowConfigRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateWorkflowConfigRequest.php deleted file mode 100644 index 5d5df50a0df4..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateWorkflowConfigRequest.php +++ /dev/null @@ -1,141 +0,0 @@ -google.cloud.dataform.v1beta1.UpdateWorkflowConfigRequest - */ -class UpdateWorkflowConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Specifies the fields to be updated in the workflow config. If - * left unset, all fields will be updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - /** - * Required. The workflow config to update. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $workflow_config = null; - - /** - * @param \Google\Cloud\Dataform\V1beta1\WorkflowConfig $workflowConfig Required. The workflow config to update. - * @param \Google\Protobuf\FieldMask $updateMask Optional. Specifies the fields to be updated in the workflow config. If - * left unset, all fields will be updated. - * - * @return \Google\Cloud\Dataform\V1beta1\UpdateWorkflowConfigRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Dataform\V1beta1\WorkflowConfig $workflowConfig, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setWorkflowConfig($workflowConfig) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Optional. Specifies the fields to be updated in the workflow config. If - * left unset, all fields will be updated. - * @type \Google\Cloud\Dataform\V1beta1\WorkflowConfig $workflow_config - * Required. The workflow config to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Specifies the fields to be updated in the workflow config. If - * left unset, all fields will be updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Optional. Specifies the fields to be updated in the workflow config. If - * left unset, all fields will be updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Required. The workflow config to update. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataform\V1beta1\WorkflowConfig|null - */ - public function getWorkflowConfig() - { - return $this->workflow_config; - } - - public function hasWorkflowConfig() - { - return isset($this->workflow_config); - } - - public function clearWorkflowConfig() - { - unset($this->workflow_config); - } - - /** - * Required. The workflow config to update. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowConfig workflow_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataform\V1beta1\WorkflowConfig $var - * @return $this - */ - public function setWorkflowConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\WorkflowConfig::class); - $this->workflow_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowConfig.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowConfig.php deleted file mode 100644 index 66a83962836a..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowConfig.php +++ /dev/null @@ -1,453 +0,0 @@ -google.cloud.dataform.v1beta1.WorkflowConfig - */ -class WorkflowConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The workflow config's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Required. The name of the release config whose release_compilation_result - * should be executed. Must be in the format - * `projects/{@*}locations/{@*}repositories/{@*}releaseConfigs/*`. - * - * Generated from protobuf field string release_config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $release_config = ''; - /** - * Optional. If left unset, a default InvocationConfig will be used. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $invocation_config = null; - /** - * Optional. Optional schedule (in cron format) for automatic execution of - * this workflow config. - * - * Generated from protobuf field string cron_schedule = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $cron_schedule = ''; - /** - * 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. - * - * Generated from protobuf field string time_zone = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $time_zone = ''; - /** - * 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. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord recent_scheduled_execution_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $recent_scheduled_execution_records; - /** - * Optional. Disables automatic creation of workflow invocations. - * - * Generated from protobuf field bool disabled = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $disabled = false; - /** - * Output only. The timestamp of when the WorkflowConfig was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The timestamp of when the WorkflowConfig was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $internal_metadata = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The workflow config's name. - * @type string $release_config - * Required. The name of the release config whose release_compilation_result - * should be executed. Must be in the format - * `projects/{@*}locations/{@*}repositories/{@*}releaseConfigs/*`. - * @type \Google\Cloud\Dataform\V1beta1\InvocationConfig $invocation_config - * Optional. If left unset, a default InvocationConfig will be used. - * @type string $cron_schedule - * Optional. Optional schedule (in cron format) for automatic execution of - * this workflow config. - * @type string $time_zone - * 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. - * @type \Google\Cloud\Dataform\V1beta1\WorkflowConfig\ScheduledExecutionRecord[] $recent_scheduled_execution_records - * 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. - * @type bool $disabled - * Optional. Disables automatic creation of workflow invocations. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The timestamp of when the WorkflowConfig was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The timestamp of when the WorkflowConfig was last updated. - * @type string $internal_metadata - * 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. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The workflow config's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The workflow config's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The name of the release config whose release_compilation_result - * should be executed. Must be in the format - * `projects/{@*}locations/{@*}repositories/{@*}releaseConfigs/*`. - * - * Generated from protobuf field string release_config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getReleaseConfig() - { - return $this->release_config; - } - - /** - * Required. The name of the release config whose release_compilation_result - * should be executed. Must be in the format - * `projects/{@*}locations/{@*}repositories/{@*}releaseConfigs/*`. - * - * Generated from protobuf field string release_config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setReleaseConfig($var) - { - GPBUtil::checkString($var, True); - $this->release_config = $var; - - return $this; - } - - /** - * Optional. If left unset, a default InvocationConfig will be used. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataform\V1beta1\InvocationConfig|null - */ - public function getInvocationConfig() - { - return $this->invocation_config; - } - - public function hasInvocationConfig() - { - return isset($this->invocation_config); - } - - public function clearInvocationConfig() - { - unset($this->invocation_config); - } - - /** - * Optional. If left unset, a default InvocationConfig will be used. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataform\V1beta1\InvocationConfig $var - * @return $this - */ - public function setInvocationConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\InvocationConfig::class); - $this->invocation_config = $var; - - return $this; - } - - /** - * Optional. Optional schedule (in cron format) for automatic execution of - * this workflow config. - * - * Generated from protobuf field string cron_schedule = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getCronSchedule() - { - return $this->cron_schedule; - } - - /** - * Optional. Optional schedule (in cron format) for automatic execution of - * this workflow config. - * - * Generated from protobuf field string cron_schedule = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setCronSchedule($var) - { - GPBUtil::checkString($var, True); - $this->cron_schedule = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string time_zone = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getTimeZone() - { - return $this->time_zone; - } - - /** - * 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. - * - * Generated from protobuf field string time_zone = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setTimeZone($var) - { - GPBUtil::checkString($var, True); - $this->time_zone = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord recent_scheduled_execution_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Cloud\Dataform\V1beta1\WorkflowConfig\ScheduledExecutionRecord> - */ - public function getRecentScheduledExecutionRecords() - { - return $this->recent_scheduled_execution_records; - } - - /** - * 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. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord recent_scheduled_execution_records = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataform\V1beta1\WorkflowConfig\ScheduledExecutionRecord[] $var - * @return $this - */ - public function setRecentScheduledExecutionRecords($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataform\V1beta1\WorkflowConfig\ScheduledExecutionRecord::class); - $this->recent_scheduled_execution_records = $arr; - - return $this; - } - - /** - * Optional. Disables automatic creation of workflow invocations. - * - * Generated from protobuf field bool disabled = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getDisabled() - { - return $this->disabled; - } - - /** - * Optional. Disables automatic creation of workflow invocations. - * - * Generated from protobuf field bool disabled = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setDisabled($var) - { - GPBUtil::checkBool($var); - $this->disabled = $var; - - return $this; - } - - /** - * Output only. The timestamp of when the WorkflowConfig was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The timestamp of when the WorkflowConfig was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The timestamp of when the WorkflowConfig was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The timestamp of when the WorkflowConfig was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getInternalMetadata() - { - return isset($this->internal_metadata) ? $this->internal_metadata : ''; - } - - public function hasInternalMetadata() - { - return isset($this->internal_metadata); - } - - public function clearInternalMetadata() - { - unset($this->internal_metadata); - } - - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setInternalMetadata($var) - { - GPBUtil::checkString($var, True); - $this->internal_metadata = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowConfig/ScheduledExecutionRecord.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowConfig/ScheduledExecutionRecord.php deleted file mode 100644 index 2a23a6ba6e04..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowConfig/ScheduledExecutionRecord.php +++ /dev/null @@ -1,162 +0,0 @@ -google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecord - */ -class ScheduledExecutionRecord extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The timestamp of this execution attempt. - * - * Generated from protobuf field .google.protobuf.Timestamp execution_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $execution_time = null; - protected $result; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $workflow_invocation - * The name of the created workflow invocation, if one was successfully - * created. Must be in the format - * `projects/{@*}locations/{@*}repositories/{@*}workflowInvocations/*`. - * @type \Google\Rpc\Status $error_status - * The error status encountered upon this attempt to create the - * workflow invocation, if the attempt was unsuccessful. - * @type \Google\Protobuf\Timestamp $execution_time - * Output only. The timestamp of this execution attempt. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * The name of the created workflow invocation, if one was successfully - * created. Must be in the format - * `projects/{@*}locations/{@*}repositories/{@*}workflowInvocations/*`. - * - * Generated from protobuf field string workflow_invocation = 2 [(.google.api.resource_reference) = { - * @return string - */ - public function getWorkflowInvocation() - { - return $this->readOneof(2); - } - - public function hasWorkflowInvocation() - { - return $this->hasOneof(2); - } - - /** - * The name of the created workflow invocation, if one was successfully - * created. Must be in the format - * `projects/{@*}locations/{@*}repositories/{@*}workflowInvocations/*`. - * - * Generated from protobuf field string workflow_invocation = 2 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setWorkflowInvocation($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The error status encountered upon this attempt to create the - * workflow invocation, if the attempt was unsuccessful. - * - * Generated from protobuf field .google.rpc.Status error_status = 3; - * @return \Google\Rpc\Status|null - */ - public function getErrorStatus() - { - return $this->readOneof(3); - } - - public function hasErrorStatus() - { - return $this->hasOneof(3); - } - - /** - * The error status encountered upon this attempt to create the - * workflow invocation, if the attempt was unsuccessful. - * - * Generated from protobuf field .google.rpc.Status error_status = 3; - * @param \Google\Rpc\Status $var - * @return $this - */ - public function setErrorStatus($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Status::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Output only. The timestamp of this execution attempt. - * - * Generated from protobuf field .google.protobuf.Timestamp execution_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getExecutionTime() - { - return $this->execution_time; - } - - public function hasExecutionTime() - { - return isset($this->execution_time); - } - - public function clearExecutionTime() - { - unset($this->execution_time); - } - - /** - * Output only. The timestamp of this execution attempt. - * - * Generated from protobuf field .google.protobuf.Timestamp execution_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setExecutionTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->execution_time = $var; - - return $this; - } - - /** - * @return string - */ - public function getResult() - { - return $this->whichOneof("result"); - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocation.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocation.php deleted file mode 100644 index 31109fda87d9..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocation.php +++ /dev/null @@ -1,463 +0,0 @@ -google.cloud.dataform.v1beta1.WorkflowInvocation - */ -class WorkflowInvocation extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The workflow invocation's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Immutable. If left unset, a default InvocationConfig will be used. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $invocation_config = null; - /** - * Output only. This workflow invocation's current state. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. This workflow invocation's timing details. - * - * Generated from protobuf field .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $invocation_timing = null; - /** - * Output only. The resolved compilation result that was used to create this - * invocation. Will be in the format - * `projects/{@*}locations/{@*}repositories/{@*}compilationResults/*`. - * - * Generated from protobuf field string resolved_compilation_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $resolved_compilation_result = ''; - /** - * Output only. Only set if the repository has a KMS Key. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.DataEncryptionState data_encryption_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $data_encryption_state = null; - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $internal_metadata = null; - /** - * 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. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $private_resource_metadata = null; - protected $compilation_source; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $compilation_result - * Immutable. The name of the compilation result to use for this invocation. - * Must be in the format - * `projects/{@*}locations/{@*}repositories/{@*}compilationResults/*`. - * @type string $workflow_config - * Immutable. The name of the workflow config to invoke. Must be in the - * format `projects/{@*}locations/{@*}repositories/{@*}workflowConfigs/*`. - * @type string $name - * Output only. The workflow invocation's name. - * @type \Google\Cloud\Dataform\V1beta1\InvocationConfig $invocation_config - * Immutable. If left unset, a default InvocationConfig will be used. - * @type int $state - * Output only. This workflow invocation's current state. - * @type \Google\Type\Interval $invocation_timing - * Output only. This workflow invocation's timing details. - * @type string $resolved_compilation_result - * Output only. The resolved compilation result that was used to create this - * invocation. Will be in the format - * `projects/{@*}locations/{@*}repositories/{@*}compilationResults/*`. - * @type \Google\Cloud\Dataform\V1beta1\DataEncryptionState $data_encryption_state - * Output only. Only set if the repository has a KMS Key. - * @type string $internal_metadata - * 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. - * @type \Google\Cloud\Dataform\V1beta1\PrivateResourceMetadata $private_resource_metadata - * 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. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Immutable. The name of the compilation result to use for this invocation. - * Must be in the format - * `projects/{@*}locations/{@*}repositories/{@*}compilationResults/*`. - * - * Generated from protobuf field string compilation_result = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @return string - */ - public function getCompilationResult() - { - return $this->readOneof(2); - } - - public function hasCompilationResult() - { - return $this->hasOneof(2); - } - - /** - * Immutable. The name of the compilation result to use for this invocation. - * Must be in the format - * `projects/{@*}locations/{@*}repositories/{@*}compilationResults/*`. - * - * Generated from protobuf field string compilation_result = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setCompilationResult($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Immutable. The name of the workflow config to invoke. Must be in the - * format `projects/{@*}locations/{@*}repositories/{@*}workflowConfigs/*`. - * - * Generated from protobuf field string workflow_config = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @return string - */ - public function getWorkflowConfig() - { - return $this->readOneof(6); - } - - public function hasWorkflowConfig() - { - return $this->hasOneof(6); - } - - /** - * Immutable. The name of the workflow config to invoke. Must be in the - * format `projects/{@*}locations/{@*}repositories/{@*}workflowConfigs/*`. - * - * Generated from protobuf field string workflow_config = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setWorkflowConfig($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Output only. The workflow invocation's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The workflow invocation's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Immutable. If left unset, a default InvocationConfig will be used. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Cloud\Dataform\V1beta1\InvocationConfig|null - */ - public function getInvocationConfig() - { - return $this->invocation_config; - } - - public function hasInvocationConfig() - { - return isset($this->invocation_config); - } - - public function clearInvocationConfig() - { - unset($this->invocation_config); - } - - /** - * Immutable. If left unset, a default InvocationConfig will be used. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.InvocationConfig invocation_config = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Cloud\Dataform\V1beta1\InvocationConfig $var - * @return $this - */ - public function setInvocationConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\InvocationConfig::class); - $this->invocation_config = $var; - - return $this; - } - - /** - * Output only. This workflow invocation's current state. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. This workflow invocation's current state. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocation.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1beta1\WorkflowInvocation\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. This workflow invocation's timing details. - * - * Generated from protobuf field .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Type\Interval|null - */ - public function getInvocationTiming() - { - return $this->invocation_timing; - } - - public function hasInvocationTiming() - { - return isset($this->invocation_timing); - } - - public function clearInvocationTiming() - { - unset($this->invocation_timing); - } - - /** - * Output only. This workflow invocation's timing details. - * - * Generated from protobuf field .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Type\Interval $var - * @return $this - */ - public function setInvocationTiming($var) - { - GPBUtil::checkMessage($var, \Google\Type\Interval::class); - $this->invocation_timing = $var; - - return $this; - } - - /** - * Output only. The resolved compilation result that was used to create this - * invocation. Will be in the format - * `projects/{@*}locations/{@*}repositories/{@*}compilationResults/*`. - * - * Generated from protobuf field string resolved_compilation_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getResolvedCompilationResult() - { - return $this->resolved_compilation_result; - } - - /** - * Output only. The resolved compilation result that was used to create this - * invocation. Will be in the format - * `projects/{@*}locations/{@*}repositories/{@*}compilationResults/*`. - * - * Generated from protobuf field string resolved_compilation_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setResolvedCompilationResult($var) - { - GPBUtil::checkString($var, True); - $this->resolved_compilation_result = $var; - - return $this; - } - - /** - * Output only. Only set if the repository has a KMS Key. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.DataEncryptionState data_encryption_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataform\V1beta1\DataEncryptionState|null - */ - public function getDataEncryptionState() - { - return $this->data_encryption_state; - } - - public function hasDataEncryptionState() - { - return isset($this->data_encryption_state); - } - - public function clearDataEncryptionState() - { - unset($this->data_encryption_state); - } - - /** - * Output only. Only set if the repository has a KMS Key. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.DataEncryptionState data_encryption_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataform\V1beta1\DataEncryptionState $var - * @return $this - */ - public function setDataEncryptionState($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\DataEncryptionState::class); - $this->data_encryption_state = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getInternalMetadata() - { - return isset($this->internal_metadata) ? $this->internal_metadata : ''; - } - - public function hasInternalMetadata() - { - return isset($this->internal_metadata); - } - - public function clearInternalMetadata() - { - unset($this->internal_metadata); - } - - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setInternalMetadata($var) - { - GPBUtil::checkString($var, True); - $this->internal_metadata = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataform\V1beta1\PrivateResourceMetadata|null - */ - public function getPrivateResourceMetadata() - { - return $this->private_resource_metadata; - } - - public function hasPrivateResourceMetadata() - { - return isset($this->private_resource_metadata); - } - - public function clearPrivateResourceMetadata() - { - unset($this->private_resource_metadata); - } - - /** - * 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. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataform\V1beta1\PrivateResourceMetadata $var - * @return $this - */ - public function setPrivateResourceMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\PrivateResourceMetadata::class); - $this->private_resource_metadata = $var; - - return $this; - } - - /** - * @return string - */ - public function getCompilationSource() - { - return $this->whichOneof("compilation_source"); - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocation/State.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocation/State.php deleted file mode 100644 index 70f4740d0a84..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocation/State.php +++ /dev/null @@ -1,83 +0,0 @@ -google.cloud.dataform.v1beta1.WorkflowInvocation.State - */ -class State -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The workflow invocation is currently running. - * - * Generated from protobuf enum RUNNING = 1; - */ - const RUNNING = 1; - /** - * The workflow invocation succeeded. A terminal state. - * - * Generated from protobuf enum SUCCEEDED = 2; - */ - const SUCCEEDED = 2; - /** - * The workflow invocation was cancelled. A terminal state. - * - * Generated from protobuf enum CANCELLED = 3; - */ - const CANCELLED = 3; - /** - * The workflow invocation failed. A terminal state. - * - * Generated from protobuf enum FAILED = 4; - */ - const FAILED = 4; - /** - * The workflow invocation is being cancelled, but some actions are still - * running. - * - * Generated from protobuf enum CANCELING = 5; - */ - const CANCELING = 5; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::RUNNING => 'RUNNING', - self::SUCCEEDED => 'SUCCEEDED', - self::CANCELLED => 'CANCELLED', - self::FAILED => 'FAILED', - self::CANCELING => 'CANCELING', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction.php deleted file mode 100644 index 5ade5df2482f..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction.php +++ /dev/null @@ -1,421 +0,0 @@ -google.cloud.dataform.v1beta1.WorkflowInvocationAction - */ -class WorkflowInvocationAction extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. This action's identifier. Unique within the workflow - * invocation. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $target = null; - /** - * Output only. The action's identifier if the project had been compiled - * without any overrides configured. Unique within the compilation result. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $canonical_target = null; - /** - * Output only. This action's current state. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. If and only if action's state is FAILED a failure reason is - * set. - * - * Generated from protobuf field string failure_reason = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $failure_reason = ''; - /** - * 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. - * - * Generated from protobuf field .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $invocation_timing = null; - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $internal_metadata = null; - protected $action; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\BigQueryAction $bigquery_action - * Output only. The workflow action's bigquery action details. - * @type \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\NotebookAction $notebook_action - * Output only. The workflow action's notebook action details. - * @type \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction $data_preparation_action - * Output only. The workflow action's data preparation action details. - * @type \Google\Cloud\Dataform\V1beta1\Target $target - * Output only. This action's identifier. Unique within the workflow - * invocation. - * @type \Google\Cloud\Dataform\V1beta1\Target $canonical_target - * Output only. The action's identifier if the project had been compiled - * without any overrides configured. Unique within the compilation result. - * @type int $state - * Output only. This action's current state. - * @type string $failure_reason - * Output only. If and only if action's state is FAILED a failure reason is - * set. - * @type \Google\Type\Interval $invocation_timing - * 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. - * @type string $internal_metadata - * 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. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The workflow action's bigquery action details. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\BigQueryAction|null - */ - public function getBigqueryAction() - { - return $this->readOneof(6); - } - - public function hasBigqueryAction() - { - return $this->hasOneof(6); - } - - /** - * Output only. The workflow action's bigquery action details. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction bigquery_action = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\BigQueryAction $var - * @return $this - */ - public function setBigqueryAction($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\BigQueryAction::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Output only. The workflow action's notebook action details. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.NotebookAction notebook_action = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\NotebookAction|null - */ - public function getNotebookAction() - { - return $this->readOneof(8); - } - - public function hasNotebookAction() - { - return $this->hasOneof(8); - } - - /** - * Output only. The workflow action's notebook action details. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.NotebookAction notebook_action = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\NotebookAction $var - * @return $this - */ - public function setNotebookAction($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\NotebookAction::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * Output only. The workflow action's data preparation action details. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction data_preparation_action = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction|null - */ - public function getDataPreparationAction() - { - return $this->readOneof(9); - } - - public function hasDataPreparationAction() - { - return $this->hasOneof(9); - } - - /** - * Output only. The workflow action's data preparation action details. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction data_preparation_action = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction $var - * @return $this - */ - public function setDataPreparationAction($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction::class); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * Output only. This action's identifier. Unique within the workflow - * invocation. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataform\V1beta1\Target|null - */ - public function getTarget() - { - return $this->target; - } - - public function hasTarget() - { - return isset($this->target); - } - - public function clearTarget() - { - unset($this->target); - } - - /** - * Output only. This action's identifier. Unique within the workflow - * invocation. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Target target = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataform\V1beta1\Target $var - * @return $this - */ - public function setTarget($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Target::class); - $this->target = $var; - - return $this; - } - - /** - * Output only. The action's identifier if the project had been compiled - * without any overrides configured. Unique within the compilation result. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataform\V1beta1\Target|null - */ - public function getCanonicalTarget() - { - return $this->canonical_target; - } - - public function hasCanonicalTarget() - { - return isset($this->canonical_target); - } - - public function clearCanonicalTarget() - { - unset($this->canonical_target); - } - - /** - * Output only. The action's identifier if the project had been compiled - * without any overrides configured. Unique within the compilation result. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Target canonical_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataform\V1beta1\Target $var - * @return $this - */ - public function setCanonicalTarget($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Target::class); - $this->canonical_target = $var; - - return $this; - } - - /** - * Output only. This action's current state. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. This action's current state. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. If and only if action's state is FAILED a failure reason is - * set. - * - * Generated from protobuf field string failure_reason = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getFailureReason() - { - return $this->failure_reason; - } - - /** - * Output only. If and only if action's state is FAILED a failure reason is - * set. - * - * Generated from protobuf field string failure_reason = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setFailureReason($var) - { - GPBUtil::checkString($var, True); - $this->failure_reason = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Type\Interval|null - */ - public function getInvocationTiming() - { - return $this->invocation_timing; - } - - public function hasInvocationTiming() - { - return isset($this->invocation_timing); - } - - public function clearInvocationTiming() - { - unset($this->invocation_timing); - } - - /** - * 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. - * - * Generated from protobuf field .google.type.Interval invocation_timing = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Type\Interval $var - * @return $this - */ - public function setInvocationTiming($var) - { - GPBUtil::checkMessage($var, \Google\Type\Interval::class); - $this->invocation_timing = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getInternalMetadata() - { - return isset($this->internal_metadata) ? $this->internal_metadata : ''; - } - - public function hasInternalMetadata() - { - return isset($this->internal_metadata); - } - - public function clearInternalMetadata() - { - unset($this->internal_metadata); - } - - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setInternalMetadata($var) - { - GPBUtil::checkString($var, True); - $this->internal_metadata = $var; - - return $this; - } - - /** - * @return string - */ - public function getAction() - { - return $this->whichOneof("action"); - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/BigQueryAction.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/BigQueryAction.php deleted file mode 100644 index 40b707435e7b..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/BigQueryAction.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryAction - */ -class BigQueryAction extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The generated BigQuery SQL script that will be executed. - * - * Generated from protobuf field string sql_script = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $sql_script = ''; - /** - * Output only. The ID of the BigQuery job that executed the SQL in - * sql_script. Only set once the job has started to run. - * - * Generated from protobuf field string job_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $job_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $sql_script - * Output only. The generated BigQuery SQL script that will be executed. - * @type string $job_id - * Output only. The ID of the BigQuery job that executed the SQL in - * sql_script. Only set once the job has started to run. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The generated BigQuery SQL script that will be executed. - * - * Generated from protobuf field string sql_script = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getSqlScript() - { - return $this->sql_script; - } - - /** - * Output only. The generated BigQuery SQL script that will be executed. - * - * Generated from protobuf field string sql_script = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setSqlScript($var) - { - GPBUtil::checkString($var, True); - $this->sql_script = $var; - - return $this; - } - - /** - * Output only. The ID of the BigQuery job that executed the SQL in - * sql_script. Only set once the job has started to run. - * - * Generated from protobuf field string job_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getJobId() - { - return $this->job_id; - } - - /** - * Output only. The ID of the BigQuery job that executed the SQL in - * sql_script. Only set once the job has started to run. - * - * Generated from protobuf field string job_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setJobId($var) - { - GPBUtil::checkString($var, True); - $this->job_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction.php deleted file mode 100644 index f7103465647f..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction.php +++ /dev/null @@ -1,190 +0,0 @@ -google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction - */ -class DataPreparationAction extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The generated BigQuery SQL script that will be executed. For - * reference only. - * - * Generated from protobuf field string generated_sql = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $generated_sql = ''; - /** - * Output only. The ID of the BigQuery job that executed the SQL in - * sql_script. Only set once the job has started to run. - * - * Generated from protobuf field string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $job_id = ''; - protected $definition; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $contents_yaml - * Output only. YAML representing the contents of the data preparation. - * Can be used to show the customer what the input was to their workflow. - * @type \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionSqlDefinition $contents_sql - * SQL definition for a Data Preparation. Contains a SQL query and - * additional context information. - * @type string $generated_sql - * Output only. The generated BigQuery SQL script that will be executed. For - * reference only. - * @type string $job_id - * Output only. The ID of the BigQuery job that executed the SQL in - * sql_script. Only set once the job has started to run. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Output only. YAML representing the contents of the data preparation. - * Can be used to show the customer what the input was to their workflow. - * - * Generated from protobuf field string contents_yaml = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getContentsYaml() - { - return $this->readOneof(2); - } - - public function hasContentsYaml() - { - return $this->hasOneof(2); - } - - /** - * Output only. YAML representing the contents of the data preparation. - * Can be used to show the customer what the input was to their workflow. - * - * Generated from protobuf field string contents_yaml = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setContentsYaml($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * SQL definition for a Data Preparation. Contains a SQL query and - * additional context information. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionSqlDefinition contents_sql = 6; - * @return \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionSqlDefinition|null - */ - public function getContentsSql() - { - return $this->readOneof(6); - } - - public function hasContentsSql() - { - return $this->hasOneof(6); - } - - /** - * SQL definition for a Data Preparation. Contains a SQL query and - * additional context information. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionSqlDefinition contents_sql = 6; - * @param \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionSqlDefinition $var - * @return $this - */ - public function setContentsSql($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionSqlDefinition::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Output only. The generated BigQuery SQL script that will be executed. For - * reference only. - * - * Generated from protobuf field string generated_sql = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getGeneratedSql() - { - return $this->generated_sql; - } - - /** - * Output only. The generated BigQuery SQL script that will be executed. For - * reference only. - * - * Generated from protobuf field string generated_sql = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setGeneratedSql($var) - { - GPBUtil::checkString($var, True); - $this->generated_sql = $var; - - return $this; - } - - /** - * Output only. The ID of the BigQuery job that executed the SQL in - * sql_script. Only set once the job has started to run. - * - * Generated from protobuf field string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getJobId() - { - return $this->job_id; - } - - /** - * Output only. The ID of the BigQuery job that executed the SQL in - * sql_script. Only set once the job has started to run. - * - * Generated from protobuf field string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setJobId($var) - { - GPBUtil::checkString($var, True); - $this->job_id = $var; - - return $this; - } - - /** - * @return string - */ - public function getDefinition() - { - return $this->whichOneof("definition"); - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionErrorTable.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionErrorTable.php deleted file mode 100644 index e25188ceeb32..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionErrorTable.php +++ /dev/null @@ -1,116 +0,0 @@ -google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionErrorTable - */ -class ActionErrorTable extends \Google\Protobuf\Internal\Message -{ - /** - * Error Table target. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Target target = 1; - */ - protected $target = null; - /** - * Error table partition expiration in days. Only positive values are - * allowed. - * - * Generated from protobuf field int32 retention_days = 2; - */ - protected $retention_days = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1beta1\Target $target - * Error Table target. - * @type int $retention_days - * Error table partition expiration in days. Only positive values are - * allowed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Error Table target. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Target target = 1; - * @return \Google\Cloud\Dataform\V1beta1\Target|null - */ - public function getTarget() - { - return $this->target; - } - - public function hasTarget() - { - return isset($this->target); - } - - public function clearTarget() - { - unset($this->target); - } - - /** - * Error Table target. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.Target target = 1; - * @param \Google\Cloud\Dataform\V1beta1\Target $var - * @return $this - */ - public function setTarget($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Target::class); - $this->target = $var; - - return $this; - } - - /** - * Error table partition expiration in days. Only positive values are - * allowed. - * - * Generated from protobuf field int32 retention_days = 2; - * @return int - */ - public function getRetentionDays() - { - return $this->retention_days; - } - - /** - * Error table partition expiration in days. Only positive values are - * allowed. - * - * Generated from protobuf field int32 retention_days = 2; - * @param int $var - * @return $this - */ - public function setRetentionDays($var) - { - GPBUtil::checkInt32($var); - $this->retention_days = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionIncrementalLoadMode.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionIncrementalLoadMode.php deleted file mode 100644 index 7961ebfbbfe4..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionIncrementalLoadMode.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadMode - */ -class ActionIncrementalLoadMode extends \Google\Protobuf\Internal\Message -{ - /** - * Column name for incremental load modes - * - * Generated from protobuf field string column = 1; - */ - protected $column = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $column - * Column name for incremental load modes - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Column name for incremental load modes - * - * Generated from protobuf field string column = 1; - * @return string - */ - public function getColumn() - { - return $this->column; - } - - /** - * Column name for incremental load modes - * - * Generated from protobuf field string column = 1; - * @param string $var - * @return $this - */ - public function setColumn($var) - { - GPBUtil::checkString($var, True); - $this->column = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionLoadConfig.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionLoadConfig.php deleted file mode 100644 index accddbde6981..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionLoadConfig.php +++ /dev/null @@ -1,180 +0,0 @@ -google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionLoadConfig - */ -class ActionLoadConfig extends \Google\Protobuf\Internal\Message -{ - protected $mode; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionSimpleLoadMode $replace - * Replace destination table - * @type \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionSimpleLoadMode $append - * Append into destination table - * @type \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionIncrementalLoadMode $maximum - * Insert records where the value exceeds the previous maximum value for - * a column in the destination table - * @type \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionIncrementalLoadMode $unique - * Insert records where the value of a column is not already present in - * the destination table - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Replace destination table - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadMode replace = 1; - * @return \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionSimpleLoadMode|null - */ - public function getReplace() - { - return $this->readOneof(1); - } - - public function hasReplace() - { - return $this->hasOneof(1); - } - - /** - * Replace destination table - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadMode replace = 1; - * @param \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionSimpleLoadMode $var - * @return $this - */ - public function setReplace($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionSimpleLoadMode::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Append into destination table - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadMode append = 2; - * @return \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionSimpleLoadMode|null - */ - public function getAppend() - { - return $this->readOneof(2); - } - - public function hasAppend() - { - return $this->hasOneof(2); - } - - /** - * Append into destination table - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadMode append = 2; - * @param \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionSimpleLoadMode $var - * @return $this - */ - public function setAppend($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionSimpleLoadMode::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Insert records where the value exceeds the previous maximum value for - * a column in the destination table - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadMode maximum = 3; - * @return \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionIncrementalLoadMode|null - */ - public function getMaximum() - { - return $this->readOneof(3); - } - - public function hasMaximum() - { - return $this->hasOneof(3); - } - - /** - * Insert records where the value exceeds the previous maximum value for - * a column in the destination table - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadMode maximum = 3; - * @param \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionIncrementalLoadMode $var - * @return $this - */ - public function setMaximum($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionIncrementalLoadMode::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Insert records where the value of a column is not already present in - * the destination table - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadMode unique = 4; - * @return \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionIncrementalLoadMode|null - */ - public function getUnique() - { - return $this->readOneof(4); - } - - public function hasUnique() - { - return $this->hasOneof(4); - } - - /** - * Insert records where the value of a column is not already present in - * the destination table - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadMode unique = 4; - * @param \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionIncrementalLoadMode $var - * @return $this - */ - public function setUnique($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionIncrementalLoadMode::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getMode() - { - return $this->whichOneof("mode"); - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionSimpleLoadMode.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionSimpleLoadMode.php deleted file mode 100644 index 682dcd33857f..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionSimpleLoadMode.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadMode - */ -class ActionSimpleLoadMode extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionSqlDefinition.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionSqlDefinition.php deleted file mode 100644 index 16622975f93c..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionSqlDefinition.php +++ /dev/null @@ -1,159 +0,0 @@ -google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionSqlDefinition - */ -class ActionSqlDefinition extends \Google\Protobuf\Internal\Message -{ - /** - * The SQL query representing the data preparation steps. Formatted as a - * Pipe SQL query statement. - * - * Generated from protobuf field string query = 1; - */ - protected $query = ''; - /** - * Error table configuration, - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionErrorTable error_table = 2; - */ - protected $error_table = null; - /** - * Load configuration. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionLoadConfig load_config = 3; - */ - protected $load_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $query - * The SQL query representing the data preparation steps. Formatted as a - * Pipe SQL query statement. - * @type \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionErrorTable $error_table - * Error table configuration, - * @type \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionLoadConfig $load_config - * Load configuration. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * The SQL query representing the data preparation steps. Formatted as a - * Pipe SQL query statement. - * - * Generated from protobuf field string query = 1; - * @return string - */ - public function getQuery() - { - return $this->query; - } - - /** - * The SQL query representing the data preparation steps. Formatted as a - * Pipe SQL query statement. - * - * Generated from protobuf field string query = 1; - * @param string $var - * @return $this - */ - public function setQuery($var) - { - GPBUtil::checkString($var, True); - $this->query = $var; - - return $this; - } - - /** - * Error table configuration, - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionErrorTable error_table = 2; - * @return \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionErrorTable|null - */ - public function getErrorTable() - { - return $this->error_table; - } - - public function hasErrorTable() - { - return isset($this->error_table); - } - - public function clearErrorTable() - { - unset($this->error_table); - } - - /** - * Error table configuration, - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionErrorTable error_table = 2; - * @param \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionErrorTable $var - * @return $this - */ - public function setErrorTable($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionErrorTable::class); - $this->error_table = $var; - - return $this; - } - - /** - * Load configuration. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionLoadConfig load_config = 3; - * @return \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionLoadConfig|null - */ - public function getLoadConfig() - { - return $this->load_config; - } - - public function hasLoadConfig() - { - return isset($this->load_config); - } - - public function clearLoadConfig() - { - unset($this->load_config); - } - - /** - * Load configuration. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionLoadConfig load_config = 3; - * @param \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionLoadConfig $var - * @return $this - */ - public function setLoadConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction\DataPreparationAction\ActionLoadConfig::class); - $this->load_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/NotebookAction.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/NotebookAction.php deleted file mode 100644 index 329c9fce1fdb..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/NotebookAction.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.dataform.v1beta1.WorkflowInvocationAction.NotebookAction - */ -class NotebookAction extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The code contents of a Notebook to be run. - * - * Generated from protobuf field string contents = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $contents = ''; - /** - * 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. - * - * Generated from protobuf field string job_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $job_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $contents - * Output only. The code contents of a Notebook to be run. - * @type string $job_id - * 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. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The code contents of a Notebook to be run. - * - * Generated from protobuf field string contents = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getContents() - { - return $this->contents; - } - - /** - * Output only. The code contents of a Notebook to be run. - * - * Generated from protobuf field string contents = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setContents($var) - { - GPBUtil::checkString($var, True); - $this->contents = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field string job_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getJobId() - { - return $this->job_id; - } - - /** - * 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. - * - * Generated from protobuf field string job_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setJobId($var) - { - GPBUtil::checkString($var, True); - $this->job_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/State.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/State.php deleted file mode 100644 index c968bfb05359..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/State.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.dataform.v1beta1.WorkflowInvocationAction.State - */ -class State -{ - /** - * The action has not yet been considered for invocation. - * - * Generated from protobuf enum PENDING = 0; - */ - const PENDING = 0; - /** - * The action is currently running. - * - * Generated from protobuf enum RUNNING = 1; - */ - const RUNNING = 1; - /** - * Execution of the action was skipped because upstream dependencies did not - * all complete successfully. A terminal state. - * - * Generated from protobuf enum SKIPPED = 2; - */ - const SKIPPED = 2; - /** - * Execution of the action was disabled as per the configuration of the - * corresponding compilation result action. A terminal state. - * - * Generated from protobuf enum DISABLED = 3; - */ - const DISABLED = 3; - /** - * The action succeeded. A terminal state. - * - * Generated from protobuf enum SUCCEEDED = 4; - */ - const SUCCEEDED = 4; - /** - * The action was cancelled. A terminal state. - * - * Generated from protobuf enum CANCELLED = 5; - */ - const CANCELLED = 5; - /** - * The action failed. A terminal state. - * - * Generated from protobuf enum FAILED = 6; - */ - const FAILED = 6; - - private static $valueToName = [ - self::PENDING => 'PENDING', - self::RUNNING => 'RUNNING', - self::SKIPPED => 'SKIPPED', - self::DISABLED => 'DISABLED', - self::SUCCEEDED => 'SUCCEEDED', - self::CANCELLED => 'CANCELLED', - self::FAILED => 'FAILED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Workspace.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Workspace.php deleted file mode 100644 index 9335cb2610ff..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Workspace.php +++ /dev/null @@ -1,307 +0,0 @@ -google.cloud.dataform.v1beta1.Workspace - */ -class Workspace extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. The timestamp of when the workspace was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. A data encryption state of a Git repository if this Workspace - * is protected by a KMS key. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.DataEncryptionState data_encryption_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $data_encryption_state = null; - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $internal_metadata = null; - /** - * Optional. If set to true, workspaces will not be moved if its linked - * Repository is moved. Instead, it will be deleted. - * - * Generated from protobuf field optional bool disable_moves = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $disable_moves = null; - /** - * Output only. Metadata indicating whether this resource is user-scoped. For - * `Workspace` resources, the `user_scoped` field is always `true`. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $private_resource_metadata = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The workspace's name. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The timestamp of when the workspace was created. - * @type \Google\Cloud\Dataform\V1beta1\DataEncryptionState $data_encryption_state - * Output only. A data encryption state of a Git repository if this Workspace - * is protected by a KMS key. - * @type string $internal_metadata - * 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. - * @type bool $disable_moves - * Optional. If set to true, workspaces will not be moved if its linked - * Repository is moved. Instead, it will be deleted. - * @type \Google\Cloud\Dataform\V1beta1\PrivateResourceMetadata $private_resource_metadata - * Output only. Metadata indicating whether this resource is user-scoped. For - * `Workspace` resources, the `user_scoped` field is always `true`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The workspace's name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. The timestamp of when the workspace was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The timestamp of when the workspace was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. A data encryption state of a Git repository if this Workspace - * is protected by a KMS key. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.DataEncryptionState data_encryption_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataform\V1beta1\DataEncryptionState|null - */ - public function getDataEncryptionState() - { - return $this->data_encryption_state; - } - - public function hasDataEncryptionState() - { - return isset($this->data_encryption_state); - } - - public function clearDataEncryptionState() - { - unset($this->data_encryption_state); - } - - /** - * Output only. A data encryption state of a Git repository if this Workspace - * is protected by a KMS key. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.DataEncryptionState data_encryption_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataform\V1beta1\DataEncryptionState $var - * @return $this - */ - public function setDataEncryptionState($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\DataEncryptionState::class); - $this->data_encryption_state = $var; - - return $this; - } - - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getInternalMetadata() - { - return isset($this->internal_metadata) ? $this->internal_metadata : ''; - } - - public function hasInternalMetadata() - { - return isset($this->internal_metadata); - } - - public function clearInternalMetadata() - { - unset($this->internal_metadata); - } - - /** - * 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. - * - * Generated from protobuf field optional string internal_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setInternalMetadata($var) - { - GPBUtil::checkString($var, True); - $this->internal_metadata = $var; - - return $this; - } - - /** - * Optional. If set to true, workspaces will not be moved if its linked - * Repository is moved. Instead, it will be deleted. - * - * Generated from protobuf field optional bool disable_moves = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getDisableMoves() - { - return isset($this->disable_moves) ? $this->disable_moves : false; - } - - public function hasDisableMoves() - { - return isset($this->disable_moves); - } - - public function clearDisableMoves() - { - unset($this->disable_moves); - } - - /** - * Optional. If set to true, workspaces will not be moved if its linked - * Repository is moved. Instead, it will be deleted. - * - * Generated from protobuf field optional bool disable_moves = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setDisableMoves($var) - { - GPBUtil::checkBool($var); - $this->disable_moves = $var; - - return $this; - } - - /** - * Output only. Metadata indicating whether this resource is user-scoped. For - * `Workspace` resources, the `user_scoped` field is always `true`. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataform\V1beta1\PrivateResourceMetadata|null - */ - public function getPrivateResourceMetadata() - { - return $this->private_resource_metadata; - } - - public function hasPrivateResourceMetadata() - { - return isset($this->private_resource_metadata); - } - - public function clearPrivateResourceMetadata() - { - unset($this->private_resource_metadata); - } - - /** - * Output only. Metadata indicating whether this resource is user-scoped. For - * `Workspace` resources, the `user_scoped` field is always `true`. - * - * Generated from protobuf field .google.cloud.dataform.v1beta1.PrivateResourceMetadata private_resource_metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataform\V1beta1\PrivateResourceMetadata $var - * @return $this - */ - public function setPrivateResourceMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\PrivateResourceMetadata::class); - $this->private_resource_metadata = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WriteFileRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WriteFileRequest.php deleted file mode 100644 index c5343e27ebb1..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WriteFileRequest.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.dataform.v1beta1.WriteFileRequest - */ -class WriteFileRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $workspace = ''; - /** - * Required. The file. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $path = ''; - /** - * Required. The file's contents. - * - * Generated from protobuf field bytes contents = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $contents = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $workspace - * Required. The workspace's name. - * @type string $path - * Required. The file. - * @type string $contents - * Required. The file's contents. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getWorkspace() - { - return $this->workspace; - } - - /** - * Required. The workspace's name. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setWorkspace($var) - { - GPBUtil::checkString($var, True); - $this->workspace = $var; - - return $this; - } - - /** - * Required. The file. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * Required. The file. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - - /** - * Required. The file's contents. - * - * Generated from protobuf field bytes contents = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getContents() - { - return $this->contents; - } - - /** - * Required. The file's contents. - * - * Generated from protobuf field bytes contents = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setContents($var) - { - GPBUtil::checkString($var, False); - $this->contents = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WriteFileResponse.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WriteFileResponse.php deleted file mode 100644 index 578910dc2bf3..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WriteFileResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.dataform.v1beta1.WriteFileResponse - */ -class WriteFileResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/cancel_operation.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/cancel_operation.php deleted file mode 100644 index 98fec49e0ca6..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/cancel_operation.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($name); - - // Call the API and handle any network failures. - try { - $dataformClient->cancelOperation($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $name = '[NAME]'; - - cancel_operation_sample($name); -} -// [END dataform_v1beta1_generated_Dataform_CancelOperation_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/cancel_workflow_invocation.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/cancel_workflow_invocation.php deleted file mode 100644 index 08990324a751..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/cancel_workflow_invocation.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var CancelWorkflowInvocationResponse $response */ - $response = $dataformClient->cancelWorkflowInvocation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::workflowInvocationName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKFLOW_INVOCATION]' - ); - - cancel_workflow_invocation_sample($formattedName); -} -// [END dataform_v1beta1_generated_Dataform_CancelWorkflowInvocation_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/commit_repository_changes.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/commit_repository_changes.php deleted file mode 100644 index 446697a8fcc7..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/commit_repository_changes.php +++ /dev/null @@ -1,91 +0,0 @@ -setName($commitMetadataAuthorName) - ->setEmailAddress($commitMetadataAuthorEmailAddress); - $commitMetadata = (new CommitMetadata()) - ->setAuthor($commitMetadataAuthor); - $request = (new CommitRepositoryChangesRequest()) - ->setName($formattedName) - ->setCommitMetadata($commitMetadata); - - // Call the API and handle any network failures. - try { - /** @var CommitRepositoryChangesResponse $response */ - $response = $dataformClient->commitRepositoryChanges($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $commitMetadataAuthorName = '[NAME]'; - $commitMetadataAuthorEmailAddress = '[EMAIL_ADDRESS]'; - - commit_repository_changes_sample( - $formattedName, - $commitMetadataAuthorName, - $commitMetadataAuthorEmailAddress - ); -} -// [END dataform_v1beta1_generated_Dataform_CommitRepositoryChanges_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/commit_workspace_changes.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/commit_workspace_changes.php deleted file mode 100644 index d933d2de9629..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/commit_workspace_changes.php +++ /dev/null @@ -1,88 +0,0 @@ -setName($authorName) - ->setEmailAddress($authorEmailAddress); - $request = (new CommitWorkspaceChangesRequest()) - ->setName($formattedName) - ->setAuthor($author); - - // Call the API and handle any network failures. - try { - /** @var CommitWorkspaceChangesResponse $response */ - $response = $dataformClient->commitWorkspaceChanges($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::workspaceName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKSPACE]' - ); - $authorName = '[NAME]'; - $authorEmailAddress = '[EMAIL_ADDRESS]'; - - commit_workspace_changes_sample($formattedName, $authorName, $authorEmailAddress); -} -// [END dataform_v1beta1_generated_Dataform_CommitWorkspaceChanges_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/compute_repository_access_token_status.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/compute_repository_access_token_status.php deleted file mode 100644 index 4aff6028e4d2..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/compute_repository_access_token_status.php +++ /dev/null @@ -1,71 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var ComputeRepositoryAccessTokenStatusResponse $response */ - $response = $dataformClient->computeRepositoryAccessTokenStatus($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - - compute_repository_access_token_status_sample($formattedName); -} -// [END dataform_v1beta1_generated_Dataform_ComputeRepositoryAccessTokenStatus_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_compilation_result.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_compilation_result.php deleted file mode 100644 index b953c06637e4..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_compilation_result.php +++ /dev/null @@ -1,74 +0,0 @@ -setParent($formattedParent) - ->setCompilationResult($compilationResult); - - // Call the API and handle any network failures. - try { - /** @var CompilationResult $response */ - $response = $dataformClient->createCompilationResult($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - - create_compilation_result_sample($formattedParent); -} -// [END dataform_v1beta1_generated_Dataform_CreateCompilationResult_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_folder.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_folder.php deleted file mode 100644 index 64d923f070f1..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_folder.php +++ /dev/null @@ -1,77 +0,0 @@ -setDisplayName($folderDisplayName); - $request = (new CreateFolderRequest()) - ->setParent($formattedParent) - ->setFolder($folder); - - // Call the API and handle any network failures. - try { - /** @var Folder $response */ - $response = $dataformClient->createFolder($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataformClient::locationName('[PROJECT]', '[LOCATION]'); - $folderDisplayName = '[DISPLAY_NAME]'; - - create_folder_sample($formattedParent, $folderDisplayName); -} -// [END dataform_v1beta1_generated_Dataform_CreateFolder_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_release_config.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_release_config.php deleted file mode 100644 index 90eac7c5b78a..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_release_config.php +++ /dev/null @@ -1,88 +0,0 @@ -setGitCommitish($releaseConfigGitCommitish); - $request = (new CreateReleaseConfigRequest()) - ->setParent($formattedParent) - ->setReleaseConfig($releaseConfig) - ->setReleaseConfigId($releaseConfigId); - - // Call the API and handle any network failures. - try { - /** @var ReleaseConfig $response */ - $response = $dataformClient->createReleaseConfig($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $releaseConfigGitCommitish = '[GIT_COMMITISH]'; - $releaseConfigId = '[RELEASE_CONFIG_ID]'; - - create_release_config_sample($formattedParent, $releaseConfigGitCommitish, $releaseConfigId); -} -// [END dataform_v1beta1_generated_Dataform_CreateReleaseConfig_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_repository.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_repository.php deleted file mode 100644 index 833233cb572a..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_repository.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent) - ->setRepository($repository) - ->setRepositoryId($repositoryId); - - // Call the API and handle any network failures. - try { - /** @var Repository $response */ - $response = $dataformClient->createRepository($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataformClient::locationName('[PROJECT]', '[LOCATION]'); - $repositoryId = '[REPOSITORY_ID]'; - - create_repository_sample($formattedParent, $repositoryId); -} -// [END dataform_v1beta1_generated_Dataform_CreateRepository_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_team_folder.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_team_folder.php deleted file mode 100644 index 4a68a4db285f..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_team_folder.php +++ /dev/null @@ -1,77 +0,0 @@ -setDisplayName($teamFolderDisplayName); - $request = (new CreateTeamFolderRequest()) - ->setParent($formattedParent) - ->setTeamFolder($teamFolder); - - // Call the API and handle any network failures. - try { - /** @var TeamFolder $response */ - $response = $dataformClient->createTeamFolder($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataformClient::locationName('[PROJECT]', '[LOCATION]'); - $teamFolderDisplayName = '[DISPLAY_NAME]'; - - create_team_folder_sample($formattedParent, $teamFolderDisplayName); -} -// [END dataform_v1beta1_generated_Dataform_CreateTeamFolder_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_workflow_config.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_workflow_config.php deleted file mode 100644 index d5c538d974a0..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_workflow_config.php +++ /dev/null @@ -1,96 +0,0 @@ -setReleaseConfig($formattedWorkflowConfigReleaseConfig); - $request = (new CreateWorkflowConfigRequest()) - ->setParent($formattedParent) - ->setWorkflowConfig($workflowConfig) - ->setWorkflowConfigId($workflowConfigId); - - // Call the API and handle any network failures. - try { - /** @var WorkflowConfig $response */ - $response = $dataformClient->createWorkflowConfig($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $formattedWorkflowConfigReleaseConfig = DataformClient::releaseConfigName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[RELEASE_CONFIG]' - ); - $workflowConfigId = '[WORKFLOW_CONFIG_ID]'; - - create_workflow_config_sample( - $formattedParent, - $formattedWorkflowConfigReleaseConfig, - $workflowConfigId - ); -} -// [END dataform_v1beta1_generated_Dataform_CreateWorkflowConfig_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_workflow_invocation.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_workflow_invocation.php deleted file mode 100644 index 936e66137d51..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_workflow_invocation.php +++ /dev/null @@ -1,74 +0,0 @@ -setParent($formattedParent) - ->setWorkflowInvocation($workflowInvocation); - - // Call the API and handle any network failures. - try { - /** @var WorkflowInvocation $response */ - $response = $dataformClient->createWorkflowInvocation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - - create_workflow_invocation_sample($formattedParent); -} -// [END dataform_v1beta1_generated_Dataform_CreateWorkflowInvocation_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_workspace.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_workspace.php deleted file mode 100644 index df7cbacf0409..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_workspace.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent) - ->setWorkspace($workspace) - ->setWorkspaceId($workspaceId); - - // Call the API and handle any network failures. - try { - /** @var Workspace $response */ - $response = $dataformClient->createWorkspace($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $workspaceId = '[WORKSPACE_ID]'; - - create_workspace_sample($formattedParent, $workspaceId); -} -// [END dataform_v1beta1_generated_Dataform_CreateWorkspace_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_folder.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_folder.php deleted file mode 100644 index 53b8dd46130c..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_folder.php +++ /dev/null @@ -1,69 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $dataformClient->deleteFolder($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); - - delete_folder_sample($formattedName); -} -// [END dataform_v1beta1_generated_Dataform_DeleteFolder_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_operation.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_operation.php deleted file mode 100644 index d2248dd0ed60..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_operation.php +++ /dev/null @@ -1,71 +0,0 @@ -setName($name); - - // Call the API and handle any network failures. - try { - $dataformClient->deleteOperation($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $name = '[NAME]'; - - delete_operation_sample($name); -} -// [END dataform_v1beta1_generated_Dataform_DeleteOperation_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_release_config.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_release_config.php deleted file mode 100644 index 55a1048c7661..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_release_config.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $dataformClient->deleteReleaseConfig($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::releaseConfigName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[RELEASE_CONFIG]' - ); - - delete_release_config_sample($formattedName); -} -// [END dataform_v1beta1_generated_Dataform_DeleteReleaseConfig_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_repository.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_repository.php deleted file mode 100644 index ee6695132cba..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_repository.php +++ /dev/null @@ -1,69 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $dataformClient->deleteRepository($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - - delete_repository_sample($formattedName); -} -// [END dataform_v1beta1_generated_Dataform_DeleteRepository_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_team_folder.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_team_folder.php deleted file mode 100644 index ed93d3ad7601..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_team_folder.php +++ /dev/null @@ -1,69 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $dataformClient->deleteTeamFolder($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::teamFolderName('[PROJECT]', '[LOCATION]', '[TEAM_FOLDER]'); - - delete_team_folder_sample($formattedName); -} -// [END dataform_v1beta1_generated_Dataform_DeleteTeamFolder_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_workflow_config.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_workflow_config.php deleted file mode 100644 index 6d6a5c2511b9..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_workflow_config.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $dataformClient->deleteWorkflowConfig($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::workflowConfigName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKFLOW_CONFIG]' - ); - - delete_workflow_config_sample($formattedName); -} -// [END dataform_v1beta1_generated_Dataform_DeleteWorkflowConfig_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_workflow_invocation.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_workflow_invocation.php deleted file mode 100644 index 90bd6d33ba5a..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_workflow_invocation.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $dataformClient->deleteWorkflowInvocation($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::workflowInvocationName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKFLOW_INVOCATION]' - ); - - delete_workflow_invocation_sample($formattedName); -} -// [END dataform_v1beta1_generated_Dataform_DeleteWorkflowInvocation_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_workspace.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_workspace.php deleted file mode 100644 index 010d1c2cef0c..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_workspace.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $dataformClient->deleteWorkspace($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::workspaceName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKSPACE]' - ); - - delete_workspace_sample($formattedName); -} -// [END dataform_v1beta1_generated_Dataform_DeleteWorkspace_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/fetch_file_diff.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/fetch_file_diff.php deleted file mode 100644 index 8479050d3235..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/fetch_file_diff.php +++ /dev/null @@ -1,80 +0,0 @@ -setWorkspace($formattedWorkspace) - ->setPath($path); - - // Call the API and handle any network failures. - try { - /** @var FetchFileDiffResponse $response */ - $response = $dataformClient->fetchFileDiff($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedWorkspace = DataformClient::workspaceName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKSPACE]' - ); - $path = '[PATH]'; - - fetch_file_diff_sample($formattedWorkspace, $path); -} -// [END dataform_v1beta1_generated_Dataform_FetchFileDiff_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/fetch_file_git_statuses.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/fetch_file_git_statuses.php deleted file mode 100644 index ea42daec5ae7..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/fetch_file_git_statuses.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var FetchFileGitStatusesResponse $response */ - $response = $dataformClient->fetchFileGitStatuses($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::workspaceName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKSPACE]' - ); - - fetch_file_git_statuses_sample($formattedName); -} -// [END dataform_v1beta1_generated_Dataform_FetchFileGitStatuses_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/fetch_git_ahead_behind.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/fetch_git_ahead_behind.php deleted file mode 100644 index 794c03d33801..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/fetch_git_ahead_behind.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var FetchGitAheadBehindResponse $response */ - $response = $dataformClient->fetchGitAheadBehind($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::workspaceName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKSPACE]' - ); - - fetch_git_ahead_behind_sample($formattedName); -} -// [END dataform_v1beta1_generated_Dataform_FetchGitAheadBehind_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/fetch_remote_branches.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/fetch_remote_branches.php deleted file mode 100644 index 52dba3df6360..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/fetch_remote_branches.php +++ /dev/null @@ -1,71 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var FetchRemoteBranchesResponse $response */ - $response = $dataformClient->fetchRemoteBranches($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - - fetch_remote_branches_sample($formattedName); -} -// [END dataform_v1beta1_generated_Dataform_FetchRemoteBranches_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/fetch_repository_history.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/fetch_repository_history.php deleted file mode 100644 index 6e697922ac09..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/fetch_repository_history.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataformClient->fetchRepositoryHistory($request); - - /** @var CommitLogEntry $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - - fetch_repository_history_sample($formattedName); -} -// [END dataform_v1beta1_generated_Dataform_FetchRepositoryHistory_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_compilation_result.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_compilation_result.php deleted file mode 100644 index 9b7bc24f85e3..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_compilation_result.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var CompilationResult $response */ - $response = $dataformClient->getCompilationResult($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::compilationResultName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[COMPILATION_RESULT]' - ); - - get_compilation_result_sample($formattedName); -} -// [END dataform_v1beta1_generated_Dataform_GetCompilationResult_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_config.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_config.php deleted file mode 100644 index f7d6ca46fa43..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_config.php +++ /dev/null @@ -1,71 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Config $response */ - $response = $dataformClient->getConfig($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::configName('[PROJECT]', '[LOCATION]'); - - get_config_sample($formattedName); -} -// [END dataform_v1beta1_generated_Dataform_GetConfig_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_folder.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_folder.php deleted file mode 100644 index d37806b0bb33..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_folder.php +++ /dev/null @@ -1,71 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Folder $response */ - $response = $dataformClient->getFolder($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); - - get_folder_sample($formattedName); -} -// [END dataform_v1beta1_generated_Dataform_GetFolder_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_iam_policy.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_iam_policy.php deleted file mode 100644 index 4f918dd5482a..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_iam_policy.php +++ /dev/null @@ -1,73 +0,0 @@ -setResource($resource); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $dataformClient->getIamPolicy($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $resource = '[RESOURCE]'; - - get_iam_policy_sample($resource); -} -// [END dataform_v1beta1_generated_Dataform_GetIamPolicy_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_location.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_location.php deleted file mode 100644 index 093ac953ff4e..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_location.php +++ /dev/null @@ -1,57 +0,0 @@ -getLocation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END dataform_v1beta1_generated_Dataform_GetLocation_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_operation.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_operation.php deleted file mode 100644 index afb61c1f8468..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_operation.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($name); - - // Call the API and handle any network failures. - try { - /** @var Operation $response */ - $response = $dataformClient->getOperation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $name = '[NAME]'; - - get_operation_sample($name); -} -// [END dataform_v1beta1_generated_Dataform_GetOperation_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_release_config.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_release_config.php deleted file mode 100644 index 37b50cd03666..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_release_config.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var ReleaseConfig $response */ - $response = $dataformClient->getReleaseConfig($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::releaseConfigName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[RELEASE_CONFIG]' - ); - - get_release_config_sample($formattedName); -} -// [END dataform_v1beta1_generated_Dataform_GetReleaseConfig_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_repository.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_repository.php deleted file mode 100644 index 4f7b7a9182c4..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_repository.php +++ /dev/null @@ -1,71 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Repository $response */ - $response = $dataformClient->getRepository($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - - get_repository_sample($formattedName); -} -// [END dataform_v1beta1_generated_Dataform_GetRepository_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_team_folder.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_team_folder.php deleted file mode 100644 index 635570078521..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_team_folder.php +++ /dev/null @@ -1,71 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var TeamFolder $response */ - $response = $dataformClient->getTeamFolder($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::teamFolderName('[PROJECT]', '[LOCATION]', '[TEAM_FOLDER]'); - - get_team_folder_sample($formattedName); -} -// [END dataform_v1beta1_generated_Dataform_GetTeamFolder_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_workflow_config.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_workflow_config.php deleted file mode 100644 index af7aecee9ffc..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_workflow_config.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var WorkflowConfig $response */ - $response = $dataformClient->getWorkflowConfig($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::workflowConfigName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKFLOW_CONFIG]' - ); - - get_workflow_config_sample($formattedName); -} -// [END dataform_v1beta1_generated_Dataform_GetWorkflowConfig_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_workflow_invocation.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_workflow_invocation.php deleted file mode 100644 index 123b4905a4b7..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_workflow_invocation.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var WorkflowInvocation $response */ - $response = $dataformClient->getWorkflowInvocation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::workflowInvocationName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKFLOW_INVOCATION]' - ); - - get_workflow_invocation_sample($formattedName); -} -// [END dataform_v1beta1_generated_Dataform_GetWorkflowInvocation_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_workspace.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_workspace.php deleted file mode 100644 index 71c27834a9f1..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_workspace.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Workspace $response */ - $response = $dataformClient->getWorkspace($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::workspaceName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKSPACE]' - ); - - get_workspace_sample($formattedName); -} -// [END dataform_v1beta1_generated_Dataform_GetWorkspace_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/install_npm_packages.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/install_npm_packages.php deleted file mode 100644 index d79cbfe97e83..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/install_npm_packages.php +++ /dev/null @@ -1,76 +0,0 @@ -setWorkspace($formattedWorkspace); - - // Call the API and handle any network failures. - try { - /** @var InstallNpmPackagesResponse $response */ - $response = $dataformClient->installNpmPackages($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedWorkspace = DataformClient::workspaceName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKSPACE]' - ); - - install_npm_packages_sample($formattedWorkspace); -} -// [END dataform_v1beta1_generated_Dataform_InstallNpmPackages_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_compilation_results.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_compilation_results.php deleted file mode 100644 index 231df1c9eebe..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_compilation_results.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataformClient->listCompilationResults($request); - - /** @var CompilationResult $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - - list_compilation_results_sample($formattedParent); -} -// [END dataform_v1beta1_generated_Dataform_ListCompilationResults_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_locations.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_locations.php deleted file mode 100644 index 4ad162f21625..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_locations.php +++ /dev/null @@ -1,69 +0,0 @@ -listLocations($request); - - /** @var Location $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END dataform_v1beta1_generated_Dataform_ListLocations_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_operations.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_operations.php deleted file mode 100644 index 8baf3219f54d..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_operations.php +++ /dev/null @@ -1,79 +0,0 @@ -setName($name) - ->setFilter($filter); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataformClient->listOperations($request); - - /** @var Operation $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $name = '[NAME]'; - $filter = '[FILTER]'; - - list_operations_sample($name, $filter); -} -// [END dataform_v1beta1_generated_Dataform_ListOperations_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_release_configs.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_release_configs.php deleted file mode 100644 index 21ead5506d6b..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_release_configs.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataformClient->listReleaseConfigs($request); - - /** @var ReleaseConfig $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - - list_release_configs_sample($formattedParent); -} -// [END dataform_v1beta1_generated_Dataform_ListReleaseConfigs_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_repositories.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_repositories.php deleted file mode 100644 index 9239cb97b415..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_repositories.php +++ /dev/null @@ -1,80 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataformClient->listRepositories($request); - - /** @var Repository $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataformClient::locationName('[PROJECT]', '[LOCATION]'); - - list_repositories_sample($formattedParent); -} -// [END dataform_v1beta1_generated_Dataform_ListRepositories_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_workflow_configs.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_workflow_configs.php deleted file mode 100644 index db312bb7a36f..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_workflow_configs.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataformClient->listWorkflowConfigs($request); - - /** @var WorkflowConfig $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - - list_workflow_configs_sample($formattedParent); -} -// [END dataform_v1beta1_generated_Dataform_ListWorkflowConfigs_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_workflow_invocations.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_workflow_invocations.php deleted file mode 100644 index fb9e4a655f05..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_workflow_invocations.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataformClient->listWorkflowInvocations($request); - - /** @var WorkflowInvocation $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - - list_workflow_invocations_sample($formattedParent); -} -// [END dataform_v1beta1_generated_Dataform_ListWorkflowInvocations_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_workspaces.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_workspaces.php deleted file mode 100644 index 5662a00d97ae..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_workspaces.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataformClient->listWorkspaces($request); - - /** @var Workspace $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - - list_workspaces_sample($formattedParent); -} -// [END dataform_v1beta1_generated_Dataform_ListWorkspaces_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/make_directory.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/make_directory.php deleted file mode 100644 index 7e9a50b6c8c5..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/make_directory.php +++ /dev/null @@ -1,80 +0,0 @@ -setWorkspace($formattedWorkspace) - ->setPath($path); - - // Call the API and handle any network failures. - try { - /** @var MakeDirectoryResponse $response */ - $response = $dataformClient->makeDirectory($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedWorkspace = DataformClient::workspaceName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKSPACE]' - ); - $path = '[PATH]'; - - make_directory_sample($formattedWorkspace, $path); -} -// [END dataform_v1beta1_generated_Dataform_MakeDirectory_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/move_directory.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/move_directory.php deleted file mode 100644 index 79a1ade6a834..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/move_directory.php +++ /dev/null @@ -1,85 +0,0 @@ -setWorkspace($formattedWorkspace) - ->setPath($path) - ->setNewPath($newPath); - - // Call the API and handle any network failures. - try { - /** @var MoveDirectoryResponse $response */ - $response = $dataformClient->moveDirectory($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedWorkspace = DataformClient::workspaceName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKSPACE]' - ); - $path = '[PATH]'; - $newPath = '[NEW_PATH]'; - - move_directory_sample($formattedWorkspace, $path, $newPath); -} -// [END dataform_v1beta1_generated_Dataform_MoveDirectory_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/move_file.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/move_file.php deleted file mode 100644 index 07c723320187..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/move_file.php +++ /dev/null @@ -1,84 +0,0 @@ -setWorkspace($formattedWorkspace) - ->setPath($path) - ->setNewPath($newPath); - - // Call the API and handle any network failures. - try { - /** @var MoveFileResponse $response */ - $response = $dataformClient->moveFile($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedWorkspace = DataformClient::workspaceName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKSPACE]' - ); - $path = '[PATH]'; - $newPath = '[NEW_PATH]'; - - move_file_sample($formattedWorkspace, $path, $newPath); -} -// [END dataform_v1beta1_generated_Dataform_MoveFile_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/move_folder.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/move_folder.php deleted file mode 100644 index 1fae47c71c14..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/move_folder.php +++ /dev/null @@ -1,80 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataformClient->moveFolder($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); - - move_folder_sample($formattedName); -} -// [END dataform_v1beta1_generated_Dataform_MoveFolder_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/move_repository.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/move_repository.php deleted file mode 100644 index 1a69a3187863..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/move_repository.php +++ /dev/null @@ -1,80 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataformClient->moveRepository($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - - move_repository_sample($formattedName); -} -// [END dataform_v1beta1_generated_Dataform_MoveRepository_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/pull_git_commits.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/pull_git_commits.php deleted file mode 100644 index b0fd6afdf40b..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/pull_git_commits.php +++ /dev/null @@ -1,88 +0,0 @@ -setName($authorName) - ->setEmailAddress($authorEmailAddress); - $request = (new PullGitCommitsRequest()) - ->setName($formattedName) - ->setAuthor($author); - - // Call the API and handle any network failures. - try { - /** @var PullGitCommitsResponse $response */ - $response = $dataformClient->pullGitCommits($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::workspaceName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKSPACE]' - ); - $authorName = '[NAME]'; - $authorEmailAddress = '[EMAIL_ADDRESS]'; - - pull_git_commits_sample($formattedName, $authorName, $authorEmailAddress); -} -// [END dataform_v1beta1_generated_Dataform_PullGitCommits_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/push_git_commits.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/push_git_commits.php deleted file mode 100644 index c1293e95d007..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/push_git_commits.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var PushGitCommitsResponse $response */ - $response = $dataformClient->pushGitCommits($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::workspaceName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKSPACE]' - ); - - push_git_commits_sample($formattedName); -} -// [END dataform_v1beta1_generated_Dataform_PushGitCommits_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_compilation_result_actions.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_compilation_result_actions.php deleted file mode 100644 index 33b97f2025e9..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_compilation_result_actions.php +++ /dev/null @@ -1,81 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataformClient->queryCompilationResultActions($request); - - /** @var CompilationResultAction $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::compilationResultName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[COMPILATION_RESULT]' - ); - - query_compilation_result_actions_sample($formattedName); -} -// [END dataform_v1beta1_generated_Dataform_QueryCompilationResultActions_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_directory_contents.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_directory_contents.php deleted file mode 100644 index ff2e528f5425..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_directory_contents.php +++ /dev/null @@ -1,81 +0,0 @@ -setWorkspace($formattedWorkspace); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataformClient->queryDirectoryContents($request); - - /** @var DirectoryEntry $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedWorkspace = DataformClient::workspaceName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKSPACE]' - ); - - query_directory_contents_sample($formattedWorkspace); -} -// [END dataform_v1beta1_generated_Dataform_QueryDirectoryContents_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_folder_contents.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_folder_contents.php deleted file mode 100644 index b49380b8690a..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_folder_contents.php +++ /dev/null @@ -1,77 +0,0 @@ -setFolder($formattedFolder); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataformClient->queryFolderContents($request); - - /** @var FolderContentsEntry $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedFolder = DataformClient::folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); - - query_folder_contents_sample($formattedFolder); -} -// [END dataform_v1beta1_generated_Dataform_QueryFolderContents_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_repository_directory_contents.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_repository_directory_contents.php deleted file mode 100644 index cec32728b497..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_repository_directory_contents.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataformClient->queryRepositoryDirectoryContents($request); - - /** @var DirectoryEntry $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - - query_repository_directory_contents_sample($formattedName); -} -// [END dataform_v1beta1_generated_Dataform_QueryRepositoryDirectoryContents_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_team_folder_contents.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_team_folder_contents.php deleted file mode 100644 index c04ac178e855..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_team_folder_contents.php +++ /dev/null @@ -1,77 +0,0 @@ -setTeamFolder($formattedTeamFolder); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataformClient->queryTeamFolderContents($request); - - /** @var TeamFolderContentsEntry $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedTeamFolder = DataformClient::teamFolderName('[PROJECT]', '[LOCATION]', '[TEAM_FOLDER]'); - - query_team_folder_contents_sample($formattedTeamFolder); -} -// [END dataform_v1beta1_generated_Dataform_QueryTeamFolderContents_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_user_root_contents.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_user_root_contents.php deleted file mode 100644 index 08a05318a66d..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_user_root_contents.php +++ /dev/null @@ -1,79 +0,0 @@ -setLocation($formattedLocation); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataformClient->queryUserRootContents($request); - - /** @var RootContentsEntry $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedLocation = DataformClient::locationName('[PROJECT]', '[LOCATION]'); - - query_user_root_contents_sample($formattedLocation); -} -// [END dataform_v1beta1_generated_Dataform_QueryUserRootContents_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_workflow_invocation_actions.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_workflow_invocation_actions.php deleted file mode 100644 index d8d3d4877344..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_workflow_invocation_actions.php +++ /dev/null @@ -1,81 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataformClient->queryWorkflowInvocationActions($request); - - /** @var WorkflowInvocationAction $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::workflowInvocationName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKFLOW_INVOCATION]' - ); - - query_workflow_invocation_actions_sample($formattedName); -} -// [END dataform_v1beta1_generated_Dataform_QueryWorkflowInvocationActions_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/read_file.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/read_file.php deleted file mode 100644 index 58039467e11b..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/read_file.php +++ /dev/null @@ -1,80 +0,0 @@ -setWorkspace($formattedWorkspace) - ->setPath($path); - - // Call the API and handle any network failures. - try { - /** @var ReadFileResponse $response */ - $response = $dataformClient->readFile($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedWorkspace = DataformClient::workspaceName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKSPACE]' - ); - $path = '[PATH]'; - - read_file_sample($formattedWorkspace, $path); -} -// [END dataform_v1beta1_generated_Dataform_ReadFile_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/read_repository_file.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/read_repository_file.php deleted file mode 100644 index 0efbfdc9481f..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/read_repository_file.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName) - ->setPath($path); - - // Call the API and handle any network failures. - try { - /** @var ReadRepositoryFileResponse $response */ - $response = $dataformClient->readRepositoryFile($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $path = '[PATH]'; - - read_repository_file_sample($formattedName, $path); -} -// [END dataform_v1beta1_generated_Dataform_ReadRepositoryFile_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/remove_directory.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/remove_directory.php deleted file mode 100644 index 375f89aa81f7..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/remove_directory.php +++ /dev/null @@ -1,80 +0,0 @@ -setWorkspace($formattedWorkspace) - ->setPath($path); - - // Call the API and handle any network failures. - try { - /** @var RemoveDirectoryResponse $response */ - $response = $dataformClient->removeDirectory($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedWorkspace = DataformClient::workspaceName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKSPACE]' - ); - $path = '[PATH]'; - - remove_directory_sample($formattedWorkspace, $path); -} -// [END dataform_v1beta1_generated_Dataform_RemoveDirectory_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/remove_file.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/remove_file.php deleted file mode 100644 index 85e75fb58f77..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/remove_file.php +++ /dev/null @@ -1,80 +0,0 @@ -setWorkspace($formattedWorkspace) - ->setPath($path); - - // Call the API and handle any network failures. - try { - /** @var RemoveFileResponse $response */ - $response = $dataformClient->removeFile($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedWorkspace = DataformClient::workspaceName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKSPACE]' - ); - $path = '[PATH]'; - - remove_file_sample($formattedWorkspace, $path); -} -// [END dataform_v1beta1_generated_Dataform_RemoveFile_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/reset_workspace_changes.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/reset_workspace_changes.php deleted file mode 100644 index 8a9cb06cd235..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/reset_workspace_changes.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var ResetWorkspaceChangesResponse $response */ - $response = $dataformClient->resetWorkspaceChanges($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataformClient::workspaceName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKSPACE]' - ); - - reset_workspace_changes_sample($formattedName); -} -// [END dataform_v1beta1_generated_Dataform_ResetWorkspaceChanges_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/search_files.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/search_files.php deleted file mode 100644 index 94703c643e4d..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/search_files.php +++ /dev/null @@ -1,81 +0,0 @@ -setWorkspace($formattedWorkspace); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataformClient->searchFiles($request); - - /** @var SearchResult $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedWorkspace = DataformClient::workspaceName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKSPACE]' - ); - - search_files_sample($formattedWorkspace); -} -// [END dataform_v1beta1_generated_Dataform_SearchFiles_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/search_team_folders.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/search_team_folders.php deleted file mode 100644 index 4398db0248a9..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/search_team_folders.php +++ /dev/null @@ -1,78 +0,0 @@ -setLocation($formattedLocation); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataformClient->searchTeamFolders($request); - - /** @var TeamFolderSearchResult $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedLocation = DataformClient::locationName('[PROJECT]', '[LOCATION]'); - - search_team_folders_sample($formattedLocation); -} -// [END dataform_v1beta1_generated_Dataform_SearchTeamFolders_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/set_iam_policy.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/set_iam_policy.php deleted file mode 100644 index 26485c2fe1b5..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/set_iam_policy.php +++ /dev/null @@ -1,76 +0,0 @@ -setResource($resource) - ->setPolicy($policy); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $dataformClient->setIamPolicy($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $resource = '[RESOURCE]'; - - set_iam_policy_sample($resource); -} -// [END dataform_v1beta1_generated_Dataform_SetIamPolicy_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/test_iam_permissions.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/test_iam_permissions.php deleted file mode 100644 index 90425f5b4b52..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/test_iam_permissions.php +++ /dev/null @@ -1,84 +0,0 @@ -setResource($resource) - ->setPermissions($permissions); - - // Call the API and handle any network failures. - try { - /** @var TestIamPermissionsResponse $response */ - $response = $dataformClient->testIamPermissions($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $resource = '[RESOURCE]'; - $permissionsElement = '[PERMISSIONS]'; - - test_iam_permissions_sample($resource, $permissionsElement); -} -// [END dataform_v1beta1_generated_Dataform_TestIamPermissions_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_config.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_config.php deleted file mode 100644 index b0884b5eeebe..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_config.php +++ /dev/null @@ -1,64 +0,0 @@ -setConfig($config); - - // Call the API and handle any network failures. - try { - /** @var Config $response */ - $response = $dataformClient->updateConfig($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END dataform_v1beta1_generated_Dataform_UpdateConfig_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_folder.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_folder.php deleted file mode 100644 index 37537288ea06..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_folder.php +++ /dev/null @@ -1,72 +0,0 @@ -setDisplayName($folderDisplayName); - $request = (new UpdateFolderRequest()) - ->setFolder($folder); - - // Call the API and handle any network failures. - try { - /** @var Folder $response */ - $response = $dataformClient->updateFolder($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $folderDisplayName = '[DISPLAY_NAME]'; - - update_folder_sample($folderDisplayName); -} -// [END dataform_v1beta1_generated_Dataform_UpdateFolder_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_release_config.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_release_config.php deleted file mode 100644 index 77e61eecc226..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_release_config.php +++ /dev/null @@ -1,81 +0,0 @@ -setGitCommitish($releaseConfigGitCommitish); - $request = (new UpdateReleaseConfigRequest()) - ->setReleaseConfig($releaseConfig); - - // Call the API and handle any network failures. - try { - /** @var ReleaseConfig $response */ - $response = $dataformClient->updateReleaseConfig($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $releaseConfigGitCommitish = '[GIT_COMMITISH]'; - - update_release_config_sample($releaseConfigGitCommitish); -} -// [END dataform_v1beta1_generated_Dataform_UpdateReleaseConfig_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_repository.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_repository.php deleted file mode 100644 index 8244d110d494..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_repository.php +++ /dev/null @@ -1,64 +0,0 @@ -setRepository($repository); - - // Call the API and handle any network failures. - try { - /** @var Repository $response */ - $response = $dataformClient->updateRepository($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END dataform_v1beta1_generated_Dataform_UpdateRepository_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_team_folder.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_team_folder.php deleted file mode 100644 index 189c4965c2f9..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_team_folder.php +++ /dev/null @@ -1,72 +0,0 @@ -setDisplayName($teamFolderDisplayName); - $request = (new UpdateTeamFolderRequest()) - ->setTeamFolder($teamFolder); - - // Call the API and handle any network failures. - try { - /** @var TeamFolder $response */ - $response = $dataformClient->updateTeamFolder($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $teamFolderDisplayName = '[DISPLAY_NAME]'; - - update_team_folder_sample($teamFolderDisplayName); -} -// [END dataform_v1beta1_generated_Dataform_UpdateTeamFolder_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_workflow_config.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_workflow_config.php deleted file mode 100644 index 86c7ba077e51..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_workflow_config.php +++ /dev/null @@ -1,85 +0,0 @@ -setReleaseConfig($formattedWorkflowConfigReleaseConfig); - $request = (new UpdateWorkflowConfigRequest()) - ->setWorkflowConfig($workflowConfig); - - // Call the API and handle any network failures. - try { - /** @var WorkflowConfig $response */ - $response = $dataformClient->updateWorkflowConfig($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedWorkflowConfigReleaseConfig = DataformClient::releaseConfigName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[RELEASE_CONFIG]' - ); - - update_workflow_config_sample($formattedWorkflowConfigReleaseConfig); -} -// [END dataform_v1beta1_generated_Dataform_UpdateWorkflowConfig_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/write_file.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/write_file.php deleted file mode 100644 index 4b5d45ea7a4f..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/write_file.php +++ /dev/null @@ -1,82 +0,0 @@ -setWorkspace($formattedWorkspace) - ->setPath($path) - ->setContents($contents); - - // Call the API and handle any network failures. - try { - /** @var WriteFileResponse $response */ - $response = $dataformClient->writeFile($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedWorkspace = DataformClient::workspaceName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[WORKSPACE]' - ); - $path = '[PATH]'; - $contents = '...'; - - write_file_sample($formattedWorkspace, $path, $contents); -} -// [END dataform_v1beta1_generated_Dataform_WriteFile_sync] diff --git a/owl-bot-staging/Dataform/v1beta1/src/V1beta1/Client/DataformClient.php b/owl-bot-staging/Dataform/v1beta1/src/V1beta1/Client/DataformClient.php deleted file mode 100644 index 9b161084b5b0..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/src/V1beta1/Client/DataformClient.php +++ /dev/null @@ -1,2988 +0,0 @@ - cancelWorkflowInvocationAsync(CancelWorkflowInvocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface commitRepositoryChangesAsync(CommitRepositoryChangesRequest $request, array $optionalArgs = []) - * @method PromiseInterface commitWorkspaceChangesAsync(CommitWorkspaceChangesRequest $request, array $optionalArgs = []) - * @method PromiseInterface computeRepositoryAccessTokenStatusAsync(ComputeRepositoryAccessTokenStatusRequest $request, array $optionalArgs = []) - * @method PromiseInterface createCompilationResultAsync(CreateCompilationResultRequest $request, array $optionalArgs = []) - * @method PromiseInterface createFolderAsync(CreateFolderRequest $request, array $optionalArgs = []) - * @method PromiseInterface createReleaseConfigAsync(CreateReleaseConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface createRepositoryAsync(CreateRepositoryRequest $request, array $optionalArgs = []) - * @method PromiseInterface createTeamFolderAsync(CreateTeamFolderRequest $request, array $optionalArgs = []) - * @method PromiseInterface createWorkflowConfigAsync(CreateWorkflowConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface createWorkflowInvocationAsync(CreateWorkflowInvocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface createWorkspaceAsync(CreateWorkspaceRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteFolderAsync(DeleteFolderRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteReleaseConfigAsync(DeleteReleaseConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteRepositoryAsync(DeleteRepositoryRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteTeamFolderAsync(DeleteTeamFolderRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteWorkflowConfigAsync(DeleteWorkflowConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteWorkflowInvocationAsync(DeleteWorkflowInvocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteWorkspaceAsync(DeleteWorkspaceRequest $request, array $optionalArgs = []) - * @method PromiseInterface fetchFileDiffAsync(FetchFileDiffRequest $request, array $optionalArgs = []) - * @method PromiseInterface fetchFileGitStatusesAsync(FetchFileGitStatusesRequest $request, array $optionalArgs = []) - * @method PromiseInterface fetchGitAheadBehindAsync(FetchGitAheadBehindRequest $request, array $optionalArgs = []) - * @method PromiseInterface fetchRemoteBranchesAsync(FetchRemoteBranchesRequest $request, array $optionalArgs = []) - * @method PromiseInterface fetchRepositoryHistoryAsync(FetchRepositoryHistoryRequest $request, array $optionalArgs = []) - * @method PromiseInterface getCompilationResultAsync(GetCompilationResultRequest $request, array $optionalArgs = []) - * @method PromiseInterface getConfigAsync(GetConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface getFolderAsync(GetFolderRequest $request, array $optionalArgs = []) - * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface getReleaseConfigAsync(GetReleaseConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface getRepositoryAsync(GetRepositoryRequest $request, array $optionalArgs = []) - * @method PromiseInterface getTeamFolderAsync(GetTeamFolderRequest $request, array $optionalArgs = []) - * @method PromiseInterface getWorkflowConfigAsync(GetWorkflowConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface getWorkflowInvocationAsync(GetWorkflowInvocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface getWorkspaceAsync(GetWorkspaceRequest $request, array $optionalArgs = []) - * @method PromiseInterface installNpmPackagesAsync(InstallNpmPackagesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listCompilationResultsAsync(ListCompilationResultsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listReleaseConfigsAsync(ListReleaseConfigsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listRepositoriesAsync(ListRepositoriesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listWorkflowConfigsAsync(ListWorkflowConfigsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listWorkflowInvocationsAsync(ListWorkflowInvocationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listWorkspacesAsync(ListWorkspacesRequest $request, array $optionalArgs = []) - * @method PromiseInterface makeDirectoryAsync(MakeDirectoryRequest $request, array $optionalArgs = []) - * @method PromiseInterface moveDirectoryAsync(MoveDirectoryRequest $request, array $optionalArgs = []) - * @method PromiseInterface moveFileAsync(MoveFileRequest $request, array $optionalArgs = []) - * @method PromiseInterface moveFolderAsync(MoveFolderRequest $request, array $optionalArgs = []) - * @method PromiseInterface moveRepositoryAsync(MoveRepositoryRequest $request, array $optionalArgs = []) - * @method PromiseInterface pullGitCommitsAsync(PullGitCommitsRequest $request, array $optionalArgs = []) - * @method PromiseInterface pushGitCommitsAsync(PushGitCommitsRequest $request, array $optionalArgs = []) - * @method PromiseInterface queryCompilationResultActionsAsync(QueryCompilationResultActionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface queryDirectoryContentsAsync(QueryDirectoryContentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface queryFolderContentsAsync(QueryFolderContentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface queryRepositoryDirectoryContentsAsync(QueryRepositoryDirectoryContentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface queryTeamFolderContentsAsync(QueryTeamFolderContentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface queryUserRootContentsAsync(QueryUserRootContentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface queryWorkflowInvocationActionsAsync(QueryWorkflowInvocationActionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface readFileAsync(ReadFileRequest $request, array $optionalArgs = []) - * @method PromiseInterface readRepositoryFileAsync(ReadRepositoryFileRequest $request, array $optionalArgs = []) - * @method PromiseInterface removeDirectoryAsync(RemoveDirectoryRequest $request, array $optionalArgs = []) - * @method PromiseInterface removeFileAsync(RemoveFileRequest $request, array $optionalArgs = []) - * @method PromiseInterface resetWorkspaceChangesAsync(ResetWorkspaceChangesRequest $request, array $optionalArgs = []) - * @method PromiseInterface searchFilesAsync(SearchFilesRequest $request, array $optionalArgs = []) - * @method PromiseInterface searchTeamFoldersAsync(SearchTeamFoldersRequest $request, array $optionalArgs = []) - * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateConfigAsync(UpdateConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateFolderAsync(UpdateFolderRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateReleaseConfigAsync(UpdateReleaseConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateRepositoryAsync(UpdateRepositoryRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateTeamFolderAsync(UpdateTeamFolderRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateWorkflowConfigAsync(UpdateWorkflowConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface writeFileAsync(WriteFileRequest $request, array $optionalArgs = []) - * @method PromiseInterface cancelOperationAsync(CancelOperationRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteOperationAsync(DeleteOperationRequest $request, array $optionalArgs = []) - * @method PromiseInterface getOperationAsync(GetOperationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listOperationsAsync(ListOperationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - */ -final class DataformClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.dataform.v1beta1.Dataform'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'dataform.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'dataform.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/bigquery', - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/dataform_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/dataform_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/dataform_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/dataform_rest_client_config.php', - ], - ], - ]; - } - - /** - * Return an OperationsClient object with the same endpoint as $this. - * - * @return OperationsClient - * - * @experimental - */ - public function getOperationsClient() - { - return $this->operationsClient; - } - - /** - * Resume an existing long running operation that was previously started by a long - * running API method. If $methodName is not provided, or does not match a long - * running API method, then the operation can still be resumed, but the - * OperationResponse object will not deserialize the final response. - * - * @param string $operationName The name of the long running operation - * @param string $methodName The name of the method used to start the operation - * - * @return OperationResponse - * - * @experimental - */ - public function resumeOperation($operationName, $methodName = null) - { - $options = $this->descriptors[$methodName]['longRunning'] ?? []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * compilation_result resource. - * - * @param string $project - * @param string $location - * @param string $repository - * @param string $compilationResult - * - * @return string The formatted compilation_result resource. - * - * @experimental - */ - public static function compilationResultName(string $project, string $location, string $repository, string $compilationResult): string - { - return self::getPathTemplate('compilationResult')->render([ - 'project' => $project, - 'location' => $location, - 'repository' => $repository, - 'compilation_result' => $compilationResult, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a config - * resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted config resource. - * - * @experimental - */ - public static function configName(string $project, string $location): string - { - return self::getPathTemplate('config')->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a crypto_key - * resource. - * - * @param string $project - * @param string $location - * @param string $keyRing - * @param string $cryptoKey - * - * @return string The formatted crypto_key resource. - * - * @experimental - */ - public static function cryptoKeyName(string $project, string $location, string $keyRing, string $cryptoKey): string - { - return self::getPathTemplate('cryptoKey')->render([ - 'project' => $project, - 'location' => $location, - 'key_ring' => $keyRing, - 'crypto_key' => $cryptoKey, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * crypto_key_version resource. - * - * @param string $project - * @param string $location - * @param string $keyRing - * @param string $cryptoKey - * @param string $cryptoKeyVersion - * - * @return string The formatted crypto_key_version resource. - * - * @experimental - */ - public static function cryptoKeyVersionName(string $project, string $location, string $keyRing, string $cryptoKey, string $cryptoKeyVersion): string - { - return self::getPathTemplate('cryptoKeyVersion')->render([ - 'project' => $project, - 'location' => $location, - 'key_ring' => $keyRing, - 'crypto_key' => $cryptoKey, - 'crypto_key_version' => $cryptoKeyVersion, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a folder - * resource. - * - * @param string $project - * @param string $location - * @param string $folder - * - * @return string The formatted folder resource. - * - * @experimental - */ - public static function folderName(string $project, string $location, string $folder): string - { - return self::getPathTemplate('folder')->render([ - 'project' => $project, - 'location' => $location, - 'folder' => $folder, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a location - * resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted location resource. - * - * @experimental - */ - public static function locationName(string $project, string $location): string - { - return self::getPathTemplate('location')->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * notebook_runtime_template resource. - * - * @param string $project - * @param string $location - * @param string $notebookRuntimeTemplate - * - * @return string The formatted notebook_runtime_template resource. - * - * @experimental - */ - public static function notebookRuntimeTemplateName(string $project, string $location, string $notebookRuntimeTemplate): string - { - return self::getPathTemplate('notebookRuntimeTemplate')->render([ - 'project' => $project, - 'location' => $location, - 'notebook_runtime_template' => $notebookRuntimeTemplate, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * release_config resource. - * - * @param string $project - * @param string $location - * @param string $repository - * @param string $releaseConfig - * - * @return string The formatted release_config resource. - * - * @experimental - */ - public static function releaseConfigName(string $project, string $location, string $repository, string $releaseConfig): string - { - return self::getPathTemplate('releaseConfig')->render([ - 'project' => $project, - 'location' => $location, - 'repository' => $repository, - 'release_config' => $releaseConfig, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a repository - * resource. - * - * @param string $project - * @param string $location - * @param string $repository - * - * @return string The formatted repository resource. - * - * @experimental - */ - public static function repositoryName(string $project, string $location, string $repository): string - { - return self::getPathTemplate('repository')->render([ - 'project' => $project, - 'location' => $location, - 'repository' => $repository, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * secret_version resource. - * - * @param string $project - * @param string $secret - * @param string $version - * - * @return string The formatted secret_version resource. - * - * @experimental - */ - public static function secretVersionName(string $project, string $secret, string $version): string - { - return self::getPathTemplate('secretVersion')->render([ - 'project' => $project, - 'secret' => $secret, - 'version' => $version, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a team_folder - * resource. - * - * @param string $project - * @param string $location - * @param string $teamFolder - * - * @return string The formatted team_folder resource. - * - * @experimental - */ - public static function teamFolderName(string $project, string $location, string $teamFolder): string - { - return self::getPathTemplate('teamFolder')->render([ - 'project' => $project, - 'location' => $location, - 'team_folder' => $teamFolder, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * workflow_config resource. - * - * @param string $project - * @param string $location - * @param string $repository - * @param string $workflowConfig - * - * @return string The formatted workflow_config resource. - * - * @experimental - */ - public static function workflowConfigName(string $project, string $location, string $repository, string $workflowConfig): string - { - return self::getPathTemplate('workflowConfig')->render([ - 'project' => $project, - 'location' => $location, - 'repository' => $repository, - 'workflow_config' => $workflowConfig, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * workflow_invocation resource. - * - * @param string $project - * @param string $location - * @param string $repository - * @param string $workflowInvocation - * - * @return string The formatted workflow_invocation resource. - * - * @experimental - */ - public static function workflowInvocationName(string $project, string $location, string $repository, string $workflowInvocation): string - { - return self::getPathTemplate('workflowInvocation')->render([ - 'project' => $project, - 'location' => $location, - 'repository' => $repository, - 'workflow_invocation' => $workflowInvocation, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a workspace - * resource. - * - * @param string $project - * @param string $location - * @param string $repository - * @param string $workspace - * - * @return string The formatted workspace resource. - * - * @experimental - */ - public static function workspaceName(string $project, string $location, string $repository, string $workspace): string - { - return self::getPathTemplate('workspace')->render([ - 'project' => $project, - 'location' => $location, - 'repository' => $repository, - 'workspace' => $workspace, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - compilationResult: projects/{project}/locations/{location}/repositories/{repository}/compilationResults/{compilation_result} - * - config: projects/{project}/locations/{location}/config - * - cryptoKey: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key} - * - cryptoKeyVersion: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version} - * - folder: projects/{project}/locations/{location}/folders/{folder} - * - location: projects/{project}/locations/{location} - * - notebookRuntimeTemplate: projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template} - * - releaseConfig: projects/{project}/locations/{location}/repositories/{repository}/releaseConfigs/{release_config} - * - repository: projects/{project}/locations/{location}/repositories/{repository} - * - secretVersion: projects/{project}/secrets/{secret}/versions/{version} - * - teamFolder: projects/{project}/locations/{location}/teamFolders/{team_folder} - * - workflowConfig: projects/{project}/locations/{location}/repositories/{repository}/workflowConfigs/{workflow_config} - * - workflowInvocation: projects/{project}/locations/{location}/repositories/{repository}/workflowInvocations/{workflow_invocation} - * - workspace: projects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - * - * @experimental - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array|ClientOptions $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'dataform.googleapis.com:443'. - * @type FetchAuthTokenInterface|CredentialsWrapper $credentials - * This option should only be used with a pre-constructed - * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that - * when one of these objects are provided, any settings in $credentialsConfig will - * be ignored. - * **Important**: If you are providing a path to a credentials file, or a decoded - * credentials file as a PHP array, this usage is now DEPRECATED. Providing an - * unvalidated credential configuration to Google APIs can compromise the security - * of your systems and data. It is recommended to create the credentials explicitly - * ``` - * use Google\Auth\Credentials\ServiceAccountCredentials; - * use Google\Cloud\Dataform\V1beta1\DataformClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new DataformClient(['credentials' => $creds]); - * ``` - * {@see - * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * @type string $universeDomain - * The service domain for the client. Defaults to 'googleapis.com'. - * } - * - * @throws ValidationException - * - * @experimental - */ - public function __construct(array|ClientOptions $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Requests cancellation of a running WorkflowInvocation. - * - * The async variant is {@see DataformClient::cancelWorkflowInvocationAsync()} . - * - * @example samples/V1beta1/DataformClient/cancel_workflow_invocation.php - * - * @param CancelWorkflowInvocationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CancelWorkflowInvocationResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function cancelWorkflowInvocation(CancelWorkflowInvocationRequest $request, array $callOptions = []): CancelWorkflowInvocationResponse - { - return $this->startApiCall('CancelWorkflowInvocation', $request, $callOptions)->wait(); - } - - /** - * Applies a Git commit to a Repository. The Repository must not have a value - * for `git_remote_settings.url`. - * - * The async variant is {@see DataformClient::commitRepositoryChangesAsync()} . - * - * @example samples/V1beta1/DataformClient/commit_repository_changes.php - * - * @param CommitRepositoryChangesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CommitRepositoryChangesResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function commitRepositoryChanges(CommitRepositoryChangesRequest $request, array $callOptions = []): CommitRepositoryChangesResponse - { - return $this->startApiCall('CommitRepositoryChanges', $request, $callOptions)->wait(); - } - - /** - * Applies a Git commit for uncommitted files in a Workspace. - * - * The async variant is {@see DataformClient::commitWorkspaceChangesAsync()} . - * - * @example samples/V1beta1/DataformClient/commit_workspace_changes.php - * - * @param CommitWorkspaceChangesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CommitWorkspaceChangesResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function commitWorkspaceChanges(CommitWorkspaceChangesRequest $request, array $callOptions = []): CommitWorkspaceChangesResponse - { - return $this->startApiCall('CommitWorkspaceChanges', $request, $callOptions)->wait(); - } - - /** - * Computes a Repository's Git access token status. - * - * The async variant is - * {@see DataformClient::computeRepositoryAccessTokenStatusAsync()} . - * - * @example samples/V1beta1/DataformClient/compute_repository_access_token_status.php - * - * @param ComputeRepositoryAccessTokenStatusRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ComputeRepositoryAccessTokenStatusResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function computeRepositoryAccessTokenStatus(ComputeRepositoryAccessTokenStatusRequest $request, array $callOptions = []): ComputeRepositoryAccessTokenStatusResponse - { - return $this->startApiCall('ComputeRepositoryAccessTokenStatus', $request, $callOptions)->wait(); - } - - /** - * Creates a new CompilationResult in a given project and location. - * - * The async variant is {@see DataformClient::createCompilationResultAsync()} . - * - * @example samples/V1beta1/DataformClient/create_compilation_result.php - * - * @param CreateCompilationResultRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CompilationResult - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createCompilationResult(CreateCompilationResultRequest $request, array $callOptions = []): CompilationResult - { - return $this->startApiCall('CreateCompilationResult', $request, $callOptions)->wait(); - } - - /** - * Creates a new Folder in a given project and location. - * - * The async variant is {@see DataformClient::createFolderAsync()} . - * - * @example samples/V1beta1/DataformClient/create_folder.php - * - * @param CreateFolderRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Folder - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createFolder(CreateFolderRequest $request, array $callOptions = []): Folder - { - return $this->startApiCall('CreateFolder', $request, $callOptions)->wait(); - } - - /** - * Creates a new ReleaseConfig in a given Repository. - * - * The async variant is {@see DataformClient::createReleaseConfigAsync()} . - * - * @example samples/V1beta1/DataformClient/create_release_config.php - * - * @param CreateReleaseConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ReleaseConfig - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createReleaseConfig(CreateReleaseConfigRequest $request, array $callOptions = []): ReleaseConfig - { - return $this->startApiCall('CreateReleaseConfig', $request, $callOptions)->wait(); - } - - /** - * Creates a new Repository in a given project and location. - * - * The async variant is {@see DataformClient::createRepositoryAsync()} . - * - * @example samples/V1beta1/DataformClient/create_repository.php - * - * @param CreateRepositoryRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Repository - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createRepository(CreateRepositoryRequest $request, array $callOptions = []): Repository - { - return $this->startApiCall('CreateRepository', $request, $callOptions)->wait(); - } - - /** - * Creates a new TeamFolder in a given project and location. - * - * The async variant is {@see DataformClient::createTeamFolderAsync()} . - * - * @example samples/V1beta1/DataformClient/create_team_folder.php - * - * @param CreateTeamFolderRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return TeamFolder - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createTeamFolder(CreateTeamFolderRequest $request, array $callOptions = []): TeamFolder - { - return $this->startApiCall('CreateTeamFolder', $request, $callOptions)->wait(); - } - - /** - * Creates a new WorkflowConfig in a given Repository. - * - * The async variant is {@see DataformClient::createWorkflowConfigAsync()} . - * - * @example samples/V1beta1/DataformClient/create_workflow_config.php - * - * @param CreateWorkflowConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return WorkflowConfig - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createWorkflowConfig(CreateWorkflowConfigRequest $request, array $callOptions = []): WorkflowConfig - { - return $this->startApiCall('CreateWorkflowConfig', $request, $callOptions)->wait(); - } - - /** - * Creates a new WorkflowInvocation in a given Repository. - * - * The async variant is {@see DataformClient::createWorkflowInvocationAsync()} . - * - * @example samples/V1beta1/DataformClient/create_workflow_invocation.php - * - * @param CreateWorkflowInvocationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return WorkflowInvocation - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createWorkflowInvocation(CreateWorkflowInvocationRequest $request, array $callOptions = []): WorkflowInvocation - { - return $this->startApiCall('CreateWorkflowInvocation', $request, $callOptions)->wait(); - } - - /** - * Creates a new Workspace in a given Repository. - * - * The async variant is {@see DataformClient::createWorkspaceAsync()} . - * - * @example samples/V1beta1/DataformClient/create_workspace.php - * - * @param CreateWorkspaceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Workspace - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createWorkspace(CreateWorkspaceRequest $request, array $callOptions = []): Workspace - { - return $this->startApiCall('CreateWorkspace', $request, $callOptions)->wait(); - } - - /** - * Deletes a single Folder. - * - * The async variant is {@see DataformClient::deleteFolderAsync()} . - * - * @example samples/V1beta1/DataformClient/delete_folder.php - * - * @param DeleteFolderRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteFolder(DeleteFolderRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteFolder', $request, $callOptions)->wait(); - } - - /** - * Deletes a single ReleaseConfig. - * - * The async variant is {@see DataformClient::deleteReleaseConfigAsync()} . - * - * @example samples/V1beta1/DataformClient/delete_release_config.php - * - * @param DeleteReleaseConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteReleaseConfig(DeleteReleaseConfigRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteReleaseConfig', $request, $callOptions)->wait(); - } - - /** - * Deletes a single Repository. - * - * The async variant is {@see DataformClient::deleteRepositoryAsync()} . - * - * @example samples/V1beta1/DataformClient/delete_repository.php - * - * @param DeleteRepositoryRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteRepository(DeleteRepositoryRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteRepository', $request, $callOptions)->wait(); - } - - /** - * Deletes a single TeamFolder. - * - * The async variant is {@see DataformClient::deleteTeamFolderAsync()} . - * - * @example samples/V1beta1/DataformClient/delete_team_folder.php - * - * @param DeleteTeamFolderRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteTeamFolder(DeleteTeamFolderRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteTeamFolder', $request, $callOptions)->wait(); - } - - /** - * Deletes a single WorkflowConfig. - * - * The async variant is {@see DataformClient::deleteWorkflowConfigAsync()} . - * - * @example samples/V1beta1/DataformClient/delete_workflow_config.php - * - * @param DeleteWorkflowConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteWorkflowConfig(DeleteWorkflowConfigRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteWorkflowConfig', $request, $callOptions)->wait(); - } - - /** - * Deletes a single WorkflowInvocation. - * - * The async variant is {@see DataformClient::deleteWorkflowInvocationAsync()} . - * - * @example samples/V1beta1/DataformClient/delete_workflow_invocation.php - * - * @param DeleteWorkflowInvocationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteWorkflowInvocation(DeleteWorkflowInvocationRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteWorkflowInvocation', $request, $callOptions)->wait(); - } - - /** - * Deletes a single Workspace. - * - * The async variant is {@see DataformClient::deleteWorkspaceAsync()} . - * - * @example samples/V1beta1/DataformClient/delete_workspace.php - * - * @param DeleteWorkspaceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteWorkspace(DeleteWorkspaceRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteWorkspace', $request, $callOptions)->wait(); - } - - /** - * Fetches Git diff for an uncommitted file in a Workspace. - * - * The async variant is {@see DataformClient::fetchFileDiffAsync()} . - * - * @example samples/V1beta1/DataformClient/fetch_file_diff.php - * - * @param FetchFileDiffRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return FetchFileDiffResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function fetchFileDiff(FetchFileDiffRequest $request, array $callOptions = []): FetchFileDiffResponse - { - return $this->startApiCall('FetchFileDiff', $request, $callOptions)->wait(); - } - - /** - * Fetches Git statuses for the files in a Workspace. - * - * The async variant is {@see DataformClient::fetchFileGitStatusesAsync()} . - * - * @example samples/V1beta1/DataformClient/fetch_file_git_statuses.php - * - * @param FetchFileGitStatusesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return FetchFileGitStatusesResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function fetchFileGitStatuses(FetchFileGitStatusesRequest $request, array $callOptions = []): FetchFileGitStatusesResponse - { - return $this->startApiCall('FetchFileGitStatuses', $request, $callOptions)->wait(); - } - - /** - * Fetches Git ahead/behind against a remote branch. - * - * The async variant is {@see DataformClient::fetchGitAheadBehindAsync()} . - * - * @example samples/V1beta1/DataformClient/fetch_git_ahead_behind.php - * - * @param FetchGitAheadBehindRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return FetchGitAheadBehindResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function fetchGitAheadBehind(FetchGitAheadBehindRequest $request, array $callOptions = []): FetchGitAheadBehindResponse - { - return $this->startApiCall('FetchGitAheadBehind', $request, $callOptions)->wait(); - } - - /** - * Fetches a Repository's remote branches. - * - * The async variant is {@see DataformClient::fetchRemoteBranchesAsync()} . - * - * @example samples/V1beta1/DataformClient/fetch_remote_branches.php - * - * @param FetchRemoteBranchesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return FetchRemoteBranchesResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function fetchRemoteBranches(FetchRemoteBranchesRequest $request, array $callOptions = []): FetchRemoteBranchesResponse - { - return $this->startApiCall('FetchRemoteBranches', $request, $callOptions)->wait(); - } - - /** - * Fetches a Repository's history of commits. The Repository must not have a - * value for `git_remote_settings.url`. - * - * The async variant is {@see DataformClient::fetchRepositoryHistoryAsync()} . - * - * @example samples/V1beta1/DataformClient/fetch_repository_history.php - * - * @param FetchRepositoryHistoryRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function fetchRepositoryHistory(FetchRepositoryHistoryRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('FetchRepositoryHistory', $request, $callOptions); - } - - /** - * Fetches a single CompilationResult. - * - * The async variant is {@see DataformClient::getCompilationResultAsync()} . - * - * @example samples/V1beta1/DataformClient/get_compilation_result.php - * - * @param GetCompilationResultRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CompilationResult - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getCompilationResult(GetCompilationResultRequest $request, array $callOptions = []): CompilationResult - { - return $this->startApiCall('GetCompilationResult', $request, $callOptions)->wait(); - } - - /** - * Get default config for a given project and location. - * - * The async variant is {@see DataformClient::getConfigAsync()} . - * - * @example samples/V1beta1/DataformClient/get_config.php - * - * @param GetConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Config - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getConfig(GetConfigRequest $request, array $callOptions = []): Config - { - return $this->startApiCall('GetConfig', $request, $callOptions)->wait(); - } - - /** - * Fetches a single Folder. - * - * The async variant is {@see DataformClient::getFolderAsync()} . - * - * @example samples/V1beta1/DataformClient/get_folder.php - * - * @param GetFolderRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Folder - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getFolder(GetFolderRequest $request, array $callOptions = []): Folder - { - return $this->startApiCall('GetFolder', $request, $callOptions)->wait(); - } - - /** - * Gets the access control policy for a resource. - * Returns an empty policy if the resource exists and does not have a policy - * set. - * - * The async variant is {@see DataformClient::getIamPolicyAsync()} . - * - * @example samples/V1beta1/DataformClient/get_iam_policy.php - * - * @param GetIamPolicyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Policy - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Fetches a single ReleaseConfig. - * - * The async variant is {@see DataformClient::getReleaseConfigAsync()} . - * - * @example samples/V1beta1/DataformClient/get_release_config.php - * - * @param GetReleaseConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ReleaseConfig - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getReleaseConfig(GetReleaseConfigRequest $request, array $callOptions = []): ReleaseConfig - { - return $this->startApiCall('GetReleaseConfig', $request, $callOptions)->wait(); - } - - /** - * Fetches a single Repository. - * - * The async variant is {@see DataformClient::getRepositoryAsync()} . - * - * @example samples/V1beta1/DataformClient/get_repository.php - * - * @param GetRepositoryRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Repository - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getRepository(GetRepositoryRequest $request, array $callOptions = []): Repository - { - return $this->startApiCall('GetRepository', $request, $callOptions)->wait(); - } - - /** - * Fetches a single TeamFolder. - * - * The async variant is {@see DataformClient::getTeamFolderAsync()} . - * - * @example samples/V1beta1/DataformClient/get_team_folder.php - * - * @param GetTeamFolderRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return TeamFolder - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getTeamFolder(GetTeamFolderRequest $request, array $callOptions = []): TeamFolder - { - return $this->startApiCall('GetTeamFolder', $request, $callOptions)->wait(); - } - - /** - * Fetches a single WorkflowConfig. - * - * The async variant is {@see DataformClient::getWorkflowConfigAsync()} . - * - * @example samples/V1beta1/DataformClient/get_workflow_config.php - * - * @param GetWorkflowConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return WorkflowConfig - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getWorkflowConfig(GetWorkflowConfigRequest $request, array $callOptions = []): WorkflowConfig - { - return $this->startApiCall('GetWorkflowConfig', $request, $callOptions)->wait(); - } - - /** - * Fetches a single WorkflowInvocation. - * - * The async variant is {@see DataformClient::getWorkflowInvocationAsync()} . - * - * @example samples/V1beta1/DataformClient/get_workflow_invocation.php - * - * @param GetWorkflowInvocationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return WorkflowInvocation - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getWorkflowInvocation(GetWorkflowInvocationRequest $request, array $callOptions = []): WorkflowInvocation - { - return $this->startApiCall('GetWorkflowInvocation', $request, $callOptions)->wait(); - } - - /** - * Fetches a single Workspace. - * - * The async variant is {@see DataformClient::getWorkspaceAsync()} . - * - * @example samples/V1beta1/DataformClient/get_workspace.php - * - * @param GetWorkspaceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Workspace - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getWorkspace(GetWorkspaceRequest $request, array $callOptions = []): Workspace - { - return $this->startApiCall('GetWorkspace', $request, $callOptions)->wait(); - } - - /** - * Installs dependency NPM packages (inside a Workspace). - * - * The async variant is {@see DataformClient::installNpmPackagesAsync()} . - * - * @example samples/V1beta1/DataformClient/install_npm_packages.php - * - * @param InstallNpmPackagesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return InstallNpmPackagesResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function installNpmPackages(InstallNpmPackagesRequest $request, array $callOptions = []): InstallNpmPackagesResponse - { - return $this->startApiCall('InstallNpmPackages', $request, $callOptions)->wait(); - } - - /** - * Lists CompilationResults in a given Repository. - * - * The async variant is {@see DataformClient::listCompilationResultsAsync()} . - * - * @example samples/V1beta1/DataformClient/list_compilation_results.php - * - * @param ListCompilationResultsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listCompilationResults(ListCompilationResultsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListCompilationResults', $request, $callOptions); - } - - /** - * Lists ReleaseConfigs in a given Repository. - * - * The async variant is {@see DataformClient::listReleaseConfigsAsync()} . - * - * @example samples/V1beta1/DataformClient/list_release_configs.php - * - * @param ListReleaseConfigsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listReleaseConfigs(ListReleaseConfigsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListReleaseConfigs', $request, $callOptions); - } - - /** - * 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)*. - * - * The async variant is {@see DataformClient::listRepositoriesAsync()} . - * - * @example samples/V1beta1/DataformClient/list_repositories.php - * - * @param ListRepositoriesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listRepositories(ListRepositoriesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListRepositories', $request, $callOptions); - } - - /** - * Lists WorkflowConfigs in a given Repository. - * - * The async variant is {@see DataformClient::listWorkflowConfigsAsync()} . - * - * @example samples/V1beta1/DataformClient/list_workflow_configs.php - * - * @param ListWorkflowConfigsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listWorkflowConfigs(ListWorkflowConfigsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListWorkflowConfigs', $request, $callOptions); - } - - /** - * Lists WorkflowInvocations in a given Repository. - * - * The async variant is {@see DataformClient::listWorkflowInvocationsAsync()} . - * - * @example samples/V1beta1/DataformClient/list_workflow_invocations.php - * - * @param ListWorkflowInvocationsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listWorkflowInvocations(ListWorkflowInvocationsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListWorkflowInvocations', $request, $callOptions); - } - - /** - * Lists Workspaces in a given Repository. - * - * The async variant is {@see DataformClient::listWorkspacesAsync()} . - * - * @example samples/V1beta1/DataformClient/list_workspaces.php - * - * @param ListWorkspacesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listWorkspaces(ListWorkspacesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListWorkspaces', $request, $callOptions); - } - - /** - * Creates a directory inside a Workspace. - * - * The async variant is {@see DataformClient::makeDirectoryAsync()} . - * - * @example samples/V1beta1/DataformClient/make_directory.php - * - * @param MakeDirectoryRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return MakeDirectoryResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function makeDirectory(MakeDirectoryRequest $request, array $callOptions = []): MakeDirectoryResponse - { - return $this->startApiCall('MakeDirectory', $request, $callOptions)->wait(); - } - - /** - * Moves a directory (inside a Workspace), and all of its contents, to a new - * location. - * - * The async variant is {@see DataformClient::moveDirectoryAsync()} . - * - * @example samples/V1beta1/DataformClient/move_directory.php - * - * @param MoveDirectoryRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return MoveDirectoryResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function moveDirectory(MoveDirectoryRequest $request, array $callOptions = []): MoveDirectoryResponse - { - return $this->startApiCall('MoveDirectory', $request, $callOptions)->wait(); - } - - /** - * Moves a file (inside a Workspace) to a new location. - * - * The async variant is {@see DataformClient::moveFileAsync()} . - * - * @example samples/V1beta1/DataformClient/move_file.php - * - * @param MoveFileRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return MoveFileResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function moveFile(MoveFileRequest $request, array $callOptions = []): MoveFileResponse - { - return $this->startApiCall('MoveFile', $request, $callOptions)->wait(); - } - - /** - * Moves a Folder to a new Folder, TeamFolder, or the root location. - * - * The async variant is {@see DataformClient::moveFolderAsync()} . - * - * @example samples/V1beta1/DataformClient/move_folder.php - * - * @param MoveFolderRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function moveFolder(MoveFolderRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('MoveFolder', $request, $callOptions)->wait(); - } - - /** - * Moves a Repository to a new location. - * - * The async variant is {@see DataformClient::moveRepositoryAsync()} . - * - * @example samples/V1beta1/DataformClient/move_repository.php - * - * @param MoveRepositoryRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function moveRepository(MoveRepositoryRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('MoveRepository', $request, $callOptions)->wait(); - } - - /** - * Pulls Git commits from the Repository's remote into a Workspace. - * - * The async variant is {@see DataformClient::pullGitCommitsAsync()} . - * - * @example samples/V1beta1/DataformClient/pull_git_commits.php - * - * @param PullGitCommitsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PullGitCommitsResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function pullGitCommits(PullGitCommitsRequest $request, array $callOptions = []): PullGitCommitsResponse - { - return $this->startApiCall('PullGitCommits', $request, $callOptions)->wait(); - } - - /** - * Pushes Git commits from a Workspace to the Repository's remote. - * - * The async variant is {@see DataformClient::pushGitCommitsAsync()} . - * - * @example samples/V1beta1/DataformClient/push_git_commits.php - * - * @param PushGitCommitsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PushGitCommitsResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function pushGitCommits(PushGitCommitsRequest $request, array $callOptions = []): PushGitCommitsResponse - { - return $this->startApiCall('PushGitCommits', $request, $callOptions)->wait(); - } - - /** - * Returns CompilationResultActions in a given CompilationResult. - * - * The async variant is {@see DataformClient::queryCompilationResultActionsAsync()} - * . - * - * @example samples/V1beta1/DataformClient/query_compilation_result_actions.php - * - * @param QueryCompilationResultActionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function queryCompilationResultActions(QueryCompilationResultActionsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('QueryCompilationResultActions', $request, $callOptions); - } - - /** - * Returns the contents of a given Workspace directory. - * - * The async variant is {@see DataformClient::queryDirectoryContentsAsync()} . - * - * @example samples/V1beta1/DataformClient/query_directory_contents.php - * - * @param QueryDirectoryContentsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function queryDirectoryContents(QueryDirectoryContentsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('QueryDirectoryContents', $request, $callOptions); - } - - /** - * Returns the contents of a given Folder. - * - * The async variant is {@see DataformClient::queryFolderContentsAsync()} . - * - * @example samples/V1beta1/DataformClient/query_folder_contents.php - * - * @param QueryFolderContentsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function queryFolderContents(QueryFolderContentsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('QueryFolderContents', $request, $callOptions); - } - - /** - * Returns the contents of a given Repository directory. The Repository must - * not have a value for `git_remote_settings.url`. - * - * The async variant is - * {@see DataformClient::queryRepositoryDirectoryContentsAsync()} . - * - * @example samples/V1beta1/DataformClient/query_repository_directory_contents.php - * - * @param QueryRepositoryDirectoryContentsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function queryRepositoryDirectoryContents(QueryRepositoryDirectoryContentsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('QueryRepositoryDirectoryContents', $request, $callOptions); - } - - /** - * Returns the contents of a given TeamFolder. - * - * The async variant is {@see DataformClient::queryTeamFolderContentsAsync()} . - * - * @example samples/V1beta1/DataformClient/query_team_folder_contents.php - * - * @param QueryTeamFolderContentsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function queryTeamFolderContents(QueryTeamFolderContentsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('QueryTeamFolderContents', $request, $callOptions); - } - - /** - * 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. - * - * The async variant is {@see DataformClient::queryUserRootContentsAsync()} . - * - * @example samples/V1beta1/DataformClient/query_user_root_contents.php - * - * @param QueryUserRootContentsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function queryUserRootContents(QueryUserRootContentsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('QueryUserRootContents', $request, $callOptions); - } - - /** - * Returns WorkflowInvocationActions in a given WorkflowInvocation. - * - * The async variant is - * {@see DataformClient::queryWorkflowInvocationActionsAsync()} . - * - * @example samples/V1beta1/DataformClient/query_workflow_invocation_actions.php - * - * @param QueryWorkflowInvocationActionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function queryWorkflowInvocationActions(QueryWorkflowInvocationActionsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('QueryWorkflowInvocationActions', $request, $callOptions); - } - - /** - * Returns the contents of a file (inside a Workspace). - * - * The async variant is {@see DataformClient::readFileAsync()} . - * - * @example samples/V1beta1/DataformClient/read_file.php - * - * @param ReadFileRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ReadFileResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function readFile(ReadFileRequest $request, array $callOptions = []): ReadFileResponse - { - return $this->startApiCall('ReadFile', $request, $callOptions)->wait(); - } - - /** - * Returns the contents of a file (inside a Repository). The Repository - * must not have a value for `git_remote_settings.url`. - * - * The async variant is {@see DataformClient::readRepositoryFileAsync()} . - * - * @example samples/V1beta1/DataformClient/read_repository_file.php - * - * @param ReadRepositoryFileRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ReadRepositoryFileResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function readRepositoryFile(ReadRepositoryFileRequest $request, array $callOptions = []): ReadRepositoryFileResponse - { - return $this->startApiCall('ReadRepositoryFile', $request, $callOptions)->wait(); - } - - /** - * Deletes a directory (inside a Workspace) and all of its contents. - * - * The async variant is {@see DataformClient::removeDirectoryAsync()} . - * - * @example samples/V1beta1/DataformClient/remove_directory.php - * - * @param RemoveDirectoryRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return RemoveDirectoryResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function removeDirectory(RemoveDirectoryRequest $request, array $callOptions = []): RemoveDirectoryResponse - { - return $this->startApiCall('RemoveDirectory', $request, $callOptions)->wait(); - } - - /** - * Deletes a file (inside a Workspace). - * - * The async variant is {@see DataformClient::removeFileAsync()} . - * - * @example samples/V1beta1/DataformClient/remove_file.php - * - * @param RemoveFileRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return RemoveFileResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function removeFile(RemoveFileRequest $request, array $callOptions = []): RemoveFileResponse - { - return $this->startApiCall('RemoveFile', $request, $callOptions)->wait(); - } - - /** - * Performs a Git reset for uncommitted files in a Workspace. - * - * The async variant is {@see DataformClient::resetWorkspaceChangesAsync()} . - * - * @example samples/V1beta1/DataformClient/reset_workspace_changes.php - * - * @param ResetWorkspaceChangesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ResetWorkspaceChangesResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function resetWorkspaceChanges(ResetWorkspaceChangesRequest $request, array $callOptions = []): ResetWorkspaceChangesResponse - { - return $this->startApiCall('ResetWorkspaceChanges', $request, $callOptions)->wait(); - } - - /** - * Finds the contents of a given Workspace directory by filter. - * - * The async variant is {@see DataformClient::searchFilesAsync()} . - * - * @example samples/V1beta1/DataformClient/search_files.php - * - * @param SearchFilesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function searchFiles(SearchFilesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('SearchFiles', $request, $callOptions); - } - - /** - * Returns all TeamFolders in a given location that the caller has access to - * and match the provided filter. - * - * The async variant is {@see DataformClient::searchTeamFoldersAsync()} . - * - * @example samples/V1beta1/DataformClient/search_team_folders.php - * - * @param SearchTeamFoldersRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function searchTeamFolders(SearchTeamFoldersRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('SearchTeamFolders', $request, $callOptions); - } - - /** - * Sets the access control policy on the specified resource. Replaces any - * existing policy. - * - * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. - * - * The async variant is {@see DataformClient::setIamPolicyAsync()} . - * - * @example samples/V1beta1/DataformClient/set_iam_policy.php - * - * @param SetIamPolicyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Policy - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * 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. - * - * The async variant is {@see DataformClient::testIamPermissionsAsync()} . - * - * @example samples/V1beta1/DataformClient/test_iam_permissions.php - * - * @param TestIamPermissionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return TestIamPermissionsResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse - { - return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); - } - - /** - * 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.* - * - * The async variant is {@see DataformClient::updateConfigAsync()} . - * - * @example samples/V1beta1/DataformClient/update_config.php - * - * @param UpdateConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Config - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateConfig(UpdateConfigRequest $request, array $callOptions = []): Config - { - return $this->startApiCall('UpdateConfig', $request, $callOptions)->wait(); - } - - /** - * Updates a single Folder. - * - * The async variant is {@see DataformClient::updateFolderAsync()} . - * - * @example samples/V1beta1/DataformClient/update_folder.php - * - * @param UpdateFolderRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Folder - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateFolder(UpdateFolderRequest $request, array $callOptions = []): Folder - { - return $this->startApiCall('UpdateFolder', $request, $callOptions)->wait(); - } - - /** - * 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.* - * - * The async variant is {@see DataformClient::updateReleaseConfigAsync()} . - * - * @example samples/V1beta1/DataformClient/update_release_config.php - * - * @param UpdateReleaseConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ReleaseConfig - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateReleaseConfig(UpdateReleaseConfigRequest $request, array $callOptions = []): ReleaseConfig - { - return $this->startApiCall('UpdateReleaseConfig', $request, $callOptions)->wait(); - } - - /** - * 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.* - * - * The async variant is {@see DataformClient::updateRepositoryAsync()} . - * - * @example samples/V1beta1/DataformClient/update_repository.php - * - * @param UpdateRepositoryRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Repository - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateRepository(UpdateRepositoryRequest $request, array $callOptions = []): Repository - { - return $this->startApiCall('UpdateRepository', $request, $callOptions)->wait(); - } - - /** - * Updates a single TeamFolder. - * - * The async variant is {@see DataformClient::updateTeamFolderAsync()} . - * - * @example samples/V1beta1/DataformClient/update_team_folder.php - * - * @param UpdateTeamFolderRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return TeamFolder - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateTeamFolder(UpdateTeamFolderRequest $request, array $callOptions = []): TeamFolder - { - return $this->startApiCall('UpdateTeamFolder', $request, $callOptions)->wait(); - } - - /** - * 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.* - * - * The async variant is {@see DataformClient::updateWorkflowConfigAsync()} . - * - * @example samples/V1beta1/DataformClient/update_workflow_config.php - * - * @param UpdateWorkflowConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return WorkflowConfig - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateWorkflowConfig(UpdateWorkflowConfigRequest $request, array $callOptions = []): WorkflowConfig - { - return $this->startApiCall('UpdateWorkflowConfig', $request, $callOptions)->wait(); - } - - /** - * Writes to a file (inside a Workspace). - * - * The async variant is {@see DataformClient::writeFileAsync()} . - * - * @example samples/V1beta1/DataformClient/write_file.php - * - * @param WriteFileRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return WriteFileResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function writeFile(WriteFileRequest $request, array $callOptions = []): WriteFileResponse - { - return $this->startApiCall('WriteFile', $request, $callOptions)->wait(); - } - - /** - * 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][google.longrunning.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 [Operation.error][google.longrunning.Operation.error] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of `1`, corresponding to - * `Code.CANCELLED`. - * - * The async variant is {@see DataformClient::cancelOperationAsync()} . - * - * @example samples/V1beta1/DataformClient/cancel_operation.php - * - * @param CancelOperationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function cancelOperation(CancelOperationRequest $request, array $callOptions = []): void - { - $this->startApiCall('CancelOperation', $request, $callOptions)->wait(); - } - - /** - * 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`. - * - * The async variant is {@see DataformClient::deleteOperationAsync()} . - * - * @example samples/V1beta1/DataformClient/delete_operation.php - * - * @param DeleteOperationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteOperation(DeleteOperationRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteOperation', $request, $callOptions)->wait(); - } - - /** - * 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. - * - * The async variant is {@see DataformClient::getOperationAsync()} . - * - * @example samples/V1beta1/DataformClient/get_operation.php - * - * @param GetOperationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getOperation(GetOperationRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('GetOperation', $request, $callOptions)->wait(); - } - - /** - * Lists operations that match the specified filter in the request. If the - * server doesn't support this method, it returns `UNIMPLEMENTED`. - * - * The async variant is {@see DataformClient::listOperationsAsync()} . - * - * @example samples/V1beta1/DataformClient/list_operations.php - * - * @param ListOperationsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listOperations(ListOperationsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListOperations', $request, $callOptions); - } - - /** - * Gets information about a location. - * - * The async variant is {@see DataformClient::getLocationAsync()} . - * - * @example samples/V1beta1/DataformClient/get_location.php - * - * @param GetLocationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Location - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getLocation(GetLocationRequest $request, array $callOptions = []): Location - { - return $this->startApiCall('GetLocation', $request, $callOptions)->wait(); - } - - /** - * Lists information about the supported locations for this service. - This method can be called in two ways: - - * **List all public locations:** Use the path `GET /v1/locations`. - * **List project-visible locations:** Use the path - `GET /v1/projects/{project_id}/locations`. This may include public - locations as well as private or other locations specifically visible - to the project. - * - * The async variant is {@see DataformClient::listLocationsAsync()} . - * - * @example samples/V1beta1/DataformClient/list_locations.php - * - * @param ListLocationsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListLocations', $request, $callOptions); - } -} diff --git a/owl-bot-staging/Dataform/v1beta1/src/V1beta1/gapic_metadata.json b/owl-bot-staging/Dataform/v1beta1/src/V1beta1/gapic_metadata.json deleted file mode 100644 index 00107e462a0e..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/src/V1beta1/gapic_metadata.json +++ /dev/null @@ -1,403 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.cloud.dataform.v1beta1", - "libraryPackage": "Google\\Cloud\\Dataform\\V1beta1", - "services": { - "Dataform": { - "clients": { - "grpc": { - "libraryClient": "DataformGapicClient", - "rpcs": { - "CancelWorkflowInvocation": { - "methods": [ - "cancelWorkflowInvocation" - ] - }, - "CommitRepositoryChanges": { - "methods": [ - "commitRepositoryChanges" - ] - }, - "CommitWorkspaceChanges": { - "methods": [ - "commitWorkspaceChanges" - ] - }, - "ComputeRepositoryAccessTokenStatus": { - "methods": [ - "computeRepositoryAccessTokenStatus" - ] - }, - "CreateCompilationResult": { - "methods": [ - "createCompilationResult" - ] - }, - "CreateFolder": { - "methods": [ - "createFolder" - ] - }, - "CreateReleaseConfig": { - "methods": [ - "createReleaseConfig" - ] - }, - "CreateRepository": { - "methods": [ - "createRepository" - ] - }, - "CreateTeamFolder": { - "methods": [ - "createTeamFolder" - ] - }, - "CreateWorkflowConfig": { - "methods": [ - "createWorkflowConfig" - ] - }, - "CreateWorkflowInvocation": { - "methods": [ - "createWorkflowInvocation" - ] - }, - "CreateWorkspace": { - "methods": [ - "createWorkspace" - ] - }, - "DeleteFolder": { - "methods": [ - "deleteFolder" - ] - }, - "DeleteReleaseConfig": { - "methods": [ - "deleteReleaseConfig" - ] - }, - "DeleteRepository": { - "methods": [ - "deleteRepository" - ] - }, - "DeleteTeamFolder": { - "methods": [ - "deleteTeamFolder" - ] - }, - "DeleteWorkflowConfig": { - "methods": [ - "deleteWorkflowConfig" - ] - }, - "DeleteWorkflowInvocation": { - "methods": [ - "deleteWorkflowInvocation" - ] - }, - "DeleteWorkspace": { - "methods": [ - "deleteWorkspace" - ] - }, - "FetchFileDiff": { - "methods": [ - "fetchFileDiff" - ] - }, - "FetchFileGitStatuses": { - "methods": [ - "fetchFileGitStatuses" - ] - }, - "FetchGitAheadBehind": { - "methods": [ - "fetchGitAheadBehind" - ] - }, - "FetchRemoteBranches": { - "methods": [ - "fetchRemoteBranches" - ] - }, - "FetchRepositoryHistory": { - "methods": [ - "fetchRepositoryHistory" - ] - }, - "GetCompilationResult": { - "methods": [ - "getCompilationResult" - ] - }, - "GetConfig": { - "methods": [ - "getConfig" - ] - }, - "GetFolder": { - "methods": [ - "getFolder" - ] - }, - "GetIamPolicy": { - "methods": [ - "getIamPolicy" - ] - }, - "GetReleaseConfig": { - "methods": [ - "getReleaseConfig" - ] - }, - "GetRepository": { - "methods": [ - "getRepository" - ] - }, - "GetTeamFolder": { - "methods": [ - "getTeamFolder" - ] - }, - "GetWorkflowConfig": { - "methods": [ - "getWorkflowConfig" - ] - }, - "GetWorkflowInvocation": { - "methods": [ - "getWorkflowInvocation" - ] - }, - "GetWorkspace": { - "methods": [ - "getWorkspace" - ] - }, - "InstallNpmPackages": { - "methods": [ - "installNpmPackages" - ] - }, - "ListCompilationResults": { - "methods": [ - "listCompilationResults" - ] - }, - "ListReleaseConfigs": { - "methods": [ - "listReleaseConfigs" - ] - }, - "ListRepositories": { - "methods": [ - "listRepositories" - ] - }, - "ListWorkflowConfigs": { - "methods": [ - "listWorkflowConfigs" - ] - }, - "ListWorkflowInvocations": { - "methods": [ - "listWorkflowInvocations" - ] - }, - "ListWorkspaces": { - "methods": [ - "listWorkspaces" - ] - }, - "MakeDirectory": { - "methods": [ - "makeDirectory" - ] - }, - "MoveDirectory": { - "methods": [ - "moveDirectory" - ] - }, - "MoveFile": { - "methods": [ - "moveFile" - ] - }, - "MoveFolder": { - "methods": [ - "moveFolder" - ] - }, - "MoveRepository": { - "methods": [ - "moveRepository" - ] - }, - "PullGitCommits": { - "methods": [ - "pullGitCommits" - ] - }, - "PushGitCommits": { - "methods": [ - "pushGitCommits" - ] - }, - "QueryCompilationResultActions": { - "methods": [ - "queryCompilationResultActions" - ] - }, - "QueryDirectoryContents": { - "methods": [ - "queryDirectoryContents" - ] - }, - "QueryFolderContents": { - "methods": [ - "queryFolderContents" - ] - }, - "QueryRepositoryDirectoryContents": { - "methods": [ - "queryRepositoryDirectoryContents" - ] - }, - "QueryTeamFolderContents": { - "methods": [ - "queryTeamFolderContents" - ] - }, - "QueryUserRootContents": { - "methods": [ - "queryUserRootContents" - ] - }, - "QueryWorkflowInvocationActions": { - "methods": [ - "queryWorkflowInvocationActions" - ] - }, - "ReadFile": { - "methods": [ - "readFile" - ] - }, - "ReadRepositoryFile": { - "methods": [ - "readRepositoryFile" - ] - }, - "RemoveDirectory": { - "methods": [ - "removeDirectory" - ] - }, - "RemoveFile": { - "methods": [ - "removeFile" - ] - }, - "ResetWorkspaceChanges": { - "methods": [ - "resetWorkspaceChanges" - ] - }, - "SearchFiles": { - "methods": [ - "searchFiles" - ] - }, - "SearchTeamFolders": { - "methods": [ - "searchTeamFolders" - ] - }, - "SetIamPolicy": { - "methods": [ - "setIamPolicy" - ] - }, - "TestIamPermissions": { - "methods": [ - "testIamPermissions" - ] - }, - "UpdateConfig": { - "methods": [ - "updateConfig" - ] - }, - "UpdateFolder": { - "methods": [ - "updateFolder" - ] - }, - "UpdateReleaseConfig": { - "methods": [ - "updateReleaseConfig" - ] - }, - "UpdateRepository": { - "methods": [ - "updateRepository" - ] - }, - "UpdateTeamFolder": { - "methods": [ - "updateTeamFolder" - ] - }, - "UpdateWorkflowConfig": { - "methods": [ - "updateWorkflowConfig" - ] - }, - "WriteFile": { - "methods": [ - "writeFile" - ] - }, - "CancelOperation": { - "methods": [ - "cancelOperation" - ] - }, - "DeleteOperation": { - "methods": [ - "deleteOperation" - ] - }, - "GetOperation": { - "methods": [ - "getOperation" - ] - }, - "ListOperations": { - "methods": [ - "listOperations" - ] - }, - "GetLocation": { - "methods": [ - "getLocation" - ] - }, - "ListLocations": { - "methods": [ - "listLocations" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/Dataform/v1beta1/src/V1beta1/resources/dataform_client_config.json b/owl-bot-staging/Dataform/v1beta1/src/V1beta1/resources/dataform_client_config.json deleted file mode 100644 index 10934ededbf2..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/src/V1beta1/resources/dataform_client_config.json +++ /dev/null @@ -1,419 +0,0 @@ -{ - "interfaces": { - "google.cloud.dataform.v1beta1.Dataform": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 10000, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - } - }, - "methods": { - "CancelWorkflowInvocation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "CommitRepositoryChanges": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "CommitWorkspaceChanges": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ComputeRepositoryAccessTokenStatus": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "CreateCompilationResult": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "CreateFolder": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "CreateReleaseConfig": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "CreateRepository": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "CreateTeamFolder": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "CreateWorkflowConfig": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "CreateWorkflowInvocation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "CreateWorkspace": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeleteFolder": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeleteReleaseConfig": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeleteRepository": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeleteTeamFolder": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeleteWorkflowConfig": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeleteWorkflowInvocation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeleteWorkspace": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "FetchFileDiff": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "FetchFileGitStatuses": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "FetchGitAheadBehind": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "FetchRemoteBranches": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "FetchRepositoryHistory": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetCompilationResult": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetConfig": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetFolder": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetReleaseConfig": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetRepository": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetTeamFolder": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetWorkflowConfig": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetWorkflowInvocation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetWorkspace": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "InstallNpmPackages": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListCompilationResults": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListReleaseConfigs": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListRepositories": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListWorkflowConfigs": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListWorkflowInvocations": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListWorkspaces": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "MakeDirectory": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "MoveDirectory": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "MoveFile": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "MoveFolder": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "MoveRepository": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "PullGitCommits": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "PushGitCommits": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "QueryCompilationResultActions": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "QueryDirectoryContents": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "QueryFolderContents": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "QueryRepositoryDirectoryContents": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "QueryTeamFolderContents": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "QueryUserRootContents": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "QueryWorkflowInvocationActions": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ReadFile": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ReadRepositoryFile": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "RemoveDirectory": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "RemoveFile": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ResetWorkspaceChanges": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "SearchFiles": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "SearchTeamFolders": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "SetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "TestIamPermissions": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdateConfig": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdateFolder": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdateReleaseConfig": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdateRepository": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdateTeamFolder": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdateWorkflowConfig": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "WriteFile": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "CancelOperation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeleteOperation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetOperation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListOperations": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetLocation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListLocations": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/Dataform/v1beta1/src/V1beta1/resources/dataform_descriptor_config.php b/owl-bot-staging/Dataform/v1beta1/src/V1beta1/resources/dataform_descriptor_config.php deleted file mode 100644 index e0d9300d3795..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/src/V1beta1/resources/dataform_descriptor_config.php +++ /dev/null @@ -1,1138 +0,0 @@ - [ - 'google.cloud.dataform.v1beta1.Dataform' => [ - 'MoveFolder' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\Dataform\V1beta1\MoveFolderMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'MoveRepository' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\Dataform\V1beta1\MoveRepositoryMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'CancelWorkflowInvocation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\CancelWorkflowInvocationResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'CommitRepositoryChanges' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\CommitRepositoryChangesResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'CommitWorkspaceChanges' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\CommitWorkspaceChangesResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ComputeRepositoryAccessTokenStatus' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\ComputeRepositoryAccessTokenStatusResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'CreateCompilationResult' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\CompilationResult', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateFolder' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\Folder', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateReleaseConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\ReleaseConfig', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateRepository' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\Repository', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateTeamFolder' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\TeamFolder', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateWorkflowConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\WorkflowConfig', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateWorkflowInvocation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\WorkflowInvocation', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateWorkspace' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\Workspace', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteFolder' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteReleaseConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteRepository' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteTeamFolder' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteWorkflowConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteWorkflowInvocation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteWorkspace' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'FetchFileDiff' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\FetchFileDiffResponse', - 'headerParams' => [ - [ - 'keyName' => 'workspace', - 'fieldAccessors' => [ - 'getWorkspace', - ], - ], - ], - ], - 'FetchFileGitStatuses' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\FetchFileGitStatusesResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'FetchGitAheadBehind' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\FetchGitAheadBehindResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'FetchRemoteBranches' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\FetchRemoteBranchesResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'FetchRepositoryHistory' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getCommits', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\FetchRepositoryHistoryResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetCompilationResult' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\CompilationResult', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\Config', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetFolder' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\Folder', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - ], - 'GetReleaseConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\ReleaseConfig', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetRepository' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\Repository', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetTeamFolder' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\TeamFolder', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetWorkflowConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\WorkflowConfig', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetWorkflowInvocation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\WorkflowInvocation', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetWorkspace' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\Workspace', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'InstallNpmPackages' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\InstallNpmPackagesResponse', - 'headerParams' => [ - [ - 'keyName' => 'workspace', - 'fieldAccessors' => [ - 'getWorkspace', - ], - ], - ], - ], - 'ListCompilationResults' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getCompilationResults', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\ListCompilationResultsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListReleaseConfigs' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getReleaseConfigs', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\ListReleaseConfigsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListRepositories' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getRepositories', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\ListRepositoriesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListWorkflowConfigs' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getWorkflowConfigs', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\ListWorkflowConfigsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListWorkflowInvocations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getWorkflowInvocations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\ListWorkflowInvocationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListWorkspaces' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getWorkspaces', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\ListWorkspacesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'MakeDirectory' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\MakeDirectoryResponse', - 'headerParams' => [ - [ - 'keyName' => 'workspace', - 'fieldAccessors' => [ - 'getWorkspace', - ], - ], - ], - ], - 'MoveDirectory' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\MoveDirectoryResponse', - 'headerParams' => [ - [ - 'keyName' => 'workspace', - 'fieldAccessors' => [ - 'getWorkspace', - ], - ], - ], - ], - 'MoveFile' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\MoveFileResponse', - 'headerParams' => [ - [ - 'keyName' => 'workspace', - 'fieldAccessors' => [ - 'getWorkspace', - ], - ], - ], - ], - 'PullGitCommits' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\PullGitCommitsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'PushGitCommits' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\PushGitCommitsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'QueryCompilationResultActions' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getCompilationResultActions', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\QueryCompilationResultActionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'QueryDirectoryContents' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDirectoryEntries', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\QueryDirectoryContentsResponse', - 'headerParams' => [ - [ - 'keyName' => 'workspace', - 'fieldAccessors' => [ - 'getWorkspace', - ], - ], - ], - ], - 'QueryFolderContents' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getEntries', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\QueryFolderContentsResponse', - 'headerParams' => [ - [ - 'keyName' => 'folder', - 'fieldAccessors' => [ - 'getFolder', - ], - ], - ], - ], - 'QueryRepositoryDirectoryContents' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDirectoryEntries', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\QueryRepositoryDirectoryContentsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'QueryTeamFolderContents' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getEntries', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\QueryTeamFolderContentsResponse', - 'headerParams' => [ - [ - 'keyName' => 'team_folder', - 'fieldAccessors' => [ - 'getTeamFolder', - ], - ], - ], - ], - 'QueryUserRootContents' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getEntries', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\QueryUserRootContentsResponse', - 'headerParams' => [ - [ - 'keyName' => 'location', - 'fieldAccessors' => [ - 'getLocation', - ], - ], - ], - ], - 'QueryWorkflowInvocationActions' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getWorkflowInvocationActions', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\QueryWorkflowInvocationActionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ReadFile' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\ReadFileResponse', - 'headerParams' => [ - [ - 'keyName' => 'workspace', - 'fieldAccessors' => [ - 'getWorkspace', - ], - ], - ], - ], - 'ReadRepositoryFile' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\ReadRepositoryFileResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'RemoveDirectory' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\RemoveDirectoryResponse', - 'headerParams' => [ - [ - 'keyName' => 'workspace', - 'fieldAccessors' => [ - 'getWorkspace', - ], - ], - ], - ], - 'RemoveFile' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\RemoveFileResponse', - 'headerParams' => [ - [ - 'keyName' => 'workspace', - 'fieldAccessors' => [ - 'getWorkspace', - ], - ], - ], - ], - 'ResetWorkspaceChanges' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\ResetWorkspaceChangesResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'SearchFiles' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getSearchResults', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\SearchFilesResponse', - 'headerParams' => [ - [ - 'keyName' => 'workspace', - 'fieldAccessors' => [ - 'getWorkspace', - ], - ], - ], - ], - 'SearchTeamFolders' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getResults', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\SearchTeamFoldersResponse', - 'headerParams' => [ - [ - 'keyName' => 'location', - 'fieldAccessors' => [ - 'getLocation', - ], - ], - ], - ], - 'SetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - ], - 'TestIamPermissions' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - ], - 'UpdateConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\Config', - 'headerParams' => [ - [ - 'keyName' => 'config.name', - 'fieldAccessors' => [ - 'getConfig', - 'getName', - ], - ], - ], - ], - 'UpdateFolder' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\Folder', - 'headerParams' => [ - [ - 'keyName' => 'folder.name', - 'fieldAccessors' => [ - 'getFolder', - 'getName', - ], - ], - ], - ], - 'UpdateReleaseConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\ReleaseConfig', - 'headerParams' => [ - [ - 'keyName' => 'release_config.name', - 'fieldAccessors' => [ - 'getReleaseConfig', - 'getName', - ], - ], - ], - ], - 'UpdateRepository' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\Repository', - 'headerParams' => [ - [ - 'keyName' => 'repository.name', - 'fieldAccessors' => [ - 'getRepository', - 'getName', - ], - ], - ], - ], - 'UpdateTeamFolder' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\TeamFolder', - 'headerParams' => [ - [ - 'keyName' => 'team_folder.name', - 'fieldAccessors' => [ - 'getTeamFolder', - 'getName', - ], - ], - ], - ], - 'UpdateWorkflowConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\WorkflowConfig', - 'headerParams' => [ - [ - 'keyName' => 'workflow_config.name', - 'fieldAccessors' => [ - 'getWorkflowConfig', - 'getName', - ], - ], - ], - ], - 'WriteFile' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\WriteFileResponse', - 'headerParams' => [ - [ - 'keyName' => 'workspace', - 'fieldAccessors' => [ - 'getWorkspace', - ], - ], - ], - ], - 'CancelOperation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.longrunning.Operations', - ], - 'DeleteOperation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.longrunning.Operations', - ], - 'GetOperation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\LongRunning\Operation', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.longrunning.Operations', - ], - 'ListOperations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getOperations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\LongRunning\ListOperationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.longrunning.Operations', - ], - 'GetLocation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Location\Location', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'ListLocations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getLocations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'templateMap' => [ - 'compilationResult' => 'projects/{project}/locations/{location}/repositories/{repository}/compilationResults/{compilation_result}', - 'config' => 'projects/{project}/locations/{location}/config', - 'cryptoKey' => 'projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}', - 'cryptoKeyVersion' => 'projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}', - 'folder' => 'projects/{project}/locations/{location}/folders/{folder}', - 'location' => 'projects/{project}/locations/{location}', - 'notebookRuntimeTemplate' => 'projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}', - 'releaseConfig' => 'projects/{project}/locations/{location}/repositories/{repository}/releaseConfigs/{release_config}', - 'repository' => 'projects/{project}/locations/{location}/repositories/{repository}', - 'secretVersion' => 'projects/{project}/secrets/{secret}/versions/{version}', - 'teamFolder' => 'projects/{project}/locations/{location}/teamFolders/{team_folder}', - 'workflowConfig' => 'projects/{project}/locations/{location}/repositories/{repository}/workflowConfigs/{workflow_config}', - 'workflowInvocation' => 'projects/{project}/locations/{location}/repositories/{repository}/workflowInvocations/{workflow_invocation}', - 'workspace' => 'projects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace}', - ], - ], - ], -]; diff --git a/owl-bot-staging/Dataform/v1beta1/src/V1beta1/resources/dataform_rest_client_config.php b/owl-bot-staging/Dataform/v1beta1/src/V1beta1/resources/dataform_rest_client_config.php deleted file mode 100644 index 688e1b79d9f1..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/src/V1beta1/resources/dataform_rest_client_config.php +++ /dev/null @@ -1,978 +0,0 @@ - [ - 'google.cloud.dataform.v1beta1.Dataform' => [ - 'CancelWorkflowInvocation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'CommitRepositoryChanges' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*}:commit', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'CommitWorkspaceChanges' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}:commit', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ComputeRepositoryAccessTokenStatus' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*}:computeAccessTokenStatus', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'CreateCompilationResult' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta1/{parent=projects/*/locations/*/repositories/*}/compilationResults', - 'body' => 'compilation_result', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateFolder' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta1/{parent=projects/*/locations/*}/folders', - 'body' => 'folder', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateReleaseConfig' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta1/{parent=projects/*/locations/*/repositories/*}/releaseConfigs', - 'body' => 'release_config', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'release_config_id', - ], - ], - 'CreateRepository' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta1/{parent=projects/*/locations/*}/repositories', - 'body' => 'repository', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'repository_id', - ], - ], - 'CreateTeamFolder' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta1/{parent=projects/*/locations/*}/teamFolders', - 'body' => 'team_folder', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateWorkflowConfig' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta1/{parent=projects/*/locations/*/repositories/*}/workflowConfigs', - 'body' => 'workflow_config', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'workflow_config_id', - ], - ], - 'CreateWorkflowInvocation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta1/{parent=projects/*/locations/*/repositories/*}/workflowInvocations', - 'body' => 'workflow_invocation', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateWorkspace' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta1/{parent=projects/*/locations/*/repositories/*}/workspaces', - 'body' => 'workspace', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'workspace_id', - ], - ], - 'DeleteFolder' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/folders/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteReleaseConfig' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*/releaseConfigs/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteRepository' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteTeamFolder' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/teamFolders/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteWorkflowConfig' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteWorkflowInvocation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteWorkspace' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'FetchFileDiff' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:fetchFileDiff', - 'placeholders' => [ - 'workspace' => [ - 'getters' => [ - 'getWorkspace', - ], - ], - ], - ], - 'FetchFileGitStatuses' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}:fetchFileGitStatuses', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'FetchGitAheadBehind' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}:fetchGitAheadBehind', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'FetchRemoteBranches' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*}:fetchRemoteBranches', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'FetchRepositoryHistory' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*}:fetchHistory', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetCompilationResult' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*/compilationResults/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetConfig' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/config}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetFolder' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/folders/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetIamPolicy' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{resource=projects/*/locations/*/repositories/*}:getIamPolicy', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{resource=projects/*/locations/*/folders/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{resource=projects/*/locations/*/teamFolders/*}:getIamPolicy', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'GetReleaseConfig' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*/releaseConfigs/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetRepository' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetTeamFolder' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/teamFolders/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetWorkflowConfig' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetWorkflowInvocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetWorkspace' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'InstallNpmPackages' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:installNpmPackages', - 'body' => '*', - 'placeholders' => [ - 'workspace' => [ - 'getters' => [ - 'getWorkspace', - ], - ], - ], - ], - 'ListCompilationResults' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{parent=projects/*/locations/*/repositories/*}/compilationResults', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListReleaseConfigs' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{parent=projects/*/locations/*/repositories/*}/releaseConfigs', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListRepositories' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{parent=projects/*/locations/*}/repositories', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListWorkflowConfigs' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{parent=projects/*/locations/*/repositories/*}/workflowConfigs', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListWorkflowInvocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{parent=projects/*/locations/*/repositories/*}/workflowInvocations', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListWorkspaces' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{parent=projects/*/locations/*/repositories/*}/workspaces', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'MakeDirectory' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:makeDirectory', - 'body' => '*', - 'placeholders' => [ - 'workspace' => [ - 'getters' => [ - 'getWorkspace', - ], - ], - ], - ], - 'MoveDirectory' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:moveDirectory', - 'body' => '*', - 'placeholders' => [ - 'workspace' => [ - 'getters' => [ - 'getWorkspace', - ], - ], - ], - ], - 'MoveFile' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:moveFile', - 'body' => '*', - 'placeholders' => [ - 'workspace' => [ - 'getters' => [ - 'getWorkspace', - ], - ], - ], - ], - 'MoveFolder' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/folders/*}:move', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'MoveRepository' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*}:move', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'PullGitCommits' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}:pull', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'PushGitCommits' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}:push', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'QueryCompilationResultActions' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*/compilationResults/*}:query', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'QueryDirectoryContents' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:queryDirectoryContents', - 'placeholders' => [ - 'workspace' => [ - 'getters' => [ - 'getWorkspace', - ], - ], - ], - ], - 'QueryFolderContents' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{folder=projects/*/locations/*/folders/*}:queryFolderContents', - 'placeholders' => [ - 'folder' => [ - 'getters' => [ - 'getFolder', - ], - ], - ], - ], - 'QueryRepositoryDirectoryContents' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*}:queryDirectoryContents', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'QueryTeamFolderContents' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{team_folder=projects/*/locations/*/teamFolders/*}:queryContents', - 'placeholders' => [ - 'team_folder' => [ - 'getters' => [ - 'getTeamFolder', - ], - ], - ], - ], - 'QueryUserRootContents' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{location=projects/*/locations/*}:queryUserRootContents', - 'placeholders' => [ - 'location' => [ - 'getters' => [ - 'getLocation', - ], - ], - ], - ], - 'QueryWorkflowInvocationActions' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}:query', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ReadFile' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:readFile', - 'placeholders' => [ - 'workspace' => [ - 'getters' => [ - 'getWorkspace', - ], - ], - ], - ], - 'ReadRepositoryFile' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*}:readFile', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'RemoveDirectory' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:removeDirectory', - 'body' => '*', - 'placeholders' => [ - 'workspace' => [ - 'getters' => [ - 'getWorkspace', - ], - ], - ], - ], - 'RemoveFile' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:removeFile', - 'body' => '*', - 'placeholders' => [ - 'workspace' => [ - 'getters' => [ - 'getWorkspace', - ], - ], - ], - ], - 'ResetWorkspaceChanges' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}:reset', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'SearchFiles' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:searchFiles', - 'placeholders' => [ - 'workspace' => [ - 'getters' => [ - 'getWorkspace', - ], - ], - ], - ], - 'SearchTeamFolders' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{location=projects/*/locations/*}/teamFolders:search', - 'placeholders' => [ - 'location' => [ - 'getters' => [ - 'getLocation', - ], - ], - ], - ], - 'SetIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta1/{resource=projects/*/locations/*/repositories/*}:setIamPolicy', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1beta1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1beta1/{resource=projects/*/locations/*/folders/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1beta1/{resource=projects/*/locations/*/teamFolders/*}:setIamPolicy', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'TestIamPermissions' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta1/{resource=projects/*/locations/*/repositories/*}:testIamPermissions', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1beta1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1beta1/{resource=projects/*/locations/*/folders/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1beta1/{resource=projects/*/locations/*/teamFolders/*}:testIamPermissions', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'UpdateConfig' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1beta1/{config.name=projects/*/locations/*/config}', - 'body' => 'config', - 'placeholders' => [ - 'config.name' => [ - 'getters' => [ - 'getConfig', - 'getName', - ], - ], - ], - ], - 'UpdateFolder' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1beta1/{folder.name=projects/*/locations/*/folders/*}', - 'body' => 'folder', - 'placeholders' => [ - 'folder.name' => [ - 'getters' => [ - 'getFolder', - 'getName', - ], - ], - ], - ], - 'UpdateReleaseConfig' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1beta1/{release_config.name=projects/*/locations/*/repositories/*/releaseConfigs/*}', - 'body' => 'release_config', - 'placeholders' => [ - 'release_config.name' => [ - 'getters' => [ - 'getReleaseConfig', - 'getName', - ], - ], - ], - ], - 'UpdateRepository' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1beta1/{repository.name=projects/*/locations/*/repositories/*}', - 'body' => 'repository', - 'placeholders' => [ - 'repository.name' => [ - 'getters' => [ - 'getRepository', - 'getName', - ], - ], - ], - ], - 'UpdateTeamFolder' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1beta1/{team_folder.name=projects/*/locations/*/teamFolders/*}', - 'body' => 'team_folder', - 'placeholders' => [ - 'team_folder.name' => [ - 'getters' => [ - 'getTeamFolder', - 'getName', - ], - ], - ], - ], - 'UpdateWorkflowConfig' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1beta1/{workflow_config.name=projects/*/locations/*/repositories/*/workflowConfigs/*}', - 'body' => 'workflow_config', - 'placeholders' => [ - 'workflow_config.name' => [ - 'getters' => [ - 'getWorkflowConfig', - 'getName', - ], - ], - ], - ], - 'WriteFile' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:writeFile', - 'body' => '*', - 'placeholders' => [ - 'workspace' => [ - 'getters' => [ - 'getWorkspace', - ], - ], - ], - ], - ], - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{name=projects/*}/locations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Dataform/v1beta1/tests/Unit/V1beta1/Client/DataformClientTest.php b/owl-bot-staging/Dataform/v1beta1/tests/Unit/V1beta1/Client/DataformClientTest.php deleted file mode 100644 index 698c72e44839..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/tests/Unit/V1beta1/Client/DataformClientTest.php +++ /dev/null @@ -1,5798 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return DataformClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new DataformClient($options); - } - - /** @test */ - public function cancelWorkflowInvocationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new CancelWorkflowInvocationResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->workflowInvocationName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_INVOCATION]'); - $request = (new CancelWorkflowInvocationRequest()) - ->setName($formattedName); - $response = $gapicClient->cancelWorkflowInvocation($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/CancelWorkflowInvocation', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function cancelWorkflowInvocationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->workflowInvocationName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_INVOCATION]'); - $request = (new CancelWorkflowInvocationRequest()) - ->setName($formattedName); - try { - $gapicClient->cancelWorkflowInvocation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function commitRepositoryChangesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $commitSha = 'commitSha1018601892'; - $expectedResponse = new CommitRepositoryChangesResponse(); - $expectedResponse->setCommitSha($commitSha); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $commitMetadata = new CommitMetadata(); - $commitMetadataAuthor = new CommitAuthor(); - $authorName = 'authorName-1501539658'; - $commitMetadataAuthor->setName($authorName); - $authorEmailAddress = 'authorEmailAddress-6398493'; - $commitMetadataAuthor->setEmailAddress($authorEmailAddress); - $commitMetadata->setAuthor($commitMetadataAuthor); - $request = (new CommitRepositoryChangesRequest()) - ->setName($formattedName) - ->setCommitMetadata($commitMetadata); - $response = $gapicClient->commitRepositoryChanges($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/CommitRepositoryChanges', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualRequestObject->getCommitMetadata(); - $this->assertProtobufEquals($commitMetadata, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function commitRepositoryChangesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $commitMetadata = new CommitMetadata(); - $commitMetadataAuthor = new CommitAuthor(); - $authorName = 'authorName-1501539658'; - $commitMetadataAuthor->setName($authorName); - $authorEmailAddress = 'authorEmailAddress-6398493'; - $commitMetadataAuthor->setEmailAddress($authorEmailAddress); - $commitMetadata->setAuthor($commitMetadataAuthor); - $request = (new CommitRepositoryChangesRequest()) - ->setName($formattedName) - ->setCommitMetadata($commitMetadata); - try { - $gapicClient->commitRepositoryChanges($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function commitWorkspaceChangesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new CommitWorkspaceChangesResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $author = new CommitAuthor(); - $authorName = 'authorName-1501539658'; - $author->setName($authorName); - $authorEmailAddress = 'authorEmailAddress-6398493'; - $author->setEmailAddress($authorEmailAddress); - $request = (new CommitWorkspaceChangesRequest()) - ->setName($formattedName) - ->setAuthor($author); - $response = $gapicClient->commitWorkspaceChanges($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/CommitWorkspaceChanges', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualRequestObject->getAuthor(); - $this->assertProtobufEquals($author, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function commitWorkspaceChangesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $author = new CommitAuthor(); - $authorName = 'authorName-1501539658'; - $author->setName($authorName); - $authorEmailAddress = 'authorEmailAddress-6398493'; - $author->setEmailAddress($authorEmailAddress); - $request = (new CommitWorkspaceChangesRequest()) - ->setName($formattedName) - ->setAuthor($author); - try { - $gapicClient->commitWorkspaceChanges($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function computeRepositoryAccessTokenStatusTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ComputeRepositoryAccessTokenStatusResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ComputeRepositoryAccessTokenStatusRequest()) - ->setName($formattedName); - $response = $gapicClient->computeRepositoryAccessTokenStatus($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/ComputeRepositoryAccessTokenStatus', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function computeRepositoryAccessTokenStatusExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ComputeRepositoryAccessTokenStatusRequest()) - ->setName($formattedName); - try { - $gapicClient->computeRepositoryAccessTokenStatus($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createCompilationResultTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $gitCommitish = 'gitCommitish-459981894'; - $name = 'name3373707'; - $resolvedGitCommitSha = 'resolvedGitCommitSha-1974209704'; - $dataformCoreVersion = 'dataformCoreVersion1918089577'; - $internalMetadata = 'internalMetadata-1087755663'; - $expectedResponse = new CompilationResult(); - $expectedResponse->setGitCommitish($gitCommitish); - $expectedResponse->setName($name); - $expectedResponse->setResolvedGitCommitSha($resolvedGitCommitSha); - $expectedResponse->setDataformCoreVersion($dataformCoreVersion); - $expectedResponse->setInternalMetadata($internalMetadata); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $compilationResult = new CompilationResult(); - $request = (new CreateCompilationResultRequest()) - ->setParent($formattedParent) - ->setCompilationResult($compilationResult); - $response = $gapicClient->createCompilationResult($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/CreateCompilationResult', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getCompilationResult(); - $this->assertProtobufEquals($compilationResult, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createCompilationResultExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $compilationResult = new CompilationResult(); - $request = (new CreateCompilationResultRequest()) - ->setParent($formattedParent) - ->setCompilationResult($compilationResult); - try { - $gapicClient->createCompilationResult($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createFolderTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $containingFolder = 'containingFolder2137746239'; - $teamFolderName = 'teamFolderName-1375688486'; - $internalMetadata = 'internalMetadata-1087755663'; - $creatorIamPrincipal = 'creatorIamPrincipal866086897'; - $expectedResponse = new Folder(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setContainingFolder($containingFolder); - $expectedResponse->setTeamFolderName($teamFolderName); - $expectedResponse->setInternalMetadata($internalMetadata); - $expectedResponse->setCreatorIamPrincipal($creatorIamPrincipal); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $folder = new Folder(); - $folderDisplayName = 'folderDisplayName1703145759'; - $folder->setDisplayName($folderDisplayName); - $request = (new CreateFolderRequest()) - ->setParent($formattedParent) - ->setFolder($folder); - $response = $gapicClient->createFolder($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/CreateFolder', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getFolder(); - $this->assertProtobufEquals($folder, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createFolderExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $folder = new Folder(); - $folderDisplayName = 'folderDisplayName1703145759'; - $folder->setDisplayName($folderDisplayName); - $request = (new CreateFolderRequest()) - ->setParent($formattedParent) - ->setFolder($folder); - try { - $gapicClient->createFolder($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createReleaseConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $gitCommitish = 'gitCommitish-459981894'; - $cronSchedule = 'cronSchedule206244136'; - $timeZone = 'timeZone36848094'; - $releaseCompilationResult = 'releaseCompilationResult1831489873'; - $disabled = true; - $internalMetadata = 'internalMetadata-1087755663'; - $expectedResponse = new ReleaseConfig(); - $expectedResponse->setName($name); - $expectedResponse->setGitCommitish($gitCommitish); - $expectedResponse->setCronSchedule($cronSchedule); - $expectedResponse->setTimeZone($timeZone); - $expectedResponse->setReleaseCompilationResult($releaseCompilationResult); - $expectedResponse->setDisabled($disabled); - $expectedResponse->setInternalMetadata($internalMetadata); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $releaseConfig = new ReleaseConfig(); - $releaseConfigGitCommitish = 'releaseConfigGitCommitish1714987262'; - $releaseConfig->setGitCommitish($releaseConfigGitCommitish); - $releaseConfigId = 'releaseConfigId-113371904'; - $request = (new CreateReleaseConfigRequest()) - ->setParent($formattedParent) - ->setReleaseConfig($releaseConfig) - ->setReleaseConfigId($releaseConfigId); - $response = $gapicClient->createReleaseConfig($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/CreateReleaseConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getReleaseConfig(); - $this->assertProtobufEquals($releaseConfig, $actualValue); - $actualValue = $actualRequestObject->getReleaseConfigId(); - $this->assertProtobufEquals($releaseConfigId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createReleaseConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $releaseConfig = new ReleaseConfig(); - $releaseConfigGitCommitish = 'releaseConfigGitCommitish1714987262'; - $releaseConfig->setGitCommitish($releaseConfigGitCommitish); - $releaseConfigId = 'releaseConfigId-113371904'; - $request = (new CreateReleaseConfigRequest()) - ->setParent($formattedParent) - ->setReleaseConfig($releaseConfig) - ->setReleaseConfigId($releaseConfigId); - try { - $gapicClient->createReleaseConfig($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createRepositoryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $containingFolder = 'containingFolder2137746239'; - $teamFolderName = 'teamFolderName-1375688486'; - $displayName = 'displayName1615086568'; - $npmrcEnvironmentVariablesSecretVersion = 'npmrcEnvironmentVariablesSecretVersion-2118517056'; - $setAuthenticatedUserAdmin = true; - $serviceAccount = 'serviceAccount-1948028253'; - $kmsKeyName = 'kmsKeyName2094986649'; - $internalMetadata = 'internalMetadata-1087755663'; - $expectedResponse = new Repository(); - $expectedResponse->setName($name); - $expectedResponse->setContainingFolder($containingFolder); - $expectedResponse->setTeamFolderName($teamFolderName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setNpmrcEnvironmentVariablesSecretVersion($npmrcEnvironmentVariablesSecretVersion); - $expectedResponse->setSetAuthenticatedUserAdmin($setAuthenticatedUserAdmin); - $expectedResponse->setServiceAccount($serviceAccount); - $expectedResponse->setKmsKeyName($kmsKeyName); - $expectedResponse->setInternalMetadata($internalMetadata); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $repository = new Repository(); - $repositoryId = 'repositoryId1101683248'; - $request = (new CreateRepositoryRequest()) - ->setParent($formattedParent) - ->setRepository($repository) - ->setRepositoryId($repositoryId); - $response = $gapicClient->createRepository($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/CreateRepository', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getRepository(); - $this->assertProtobufEquals($repository, $actualValue); - $actualValue = $actualRequestObject->getRepositoryId(); - $this->assertProtobufEquals($repositoryId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createRepositoryExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $repository = new Repository(); - $repositoryId = 'repositoryId1101683248'; - $request = (new CreateRepositoryRequest()) - ->setParent($formattedParent) - ->setRepository($repository) - ->setRepositoryId($repositoryId); - try { - $gapicClient->createRepository($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createTeamFolderTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $internalMetadata = 'internalMetadata-1087755663'; - $creatorIamPrincipal = 'creatorIamPrincipal866086897'; - $expectedResponse = new TeamFolder(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setInternalMetadata($internalMetadata); - $expectedResponse->setCreatorIamPrincipal($creatorIamPrincipal); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $teamFolder = new TeamFolder(); - $teamFolderDisplayName = 'teamFolderDisplayName136139842'; - $teamFolder->setDisplayName($teamFolderDisplayName); - $request = (new CreateTeamFolderRequest()) - ->setParent($formattedParent) - ->setTeamFolder($teamFolder); - $response = $gapicClient->createTeamFolder($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/CreateTeamFolder', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getTeamFolder(); - $this->assertProtobufEquals($teamFolder, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createTeamFolderExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $teamFolder = new TeamFolder(); - $teamFolderDisplayName = 'teamFolderDisplayName136139842'; - $teamFolder->setDisplayName($teamFolderDisplayName); - $request = (new CreateTeamFolderRequest()) - ->setParent($formattedParent) - ->setTeamFolder($teamFolder); - try { - $gapicClient->createTeamFolder($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createWorkflowConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $releaseConfig = 'releaseConfig582587002'; - $cronSchedule = 'cronSchedule206244136'; - $timeZone = 'timeZone36848094'; - $disabled = true; - $internalMetadata = 'internalMetadata-1087755663'; - $expectedResponse = new WorkflowConfig(); - $expectedResponse->setName($name); - $expectedResponse->setReleaseConfig($releaseConfig); - $expectedResponse->setCronSchedule($cronSchedule); - $expectedResponse->setTimeZone($timeZone); - $expectedResponse->setDisabled($disabled); - $expectedResponse->setInternalMetadata($internalMetadata); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $workflowConfig = new WorkflowConfig(); - $workflowConfigReleaseConfig = $gapicClient->releaseConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[RELEASE_CONFIG]'); - $workflowConfig->setReleaseConfig($workflowConfigReleaseConfig); - $workflowConfigId = 'workflowConfigId-60129608'; - $request = (new CreateWorkflowConfigRequest()) - ->setParent($formattedParent) - ->setWorkflowConfig($workflowConfig) - ->setWorkflowConfigId($workflowConfigId); - $response = $gapicClient->createWorkflowConfig($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/CreateWorkflowConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getWorkflowConfig(); - $this->assertProtobufEquals($workflowConfig, $actualValue); - $actualValue = $actualRequestObject->getWorkflowConfigId(); - $this->assertProtobufEquals($workflowConfigId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createWorkflowConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $workflowConfig = new WorkflowConfig(); - $workflowConfigReleaseConfig = $gapicClient->releaseConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[RELEASE_CONFIG]'); - $workflowConfig->setReleaseConfig($workflowConfigReleaseConfig); - $workflowConfigId = 'workflowConfigId-60129608'; - $request = (new CreateWorkflowConfigRequest()) - ->setParent($formattedParent) - ->setWorkflowConfig($workflowConfig) - ->setWorkflowConfigId($workflowConfigId); - try { - $gapicClient->createWorkflowConfig($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createWorkflowInvocationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $compilationResult = 'compilationResult-2035984871'; - $name = 'name3373707'; - $resolvedCompilationResult = 'resolvedCompilationResult-2110280256'; - $internalMetadata = 'internalMetadata-1087755663'; - $expectedResponse = new WorkflowInvocation(); - $expectedResponse->setCompilationResult($compilationResult); - $expectedResponse->setName($name); - $expectedResponse->setResolvedCompilationResult($resolvedCompilationResult); - $expectedResponse->setInternalMetadata($internalMetadata); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $workflowInvocation = new WorkflowInvocation(); - $request = (new CreateWorkflowInvocationRequest()) - ->setParent($formattedParent) - ->setWorkflowInvocation($workflowInvocation); - $response = $gapicClient->createWorkflowInvocation($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/CreateWorkflowInvocation', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getWorkflowInvocation(); - $this->assertProtobufEquals($workflowInvocation, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createWorkflowInvocationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $workflowInvocation = new WorkflowInvocation(); - $request = (new CreateWorkflowInvocationRequest()) - ->setParent($formattedParent) - ->setWorkflowInvocation($workflowInvocation); - try { - $gapicClient->createWorkflowInvocation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createWorkspaceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $internalMetadata = 'internalMetadata-1087755663'; - $disableMoves = false; - $expectedResponse = new Workspace(); - $expectedResponse->setName($name); - $expectedResponse->setInternalMetadata($internalMetadata); - $expectedResponse->setDisableMoves($disableMoves); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $workspace = new Workspace(); - $workspaceId = 'workspaceId1578483973'; - $request = (new CreateWorkspaceRequest()) - ->setParent($formattedParent) - ->setWorkspace($workspace) - ->setWorkspaceId($workspaceId); - $response = $gapicClient->createWorkspace($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/CreateWorkspace', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getWorkspace(); - $this->assertProtobufEquals($workspace, $actualValue); - $actualValue = $actualRequestObject->getWorkspaceId(); - $this->assertProtobufEquals($workspaceId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createWorkspaceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $workspace = new Workspace(); - $workspaceId = 'workspaceId1578483973'; - $request = (new CreateWorkspaceRequest()) - ->setParent($formattedParent) - ->setWorkspace($workspace) - ->setWorkspaceId($workspaceId); - try { - $gapicClient->createWorkspace($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteFolderTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); - $request = (new DeleteFolderRequest()) - ->setName($formattedName); - $gapicClient->deleteFolder($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/DeleteFolder', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteFolderExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); - $request = (new DeleteFolderRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteFolder($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteReleaseConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->releaseConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[RELEASE_CONFIG]'); - $request = (new DeleteReleaseConfigRequest()) - ->setName($formattedName); - $gapicClient->deleteReleaseConfig($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/DeleteReleaseConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteReleaseConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->releaseConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[RELEASE_CONFIG]'); - $request = (new DeleteReleaseConfigRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteReleaseConfig($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteRepositoryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new DeleteRepositoryRequest()) - ->setName($formattedName); - $gapicClient->deleteRepository($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/DeleteRepository', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteRepositoryExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new DeleteRepositoryRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteRepository($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteTeamFolderTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->teamFolderName('[PROJECT]', '[LOCATION]', '[TEAM_FOLDER]'); - $request = (new DeleteTeamFolderRequest()) - ->setName($formattedName); - $gapicClient->deleteTeamFolder($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/DeleteTeamFolder', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteTeamFolderExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->teamFolderName('[PROJECT]', '[LOCATION]', '[TEAM_FOLDER]'); - $request = (new DeleteTeamFolderRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteTeamFolder($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteWorkflowConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->workflowConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_CONFIG]'); - $request = (new DeleteWorkflowConfigRequest()) - ->setName($formattedName); - $gapicClient->deleteWorkflowConfig($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/DeleteWorkflowConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteWorkflowConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->workflowConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_CONFIG]'); - $request = (new DeleteWorkflowConfigRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteWorkflowConfig($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteWorkflowInvocationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->workflowInvocationName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_INVOCATION]'); - $request = (new DeleteWorkflowInvocationRequest()) - ->setName($formattedName); - $gapicClient->deleteWorkflowInvocation($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/DeleteWorkflowInvocation', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteWorkflowInvocationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->workflowInvocationName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_INVOCATION]'); - $request = (new DeleteWorkflowInvocationRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteWorkflowInvocation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteWorkspaceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new DeleteWorkspaceRequest()) - ->setName($formattedName); - $gapicClient->deleteWorkspace($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/DeleteWorkspace', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteWorkspaceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new DeleteWorkspaceRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteWorkspace($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function fetchFileDiffTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $formattedDiff = 'formattedDiff-1687410264'; - $expectedResponse = new FetchFileDiffResponse(); - $expectedResponse->setFormattedDiff($formattedDiff); - $transport->addResponse($expectedResponse); - // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $path = 'path3433509'; - $request = (new FetchFileDiffRequest()) - ->setWorkspace($formattedWorkspace) - ->setPath($path); - $response = $gapicClient->fetchFileDiff($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/FetchFileDiff', $actualFuncCall); - $actualValue = $actualRequestObject->getWorkspace(); - $this->assertProtobufEquals($formattedWorkspace, $actualValue); - $actualValue = $actualRequestObject->getPath(); - $this->assertProtobufEquals($path, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function fetchFileDiffExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $path = 'path3433509'; - $request = (new FetchFileDiffRequest()) - ->setWorkspace($formattedWorkspace) - ->setPath($path); - try { - $gapicClient->fetchFileDiff($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function fetchFileGitStatusesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new FetchFileGitStatusesResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new FetchFileGitStatusesRequest()) - ->setName($formattedName); - $response = $gapicClient->fetchFileGitStatuses($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/FetchFileGitStatuses', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function fetchFileGitStatusesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new FetchFileGitStatusesRequest()) - ->setName($formattedName); - try { - $gapicClient->fetchFileGitStatuses($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function fetchGitAheadBehindTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $commitsAhead = 1216483806; - $commitsBehind = 917751619; - $expectedResponse = new FetchGitAheadBehindResponse(); - $expectedResponse->setCommitsAhead($commitsAhead); - $expectedResponse->setCommitsBehind($commitsBehind); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new FetchGitAheadBehindRequest()) - ->setName($formattedName); - $response = $gapicClient->fetchGitAheadBehind($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/FetchGitAheadBehind', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function fetchGitAheadBehindExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new FetchGitAheadBehindRequest()) - ->setName($formattedName); - try { - $gapicClient->fetchGitAheadBehind($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function fetchRemoteBranchesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new FetchRemoteBranchesResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new FetchRemoteBranchesRequest()) - ->setName($formattedName); - $response = $gapicClient->fetchRemoteBranches($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/FetchRemoteBranches', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function fetchRemoteBranchesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new FetchRemoteBranchesRequest()) - ->setName($formattedName); - try { - $gapicClient->fetchRemoteBranches($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function fetchRepositoryHistoryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $commitsElement = new CommitLogEntry(); - $commits = [ - $commitsElement, - ]; - $expectedResponse = new FetchRepositoryHistoryResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setCommits($commits); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new FetchRepositoryHistoryRequest()) - ->setName($formattedName); - $response = $gapicClient->fetchRepositoryHistory($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getCommits()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/FetchRepositoryHistory', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function fetchRepositoryHistoryExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new FetchRepositoryHistoryRequest()) - ->setName($formattedName); - try { - $gapicClient->fetchRepositoryHistory($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCompilationResultTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $gitCommitish = 'gitCommitish-459981894'; - $name2 = 'name2-1052831874'; - $resolvedGitCommitSha = 'resolvedGitCommitSha-1974209704'; - $dataformCoreVersion = 'dataformCoreVersion1918089577'; - $internalMetadata = 'internalMetadata-1087755663'; - $expectedResponse = new CompilationResult(); - $expectedResponse->setGitCommitish($gitCommitish); - $expectedResponse->setName($name2); - $expectedResponse->setResolvedGitCommitSha($resolvedGitCommitSha); - $expectedResponse->setDataformCoreVersion($dataformCoreVersion); - $expectedResponse->setInternalMetadata($internalMetadata); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->compilationResultName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[COMPILATION_RESULT]'); - $request = (new GetCompilationResultRequest()) - ->setName($formattedName); - $response = $gapicClient->getCompilationResult($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/GetCompilationResult', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCompilationResultExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->compilationResultName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[COMPILATION_RESULT]'); - $request = (new GetCompilationResultRequest()) - ->setName($formattedName); - try { - $gapicClient->getCompilationResult($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $defaultKmsKeyName = 'defaultKmsKeyName-635012393'; - $internalMetadata = 'internalMetadata-1087755663'; - $expectedResponse = new Config(); - $expectedResponse->setName($name2); - $expectedResponse->setDefaultKmsKeyName($defaultKmsKeyName); - $expectedResponse->setInternalMetadata($internalMetadata); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->configName('[PROJECT]', '[LOCATION]'); - $request = (new GetConfigRequest()) - ->setName($formattedName); - $response = $gapicClient->getConfig($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/GetConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->configName('[PROJECT]', '[LOCATION]'); - $request = (new GetConfigRequest()) - ->setName($formattedName); - try { - $gapicClient->getConfig($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getFolderTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $containingFolder = 'containingFolder2137746239'; - $teamFolderName = 'teamFolderName-1375688486'; - $internalMetadata = 'internalMetadata-1087755663'; - $creatorIamPrincipal = 'creatorIamPrincipal866086897'; - $expectedResponse = new Folder(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setContainingFolder($containingFolder); - $expectedResponse->setTeamFolderName($teamFolderName); - $expectedResponse->setInternalMetadata($internalMetadata); - $expectedResponse->setCreatorIamPrincipal($creatorIamPrincipal); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); - $request = (new GetFolderRequest()) - ->setName($formattedName); - $response = $gapicClient->getFolder($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/GetFolder', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getFolderExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); - $request = (new GetFolderRequest()) - ->setName($formattedName); - try { - $gapicClient->getFolder($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - $response = $gapicClient->getIamPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/GetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getIamPolicyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - try { - $gapicClient->getIamPolicy($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getReleaseConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $gitCommitish = 'gitCommitish-459981894'; - $cronSchedule = 'cronSchedule206244136'; - $timeZone = 'timeZone36848094'; - $releaseCompilationResult = 'releaseCompilationResult1831489873'; - $disabled = true; - $internalMetadata = 'internalMetadata-1087755663'; - $expectedResponse = new ReleaseConfig(); - $expectedResponse->setName($name2); - $expectedResponse->setGitCommitish($gitCommitish); - $expectedResponse->setCronSchedule($cronSchedule); - $expectedResponse->setTimeZone($timeZone); - $expectedResponse->setReleaseCompilationResult($releaseCompilationResult); - $expectedResponse->setDisabled($disabled); - $expectedResponse->setInternalMetadata($internalMetadata); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->releaseConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[RELEASE_CONFIG]'); - $request = (new GetReleaseConfigRequest()) - ->setName($formattedName); - $response = $gapicClient->getReleaseConfig($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/GetReleaseConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getReleaseConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->releaseConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[RELEASE_CONFIG]'); - $request = (new GetReleaseConfigRequest()) - ->setName($formattedName); - try { - $gapicClient->getReleaseConfig($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRepositoryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $containingFolder = 'containingFolder2137746239'; - $teamFolderName = 'teamFolderName-1375688486'; - $displayName = 'displayName1615086568'; - $npmrcEnvironmentVariablesSecretVersion = 'npmrcEnvironmentVariablesSecretVersion-2118517056'; - $setAuthenticatedUserAdmin = true; - $serviceAccount = 'serviceAccount-1948028253'; - $kmsKeyName = 'kmsKeyName2094986649'; - $internalMetadata = 'internalMetadata-1087755663'; - $expectedResponse = new Repository(); - $expectedResponse->setName($name2); - $expectedResponse->setContainingFolder($containingFolder); - $expectedResponse->setTeamFolderName($teamFolderName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setNpmrcEnvironmentVariablesSecretVersion($npmrcEnvironmentVariablesSecretVersion); - $expectedResponse->setSetAuthenticatedUserAdmin($setAuthenticatedUserAdmin); - $expectedResponse->setServiceAccount($serviceAccount); - $expectedResponse->setKmsKeyName($kmsKeyName); - $expectedResponse->setInternalMetadata($internalMetadata); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new GetRepositoryRequest()) - ->setName($formattedName); - $response = $gapicClient->getRepository($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/GetRepository', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRepositoryExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new GetRepositoryRequest()) - ->setName($formattedName); - try { - $gapicClient->getRepository($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getTeamFolderTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $internalMetadata = 'internalMetadata-1087755663'; - $creatorIamPrincipal = 'creatorIamPrincipal866086897'; - $expectedResponse = new TeamFolder(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setInternalMetadata($internalMetadata); - $expectedResponse->setCreatorIamPrincipal($creatorIamPrincipal); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->teamFolderName('[PROJECT]', '[LOCATION]', '[TEAM_FOLDER]'); - $request = (new GetTeamFolderRequest()) - ->setName($formattedName); - $response = $gapicClient->getTeamFolder($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/GetTeamFolder', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getTeamFolderExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->teamFolderName('[PROJECT]', '[LOCATION]', '[TEAM_FOLDER]'); - $request = (new GetTeamFolderRequest()) - ->setName($formattedName); - try { - $gapicClient->getTeamFolder($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getWorkflowConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $releaseConfig = 'releaseConfig582587002'; - $cronSchedule = 'cronSchedule206244136'; - $timeZone = 'timeZone36848094'; - $disabled = true; - $internalMetadata = 'internalMetadata-1087755663'; - $expectedResponse = new WorkflowConfig(); - $expectedResponse->setName($name2); - $expectedResponse->setReleaseConfig($releaseConfig); - $expectedResponse->setCronSchedule($cronSchedule); - $expectedResponse->setTimeZone($timeZone); - $expectedResponse->setDisabled($disabled); - $expectedResponse->setInternalMetadata($internalMetadata); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->workflowConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_CONFIG]'); - $request = (new GetWorkflowConfigRequest()) - ->setName($formattedName); - $response = $gapicClient->getWorkflowConfig($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/GetWorkflowConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getWorkflowConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->workflowConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_CONFIG]'); - $request = (new GetWorkflowConfigRequest()) - ->setName($formattedName); - try { - $gapicClient->getWorkflowConfig($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getWorkflowInvocationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $compilationResult = 'compilationResult-2035984871'; - $name2 = 'name2-1052831874'; - $resolvedCompilationResult = 'resolvedCompilationResult-2110280256'; - $internalMetadata = 'internalMetadata-1087755663'; - $expectedResponse = new WorkflowInvocation(); - $expectedResponse->setCompilationResult($compilationResult); - $expectedResponse->setName($name2); - $expectedResponse->setResolvedCompilationResult($resolvedCompilationResult); - $expectedResponse->setInternalMetadata($internalMetadata); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->workflowInvocationName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_INVOCATION]'); - $request = (new GetWorkflowInvocationRequest()) - ->setName($formattedName); - $response = $gapicClient->getWorkflowInvocation($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/GetWorkflowInvocation', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getWorkflowInvocationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->workflowInvocationName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_INVOCATION]'); - $request = (new GetWorkflowInvocationRequest()) - ->setName($formattedName); - try { - $gapicClient->getWorkflowInvocation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getWorkspaceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $internalMetadata = 'internalMetadata-1087755663'; - $disableMoves = false; - $expectedResponse = new Workspace(); - $expectedResponse->setName($name2); - $expectedResponse->setInternalMetadata($internalMetadata); - $expectedResponse->setDisableMoves($disableMoves); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new GetWorkspaceRequest()) - ->setName($formattedName); - $response = $gapicClient->getWorkspace($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/GetWorkspace', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getWorkspaceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new GetWorkspaceRequest()) - ->setName($formattedName); - try { - $gapicClient->getWorkspace($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function installNpmPackagesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new InstallNpmPackagesResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new InstallNpmPackagesRequest()) - ->setWorkspace($formattedWorkspace); - $response = $gapicClient->installNpmPackages($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/InstallNpmPackages', $actualFuncCall); - $actualValue = $actualRequestObject->getWorkspace(); - $this->assertProtobufEquals($formattedWorkspace, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function installNpmPackagesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new InstallNpmPackagesRequest()) - ->setWorkspace($formattedWorkspace); - try { - $gapicClient->installNpmPackages($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCompilationResultsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $compilationResultsElement = new CompilationResult(); - $compilationResults = [ - $compilationResultsElement, - ]; - $expectedResponse = new ListCompilationResultsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setCompilationResults($compilationResults); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ListCompilationResultsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listCompilationResults($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getCompilationResults()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/ListCompilationResults', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCompilationResultsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ListCompilationResultsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listCompilationResults($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listReleaseConfigsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $releaseConfigsElement = new ReleaseConfig(); - $releaseConfigs = [ - $releaseConfigsElement, - ]; - $expectedResponse = new ListReleaseConfigsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setReleaseConfigs($releaseConfigs); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ListReleaseConfigsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listReleaseConfigs($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getReleaseConfigs()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/ListReleaseConfigs', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listReleaseConfigsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ListReleaseConfigsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listReleaseConfigs($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRepositoriesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $repositoriesElement = new Repository(); - $repositories = [ - $repositoriesElement, - ]; - $expectedResponse = new ListRepositoriesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setRepositories($repositories); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListRepositoriesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listRepositories($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getRepositories()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/ListRepositories', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRepositoriesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListRepositoriesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listRepositories($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listWorkflowConfigsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $workflowConfigsElement = new WorkflowConfig(); - $workflowConfigs = [ - $workflowConfigsElement, - ]; - $expectedResponse = new ListWorkflowConfigsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setWorkflowConfigs($workflowConfigs); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ListWorkflowConfigsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listWorkflowConfigs($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getWorkflowConfigs()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/ListWorkflowConfigs', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listWorkflowConfigsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ListWorkflowConfigsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listWorkflowConfigs($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listWorkflowInvocationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $workflowInvocationsElement = new WorkflowInvocation(); - $workflowInvocations = [ - $workflowInvocationsElement, - ]; - $expectedResponse = new ListWorkflowInvocationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setWorkflowInvocations($workflowInvocations); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ListWorkflowInvocationsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listWorkflowInvocations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getWorkflowInvocations()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/ListWorkflowInvocations', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listWorkflowInvocationsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ListWorkflowInvocationsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listWorkflowInvocations($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listWorkspacesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $workspacesElement = new Workspace(); - $workspaces = [ - $workspacesElement, - ]; - $expectedResponse = new ListWorkspacesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setWorkspaces($workspaces); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ListWorkspacesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listWorkspaces($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getWorkspaces()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/ListWorkspaces', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listWorkspacesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ListWorkspacesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listWorkspaces($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function makeDirectoryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new MakeDirectoryResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $path = 'path3433509'; - $request = (new MakeDirectoryRequest()) - ->setWorkspace($formattedWorkspace) - ->setPath($path); - $response = $gapicClient->makeDirectory($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/MakeDirectory', $actualFuncCall); - $actualValue = $actualRequestObject->getWorkspace(); - $this->assertProtobufEquals($formattedWorkspace, $actualValue); - $actualValue = $actualRequestObject->getPath(); - $this->assertProtobufEquals($path, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function makeDirectoryExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $path = 'path3433509'; - $request = (new MakeDirectoryRequest()) - ->setWorkspace($formattedWorkspace) - ->setPath($path); - try { - $gapicClient->makeDirectory($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function moveDirectoryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new MoveDirectoryResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $path = 'path3433509'; - $newPath = 'newPath1377204068'; - $request = (new MoveDirectoryRequest()) - ->setWorkspace($formattedWorkspace) - ->setPath($path) - ->setNewPath($newPath); - $response = $gapicClient->moveDirectory($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/MoveDirectory', $actualFuncCall); - $actualValue = $actualRequestObject->getWorkspace(); - $this->assertProtobufEquals($formattedWorkspace, $actualValue); - $actualValue = $actualRequestObject->getPath(); - $this->assertProtobufEquals($path, $actualValue); - $actualValue = $actualRequestObject->getNewPath(); - $this->assertProtobufEquals($newPath, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function moveDirectoryExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $path = 'path3433509'; - $newPath = 'newPath1377204068'; - $request = (new MoveDirectoryRequest()) - ->setWorkspace($formattedWorkspace) - ->setPath($path) - ->setNewPath($newPath); - try { - $gapicClient->moveDirectory($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function moveFileTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new MoveFileResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $path = 'path3433509'; - $newPath = 'newPath1377204068'; - $request = (new MoveFileRequest()) - ->setWorkspace($formattedWorkspace) - ->setPath($path) - ->setNewPath($newPath); - $response = $gapicClient->moveFile($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/MoveFile', $actualFuncCall); - $actualValue = $actualRequestObject->getWorkspace(); - $this->assertProtobufEquals($formattedWorkspace, $actualValue); - $actualValue = $actualRequestObject->getPath(); - $this->assertProtobufEquals($path, $actualValue); - $actualValue = $actualRequestObject->getNewPath(); - $this->assertProtobufEquals($newPath, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function moveFileExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $path = 'path3433509'; - $newPath = 'newPath1377204068'; - $request = (new MoveFileRequest()) - ->setWorkspace($formattedWorkspace) - ->setPath($path) - ->setNewPath($newPath); - try { - $gapicClient->moveFile($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function moveFolderTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/moveFolderTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/moveFolderTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); - $request = (new MoveFolderRequest()) - ->setName($formattedName); - $response = $gapicClient->moveFolder($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/MoveFolder', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/moveFolderTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function moveFolderExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/moveFolderTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); - $request = (new MoveFolderRequest()) - ->setName($formattedName); - $response = $gapicClient->moveFolder($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/moveFolderTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function moveRepositoryTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/moveRepositoryTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/moveRepositoryTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new MoveRepositoryRequest()) - ->setName($formattedName); - $response = $gapicClient->moveRepository($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/MoveRepository', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/moveRepositoryTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function moveRepositoryExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/moveRepositoryTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new MoveRepositoryRequest()) - ->setName($formattedName); - $response = $gapicClient->moveRepository($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/moveRepositoryTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function pullGitCommitsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new PullGitCommitsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $author = new CommitAuthor(); - $authorName = 'authorName-1501539658'; - $author->setName($authorName); - $authorEmailAddress = 'authorEmailAddress-6398493'; - $author->setEmailAddress($authorEmailAddress); - $request = (new PullGitCommitsRequest()) - ->setName($formattedName) - ->setAuthor($author); - $response = $gapicClient->pullGitCommits($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/PullGitCommits', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualRequestObject->getAuthor(); - $this->assertProtobufEquals($author, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function pullGitCommitsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $author = new CommitAuthor(); - $authorName = 'authorName-1501539658'; - $author->setName($authorName); - $authorEmailAddress = 'authorEmailAddress-6398493'; - $author->setEmailAddress($authorEmailAddress); - $request = (new PullGitCommitsRequest()) - ->setName($formattedName) - ->setAuthor($author); - try { - $gapicClient->pullGitCommits($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function pushGitCommitsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new PushGitCommitsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new PushGitCommitsRequest()) - ->setName($formattedName); - $response = $gapicClient->pushGitCommits($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/PushGitCommits', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function pushGitCommitsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new PushGitCommitsRequest()) - ->setName($formattedName); - try { - $gapicClient->pushGitCommits($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryCompilationResultActionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $compilationResultActionsElement = new CompilationResultAction(); - $compilationResultActions = [ - $compilationResultActionsElement, - ]; - $expectedResponse = new QueryCompilationResultActionsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setCompilationResultActions($compilationResultActions); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->compilationResultName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[COMPILATION_RESULT]'); - $request = (new QueryCompilationResultActionsRequest()) - ->setName($formattedName); - $response = $gapicClient->queryCompilationResultActions($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getCompilationResultActions()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/QueryCompilationResultActions', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryCompilationResultActionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->compilationResultName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[COMPILATION_RESULT]'); - $request = (new QueryCompilationResultActionsRequest()) - ->setName($formattedName); - try { - $gapicClient->queryCompilationResultActions($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryDirectoryContentsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $directoryEntriesElement = new DirectoryEntry(); - $directoryEntries = [ - $directoryEntriesElement, - ]; - $expectedResponse = new QueryDirectoryContentsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDirectoryEntries($directoryEntries); - $transport->addResponse($expectedResponse); - // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new QueryDirectoryContentsRequest()) - ->setWorkspace($formattedWorkspace); - $response = $gapicClient->queryDirectoryContents($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDirectoryEntries()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/QueryDirectoryContents', $actualFuncCall); - $actualValue = $actualRequestObject->getWorkspace(); - $this->assertProtobufEquals($formattedWorkspace, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryDirectoryContentsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new QueryDirectoryContentsRequest()) - ->setWorkspace($formattedWorkspace); - try { - $gapicClient->queryDirectoryContents($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryFolderContentsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $entriesElement = new FolderContentsEntry(); - $entries = [ - $entriesElement, - ]; - $expectedResponse = new QueryFolderContentsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setEntries($entries); - $transport->addResponse($expectedResponse); - // Mock request - $formattedFolder = $gapicClient->folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); - $request = (new QueryFolderContentsRequest()) - ->setFolder($formattedFolder); - $response = $gapicClient->queryFolderContents($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getEntries()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/QueryFolderContents', $actualFuncCall); - $actualValue = $actualRequestObject->getFolder(); - $this->assertProtobufEquals($formattedFolder, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryFolderContentsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedFolder = $gapicClient->folderName('[PROJECT]', '[LOCATION]', '[FOLDER]'); - $request = (new QueryFolderContentsRequest()) - ->setFolder($formattedFolder); - try { - $gapicClient->queryFolderContents($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryRepositoryDirectoryContentsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $directoryEntriesElement = new DirectoryEntry(); - $directoryEntries = [ - $directoryEntriesElement, - ]; - $expectedResponse = new QueryRepositoryDirectoryContentsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDirectoryEntries($directoryEntries); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new QueryRepositoryDirectoryContentsRequest()) - ->setName($formattedName); - $response = $gapicClient->queryRepositoryDirectoryContents($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDirectoryEntries()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/QueryRepositoryDirectoryContents', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryRepositoryDirectoryContentsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new QueryRepositoryDirectoryContentsRequest()) - ->setName($formattedName); - try { - $gapicClient->queryRepositoryDirectoryContents($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryTeamFolderContentsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $entriesElement = new TeamFolderContentsEntry(); - $entries = [ - $entriesElement, - ]; - $expectedResponse = new QueryTeamFolderContentsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setEntries($entries); - $transport->addResponse($expectedResponse); - // Mock request - $formattedTeamFolder = $gapicClient->teamFolderName('[PROJECT]', '[LOCATION]', '[TEAM_FOLDER]'); - $request = (new QueryTeamFolderContentsRequest()) - ->setTeamFolder($formattedTeamFolder); - $response = $gapicClient->queryTeamFolderContents($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getEntries()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/QueryTeamFolderContents', $actualFuncCall); - $actualValue = $actualRequestObject->getTeamFolder(); - $this->assertProtobufEquals($formattedTeamFolder, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryTeamFolderContentsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedTeamFolder = $gapicClient->teamFolderName('[PROJECT]', '[LOCATION]', '[TEAM_FOLDER]'); - $request = (new QueryTeamFolderContentsRequest()) - ->setTeamFolder($formattedTeamFolder); - try { - $gapicClient->queryTeamFolderContents($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryUserRootContentsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $entriesElement = new RootContentsEntry(); - $entries = [ - $entriesElement, - ]; - $expectedResponse = new QueryUserRootContentsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setEntries($entries); - $transport->addResponse($expectedResponse); - // Mock request - $formattedLocation = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new QueryUserRootContentsRequest()) - ->setLocation($formattedLocation); - $response = $gapicClient->queryUserRootContents($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getEntries()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/QueryUserRootContents', $actualFuncCall); - $actualValue = $actualRequestObject->getLocation(); - $this->assertProtobufEquals($formattedLocation, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryUserRootContentsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedLocation = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new QueryUserRootContentsRequest()) - ->setLocation($formattedLocation); - try { - $gapicClient->queryUserRootContents($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryWorkflowInvocationActionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $workflowInvocationActionsElement = new WorkflowInvocationAction(); - $workflowInvocationActions = [ - $workflowInvocationActionsElement, - ]; - $expectedResponse = new QueryWorkflowInvocationActionsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setWorkflowInvocationActions($workflowInvocationActions); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->workflowInvocationName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_INVOCATION]'); - $request = (new QueryWorkflowInvocationActionsRequest()) - ->setName($formattedName); - $response = $gapicClient->queryWorkflowInvocationActions($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getWorkflowInvocationActions()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/QueryWorkflowInvocationActions', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function queryWorkflowInvocationActionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->workflowInvocationName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_INVOCATION]'); - $request = (new QueryWorkflowInvocationActionsRequest()) - ->setName($formattedName); - try { - $gapicClient->queryWorkflowInvocationActions($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function readFileTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $fileContents = '125'; - $expectedResponse = new ReadFileResponse(); - $expectedResponse->setFileContents($fileContents); - $transport->addResponse($expectedResponse); - // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $path = 'path3433509'; - $request = (new ReadFileRequest()) - ->setWorkspace($formattedWorkspace) - ->setPath($path); - $response = $gapicClient->readFile($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/ReadFile', $actualFuncCall); - $actualValue = $actualRequestObject->getWorkspace(); - $this->assertProtobufEquals($formattedWorkspace, $actualValue); - $actualValue = $actualRequestObject->getPath(); - $this->assertProtobufEquals($path, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function readFileExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $path = 'path3433509'; - $request = (new ReadFileRequest()) - ->setWorkspace($formattedWorkspace) - ->setPath($path); - try { - $gapicClient->readFile($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function readRepositoryFileTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $contents = '26'; - $expectedResponse = new ReadRepositoryFileResponse(); - $expectedResponse->setContents($contents); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $path = 'path3433509'; - $request = (new ReadRepositoryFileRequest()) - ->setName($formattedName) - ->setPath($path); - $response = $gapicClient->readRepositoryFile($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/ReadRepositoryFile', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualRequestObject->getPath(); - $this->assertProtobufEquals($path, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function readRepositoryFileExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $path = 'path3433509'; - $request = (new ReadRepositoryFileRequest()) - ->setName($formattedName) - ->setPath($path); - try { - $gapicClient->readRepositoryFile($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function removeDirectoryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new RemoveDirectoryResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $path = 'path3433509'; - $request = (new RemoveDirectoryRequest()) - ->setWorkspace($formattedWorkspace) - ->setPath($path); - $response = $gapicClient->removeDirectory($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/RemoveDirectory', $actualFuncCall); - $actualValue = $actualRequestObject->getWorkspace(); - $this->assertProtobufEquals($formattedWorkspace, $actualValue); - $actualValue = $actualRequestObject->getPath(); - $this->assertProtobufEquals($path, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function removeDirectoryExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $path = 'path3433509'; - $request = (new RemoveDirectoryRequest()) - ->setWorkspace($formattedWorkspace) - ->setPath($path); - try { - $gapicClient->removeDirectory($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function removeFileTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new RemoveFileResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $path = 'path3433509'; - $request = (new RemoveFileRequest()) - ->setWorkspace($formattedWorkspace) - ->setPath($path); - $response = $gapicClient->removeFile($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/RemoveFile', $actualFuncCall); - $actualValue = $actualRequestObject->getWorkspace(); - $this->assertProtobufEquals($formattedWorkspace, $actualValue); - $actualValue = $actualRequestObject->getPath(); - $this->assertProtobufEquals($path, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function removeFileExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $path = 'path3433509'; - $request = (new RemoveFileRequest()) - ->setWorkspace($formattedWorkspace) - ->setPath($path); - try { - $gapicClient->removeFile($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function resetWorkspaceChangesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ResetWorkspaceChangesResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new ResetWorkspaceChangesRequest()) - ->setName($formattedName); - $response = $gapicClient->resetWorkspaceChanges($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/ResetWorkspaceChanges', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function resetWorkspaceChangesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new ResetWorkspaceChangesRequest()) - ->setName($formattedName); - try { - $gapicClient->resetWorkspaceChanges($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchFilesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $searchResultsElement = new SearchResult(); - $searchResults = [ - $searchResultsElement, - ]; - $expectedResponse = new SearchFilesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setSearchResults($searchResults); - $transport->addResponse($expectedResponse); - // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new SearchFilesRequest()) - ->setWorkspace($formattedWorkspace); - $response = $gapicClient->searchFiles($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getSearchResults()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/SearchFiles', $actualFuncCall); - $actualValue = $actualRequestObject->getWorkspace(); - $this->assertProtobufEquals($formattedWorkspace, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchFilesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $request = (new SearchFilesRequest()) - ->setWorkspace($formattedWorkspace); - try { - $gapicClient->searchFiles($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchTeamFoldersTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $resultsElement = new TeamFolderSearchResult(); - $results = [ - $resultsElement, - ]; - $expectedResponse = new SearchTeamFoldersResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setResults($results); - $transport->addResponse($expectedResponse); - // Mock request - $formattedLocation = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new SearchTeamFoldersRequest()) - ->setLocation($formattedLocation); - $response = $gapicClient->searchTeamFolders($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getResults()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/SearchTeamFolders', $actualFuncCall); - $actualValue = $actualRequestObject->getLocation(); - $this->assertProtobufEquals($formattedLocation, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchTeamFoldersExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedLocation = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new SearchTeamFoldersRequest()) - ->setLocation($formattedLocation); - try { - $gapicClient->searchTeamFolders($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - $response = $gapicClient->setIamPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/SetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPolicy(); - $this->assertProtobufEquals($policy, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setIamPolicyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - try { - $gapicClient->setIamPolicy($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function testIamPermissionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new TestIamPermissionsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $permissions = []; - $request = (new TestIamPermissionsRequest()) - ->setResource($resource) - ->setPermissions($permissions); - $response = $gapicClient->testIamPermissions($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/TestIamPermissions', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPermissions(); - $this->assertProtobufEquals($permissions, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function testIamPermissionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $resource = 'resource-341064690'; - $permissions = []; - $request = (new TestIamPermissionsRequest()) - ->setResource($resource) - ->setPermissions($permissions); - try { - $gapicClient->testIamPermissions($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $defaultKmsKeyName = 'defaultKmsKeyName-635012393'; - $internalMetadata = 'internalMetadata-1087755663'; - $expectedResponse = new Config(); - $expectedResponse->setName($name); - $expectedResponse->setDefaultKmsKeyName($defaultKmsKeyName); - $expectedResponse->setInternalMetadata($internalMetadata); - $transport->addResponse($expectedResponse); - // Mock request - $config = new Config(); - $request = (new UpdateConfigRequest()) - ->setConfig($config); - $response = $gapicClient->updateConfig($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/UpdateConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getConfig(); - $this->assertProtobufEquals($config, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $config = new Config(); - $request = (new UpdateConfigRequest()) - ->setConfig($config); - try { - $gapicClient->updateConfig($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateFolderTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $containingFolder = 'containingFolder2137746239'; - $teamFolderName = 'teamFolderName-1375688486'; - $internalMetadata = 'internalMetadata-1087755663'; - $creatorIamPrincipal = 'creatorIamPrincipal866086897'; - $expectedResponse = new Folder(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setContainingFolder($containingFolder); - $expectedResponse->setTeamFolderName($teamFolderName); - $expectedResponse->setInternalMetadata($internalMetadata); - $expectedResponse->setCreatorIamPrincipal($creatorIamPrincipal); - $transport->addResponse($expectedResponse); - // Mock request - $folder = new Folder(); - $folderDisplayName = 'folderDisplayName1703145759'; - $folder->setDisplayName($folderDisplayName); - $request = (new UpdateFolderRequest()) - ->setFolder($folder); - $response = $gapicClient->updateFolder($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/UpdateFolder', $actualFuncCall); - $actualValue = $actualRequestObject->getFolder(); - $this->assertProtobufEquals($folder, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateFolderExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $folder = new Folder(); - $folderDisplayName = 'folderDisplayName1703145759'; - $folder->setDisplayName($folderDisplayName); - $request = (new UpdateFolderRequest()) - ->setFolder($folder); - try { - $gapicClient->updateFolder($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateReleaseConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $gitCommitish = 'gitCommitish-459981894'; - $cronSchedule = 'cronSchedule206244136'; - $timeZone = 'timeZone36848094'; - $releaseCompilationResult = 'releaseCompilationResult1831489873'; - $disabled = true; - $internalMetadata = 'internalMetadata-1087755663'; - $expectedResponse = new ReleaseConfig(); - $expectedResponse->setName($name); - $expectedResponse->setGitCommitish($gitCommitish); - $expectedResponse->setCronSchedule($cronSchedule); - $expectedResponse->setTimeZone($timeZone); - $expectedResponse->setReleaseCompilationResult($releaseCompilationResult); - $expectedResponse->setDisabled($disabled); - $expectedResponse->setInternalMetadata($internalMetadata); - $transport->addResponse($expectedResponse); - // Mock request - $releaseConfig = new ReleaseConfig(); - $releaseConfigGitCommitish = 'releaseConfigGitCommitish1714987262'; - $releaseConfig->setGitCommitish($releaseConfigGitCommitish); - $request = (new UpdateReleaseConfigRequest()) - ->setReleaseConfig($releaseConfig); - $response = $gapicClient->updateReleaseConfig($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/UpdateReleaseConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getReleaseConfig(); - $this->assertProtobufEquals($releaseConfig, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateReleaseConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $releaseConfig = new ReleaseConfig(); - $releaseConfigGitCommitish = 'releaseConfigGitCommitish1714987262'; - $releaseConfig->setGitCommitish($releaseConfigGitCommitish); - $request = (new UpdateReleaseConfigRequest()) - ->setReleaseConfig($releaseConfig); - try { - $gapicClient->updateReleaseConfig($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateRepositoryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $containingFolder = 'containingFolder2137746239'; - $teamFolderName = 'teamFolderName-1375688486'; - $displayName = 'displayName1615086568'; - $npmrcEnvironmentVariablesSecretVersion = 'npmrcEnvironmentVariablesSecretVersion-2118517056'; - $setAuthenticatedUserAdmin = true; - $serviceAccount = 'serviceAccount-1948028253'; - $kmsKeyName = 'kmsKeyName2094986649'; - $internalMetadata = 'internalMetadata-1087755663'; - $expectedResponse = new Repository(); - $expectedResponse->setName($name); - $expectedResponse->setContainingFolder($containingFolder); - $expectedResponse->setTeamFolderName($teamFolderName); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setNpmrcEnvironmentVariablesSecretVersion($npmrcEnvironmentVariablesSecretVersion); - $expectedResponse->setSetAuthenticatedUserAdmin($setAuthenticatedUserAdmin); - $expectedResponse->setServiceAccount($serviceAccount); - $expectedResponse->setKmsKeyName($kmsKeyName); - $expectedResponse->setInternalMetadata($internalMetadata); - $transport->addResponse($expectedResponse); - // Mock request - $repository = new Repository(); - $request = (new UpdateRepositoryRequest()) - ->setRepository($repository); - $response = $gapicClient->updateRepository($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/UpdateRepository', $actualFuncCall); - $actualValue = $actualRequestObject->getRepository(); - $this->assertProtobufEquals($repository, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateRepositoryExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $repository = new Repository(); - $request = (new UpdateRepositoryRequest()) - ->setRepository($repository); - try { - $gapicClient->updateRepository($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateTeamFolderTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $internalMetadata = 'internalMetadata-1087755663'; - $creatorIamPrincipal = 'creatorIamPrincipal866086897'; - $expectedResponse = new TeamFolder(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setInternalMetadata($internalMetadata); - $expectedResponse->setCreatorIamPrincipal($creatorIamPrincipal); - $transport->addResponse($expectedResponse); - // Mock request - $teamFolder = new TeamFolder(); - $teamFolderDisplayName = 'teamFolderDisplayName136139842'; - $teamFolder->setDisplayName($teamFolderDisplayName); - $request = (new UpdateTeamFolderRequest()) - ->setTeamFolder($teamFolder); - $response = $gapicClient->updateTeamFolder($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/UpdateTeamFolder', $actualFuncCall); - $actualValue = $actualRequestObject->getTeamFolder(); - $this->assertProtobufEquals($teamFolder, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateTeamFolderExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $teamFolder = new TeamFolder(); - $teamFolderDisplayName = 'teamFolderDisplayName136139842'; - $teamFolder->setDisplayName($teamFolderDisplayName); - $request = (new UpdateTeamFolderRequest()) - ->setTeamFolder($teamFolder); - try { - $gapicClient->updateTeamFolder($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateWorkflowConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $releaseConfig = 'releaseConfig582587002'; - $cronSchedule = 'cronSchedule206244136'; - $timeZone = 'timeZone36848094'; - $disabled = true; - $internalMetadata = 'internalMetadata-1087755663'; - $expectedResponse = new WorkflowConfig(); - $expectedResponse->setName($name); - $expectedResponse->setReleaseConfig($releaseConfig); - $expectedResponse->setCronSchedule($cronSchedule); - $expectedResponse->setTimeZone($timeZone); - $expectedResponse->setDisabled($disabled); - $expectedResponse->setInternalMetadata($internalMetadata); - $transport->addResponse($expectedResponse); - // Mock request - $workflowConfig = new WorkflowConfig(); - $workflowConfigReleaseConfig = $gapicClient->releaseConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[RELEASE_CONFIG]'); - $workflowConfig->setReleaseConfig($workflowConfigReleaseConfig); - $request = (new UpdateWorkflowConfigRequest()) - ->setWorkflowConfig($workflowConfig); - $response = $gapicClient->updateWorkflowConfig($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/UpdateWorkflowConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getWorkflowConfig(); - $this->assertProtobufEquals($workflowConfig, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateWorkflowConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $workflowConfig = new WorkflowConfig(); - $workflowConfigReleaseConfig = $gapicClient->releaseConfigName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[RELEASE_CONFIG]'); - $workflowConfig->setReleaseConfig($workflowConfigReleaseConfig); - $request = (new UpdateWorkflowConfigRequest()) - ->setWorkflowConfig($workflowConfig); - try { - $gapicClient->updateWorkflowConfig($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function writeFileTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new WriteFileResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $path = 'path3433509'; - $contents = '26'; - $request = (new WriteFileRequest()) - ->setWorkspace($formattedWorkspace) - ->setPath($path) - ->setContents($contents); - $response = $gapicClient->writeFile($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/WriteFile', $actualFuncCall); - $actualValue = $actualRequestObject->getWorkspace(); - $this->assertProtobufEquals($formattedWorkspace, $actualValue); - $actualValue = $actualRequestObject->getPath(); - $this->assertProtobufEquals($path, $actualValue); - $actualValue = $actualRequestObject->getContents(); - $this->assertProtobufEquals($contents, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function writeFileExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedWorkspace = $gapicClient->workspaceName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKSPACE]'); - $path = 'path3433509'; - $contents = '26'; - $request = (new WriteFileRequest()) - ->setWorkspace($formattedWorkspace) - ->setPath($path) - ->setContents($contents); - try { - $gapicClient->writeFile($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function cancelOperationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $name = 'name3373707'; - $request = (new CancelOperationRequest()) - ->setName($name); - $gapicClient->cancelOperation($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/CancelOperation', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($name, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function cancelOperationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $name = 'name3373707'; - $request = (new CancelOperationRequest()) - ->setName($name); - try { - $gapicClient->cancelOperation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteOperationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $name = 'name3373707'; - $request = (new DeleteOperationRequest()) - ->setName($name); - $gapicClient->deleteOperation($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/DeleteOperation', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($name, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteOperationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $name = 'name3373707'; - $request = (new DeleteOperationRequest()) - ->setName($name); - try { - $gapicClient->deleteOperation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getOperationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $done = true; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setDone($done); - $transport->addResponse($expectedResponse); - // Mock request - $name = 'name3373707'; - $request = (new GetOperationRequest()) - ->setName($name); - $response = $gapicClient->getOperation($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($name, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getOperationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $name = 'name3373707'; - $request = (new GetOperationRequest()) - ->setName($name); - try { - $gapicClient->getOperation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listOperationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $operationsElement = new Operation(); - $operations = [ - $operationsElement, - ]; - $expectedResponse = new ListOperationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setOperations($operations); - $transport->addResponse($expectedResponse); - // Mock request - $name = 'name3373707'; - $filter = 'filter-1274492040'; - $request = (new ListOperationsRequest()) - ->setName($name) - ->setFilter($filter); - $response = $gapicClient->listOperations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getOperations()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/ListOperations', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($name, $actualValue); - $actualValue = $actualRequestObject->getFilter(); - $this->assertProtobufEquals($filter, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listOperationsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $name = 'name3373707'; - $filter = 'filter-1274492040'; - $request = (new ListOperationsRequest()) - ->setName($name) - ->setFilter($filter); - try { - $gapicClient->listOperations($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getLocationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $locationId = 'locationId552319461'; - $displayName = 'displayName1615086568'; - $expectedResponse = new Location(); - $expectedResponse->setName($name2); - $expectedResponse->setLocationId($locationId); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - $request = new GetLocationRequest(); - $response = $gapicClient->getLocation($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/GetLocation', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getLocationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new GetLocationRequest(); - try { - $gapicClient->getLocation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLocationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $locationsElement = new Location(); - $locations = [ - $locationsElement, - ]; - $expectedResponse = new ListLocationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setLocations($locations); - $transport->addResponse($expectedResponse); - $request = new ListLocationsRequest(); - $response = $gapicClient->listLocations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLocationsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListLocationsRequest(); - try { - $gapicClient->listLocations($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function cancelWorkflowInvocationAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new CancelWorkflowInvocationResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->workflowInvocationName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[WORKFLOW_INVOCATION]'); - $request = (new CancelWorkflowInvocationRequest()) - ->setName($formattedName); - $response = $gapicClient->cancelWorkflowInvocationAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataform.v1beta1.Dataform/CancelWorkflowInvocation', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -}