From f967249e95214455786b271a6fa9651a81819a38 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Fri, 16 May 2025 12:04:42 +0000 Subject: [PATCH 1/2] feat: Support adding a workflow action to execute a Data Preparation node docs: Updated the formatting in some comments in multiple services PiperOrigin-RevId: 759511972 Source-Link: https://github.com/googleapis/googleapis/commit/b1161bf17c14603fb8980d341b1427c7a6a43c45 Source-Link: https://github.com/googleapis/googleapis-gen/commit/60bb6a1d29c45848e04369fea205c6bfba948aac Copy-Tag: eyJwIjoiRGF0YWZvcm0vLk93bEJvdC55YW1sIiwiaCI6IjYwYmI2YTFkMjljNDU4NDhlMDQzNjlmZWEyMDVjNmJmYmE5NDhhYWMifQ== --- .../Cloud/Dataform/V1Beta1/Dataform.php | Bin 0 -> 39599 bytes .../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 | 111 + .../FileOperation/DeleteFile.php | 36 + .../FileOperation/WriteFile.php | 70 + .../CommitRepositoryChangesResponse.php | 67 + .../V1beta1/CommitWorkspaceChangesRequest.php | 183 + .../CommitWorkspaceChangesResponse.php | 33 + .../Dataform/V1beta1/CompilationResult.php | 487 ++ .../CompilationResult/CompilationError.php | 190 + .../V1beta1/CompilationResultAction.php | 422 ++ .../CompilationResultAction/Assertion.php | 273 ++ .../DataPreparation.php | 216 + .../DataPreparation/ErrorTable.php | 119 + .../DataPreparation/SqlDefinition.php | 162 + .../CompilationResultAction/Declaration.php | 85 + .../IncrementalLoadMode.php | 70 + .../CompilationResultAction/LoadConfig.php | 183 + .../CompilationResultAction/Notebook.php | 172 + .../CompilationResultAction/Operations.php | 258 + .../CompilationResultAction/Relation.php | 552 +++ .../Relation/IncrementalTableConfig.php | 272 + .../Relation/RelationType.php | 78 + .../SimpleLoadMode.php | 36 + ...puteRepositoryAccessTokenStatusRequest.php | 67 + ...uteRepositoryAccessTokenStatusResponse.php | 67 + .../TokenStatus.php | 72 + .../Google/Cloud/Dataform/V1beta1/Config.php | 105 + .../CreateCompilationResultRequest.php | 132 + .../V1beta1/CreateReleaseConfigRequest.php | 173 + .../V1beta1/CreateRepositoryRequest.php | 173 + .../V1beta1/CreateWorkflowConfigRequest.php | 173 + .../CreateWorkflowInvocationRequest.php | 132 + .../V1beta1/CreateWorkspaceRequest.php | 173 + .../Dataform/V1beta1/DataEncryptionState.php | 71 + .../V1beta1/DeleteReleaseConfigRequest.php | 81 + .../V1beta1/DeleteRepositoryRequest.php | 123 + .../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 | 104 + .../UncommittedFileChange/State.php | 78 + .../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 + .../V1beta1/GetCompilationResultRequest.php | 81 + .../Dataform/V1beta1/GetConfigRequest.php | 81 + .../V1beta1/GetReleaseConfigRequest.php | 81 + .../Dataform/V1beta1/GetRepositoryRequest.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 | 247 + .../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 + .../V1beta1/NotebookRuntimeOptions.php | 124 + .../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 + ...ueryRepositoryDirectoryContentsRequest.php | 239 + ...eryRepositoryDirectoryContentsResponse.php | 105 + .../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 | 142 + .../Cloud/Dataform/V1beta1/ReleaseConfig.php | 435 ++ .../ReleaseConfig/ScheduledReleaseRecord.php | 165 + .../V1beta1/RemoveDirectoryRequest.php | 105 + .../V1beta1/RemoveDirectoryResponse.php | 33 + .../Dataform/V1beta1/RemoveFileRequest.php | 105 + .../Dataform/V1beta1/RemoveFileResponse.php | 33 + .../Cloud/Dataform/V1beta1/Repository.php | 555 +++ .../V1beta1/Repository/GitRemoteSettings.php | 237 + .../SshAuthenticationConfig.php | 116 + .../GitRemoteSettings/TokenStatus.php | 72 + .../WorkspaceCompilationOverrides.php | 149 + .../V1beta1/ResetWorkspaceChangesRequest.php | 139 + .../V1beta1/ResetWorkspaceChangesResponse.php | 33 + .../Dataform/V1beta1/SearchFilesRequest.php | 201 + .../Dataform/V1beta1/SearchFilesResponse.php | 105 + .../Cloud/Dataform/V1beta1/SearchResult.php | 108 + .../Google/Cloud/Dataform/V1beta1/Target.php | 136 + .../Dataform/V1beta1/UpdateConfigRequest.php | 136 + .../V1beta1/UpdateReleaseConfigRequest.php | 141 + .../V1beta1/UpdateRepositoryRequest.php | 141 + .../V1beta1/UpdateWorkflowConfigRequest.php | 141 + .../Cloud/Dataform/V1beta1/WorkflowConfig.php | 453 ++ .../ScheduledExecutionRecord.php | 165 + .../Dataform/V1beta1/WorkflowInvocation.php | 411 ++ .../V1beta1/WorkflowInvocation/State.php | 86 + .../V1beta1/WorkflowInvocationAction.php | 421 ++ .../BigQueryAction.php | 108 + .../DataPreparationAction.php | 193 + .../ActionErrorTable.php | 119 + .../ActionIncrementalLoadMode.php | 70 + .../ActionLoadConfig.php | 183 + .../ActionSimpleLoadMode.php | 36 + .../ActionSqlDefinition.php | 162 + .../NotebookAction.php | 112 + .../WorkflowInvocationAction/State.php | 94 + .../Cloud/Dataform/V1beta1/Workspace.php | 211 + .../Dataform/V1beta1/WriteFileRequest.php | 135 + .../Dataform/V1beta1/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 + .../DataformClient/create_repository.php | 78 + .../DataformClient/create_workflow_config.php | 96 + .../create_workflow_invocation.php | 74 + .../DataformClient/create_workspace.php | 78 + .../DataformClient/delete_release_config.php | 74 + .../DataformClient/delete_repository.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_iam_policy.php | 72 + .../V1beta1/DataformClient/get_location.php | 57 + .../DataformClient/get_release_config.php | 76 + .../V1beta1/DataformClient/get_repository.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 | 62 + .../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 + .../DataformClient/pull_git_commits.php | 88 + .../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 + .../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 + .../V1beta1/DataformClient/set_iam_policy.php | 77 + .../DataformClient/test_iam_permissions.php | 84 + .../V1beta1/DataformClient/update_config.php | 64 + .../DataformClient/update_release_config.php | 81 + .../DataformClient/update_repository.php | 64 + .../DataformClient/update_workflow_config.php | 85 + .../V1beta1/DataformClient/write_file.php | 82 + .../src/V1beta1/Client/DataformClient.php | 2320 +++++++++ .../v1beta1/src/V1beta1/gapic_metadata.json | 313 ++ .../resources/dataform_client_config.json | 329 ++ .../resources/dataform_descriptor_config.php | 863 ++++ .../resources/dataform_rest_client_config.php | 743 +++ .../V1beta1/Client/DataformClientTest.php | 4368 +++++++++++++++++ 211 files changed, 34041 insertions(+) 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/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/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/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/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/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/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/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/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/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/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/NotebookRuntimeOptions.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/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/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/Target.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/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/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_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_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_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_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_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_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_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_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_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/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_repository_directory_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/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_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_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/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 0000000000000000000000000000000000000000..2aa6182bd3c7a788a8719c2c0469cd667141c628 GIT binary patch literal 39599 zcmc&-d2AfldH0ecMLtRtHM;1PWv$0{EYUI&myNl~^;d%fHpk{c~| z*E_qCX@d>oB&d_NX_K@-P&8AI+ zCm73@a<-jP57_H0g@4t?TB(>%+4Wo<|2uK}MYQ|q~sZDDZm-StK} zUoTe5DH?F8oVQM#Oo=(^-3O`_;QwSwL3No(0&=X*mFrfmoGY!)Sa!Zvtkx^F%Xl@N z-mvNpA?ceFC*`sHOQOtrY0 zDVHlmg-Y2@r(K-fDWV2Wmx@-o-rAV6MXOYpvNm%!ioo2ZdL2s z%`fN-h*|)$+-_p(-b;U0Ef&#i$ z%}>xCY}oQaQZ8Hv;U_pvL3r`ZwAcaCG_&P=ZM#aFinwVR3+&*HEjxR|+RomzYBs*l zk}?}jq!K3vr{4XIOwac+W9$ScA6^_6D}Y?~IF#tbG)-2yU~R96!RGJmWo*%^R_r45 z$hNVc?b4>}{YGZMcrP2u*DS1^CA>!WVxghQq?}j)3!05PGCGA(y~f>aPoZd6OSx?U z-vEaXj}pdD16-;Vd^?I?qVUPCkiJwpthYP^C3+wo~VttX%u_ULUl@rD~ z8!K10YWb{HzFDkQ%3BbU?9E)Qm|H7ZHr4|+_(I@6+RNdZ#K7-mPO&lZbSqcRZNS?2 zh_}RtO3E1xcKlYQc7vOdtT0eq`DH7ZyH+e%_UJB-(z)hQx~3+a<_3??cS%hr(0i8k zmvU=X$sX-X^@0T^E%`L-xkqOQ=Y^#>d6}F1y(LumJ zFx3y@d?T~VxQFe-qnpLNmCfbzl}5Qf$~g5n*`H>6lwfiR8sd*ma>Cxv?u!*jV}%`} z?GCmniOVD|MCKlBRxip8~x1{9SJ*63OrEV*3N~WQ?%h zMy(|G7O?Cwje;nguAJZGVmnAH^%z-pzeY;hn)S*JtK2=2d!5~F+nYMS zXpwxSyk6XZIMBviiXqeO_Rsi|y_s=k0dr6DsfDl<*dB=vS7BVZhbLPQ?f`wqmx(;W zN=@~RLdbfPKbl}iBET?SV8^*|R%^wZq>o4m`nI!BgV@ecgRO06NcU#Nu4jcmM{{ee zH5b{C1}wJ1=<=ltvkTd!<;?QcrR>#(rOUI^b7$vfXGZQa_Od~^sM)iZt}e`sB#a@p zdv0MRGe0*o(qjy=KJl?P*29&I9wPw*Hq2_2<@)0(qDFQ&(OSp2v0rEarpoS%;O7}dTNPjf(cIHC~W)cMC zQ%m`BEQ%{oMg|t}16ICnPrNQa?M##^&?=B5e5XF{Ow^RYDO&j6`D=S;Y>)E?9!)am zukERW%z$StTwiA&o4*2anJ?Nf1k!|I*rN4H1MZUXe%4>j)u7nq28J$zR6rLgKmyir zUIJ?zW`k8&fUFHCp3|aF?13YU@$dOY(1>arVgr?00g7{Nn{N!R5fa7$*1ujX0cgHE z#h2#C5^OXGvt0#|ECXuPK^nLKbW-vso8HyN5w@>vy$U%d_ywF~SqA~jP@@b(p5G+F z0Pwvh2F=Ut;5o~s-nOFM;~qa?j8pD`W`w}}HE?8_`wI?FoLM{I$Q09rfwQC)stEmz z4dc*uJ6kNc4D2yK4Y03PA>>vNYt4LYmCO&Wj?QirA`eU&(|C%K0)_w}hEHt4V+`9^{r@X*QTMD*IB>$)8pn!M0O zJjke-kFw*D(k>OTfqaiES=>CDu!DCmLgrlQAWS;enb6t#T3lTV9fEMInyYW>ifWuC z!$6Qw2UuZ#DZy4By3(*}(86kG&tUiDDc*yB$JzEyqLA=fSBjBBtt=EoE4*jcNd-*icO9!>}d+BqScb3HWTY_of# zV38DgitQGntlWt>I*7e7U)hME!{-xh*!S)PvISz>@N5C?n=o7HWD8)80<3v2*%`Qu4k9x4I}xM&9L!q`{TA2(gnrIwMYhL0 zk)IPY#|i|6;)g}x7nrjXRy@O88IWN^(-aX(8o3aMsJ^K03Og+P)BwnBli^9W2ih1B zi8M!njCzlOI22i%VhLH+0*)d?>RaRx&0mB(Uv892NS29doODLJ5Ycin*X~bQCNvXB z!rYpr<KB9qVV2eW9RQ?(Mi>^mfyaUv=ju2t>G^{5J?t=o4d)3?_IigXpwR zq}NHk4NqQ+(K4+=GERiHNJx6kYpjp|1wFZ+Ql_)Mj486BnVA_RPkFX3t_(66L&fhh=(=BWraC#`QNn)2E5c4G~SLR`a%yb=R$07ib z5N@!8ju-$PT)TSsyac_i<|2R(2&5BV07B7_KrGVQrKX^jFv;4(C5 z{xoEThrv#q>W|;M45KepCle9s2$6hA3HWe=-5Uj?MDHC4(4S(%4vj<%JIr>G{uPu& zzU%-Sbg~3|D-NE&Yic*^qlCe>`I!VWmaJSYze$?aF~OaYx4Fn(b1L1_1C7A1vI8E- zBvGf?u+0I+xw?(xNo8T;Hoce&I|5_qgg5l;fbS;rXA*3W=k=#Gnhs4)#90tfQXdW` z%=wuxH2L0`Ssb={r*c`BVk5*e{jt~bnGdoc@_5&mfNisVlnEtn-znY@Of~Cf zk?L&RBy7Sw$wu6zPV`~IQN0nCK0@5KfrBmKO%`oWsmXPABws0zuu);Gs5=7MR0kpgxi~#K zjnVKs)nEaI@S3o09(7Y$DlRBAU^89oLx~Z}>tldUFiJ7dG%7bcP4;4eri4lfmX6Nh)A>_U6j+3lUAs9JUG%ugm* zG7J=<9gJDFPa;Id1bbRJbEg!4Ba0(7)LKjjuCOD#5=5Ip>F6gsDZxj0G05seP0EA$ zhd@>pgoI4q3E}6Mk_1U8nILS5PTW2i_p<$7n)@<^p9L1GJ|qN-_DV#$2fz6|ONvb9 zqP`Wn!@&;^u>CVwjGN{^OBOoM2-kJn#C=@BPsfbr)7tQFP<(uYZ!mOjiB zNWk_Qx3QigRnoTg>@yxaO}2g5GR8r+Tb=fb)C~6!kpF>qm%kwbe6fZ~#0Z(>uVvWY9KVT^t>!S-u2&v?*db)eJ3*kJ7c=zAzz%_ue~U~BZDt4 z#zY*o{dX@r6zVp{6{>1Q)1qM2+Z%4va^afR(d zX+Krk)2?_bhGU`7kFQ_?o+KhxCMXF)3W}<2Rbj2ODHD_#7C5M9!q4O*{YAH$e>}#H ztu;^yS}bQ>bf`{V73gY}^aYkuWxu#kWvx{zH?lQU+mqj2;a5RyUYQ?X`@bNEFN)EZ z#9)qQ@?kdUAnq-`3KjvIzX88Cd@>`&_HX3vY^700fk1Yxk-vcrz9)fmZEr{>rP%CekbYJ?42uUh$r5SC*3hWT4a znUbfaDGa#-lxgh5|7g|mqhPt|GGTZe_eOy(9mR|6fVPc&nZI|(ZU!g%6C`QTVSI@l zg~J#itfDKDgW63Z#9^qtZY9Vue+l>tzcF%+PI!04Yh7zR11kN;mPtojs>eLX`h`s( zJ}Vuf?FA|a4=O1-mzId-73sAY`pr-S*XcP_XW|q#5oH7)zA?6MT?P!P7AW zh?oiY*2FZ>hu0W$%3&!hLatHE{+s}C+$}}M#8=s%V_bOtV`%c3Ho?s(n~Q0mC$Yob zXHiGZvp(@s7Da~{cP2~?`YLn4jsDPNyYy8i0h6xb+6-MJ!_^nu|KPbXX)n*VNsSpy zciEi{Ydp&OrLRc4uvuRbw>w7ixpJk9t9B*jY?5dgF*?JXV+x+B$O9SpM9>|v(Hf|$n&+O454)lHOZqLx7*f`ljZrkQJ zF#F)?shbx#qfx6s8tHly-3lH+7T7>Z6JH*PD_?b(TaJ!##$9tcv-D%R&z}4nxTX>0 z0KhsUJiHagbCiwXejLcOiF0pH628*R7{}QWc^fD|1)eBJY@gJZ z^$8E%+8xBEJ?eSKCrA|J4<;XHhr^MMwP{thN68A8>|?mMFgu@Fp1ZV=U4H&@Ncqij zW@>&GiKPaD_9F{8SGcbZlccusp-|LX7C( zM5G|3KhPyL?AK^QKqHiMyOc}5$c8kt9;N$*p=_No$q%vtW!<|$@u2C_FU@c-+%aZc z5RzZo#rFAJ0BC=dd5MGG>~?Oe#QBCA5~IZSI1lVsO41KoZqrctmK|Sur8I*Jz0_f* zQpRd`)RYVC|2o0;dX}YI!oolbCA!Xr#90)-aV$fqxXQ*T%j`#(=PJ34GcK`Rr3wn_ zh(+yt%=4H+n9Jk~jA_%i>C(YHKtBm=V6wT~T9N_jo5B@1WN{>?k{{`1%w5@dj_rm! zSwaIM9>vASRZ-+xDk67c(aaZdpbLSxhC3})^6exa;sUm&Cw>tb*4(Sbt;UvQz_V?N zv}UX|xK~$Mzc9GcN$l$MQ~hk$76_C?hR92@v(>lb0QjNkY3JFL`%s*tU$ z(Jl9gEa?{#?13v3I7d*{IdSYXLDKpqh0uDkpTNOx47@Vibe$#hZk#N$P10N{K z+vc2c0!)!iZl{*w7Bd626mDA6TTKxc(RxYemQ&2CG^t)t5mEWzJIfI#L$TMG+!Ik= zbkL;}Al|IyZ_z-(sj~24Lf*$MDKF?3p?Jx);o#H+?+Q|gXl0>@<+2hAwUtVX$MpPj zd$kr{#6c47fV?XXM!6UAou48pYKa-;RV>dN5Nwk&mLjuW|u3Yp;hswh2(=wbil8NJcyOK1(S6>53_qi zUaxB}lhZ6;ew3Y9$K{-DC_fQ3Vn%PEZ{y0bs2!rjo*afFC4c86_t=Q~f$(Y&C4Q0- zDv{nvlDpLd3KMt#j?$q+02XNj&an~2dnq1D^T*vO_Rbio@G0>dY*X?a8^u|JcM3(H zGoFKnaemNnqS*~({wWX^rwrkrBI%TcVip07HX$QkMnXf|Sr+|s5PzlGx zRmiP$G3h1_<_qkod)>~p=-uJumv=KmVeYCOm~{R4TY4?h9N<(6#U!nqO2Ht^1-U9V zGei%wH7$CWD&WcVcH0B#GcKrmUZlo`Cm)M((1H}y?r|aQt@}r?aK*A}Ja$M;OzGM2 zIfTYFw2~s(?L}+1qsXy|nwX#qDeFkVjNaCm5#2J5Ds4KbUJ0#3(P}-Z4h4nXx4+Yd zwqJ`^7Z&Cg&LORamS9U)r>AFU>5^Ly{W+akn4X=V$Dh4OH1(g&%+cpv?jsu5m;Mv@ z1Al-U{&D_*Ch<4A=M%WI>V84dajSO59A`^=b<)vP?w8~v=&ZkOrO9v0qwkEUNQ7S(B{ z*SrXtUjz}nRyDXvCmdXgcJkwMzd`zO3v1@taj$g>!rVD!u*fv}Mp~sH6x}1g$x_ja z2pKfLIl@MRFvxT7b?y9L=A}h;xY>BqC7nFF!pS_(GKfF9S%3k=I_msa<-djMZhIY- zDfX_@U`I%L^&?@mo(N|zD(e+dSsg{G@fq*YuygcFg%yPwR{hw?X zP4_N0wLo1*^MVG>L~FRffX&snaV(P)@J2kG^^ep^et7(V)QgSa*r#%!Fr`i=tJH6h~Lq2~d)b{P>0 z!nhDSPnI4_(*+{cSw9Ox@vt|5BR>=3(vti{4?7Stl|SKchb8=9x)T^_>3J+#LYmu~ zl)EE~x_SC!j*SR+?;SiX*@9^NAS@kvl$->5+ zKz7c})M&>J+rCqWcW!CtNa8R%DEFM_EC&U;cZ=^sAP*c*cut$lbrqT*2Dv=DFhill zT__sR0uubObYbrDWz}Y5W^Rcp04N&q#41`qLQng&Sf!sT#&f(-E+PZ?z8@cK&oH>S7Z*V zI&n|ubzy#R+XgM|o9VosF1($|v3touq5^HX`J7^F2>^BaZ>qU7EGn+7jiD-)UtOET zIU0R1&$AI;FHCsGtay9;PJTAW2FM~4-3+vH8KKC}X$pyyvk`Y7<{uz&NyZ6NaGdn( z&%TwBZLi<>`nNva^O*6d^D8*7i%OFx9ZrsE?YYOiZMltK$FV>7vG zE%48S=FbC7b*oYJu8rlTe}F>suo7R0KmR4AasE?2KCv6qxYGjI#y6?$IdAplazwT^ zGUB4Hh;a(=_*+d8eY>SbILCRDG0(WXX#uk|vUccZmrjfse}%3%)b_%~kUC2kk1N7P z#LmGX3bXgOF;b~Hj?^>8Q|%!I1;HDK7$56lDeeWhNI4x}U>|rV4vRm(p+hB_S2&s%jJfvE5$0hUl94900wzmGVLa6Cps^%5lJ@a7Dyfx9l zCtvMf6KtP*Odybmqp2m2Vsn*87p1$&%M2^%Rlk;U~w*1YcO1&3|TMF(E- z!w($#dp}7pXV}}(Hda@7UstHcNwR;GM01g&Id7hG(QKD}=_-nqT%7doxJ}@szur7f z-cff1Cwr4{f@r#pI?;@kjwtZ+V7Aee?IF)q8>H}y`}sj`w*q4&mRZiZ=Z$M!;2gJN zzJ-i$D?<&)wRX478EWqsg>X~E@(-2xzQpl;&RFRdzTR~Vv@$*nM+?!%HKnLkNEPRg zh7VIn$N8gCqb1(b`!?HhP<%QFPMM6Z{soPjQ6Ug)jcddSW#}k{YaFE_21`_zIEycu z=exk-8X-qJ7xlY)osC2-c4JdZp0^cdaUPs+ki_Ukj?p#as*6!)R>aw<9FzZn%?LiQWqw zy{pDjx6rfQ?!U(0L0&x_T4Uwa^R~h(PF{V3BxWyj%&wbVlh-Z1sV!|sBop_E=An+v z8gagh?|p@0TnaKUOd`3)kz8FhHPhMIuB>?*=MtWrjd~~9csA;9D;#6l=pA&&*r+c< z=>2hmuK3He)_6?(tzJ|}#ocak-T>6uyRQ@cX|MFiP zY+B1**bBR!jN_&@Kw`7H$|Y^ZywWY++)_WANUXteks;2~w62bJY=9daqSzG|;D(Kq zs9y7CiOw5mU6fl(L7-QL+gsQ+{sQMH{B%zHHufCFKR_YaQgco7s-89SVAMiT>qUn$ zM@ZWrP=|IpQgPG|8PgtKZzkSC7fP8&lJLpeBpmv2kmR2#qx78FC3dELcO8u%05R0z zUMs{18PgsyJ`Q4Ny_o5Q|CIl1aAQ*QV7wG+;d~JJPz^&m@C{G{Y0(4f3{ZPFHb@Q` zqo@&;aPtcHn8x3Zg!?}cLy($480u{UW5=Gugb!1A#KjO%qm^Ot>Zf_**>?34qFz5{ zIE0{|q7L93o6ZRvq!5lXH-Xj6=XHJM!LS9E2GJv(^}{{tm$3uO#vc*GJ*w*s+Yz?o z7dzU=^9^iS>iC1k1*bG{<^3pba$h#P$ltW*_6Je{^m`*8>5)HZ6CjAFjIxcmZt*4poSHxA~l* zWujYiLnwsP5khWNX(b%@uuXd$4MOk3N)WU;juCJLsNDx%kFv zuCPIE;`W2s&L`z|Rv;>O#P_%IN3QE93?1<`z0bFVfi_78g?DkyBLcA`2^-WVNj?FR zxK*2?Ffibid|=X-aUk|d!nNX-C<2I*LhhFYh=OZ;2i+6B7UU#skRnQyYvL95F>MQX zChY%(IwxIuxEFowSR)oOPN5Q4=M*_y>aEpPuj0CBTxi!nQS8*Q`zPe*HC5z3ip|f5 zj#601Wh>MMa@RAj>x#^SWgEP8=jG*-Ki0!Wy?V)g!HDBf)W8mK{V0VNe#KUFE}(Kp zWzFm+qtninR;_=C@#p9{;@yWW&?Rc1qD#~!_A+`*!?JTme-8*nT@s9E^zE-OCS$v} zMvj+zIV2(1G0JJ&r^Cfd%KE(7BY&kZxVx0+*_6{5Ib3lzuKgBwJ#RCMB**hy&X)`= z2i7?`g!73Xl^leE5{Ao&OXxXoDg>LWu{Y1?Dr>@c#8u3^%++_Lyu=GtbxUbWK`6Sr>N zlJSaj1tZs}Z%(Mr*QerM389(Ox+{MWeo= zp0BR*7gkr*`m3ueV&b=ZQeuj9n!l1xt5?!#^-89|#%wE(27Ft&GJd?R=BL~ef4E}R zs1L63KIi7c>+;jigcy$Y2I9lc#7*%szLB4H-p;%V5)vM`XX9UCy0%@dS1wrF#!|@a z>L)EQoBFsjal_hPMB@y6hfmoWKJHB9)in54e5S^;So-G@>_qI^3c=Uz00=HW6CpDSp+e_1|nTR#%&aS=|(uzh%#y5 literal 0 HcmV?d00001 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..2e7c0859ce31 --- /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..8308a07f8586 --- /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..4383b717be5e --- /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..90bc52fb50d3 --- /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..4874da98a0b2 --- /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..f1a343c32fe1 --- /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..d44273a9692a --- /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..f41e96531c5b --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesRequest/FileOperation.php @@ -0,0 +1,111 @@ +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"); + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(FileOperation::class, \Google\Cloud\Dataform\V1beta1\CommitRepositoryChangesRequest_FileOperation::class); + 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..7f710230672f --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesRequest/FileOperation/DeleteFile.php @@ -0,0 +1,36 @@ +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); + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(DeleteFile::class, \Google\Cloud\Dataform\V1beta1\CommitRepositoryChangesRequest_FileOperation_DeleteFile::class); + 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..1489ad7b89a1 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesRequest/FileOperation/WriteFile.php @@ -0,0 +1,70 @@ +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; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(WriteFile::class, \Google\Cloud\Dataform\V1beta1\CommitRepositoryChangesRequest_FileOperation_WriteFile::class); + 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..15f018aa031c --- /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..b702242faadc --- /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 array|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\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 array|\Google\Protobuf\Internal\RepeatedField $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..afcd6e7f4c88 --- /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..6ea6da59a21a --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResult.php @@ -0,0 +1,487 @@ +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; + 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 array<\Google\Cloud\Dataform\V1beta1\CompilationResult\CompilationError>|\Google\Protobuf\Internal\RepeatedField $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. + * } + */ + 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 \Google\Protobuf\Internal\RepeatedField + */ + 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 array<\Google\Cloud\Dataform\V1beta1\CompilationResult\CompilationError>|\Google\Protobuf\Internal\RepeatedField $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; + } + + /** + * @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..84755ec1c91a --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResult/CompilationError.php @@ -0,0 +1,190 @@ +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; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CompilationError::class, \Google\Cloud\Dataform\V1beta1\CompilationResult_CompilationError::class); + 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..8a5a3cc59014 --- /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..22202f67b388 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Assertion.php @@ -0,0 +1,273 @@ +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 array<\Google\Cloud\Dataform\V1beta1\Target>|\Google\Protobuf\Internal\RepeatedField $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 array|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField + */ + 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 array<\Google\Cloud\Dataform\V1beta1\Target>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField + */ + public function getTags() + { + return $this->tags; + } + + /** + * Arbitrary, user-defined tags on this action. + * + * Generated from protobuf field repeated string tags = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $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; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Assertion::class, \Google\Cloud\Dataform\V1beta1\CompilationResultAction_Assertion::class); + 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..f988450c3e07 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/DataPreparation.php @@ -0,0 +1,216 @@ +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 array<\Google\Cloud\Dataform\V1beta1\Target>|\Google\Protobuf\Internal\RepeatedField $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 array|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField + */ + 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 array<\Google\Cloud\Dataform\V1beta1\Target>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField + */ + public function getTags() + { + return $this->tags; + } + + /** + * Arbitrary, user-defined tags on this action. + * + * Generated from protobuf field repeated string tags = 4; + * @param array|\Google\Protobuf\Internal\RepeatedField $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"); + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(DataPreparation::class, \Google\Cloud\Dataform\V1beta1\CompilationResultAction_DataPreparation::class); + 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..8b27a876b486 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/DataPreparation/ErrorTable.php @@ -0,0 +1,119 @@ +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; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ErrorTable::class, \Google\Cloud\Dataform\V1beta1\CompilationResultAction_DataPreparation_ErrorTable::class); + 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..3eac5cc73c75 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/DataPreparation/SqlDefinition.php @@ -0,0 +1,162 @@ +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; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SqlDefinition::class, \Google\Cloud\Dataform\V1beta1\CompilationResultAction_DataPreparation_SqlDefinition::class); + 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..1d20d7b3f3c2 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Declaration.php @@ -0,0 +1,85 @@ +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; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Declaration::class, \Google\Cloud\Dataform\V1beta1\CompilationResultAction_Declaration::class); + 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..ba86038a8d1b --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/IncrementalLoadMode.php @@ -0,0 +1,70 @@ +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; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(IncrementalLoadMode::class, \Google\Cloud\Dataform\V1beta1\CompilationResultAction_IncrementalLoadMode::class); + 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..e741c6f33024 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/LoadConfig.php @@ -0,0 +1,183 @@ +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"); + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(LoadConfig::class, \Google\Cloud\Dataform\V1beta1\CompilationResultAction_LoadConfig::class); + 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..28b0a118ec0d --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Notebook.php @@ -0,0 +1,172 @@ +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 array<\Google\Cloud\Dataform\V1beta1\Target>|\Google\Protobuf\Internal\RepeatedField $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 array|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField + */ + 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 array<\Google\Cloud\Dataform\V1beta1\Target>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField + */ + public function getTags() + { + return $this->tags; + } + + /** + * Arbitrary, user-defined tags on this action. + * + * Generated from protobuf field repeated string tags = 4; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTags($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->tags = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Notebook::class, \Google\Cloud\Dataform\V1beta1\CompilationResultAction_Notebook::class); + 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..4c5726990cf5 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Operations.php @@ -0,0 +1,258 @@ +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 array<\Google\Cloud\Dataform\V1beta1\Target>|\Google\Protobuf\Internal\RepeatedField $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 array|\Google\Protobuf\Internal\RepeatedField $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 array|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField + */ + 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 array<\Google\Cloud\Dataform\V1beta1\Target>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField + */ + public function getTags() + { + return $this->tags; + } + + /** + * Arbitrary, user-defined tags on this action. + * + * Generated from protobuf field repeated string tags = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\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 array|\Google\Protobuf\Internal\RepeatedField $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; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Operations::class, \Google\Cloud\Dataform\V1beta1\CompilationResultAction_Operations::class); + 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..89200a6f3a15 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation.php @@ -0,0 +1,552 @@ +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; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\Dataform\V1beta1\Target>|\Google\Protobuf\Internal\RepeatedField $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 array|\Google\Protobuf\Internal\RepeatedField $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 array|\Google\Protobuf\Internal\RepeatedField $pre_operations + * SQL statements to be executed before creating the relation. + * @type array|\Google\Protobuf\Internal\RepeatedField $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 array|\Google\Protobuf\Internal\RepeatedField $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. + * } + */ + 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 \Google\Protobuf\Internal\RepeatedField + */ + 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 array<\Google\Cloud\Dataform\V1beta1\Target>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField + */ + public function getTags() + { + return $this->tags; + } + + /** + * Arbitrary, user-defined tags on this action. + * + * Generated from protobuf field repeated string tags = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\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 array|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\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 array|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\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 array|\Google\Protobuf\Internal\RepeatedField $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; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Relation::class, \Google\Cloud\Dataform\V1beta1\CompilationResultAction_Relation::class); + 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..56ef96d5f042 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation/IncrementalTableConfig.php @@ -0,0 +1,272 @@ +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 array|\Google\Protobuf\Internal\RepeatedField $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 array|\Google\Protobuf\Internal\RepeatedField $incremental_pre_operations + * SQL statements to be executed before inserting new rows into the + * relation. + * @type array|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\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 array|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\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 array|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\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 array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setIncrementalPostOperations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->incremental_post_operations = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(IncrementalTableConfig::class, \Google\Cloud\Dataform\V1beta1\CompilationResultAction_Relation_IncrementalTableConfig::class); + 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..5b0816a5700d --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation/RelationType.php @@ -0,0 +1,78 @@ +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); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(RelationType::class, \Google\Cloud\Dataform\V1beta1\CompilationResultAction_Relation_RelationType::class); + 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..1c7c7e8a5093 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/SimpleLoadMode.php @@ -0,0 +1,36 @@ +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); + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SimpleLoadMode::class, \Google\Cloud\Dataform\V1beta1\CompilationResultAction_SimpleLoadMode::class); + 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..af8cf7c7c5f2 --- /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..33f504c6759f --- /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..37b11230b663 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ComputeRepositoryAccessTokenStatusResponse/TokenStatus.php @@ -0,0 +1,72 @@ +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); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(TokenStatus::class, \Google\Cloud\Dataform\V1beta1\ComputeRepositoryAccessTokenStatusResponse_TokenStatus::class); + 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..d2682f006f57 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Config.php @@ -0,0 +1,105 @@ +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 = ''; + + /** + * 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. + * } + */ + 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; + } + +} + 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..c4ca7803576e --- /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/CreateReleaseConfigRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateReleaseConfigRequest.php new file mode 100644 index 000000000000..dd56851f2a17 --- /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..b10b110eb5f5 --- /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/CreateWorkflowConfigRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateWorkflowConfigRequest.php new file mode 100644 index 000000000000..0d2162284e7e --- /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..8e2ce4911ddb --- /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..1974d634d01a --- /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..03561671652b --- /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/DeleteReleaseConfigRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteReleaseConfigRequest.php new file mode 100644 index 000000000000..10dbe348d449 --- /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..0716e53296f3 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteRepositoryRequest.php @@ -0,0 +1,123 @@ +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, any child resources of this repository will also + * be deleted. (Otherwise, the request will only succeed if the repository has + * no child resources.) + * + * 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, any child resources of this repository will also + * be deleted. (Otherwise, the request will only succeed if the repository has + * no child resources.) + * } + */ + 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, any child resources of this repository will also + * be deleted. (Otherwise, the request will only succeed if the repository has + * no child resources.) + * + * 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, any child resources of this repository will also + * be deleted. (Otherwise, the request will only succeed if the repository has + * no child 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/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..95f92f8c02a6 --- /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..bfd061a26936 --- /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..bf2989f15dd4 --- /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..090c33e414a8 --- /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..9529ce375230 --- /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..2e5e46755d5b --- /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..a6f86b5d5a6a --- /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..842203ba1a95 --- /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..bd9423c0a369 --- /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 array<\Google\Cloud\Dataform\V1beta1\FetchFileGitStatusesResponse\UncommittedFileChange>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField + */ + 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 array<\Google\Cloud\Dataform\V1beta1\FetchFileGitStatusesResponse\UncommittedFileChange>|\Google\Protobuf\Internal\RepeatedField $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..63a41bbadb0c --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileGitStatusesResponse/UncommittedFileChange.php @@ -0,0 +1,104 @@ +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; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(UncommittedFileChange::class, \Google\Cloud\Dataform\V1beta1\FetchFileGitStatusesResponse_UncommittedFileChange::class); + 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..cb9467723386 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileGitStatusesResponse/UncommittedFileChange/State.php @@ -0,0 +1,78 @@ +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); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(State::class, \Google\Cloud\Dataform\V1beta1\FetchFileGitStatusesResponse_UncommittedFileChange_State::class); + 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..93f52b15bed5 --- /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..27b1b288d80d --- /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..68515930cd47 --- /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..bf0efee7b06e --- /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 array|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField + */ + public function getBranches() + { + return $this->branches; + } + + /** + * The remote repository's branch names. + * + * Generated from protobuf field repeated string branches = 1; + * @param array|\Google\Protobuf\Internal\RepeatedField $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..76dd1d9143e8 --- /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..575423827c89 --- /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 array<\Google\Cloud\Dataform\V1beta1\CommitLogEntry>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField + */ + 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 array<\Google\Cloud\Dataform\V1beta1\CommitLogEntry>|\Google\Protobuf\Internal\RepeatedField $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..8ebe49f7788f --- /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/GetCompilationResultRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetCompilationResultRequest.php new file mode 100644 index 000000000000..ff571e3e3e87 --- /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..f7d31b81aa66 --- /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/GetReleaseConfigRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetReleaseConfigRequest.php new file mode 100644 index 000000000000..74e46b386dc0 --- /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..faab65436cf9 --- /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/GetWorkflowConfigRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetWorkflowConfigRequest.php new file mode 100644 index 000000000000..9bf1531c25f2 --- /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..f071607835a7 --- /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..e4142c4e3257 --- /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..a4f1c0cb7dd3 --- /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..3f490121e19c --- /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..211b217da5cc --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/InvocationConfig.php @@ -0,0 +1,247 @@ +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 = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\Dataform\V1beta1\Target>|\Google\Protobuf\Internal\RepeatedField $included_targets + * Optional. The set of action identifiers to include. + * @type array|\Google\Protobuf\Internal\RepeatedField $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. + * } + */ + 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 \Google\Protobuf\Internal\RepeatedField + */ + 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 array<\Google\Cloud\Dataform\V1beta1\Target>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\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 array|\Google\Protobuf\Internal\RepeatedField $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; + } + +} + 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..576f638f5648 --- /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..047d9705ca8e --- /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 array<\Google\Cloud\Dataform\V1beta1\CompilationResult>|\Google\Protobuf\Internal\RepeatedField $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 array|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField + */ + 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 array<\Google\Cloud\Dataform\V1beta1\CompilationResult>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Locations which could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $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..d3712165a1ef --- /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..4fb328ec2607 --- /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 array<\Google\Cloud\Dataform\V1beta1\ReleaseConfig>|\Google\Protobuf\Internal\RepeatedField $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 array|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField + */ + 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 array<\Google\Cloud\Dataform\V1beta1\ReleaseConfig>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Locations which could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $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..1f70d114afb8 --- /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..7852d0e1266a --- /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 array<\Google\Cloud\Dataform\V1beta1\Repository>|\Google\Protobuf\Internal\RepeatedField $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 array|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField + */ + public function getRepositories() + { + return $this->repositories; + } + + /** + * List of repositories. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Repository repositories = 1; + * @param array<\Google\Cloud\Dataform\V1beta1\Repository>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Locations which could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $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..8cfd1f506447 --- /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..249a8ff65b5a --- /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 array<\Google\Cloud\Dataform\V1beta1\WorkflowConfig>|\Google\Protobuf\Internal\RepeatedField $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 array|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField + */ + 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 array<\Google\Cloud\Dataform\V1beta1\WorkflowConfig>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Locations which could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $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..c8577a9c840e --- /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..d9fcb85b2e33 --- /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 array<\Google\Cloud\Dataform\V1beta1\WorkflowInvocation>|\Google\Protobuf\Internal\RepeatedField $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 array|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField + */ + 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 array<\Google\Cloud\Dataform\V1beta1\WorkflowInvocation>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Locations which could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $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..9ba99e5010dd --- /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..54ef94dd2164 --- /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 array<\Google\Cloud\Dataform\V1beta1\Workspace>|\Google\Protobuf\Internal\RepeatedField $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 array|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField + */ + public function getWorkspaces() + { + return $this->workspaces; + } + + /** + * List of workspaces. + * + * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Workspace workspaces = 1; + * @param array<\Google\Cloud\Dataform\V1beta1\Workspace>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Locations which could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $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..1be1ded44314 --- /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..05d2d176a30e --- /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..df67c6664f69 --- /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..a3e6cb5265e9 --- /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..062b2edca74d --- /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..25d0cb19ced2 --- /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/NotebookRuntimeOptions.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/NotebookRuntimeOptions.php new file mode 100644 index 000000000000..86733efea125 --- /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/PullGitCommitsRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/PullGitCommitsRequest.php new file mode 100644 index 000000000000..703bfc89a07e --- /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..669560673ef6 --- /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..8e781babfedc --- /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..a7c3e276cd7b --- /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..932190816151 --- /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..b21b880933e5 --- /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 array<\Google\Cloud\Dataform\V1beta1\CompilationResultAction>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField + */ + 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 array<\Google\Cloud\Dataform\V1beta1\CompilationResultAction>|\Google\Protobuf\Internal\RepeatedField $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..8942158d8915 --- /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..bc90bc97b0d9 --- /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 array<\Google\Cloud\Dataform\V1beta1\DirectoryEntry>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField + */ + 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 array<\Google\Cloud\Dataform\V1beta1\DirectoryEntry>|\Google\Protobuf\Internal\RepeatedField $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/QueryRepositoryDirectoryContentsRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryRepositoryDirectoryContentsRequest.php new file mode 100644 index 000000000000..7e6aa05bfed3 --- /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..3b9d93ca014f --- /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 array<\Google\Cloud\Dataform\V1beta1\DirectoryEntry>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField + */ + 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 array<\Google\Cloud\Dataform\V1beta1\DirectoryEntry>|\Google\Protobuf\Internal\RepeatedField $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/QueryWorkflowInvocationActionsRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryWorkflowInvocationActionsRequest.php new file mode 100644 index 000000000000..0f0cd3056865 --- /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..0c7779e7964f --- /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 array<\Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField + */ + 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 array<\Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction>|\Google\Protobuf\Internal\RepeatedField $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..69efe14339ec --- /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..f9978e7e33d8 --- /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..0c85bc21ca50 --- /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..8d655a20857a --- /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..eaa53f555348 --- /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 array<\Google\Cloud\Dataform\V1beta1\RelationDescriptor\ColumnDescriptor>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField + */ + 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 array<\Google\Cloud\Dataform\V1beta1\RelationDescriptor\ColumnDescriptor>|\Google\Protobuf\Internal\RepeatedField $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..c2d4527016ee --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RelationDescriptor/ColumnDescriptor.php @@ -0,0 +1,142 @@ +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 array|\Google\Protobuf\Internal\RepeatedField $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 array|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\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 array|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\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 array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setBigqueryPolicyTags($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->bigquery_policy_tags = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ColumnDescriptor::class, \Google\Cloud\Dataform\V1beta1\RelationDescriptor_ColumnDescriptor::class); + 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..cd0d3d57f0ca --- /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 array<\Google\Cloud\Dataform\V1beta1\ReleaseConfig\ScheduledReleaseRecord>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField + */ + 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 array<\Google\Cloud\Dataform\V1beta1\ReleaseConfig\ScheduledReleaseRecord>|\Google\Protobuf\Internal\RepeatedField $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..fbf6384993eb --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReleaseConfig/ScheduledReleaseRecord.php @@ -0,0 +1,165 @@ +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"); + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ScheduledReleaseRecord::class, \Google\Cloud\Dataform\V1beta1\ReleaseConfig_ScheduledReleaseRecord::class); + 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..afbafa696306 --- /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..056380672478 --- /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..146eb32c334d --- /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..c55004b57eba --- /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..b03b4b24f190 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository.php @@ -0,0 +1,555 @@ +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 = ''; + /** + * 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 \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; + } + + /** + * 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..b00cdfd2ac47 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository/GitRemoteSettings.php @@ -0,0 +1,237 @@ +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() + { + @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; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GitRemoteSettings::class, \Google\Cloud\Dataform\V1beta1\Repository_GitRemoteSettings::class); + 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..08404f32ce34 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository/GitRemoteSettings/SshAuthenticationConfig.php @@ -0,0 +1,116 @@ +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; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SshAuthenticationConfig::class, \Google\Cloud\Dataform\V1beta1\Repository_GitRemoteSettings_SshAuthenticationConfig::class); + 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..a43991fe6e6c --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository/GitRemoteSettings/TokenStatus.php @@ -0,0 +1,72 @@ +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); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(TokenStatus::class, \Google\Cloud\Dataform\V1beta1\Repository_GitRemoteSettings_TokenStatus::class); + 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..b45a28f49b41 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository/WorkspaceCompilationOverrides.php @@ -0,0 +1,149 @@ +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; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(WorkspaceCompilationOverrides::class, \Google\Cloud\Dataform\V1beta1\Repository_WorkspaceCompilationOverrides::class); + 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..1c7de3d1047f --- /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 array|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\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 array|\Google\Protobuf\Internal\RepeatedField $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..d11b5d8cb0de --- /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..fb3acc04b09f --- /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..82dc7d62a599 --- /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 array<\Google\Cloud\Dataform\V1beta1\SearchResult>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField + */ + 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 array<\Google\Cloud\Dataform\V1beta1\SearchResult>|\Google\Protobuf\Internal\RepeatedField $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..4f64a0d1a55c --- /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/Target.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Target.php new file mode 100644 index 000000000000..28debbf6a1ef --- /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/UpdateConfigRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateConfigRequest.php new file mode 100644 index 000000000000..0bcfbc596303 --- /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/UpdateReleaseConfigRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateReleaseConfigRequest.php new file mode 100644 index 000000000000..c835d001e602 --- /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..23e3f2870bf5 --- /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/UpdateWorkflowConfigRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateWorkflowConfigRequest.php new file mode 100644 index 000000000000..26f603739387 --- /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..059df4fe35b5 --- /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 array<\Google\Cloud\Dataform\V1beta1\WorkflowConfig\ScheduledExecutionRecord>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField + */ + 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 array<\Google\Cloud\Dataform\V1beta1\WorkflowConfig\ScheduledExecutionRecord>|\Google\Protobuf\Internal\RepeatedField $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..3fffb84cc0ab --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowConfig/ScheduledExecutionRecord.php @@ -0,0 +1,165 @@ +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"); + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ScheduledExecutionRecord::class, \Google\Cloud\Dataform\V1beta1\WorkflowConfig_ScheduledExecutionRecord::class); + 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..f6ee1d4e6476 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocation.php @@ -0,0 +1,411 @@ +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; + 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. + * } + */ + 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; + } + + /** + * @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..b5a080c906ee --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocation/State.php @@ -0,0 +1,86 @@ +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); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(State::class, \Google\Cloud\Dataform\V1beta1\WorkflowInvocation_State::class); + 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..7d87747394b0 --- /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..b3c00131410c --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/BigQueryAction.php @@ -0,0 +1,108 @@ +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; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(BigQueryAction::class, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction_BigQueryAction::class); + 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..cc28ee0663f5 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction.php @@ -0,0 +1,193 @@ +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"); + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(DataPreparationAction::class, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction_DataPreparationAction::class); + 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..834d45931e9f --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionErrorTable.php @@ -0,0 +1,119 @@ +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; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ActionErrorTable::class, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction_DataPreparationAction_ActionErrorTable::class); + 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..695b1f5a9bd3 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionIncrementalLoadMode.php @@ -0,0 +1,70 @@ +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; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ActionIncrementalLoadMode::class, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction_DataPreparationAction_ActionIncrementalLoadMode::class); + 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..8e761ee85fe2 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionLoadConfig.php @@ -0,0 +1,183 @@ +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"); + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ActionLoadConfig::class, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction_DataPreparationAction_ActionLoadConfig::class); + 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..c5a1b7dfdc33 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionSimpleLoadMode.php @@ -0,0 +1,36 @@ +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); + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ActionSimpleLoadMode::class, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction_DataPreparationAction_ActionSimpleLoadMode::class); + 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..254625eaa214 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionSqlDefinition.php @@ -0,0 +1,162 @@ +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; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ActionSqlDefinition::class, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction_DataPreparationAction_ActionSqlDefinition::class); + 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..90701db9b026 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/NotebookAction.php @@ -0,0 +1,112 @@ +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; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(NotebookAction::class, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction_NotebookAction::class); + 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..1f6c58220be2 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/State.php @@ -0,0 +1,94 @@ +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); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(State::class, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction_State::class); + 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..151c14b1d4ba --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Workspace.php @@ -0,0 +1,211 @@ +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; + + /** + * 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. + * } + */ + 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; + } + +} + 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..52c30bdc5692 --- /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..610d4c47dfa2 --- /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_workflow_invocation.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/cancel_workflow_invocation.php new file mode 100644 index 000000000000..9e348c922926 --- /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..d87ba6e9b34c --- /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..2742b5da7e33 --- /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..02924986fc71 --- /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..6bbb559acbd9 --- /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_release_config.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_release_config.php new file mode 100644 index 000000000000..2ad1200b5599 --- /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..eda62b5185ad --- /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_workflow_config.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_workflow_config.php new file mode 100644 index 000000000000..28741b908226 --- /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..2d31525eb8aa --- /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..4f4ff1c18e56 --- /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_release_config.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_release_config.php new file mode 100644 index 000000000000..2137a7874585 --- /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..0866c0dbaa8c --- /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_workflow_config.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_workflow_config.php new file mode 100644 index 000000000000..631ed3c0984d --- /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..48db43349a36 --- /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..1ed82a115ff2 --- /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..78302fa53e92 --- /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..763dd08e74d3 --- /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..ea20055ca56b --- /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..40371204a2de --- /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..3a567902250b --- /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..9b00b757c881 --- /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..7fff504c7a0f --- /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_iam_policy.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_iam_policy.php new file mode 100644 index 000000000000..e2a5df9853c4 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_iam_policy.php @@ -0,0 +1,72 @@ +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..21f10220e69e --- /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_release_config.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_release_config.php new file mode 100644 index 000000000000..07261d4fbf04 --- /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..ceda522305e5 --- /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_workflow_config.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_workflow_config.php new file mode 100644 index 000000000000..ce7c8b8387c0 --- /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..92b81e828116 --- /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..44532d552ba9 --- /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..ec911b802719 --- /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..df900b21339c --- /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..67fca0f22f65 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_locations.php @@ -0,0 +1,62 @@ +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_release_configs.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_release_configs.php new file mode 100644 index 000000000000..5934532f4258 --- /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..af18663d8762 --- /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..421ed8106d3a --- /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..7e4c8752196a --- /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..07b2b4206b6f --- /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..4c6a55c22125 --- /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..0a4b338028c0 --- /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..1c4712d569b5 --- /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/pull_git_commits.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/pull_git_commits.php new file mode 100644 index 000000000000..ef38e9082e26 --- /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..942f2a86ad8c --- /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..0af7028b9a80 --- /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..ecee241cd67e --- /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_repository_directory_contents.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_repository_directory_contents.php new file mode 100644 index 000000000000..eab3ecffbdc7 --- /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_workflow_invocation_actions.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_workflow_invocation_actions.php new file mode 100644 index 000000000000..124b9c7e1f3d --- /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..55a7731ac801 --- /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..38a56794e85a --- /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..a76dbc8180f3 --- /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..2ef99a5a3112 --- /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..8226cdf64ae9 --- /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..df40ae79c26b --- /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/set_iam_policy.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/set_iam_policy.php new file mode 100644 index 000000000000..d2e9db534d39 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/set_iam_policy.php @@ -0,0 +1,77 @@ +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..379863f1098f --- /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..2873ca1c9366 --- /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_release_config.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_release_config.php new file mode 100644 index 000000000000..60fbd7032053 --- /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..0acfa6d98d0a --- /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_workflow_config.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_workflow_config.php new file mode 100644 index 000000000000..299f58981cb9 --- /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..7bc7edb535a3 --- /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..f0d4aaa962f3 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/src/V1beta1/Client/DataformClient.php @@ -0,0 +1,2320 @@ + 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 createReleaseConfigAsync(CreateReleaseConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface createRepositoryAsync(CreateRepositoryRequest $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 deleteReleaseConfigAsync(DeleteReleaseConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteRepositoryAsync(DeleteRepositoryRequest $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 getReleaseConfigAsync(GetReleaseConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface getRepositoryAsync(GetRepositoryRequest $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 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 queryRepositoryDirectoryContentsAsync(QueryRepositoryDirectoryContentsRequest $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 updateConfigAsync(UpdateConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateReleaseConfigAsync(UpdateReleaseConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateRepositoryAsync(UpdateRepositoryRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateWorkflowConfigAsync(UpdateWorkflowConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface writeFileAsync(WriteFileRequest $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 +{ + 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 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', + ], + ], + ]; + } + + /** + * 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 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 + * 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} + * - 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} + * - 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 $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 string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials + * The credentials to be used by the client to authorize API calls. This option + * accepts either a path to a credentials file, or a decoded credentials file as a + * PHP array. + * *Advanced usage*: In addition, this option can also accept a pre-constructed + * {@see \Google\Auth\FetchAuthTokenInterface} object or + * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these + * objects are provided, any settings in $credentialsConfig will be ignored. + * *Important*: If you accept a credential configuration (credential + * JSON/File/Stream) from an external source for authentication to Google Cloud + * Platform, you must validate it before providing it to any Google API or library. + * Providing an unvalidated credential configuration to Google APIs can compromise + * the security of your systems and data. For more information {@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 + * } + * + * @throws ValidationException + * + * @experimental + */ + public function __construct(array $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($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 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 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 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 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 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 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(); + } + + /** + * 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 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 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); + } + + /** + * 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 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 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(); + } + + /** + * 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. + * + * 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); + } + + /** + * 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(); + } + + /** + * 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(); + } +} 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..a2c1865cd409 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/src/V1beta1/gapic_metadata.json @@ -0,0 +1,313 @@ +{ + "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" + ] + }, + "CreateReleaseConfig": { + "methods": [ + "createReleaseConfig" + ] + }, + "CreateRepository": { + "methods": [ + "createRepository" + ] + }, + "CreateWorkflowConfig": { + "methods": [ + "createWorkflowConfig" + ] + }, + "CreateWorkflowInvocation": { + "methods": [ + "createWorkflowInvocation" + ] + }, + "CreateWorkspace": { + "methods": [ + "createWorkspace" + ] + }, + "DeleteReleaseConfig": { + "methods": [ + "deleteReleaseConfig" + ] + }, + "DeleteRepository": { + "methods": [ + "deleteRepository" + ] + }, + "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" + ] + }, + "GetReleaseConfig": { + "methods": [ + "getReleaseConfig" + ] + }, + "GetRepository": { + "methods": [ + "getRepository" + ] + }, + "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" + ] + }, + "PullGitCommits": { + "methods": [ + "pullGitCommits" + ] + }, + "PushGitCommits": { + "methods": [ + "pushGitCommits" + ] + }, + "QueryCompilationResultActions": { + "methods": [ + "queryCompilationResultActions" + ] + }, + "QueryDirectoryContents": { + "methods": [ + "queryDirectoryContents" + ] + }, + "QueryRepositoryDirectoryContents": { + "methods": [ + "queryRepositoryDirectoryContents" + ] + }, + "QueryWorkflowInvocationActions": { + "methods": [ + "queryWorkflowInvocationActions" + ] + }, + "ReadFile": { + "methods": [ + "readFile" + ] + }, + "ReadRepositoryFile": { + "methods": [ + "readRepositoryFile" + ] + }, + "RemoveDirectory": { + "methods": [ + "removeDirectory" + ] + }, + "RemoveFile": { + "methods": [ + "removeFile" + ] + }, + "ResetWorkspaceChanges": { + "methods": [ + "resetWorkspaceChanges" + ] + }, + "SearchFiles": { + "methods": [ + "searchFiles" + ] + }, + "UpdateConfig": { + "methods": [ + "updateConfig" + ] + }, + "UpdateReleaseConfig": { + "methods": [ + "updateReleaseConfig" + ] + }, + "UpdateRepository": { + "methods": [ + "updateRepository" + ] + }, + "UpdateWorkflowConfig": { + "methods": [ + "updateWorkflowConfig" + ] + }, + "WriteFile": { + "methods": [ + "writeFile" + ] + }, + "GetLocation": { + "methods": [ + "getLocation" + ] + }, + "ListLocations": { + "methods": [ + "listLocations" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + } + } + } + } + } + } +} \ 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..a09537862d72 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/src/V1beta1/resources/dataform_client_config.json @@ -0,0 +1,329 @@ +{ + "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" + }, + "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" + }, + "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" + }, + "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" + }, + "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" + }, + "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" + }, + "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" + }, + "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" + }, + "QueryRepositoryDirectoryContents": { + "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" + }, + "UpdateConfig": { + "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" + }, + "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" + }, + "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" + }, + "GetIamPolicy": { + "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" + } + } + } + } +} 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..46244cfd182d --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/src/V1beta1/resources/dataform_descriptor_config.php @@ -0,0 +1,863 @@ + [ + 'google.cloud.dataform.v1beta1.Dataform' => [ + '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', + ], + ], + ], + ], + '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', + ], + ], + ], + ], + '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', + ], + ], + ], + ], + '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', + ], + ], + ], + ], + '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', + ], + ], + ], + ], + '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', + ], + ], + ], + ], + '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', + ], + ], + ], + ], + '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', + ], + ], + ], + ], + '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', + ], + ], + ], + ], + 'UpdateConfig' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataform\V1beta1\Config', + 'headerParams' => [ + [ + 'keyName' => 'config.name', + 'fieldAccessors' => [ + 'getConfig', + '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', + ], + ], + ], + ], + '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', + ], + ], + ], + ], + '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', + ], + 'GetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'SetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'TestIamPermissions' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + '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}', + '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}', + '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..10a53ef62b71 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/src/V1beta1/resources/dataform_rest_client_config.php @@ -0,0 +1,743 @@ + [ + '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', + ], + ], + ], + ], + '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', + ], + ], + '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', + ], + ], + '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', + ], + ], + ], + ], + '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', + ], + ], + ], + ], + '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', + ], + ], + ], + ], + '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', + ], + ], + ], + ], + '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', + ], + ], + ], + ], + 'QueryRepositoryDirectoryContents' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*}:queryDirectoryContents', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + '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', + ], + ], + ], + ], + 'UpdateConfig' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1beta1/{config.name=projects/*/locations/*/config}', + 'body' => 'config', + 'placeholders' => [ + 'config.name' => [ + 'getters' => [ + 'getConfig', + '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', + ], + ], + ], + ], + '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.iam.v1.IAMPolicy' => [ + 'GetIamPolicy' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta1/{resource=projects/*/locations/*/repositories/*}:getIamPolicy', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1beta1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:getIamPolicy', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'SetIamPolicy' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta1/{resource=projects/*/locations/*/repositories/*}:setIamPolicy', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1beta1/{resource=projects/*/locations/*/repositories/*/workspaces/*}: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' => '*', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + ], + ], + '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..c24a4175f194 --- /dev/null +++ b/owl-bot-staging/Dataform/v1beta1/tests/Unit/V1beta1/Client/DataformClientTest.php @@ -0,0 +1,4368 @@ +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 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'; + $displayName = 'displayName1615086568'; + $npmrcEnvironmentVariablesSecretVersion = 'npmrcEnvironmentVariablesSecretVersion-2118517056'; + $setAuthenticatedUserAdmin = true; + $serviceAccount = 'serviceAccount-1948028253'; + $kmsKeyName = 'kmsKeyName2094986649'; + $internalMetadata = 'internalMetadata-1087755663'; + $expectedResponse = new Repository(); + $expectedResponse->setName($name); + $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 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'; + $expectedResponse = new Workspace(); + $expectedResponse->setName($name); + $expectedResponse->setInternalMetadata($internalMetadata); + $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 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 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'; + $expectedResponse = new Config(); + $expectedResponse->setName($name2); + $expectedResponse->setDefaultKmsKeyName($defaultKmsKeyName); + $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 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'; + $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); + $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 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'; + $expectedResponse = new Workspace(); + $expectedResponse->setName($name2); + $expectedResponse->setInternalMetadata($internalMetadata); + $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 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 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 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 updateConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $defaultKmsKeyName = 'defaultKmsKeyName-635012393'; + $expectedResponse = new Config(); + $expectedResponse->setName($name); + $expectedResponse->setDefaultKmsKeyName($defaultKmsKeyName); + $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 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'; + $displayName = 'displayName1615086568'; + $npmrcEnvironmentVariablesSecretVersion = 'npmrcEnvironmentVariablesSecretVersion-2118517056'; + $setAuthenticatedUserAdmin = true; + $serviceAccount = 'serviceAccount-1948028253'; + $kmsKeyName = 'kmsKeyName2094986649'; + $internalMetadata = 'internalMetadata-1087755663'; + $expectedResponse = new Repository(); + $expectedResponse->setName($name); + $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 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 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 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.iam.v1.IAMPolicy/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 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.iam.v1.IAMPolicy/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.iam.v1.IAMPolicy/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 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 46f686b8d5ae14e94aae8a550fd1ff141e102ffd Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Fri, 16 May 2025 12:08:20 +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/V1Beta1/Dataform.php | Bin 36832 -> 39599 bytes .../DataformClient/list_repositories.php | 3 + .../V1beta1/DataformClient/update_config.php | 9 +- .../DataformClient/update_release_config.php | 9 +- .../DataformClient/update_repository.php | 9 +- .../DataformClient/update_workflow_config.php | 9 +- .../src/V1beta1/Client/DataformClient.php | 64 +- .../src/V1beta1/CodeCompilationConfig.php | 34 + .../src/V1beta1/CompilationResultAction.php | 33 + .../DataPreparation.php | 2 - .../DataPreparation/ErrorTable.php | 2 - .../DataPreparation/SqlDefinition.php | 2 - .../IncrementalLoadMode.php | 2 - .../CompilationResultAction/LoadConfig.php | 2 - .../SimpleLoadMode.php | 2 - .../src/V1beta1/NotebookRuntimeOptions.php | 46 + Dataform/src/V1beta1/WorkflowConfig.php | 34 + .../src/V1beta1/WorkflowInvocationAction.php | 33 + .../DataPreparationAction.php | 2 - .../ActionErrorTable.php | 2 - .../ActionIncrementalLoadMode.php | 2 - .../ActionLoadConfig.php | 2 - .../ActionSimpleLoadMode.php | 2 - .../ActionSqlDefinition.php | 2 - .../resources/dataform_descriptor_config.php | 1 + .../V1beta1/Client/DataformClientTest.php | 6 + .../Cloud/Dataform/V1Beta1/Dataform.php | Bin 39599 -> 0 bytes .../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 | 111 - .../FileOperation/DeleteFile.php | 36 - .../FileOperation/WriteFile.php | 70 - .../CommitRepositoryChangesResponse.php | 67 - .../V1beta1/CommitWorkspaceChangesRequest.php | 183 - .../CommitWorkspaceChangesResponse.php | 33 - .../Dataform/V1beta1/CompilationResult.php | 487 -- .../CompilationResult/CompilationError.php | 190 - .../V1beta1/CompilationResultAction.php | 422 -- .../CompilationResultAction/Assertion.php | 273 -- .../CompilationResultAction/Declaration.php | 85 - .../CompilationResultAction/Notebook.php | 172 - .../CompilationResultAction/Operations.php | 258 - .../CompilationResultAction/Relation.php | 552 --- .../Relation/IncrementalTableConfig.php | 272 - .../Relation/RelationType.php | 78 - ...puteRepositoryAccessTokenStatusRequest.php | 67 - ...uteRepositoryAccessTokenStatusResponse.php | 67 - .../TokenStatus.php | 72 - .../Google/Cloud/Dataform/V1beta1/Config.php | 105 - .../CreateCompilationResultRequest.php | 132 - .../V1beta1/CreateReleaseConfigRequest.php | 173 - .../V1beta1/CreateRepositoryRequest.php | 173 - .../V1beta1/CreateWorkflowConfigRequest.php | 173 - .../CreateWorkflowInvocationRequest.php | 132 - .../V1beta1/CreateWorkspaceRequest.php | 173 - .../Dataform/V1beta1/DataEncryptionState.php | 71 - .../V1beta1/DeleteReleaseConfigRequest.php | 81 - .../V1beta1/DeleteRepositoryRequest.php | 123 - .../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 | 104 - .../UncommittedFileChange/State.php | 78 - .../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 - .../V1beta1/GetCompilationResultRequest.php | 81 - .../Dataform/V1beta1/GetConfigRequest.php | 81 - .../V1beta1/GetReleaseConfigRequest.php | 81 - .../Dataform/V1beta1/GetRepositoryRequest.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 | 247 - .../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 - .../V1beta1/NotebookRuntimeOptions.php | 124 - .../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 - ...ueryRepositoryDirectoryContentsRequest.php | 239 - ...eryRepositoryDirectoryContentsResponse.php | 105 - .../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 | 142 - .../Cloud/Dataform/V1beta1/ReleaseConfig.php | 435 -- .../ReleaseConfig/ScheduledReleaseRecord.php | 165 - .../V1beta1/RemoveDirectoryRequest.php | 105 - .../V1beta1/RemoveDirectoryResponse.php | 33 - .../Dataform/V1beta1/RemoveFileRequest.php | 105 - .../Dataform/V1beta1/RemoveFileResponse.php | 33 - .../Cloud/Dataform/V1beta1/Repository.php | 555 --- .../V1beta1/Repository/GitRemoteSettings.php | 237 - .../SshAuthenticationConfig.php | 116 - .../GitRemoteSettings/TokenStatus.php | 72 - .../WorkspaceCompilationOverrides.php | 149 - .../V1beta1/ResetWorkspaceChangesRequest.php | 139 - .../V1beta1/ResetWorkspaceChangesResponse.php | 33 - .../Dataform/V1beta1/SearchFilesRequest.php | 201 - .../Dataform/V1beta1/SearchFilesResponse.php | 105 - .../Cloud/Dataform/V1beta1/SearchResult.php | 108 - .../Google/Cloud/Dataform/V1beta1/Target.php | 136 - .../Dataform/V1beta1/UpdateConfigRequest.php | 136 - .../V1beta1/UpdateReleaseConfigRequest.php | 141 - .../V1beta1/UpdateRepositoryRequest.php | 141 - .../V1beta1/UpdateWorkflowConfigRequest.php | 141 - .../Cloud/Dataform/V1beta1/WorkflowConfig.php | 453 -- .../ScheduledExecutionRecord.php | 165 - .../Dataform/V1beta1/WorkflowInvocation.php | 411 -- .../V1beta1/WorkflowInvocation/State.php | 86 - .../V1beta1/WorkflowInvocationAction.php | 421 -- .../BigQueryAction.php | 108 - .../NotebookAction.php | 112 - .../WorkflowInvocationAction/State.php | 94 - .../Cloud/Dataform/V1beta1/Workspace.php | 211 - .../Dataform/V1beta1/WriteFileRequest.php | 135 - .../Dataform/V1beta1/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 - .../DataformClient/create_repository.php | 78 - .../DataformClient/create_workflow_config.php | 96 - .../create_workflow_invocation.php | 74 - .../DataformClient/create_workspace.php | 78 - .../DataformClient/delete_release_config.php | 74 - .../DataformClient/delete_repository.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_iam_policy.php | 72 - .../V1beta1/DataformClient/get_location.php | 57 - .../DataformClient/get_release_config.php | 76 - .../V1beta1/DataformClient/get_repository.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 | 62 - .../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 - .../DataformClient/pull_git_commits.php | 88 - .../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 - .../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 - .../V1beta1/DataformClient/set_iam_policy.php | 77 - .../DataformClient/test_iam_permissions.php | 84 - .../V1beta1/DataformClient/update_config.php | 64 - .../DataformClient/update_release_config.php | 81 - .../DataformClient/update_repository.php | 64 - .../DataformClient/update_workflow_config.php | 85 - .../V1beta1/DataformClient/write_file.php | 82 - .../src/V1beta1/Client/DataformClient.php | 2320 --------- .../v1beta1/src/V1beta1/gapic_metadata.json | 313 -- .../resources/dataform_client_config.json | 329 -- .../resources/dataform_descriptor_config.php | 863 ---- .../resources/dataform_rest_client_config.php | 743 --- .../V1beta1/Client/DataformClientTest.php | 4368 ----------------- 225 files changed, 250 insertions(+), 32556 deletions(-) rename {owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1beta1/CompilationResultAction/DataPreparation.php (97%) rename {owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1beta1/CompilationResultAction/DataPreparation/ErrorTable.php (93%) rename {owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1beta1/CompilationResultAction/DataPreparation/SqlDefinition.php (95%) rename {owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1beta1/CompilationResultAction/IncrementalLoadMode.php (89%) rename {owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1beta1/CompilationResultAction/LoadConfig.php (96%) rename {owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1beta1/CompilationResultAction/SimpleLoadMode.php (81%) rename {owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1beta1/WorkflowInvocationAction/DataPreparationAction.php (96%) rename {owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionErrorTable.php (93%) rename {owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionIncrementalLoadMode.php (87%) rename {owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionLoadConfig.php (96%) rename {owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionSimpleLoadMode.php (79%) rename {owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform => Dataform/src}/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionSqlDefinition.php (95%) 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/Declaration.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/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/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/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/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/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/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/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/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/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/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/NotebookRuntimeOptions.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/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/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/Target.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/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/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/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_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_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_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_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_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_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_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_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_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/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_repository_directory_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/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_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_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/V1Beta1/Dataform.php b/Dataform/metadata/V1Beta1/Dataform.php index 98e8698551ac28fa2ab19b3e832ca86e8f36772e..2aa6182bd3c7a788a8719c2c0469cd667141c628 100644 GIT binary patch delta 1837 zcmb7FOK1~O6m@2jw7G3!9Qzpum7-SahiLt4tu?X1`l%MJt;Oo_l6kFz^GPNXunHE$ zm7t<;tGE^fg~884#Jvk~RoqD3y3t+5h5BC7NjlS5ah2iSd(S=hzH{*LwxsEfW-6#y#I~bZreY!kD|s7FXjdg5vwI%# zFFA5!?}0w?GISzM$?M3OuxvvyEeB^U>xyEROh=sX{JE0qC z?3fhRx3r&{uQ^jG8J@3jU+>)$;@_`!zxRCLTCAy^)Wi0u%|S*C+cr>IOJLzlvg+`uwXhvsUaSkR>iJ#X4E zOjb;9XFWQCJ(6b&dOzKYsWCzW%gE>SrTw7}p(`rSa1irF#TbMOC2UVg9P1`dKohoY z%T^qe)yw-Kg~UeEakzCufNwIx@`hQOcp5^wg;Yr(=D}X+B>g;MnG@Qid;y@AM&9=B zJK6?u8?zzV4XS9WSiXaBx*0&Na+Yri05ur#JT%Z1>L`cHG@Ev0yy4d;&ua88F-sn_ zR7}@33K5jgV^b|7FUZ}nIQJqn80e~IlnhBIZ}qqbyeWCi%-PtWOp(3-eS91uB~zn2 zlS2NAbM-6I5eONSnVf*QpR3#nE9*27;}FSNddV=^uZ&KCUZ4dr+7P%2o7PW<5x_;chZ}yN*ILqo24T z`AHO712>*31Bk1GI<1(9G7;$Zr|OCodF}dwVy%ECD?dJIQZN}}li0-6Sy)w=^o0jw zEdy-tQ8u|C-{oOtozkGHi;GlE4Rp!lbZALVHT{YdMyEPcs2i!c=M__h=~)t{re+yI zqQbcb&8*S)7i-AB1h1e5B9?-d$a>@aW5q$cI03soG}5+v#&Kf0h1OtlLJf&7L#B%7L&s_ zBC}68HUtFZ6ABlTVL%tNpggt#0X381Ts5=sKDGz5s!DkQ0id%aOltwNrcKrj1il6e r7?Y7*7?YS=(X-%O%K@`jV-7S2;sgpIV{dJf0T3RuikCtHlVX}pV{$Ss diff --git a/Dataform/samples/V1beta1/DataformClient/list_repositories.php b/Dataform/samples/V1beta1/DataformClient/list_repositories.php index 0ef168a50d6e..70c08437248b 100644 --- a/Dataform/samples/V1beta1/DataformClient/list_repositories.php +++ b/Dataform/samples/V1beta1/DataformClient/list_repositories.php @@ -32,6 +32,9 @@ /** * 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)*. + * * @param string $formattedParent The location in which to list repositories. Must be in the format * `projects/*/locations/*`. Please see * {@see DataformClient::locationName()} for help formatting this field. diff --git a/Dataform/samples/V1beta1/DataformClient/update_config.php b/Dataform/samples/V1beta1/DataformClient/update_config.php index dc341aca076a..2873ca1c9366 100644 --- a/Dataform/samples/V1beta1/DataformClient/update_config.php +++ b/Dataform/samples/V1beta1/DataformClient/update_config.php @@ -31,11 +31,10 @@ /** * Update default config for a given project and location. * - * **Note:** This method does not fully implement - * [AIP-134](https://google.aip.dev/134); in particular: - * - The wildcard entry (**\***) is treated as a bad request - * - When the **field_mask** is omitted, instead of only updating the set - * fields, the request is treated as a full update on all modifiable fields + * **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.* * * This sample has been automatically generated and should be regarded as a code * template only. It will require modifications to work: diff --git a/Dataform/samples/V1beta1/DataformClient/update_release_config.php b/Dataform/samples/V1beta1/DataformClient/update_release_config.php index 7aeebab82996..cadf062df2e1 100644 --- a/Dataform/samples/V1beta1/DataformClient/update_release_config.php +++ b/Dataform/samples/V1beta1/DataformClient/update_release_config.php @@ -31,11 +31,10 @@ /** * Updates a single ReleaseConfig. * - * **Note:** This method does not fully implement - * [AIP-134](https://google.aip.dev/134); in particular: - * - The wildcard entry (**\***) is treated as a bad request - * - When the **field_mask** is omitted, instead of only updating the set - * fields, the request is treated as a full update on all modifiable fields + * **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.* * * @param string $releaseConfigGitCommitish Git commit/tag/branch name at which the repository should be * compiled. Must exist in the remote repository. Examples: diff --git a/Dataform/samples/V1beta1/DataformClient/update_repository.php b/Dataform/samples/V1beta1/DataformClient/update_repository.php index 1e5a6c20585e..4a6461b83abb 100644 --- a/Dataform/samples/V1beta1/DataformClient/update_repository.php +++ b/Dataform/samples/V1beta1/DataformClient/update_repository.php @@ -31,11 +31,10 @@ /** * Updates a single Repository. * - * **Note:** This method does not fully implement - * [AIP-134](https://google.aip.dev/134); in particular: - * - The wildcard entry (**\***) is treated as a bad request - * - When the **field_mask** is omitted, instead of only updating the set - * fields, the request is treated as a full update on all modifiable fields + * **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.* * * This sample has been automatically generated and should be regarded as a code * template only. It will require modifications to work: diff --git a/Dataform/samples/V1beta1/DataformClient/update_workflow_config.php b/Dataform/samples/V1beta1/DataformClient/update_workflow_config.php index f767546e0491..9ec882ab1848 100644 --- a/Dataform/samples/V1beta1/DataformClient/update_workflow_config.php +++ b/Dataform/samples/V1beta1/DataformClient/update_workflow_config.php @@ -31,11 +31,10 @@ /** * Updates a single WorkflowConfig. * - * **Note:** This method does not fully implement - * [AIP-134](https://google.aip.dev/134); in particular: - * - The wildcard entry (**\***) is treated as a bad request - * - When the **field_mask** is omitted, instead of only updating the set - * fields, the request is treated as a full update on all modifiable fields + * **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.* * * @param string $formattedWorkflowConfigReleaseConfig The name of the release config whose release_compilation_result * should be executed. Must be in the format diff --git a/Dataform/src/V1beta1/Client/DataformClient.php b/Dataform/src/V1beta1/Client/DataformClient.php index e12344fedd18..76a7938bd600 100644 --- a/Dataform/src/V1beta1/Client/DataformClient.php +++ b/Dataform/src/V1beta1/Client/DataformClient.php @@ -368,6 +368,30 @@ public static function locationName(string $project, string $location): string ]); } + /** + * 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. @@ -527,6 +551,7 @@ public static function workspaceName( * - 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} * - 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} @@ -1500,6 +1525,9 @@ public function listReleaseConfigs(ListReleaseConfigsRequest $request, array $ca /** * 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 @@ -2052,11 +2080,10 @@ public function searchFiles(SearchFilesRequest $request, array $callOptions = [] /** * Update default config for a given project and location. * - * **Note:** This method does not fully implement - * [AIP-134](https://google.aip.dev/134); in particular: - * - The wildcard entry (**\***) is treated as a bad request - * - When the **field_mask** is omitted, instead of only updating the set - * fields, the request is treated as a full update on all modifiable fields + * **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()} . * @@ -2086,11 +2113,10 @@ public function updateConfig(UpdateConfigRequest $request, array $callOptions = /** * Updates a single ReleaseConfig. * - * **Note:** This method does not fully implement - * [AIP-134](https://google.aip.dev/134); in particular: - * - The wildcard entry (**\***) is treated as a bad request - * - When the **field_mask** is omitted, instead of only updating the set - * fields, the request is treated as a full update on all modifiable fields + * **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()} . * @@ -2120,11 +2146,10 @@ public function updateReleaseConfig(UpdateReleaseConfigRequest $request, array $ /** * Updates a single Repository. * - * **Note:** This method does not fully implement - * [AIP-134](https://google.aip.dev/134); in particular: - * - The wildcard entry (**\***) is treated as a bad request - * - When the **field_mask** is omitted, instead of only updating the set - * fields, the request is treated as a full update on all modifiable fields + * **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()} . * @@ -2154,11 +2179,10 @@ public function updateRepository(UpdateRepositoryRequest $request, array $callOp /** * Updates a single WorkflowConfig. * - * **Note:** This method does not fully implement - * [AIP-134](https://google.aip.dev/134); in particular: - * - The wildcard entry (**\***) is treated as a bad request - * - When the **field_mask** is omitted, instead of only updating the set - * fields, the request is treated as a full update on all modifiable fields + * **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()} . * diff --git a/Dataform/src/V1beta1/CodeCompilationConfig.php b/Dataform/src/V1beta1/CodeCompilationConfig.php index 92256536ef47..4383b717be5e 100644 --- a/Dataform/src/V1beta1/CodeCompilationConfig.php +++ b/Dataform/src/V1beta1/CodeCompilationConfig.php @@ -68,6 +68,12 @@ class CodeCompilationConfig extends \Google\Protobuf\Internal\Message * 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. * @@ -102,6 +108,8 @@ class CodeCompilationConfig extends \Google\Protobuf\Internal\Message * 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. * } @@ -329,6 +337,32 @@ public function setTablePrefix($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. * diff --git a/Dataform/src/V1beta1/CompilationResultAction.php b/Dataform/src/V1beta1/CompilationResultAction.php index 67b08c662d5d..8a5a3cc59014 100644 --- a/Dataform/src/V1beta1/CompilationResultAction.php +++ b/Dataform/src/V1beta1/CompilationResultAction.php @@ -61,6 +61,8 @@ class CompilationResultAction extends \Google\Protobuf\Internal\Message * 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 @@ -235,6 +237,37 @@ public function setNotebook($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. * diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/DataPreparation.php b/Dataform/src/V1beta1/CompilationResultAction/DataPreparation.php similarity index 97% rename from owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/DataPreparation.php rename to Dataform/src/V1beta1/CompilationResultAction/DataPreparation.php index f988450c3e07..71691c4e565d 100644 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/DataPreparation.php +++ b/Dataform/src/V1beta1/CompilationResultAction/DataPreparation.php @@ -211,6 +211,4 @@ public function getDefinition() } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DataPreparation::class, \Google\Cloud\Dataform\V1beta1\CompilationResultAction_DataPreparation::class); diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/DataPreparation/ErrorTable.php b/Dataform/src/V1beta1/CompilationResultAction/DataPreparation/ErrorTable.php similarity index 93% rename from owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/DataPreparation/ErrorTable.php rename to Dataform/src/V1beta1/CompilationResultAction/DataPreparation/ErrorTable.php index 8b27a876b486..8a47bc680b82 100644 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/DataPreparation/ErrorTable.php +++ b/Dataform/src/V1beta1/CompilationResultAction/DataPreparation/ErrorTable.php @@ -114,6 +114,4 @@ public function setRetentionDays($var) } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ErrorTable::class, \Google\Cloud\Dataform\V1beta1\CompilationResultAction_DataPreparation_ErrorTable::class); diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/DataPreparation/SqlDefinition.php b/Dataform/src/V1beta1/CompilationResultAction/DataPreparation/SqlDefinition.php similarity index 95% rename from owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/DataPreparation/SqlDefinition.php rename to Dataform/src/V1beta1/CompilationResultAction/DataPreparation/SqlDefinition.php index 3eac5cc73c75..d6ac6ea315bb 100644 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/DataPreparation/SqlDefinition.php +++ b/Dataform/src/V1beta1/CompilationResultAction/DataPreparation/SqlDefinition.php @@ -157,6 +157,4 @@ public function setLoad($var) } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SqlDefinition::class, \Google\Cloud\Dataform\V1beta1\CompilationResultAction_DataPreparation_SqlDefinition::class); diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/IncrementalLoadMode.php b/Dataform/src/V1beta1/CompilationResultAction/IncrementalLoadMode.php similarity index 89% rename from owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/IncrementalLoadMode.php rename to Dataform/src/V1beta1/CompilationResultAction/IncrementalLoadMode.php index ba86038a8d1b..7273a9f3f7ba 100644 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/IncrementalLoadMode.php +++ b/Dataform/src/V1beta1/CompilationResultAction/IncrementalLoadMode.php @@ -65,6 +65,4 @@ public function setColumn($var) } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(IncrementalLoadMode::class, \Google\Cloud\Dataform\V1beta1\CompilationResultAction_IncrementalLoadMode::class); diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/LoadConfig.php b/Dataform/src/V1beta1/CompilationResultAction/LoadConfig.php similarity index 96% rename from owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/LoadConfig.php rename to Dataform/src/V1beta1/CompilationResultAction/LoadConfig.php index e741c6f33024..74361347b289 100644 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/LoadConfig.php +++ b/Dataform/src/V1beta1/CompilationResultAction/LoadConfig.php @@ -178,6 +178,4 @@ public function getMode() } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(LoadConfig::class, \Google\Cloud\Dataform\V1beta1\CompilationResultAction_LoadConfig::class); diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/SimpleLoadMode.php b/Dataform/src/V1beta1/CompilationResultAction/SimpleLoadMode.php similarity index 81% rename from owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/SimpleLoadMode.php rename to Dataform/src/V1beta1/CompilationResultAction/SimpleLoadMode.php index 1c7c7e8a5093..d77a67e03972 100644 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/SimpleLoadMode.php +++ b/Dataform/src/V1beta1/CompilationResultAction/SimpleLoadMode.php @@ -31,6 +31,4 @@ public function __construct($data = NULL) { } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SimpleLoadMode::class, \Google\Cloud\Dataform\V1beta1\CompilationResultAction_SimpleLoadMode::class); diff --git a/Dataform/src/V1beta1/NotebookRuntimeOptions.php b/Dataform/src/V1beta1/NotebookRuntimeOptions.php index 4cdee536e619..86733efea125 100644 --- a/Dataform/src/V1beta1/NotebookRuntimeOptions.php +++ b/Dataform/src/V1beta1/NotebookRuntimeOptions.php @@ -15,6 +15,15 @@ */ 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; /** @@ -26,6 +35,11 @@ class NotebookRuntimeOptions extends \Google\Protobuf\Internal\Message * @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) { @@ -66,6 +80,38 @@ public function setGcsOutputBucket($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 */ diff --git a/Dataform/src/V1beta1/WorkflowConfig.php b/Dataform/src/V1beta1/WorkflowConfig.php index 6ad480b93f86..059df4fe35b5 100644 --- a/Dataform/src/V1beta1/WorkflowConfig.php +++ b/Dataform/src/V1beta1/WorkflowConfig.php @@ -59,6 +59,12 @@ class WorkflowConfig extends \Google\Protobuf\Internal\Message * 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. * @@ -106,6 +112,8 @@ class WorkflowConfig extends \Google\Protobuf\Internal\Message * 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 @@ -303,6 +311,32 @@ public function setRecentScheduledExecutionRecords($var) 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. * diff --git a/Dataform/src/V1beta1/WorkflowInvocationAction.php b/Dataform/src/V1beta1/WorkflowInvocationAction.php index 1bb6be39856b..7d87747394b0 100644 --- a/Dataform/src/V1beta1/WorkflowInvocationAction.php +++ b/Dataform/src/V1beta1/WorkflowInvocationAction.php @@ -72,6 +72,8 @@ class WorkflowInvocationAction extends \Google\Protobuf\Internal\Message * 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. @@ -162,6 +164,37 @@ public function setNotebookAction($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. diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction.php b/Dataform/src/V1beta1/WorkflowInvocationAction/DataPreparationAction.php similarity index 96% rename from owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction.php rename to Dataform/src/V1beta1/WorkflowInvocationAction/DataPreparationAction.php index cc28ee0663f5..201a84a2d93d 100644 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction.php +++ b/Dataform/src/V1beta1/WorkflowInvocationAction/DataPreparationAction.php @@ -188,6 +188,4 @@ public function getDefinition() } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DataPreparationAction::class, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction_DataPreparationAction::class); diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionErrorTable.php b/Dataform/src/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionErrorTable.php similarity index 93% rename from owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionErrorTable.php rename to Dataform/src/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionErrorTable.php index 834d45931e9f..5b1d7afd367b 100644 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionErrorTable.php +++ b/Dataform/src/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionErrorTable.php @@ -114,6 +114,4 @@ public function setRetentionDays($var) } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ActionErrorTable::class, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction_DataPreparationAction_ActionErrorTable::class); diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionIncrementalLoadMode.php b/Dataform/src/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionIncrementalLoadMode.php similarity index 87% rename from owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionIncrementalLoadMode.php rename to Dataform/src/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionIncrementalLoadMode.php index 695b1f5a9bd3..dcbf07249afe 100644 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionIncrementalLoadMode.php +++ b/Dataform/src/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionIncrementalLoadMode.php @@ -65,6 +65,4 @@ public function setColumn($var) } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ActionIncrementalLoadMode::class, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction_DataPreparationAction_ActionIncrementalLoadMode::class); diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionLoadConfig.php b/Dataform/src/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionLoadConfig.php similarity index 96% rename from owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionLoadConfig.php rename to Dataform/src/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionLoadConfig.php index 8e761ee85fe2..0d7d4f9bee32 100644 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionLoadConfig.php +++ b/Dataform/src/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionLoadConfig.php @@ -178,6 +178,4 @@ public function getMode() } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ActionLoadConfig::class, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction_DataPreparationAction_ActionLoadConfig::class); diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionSimpleLoadMode.php b/Dataform/src/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionSimpleLoadMode.php similarity index 79% rename from owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionSimpleLoadMode.php rename to Dataform/src/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionSimpleLoadMode.php index c5a1b7dfdc33..5c962ddde60c 100644 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionSimpleLoadMode.php +++ b/Dataform/src/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionSimpleLoadMode.php @@ -31,6 +31,4 @@ public function __construct($data = NULL) { } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ActionSimpleLoadMode::class, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction_DataPreparationAction_ActionSimpleLoadMode::class); diff --git a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionSqlDefinition.php b/Dataform/src/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionSqlDefinition.php similarity index 95% rename from owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionSqlDefinition.php rename to Dataform/src/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionSqlDefinition.php index 254625eaa214..c4f0a3b819d0 100644 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionSqlDefinition.php +++ b/Dataform/src/V1beta1/WorkflowInvocationAction/DataPreparationAction/ActionSqlDefinition.php @@ -157,6 +157,4 @@ public function setLoadConfig($var) } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ActionSqlDefinition::class, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction_DataPreparationAction_ActionSqlDefinition::class); diff --git a/Dataform/src/V1beta1/resources/dataform_descriptor_config.php b/Dataform/src/V1beta1/resources/dataform_descriptor_config.php index 3ff138416d38..3a1a4eb53b89 100644 --- a/Dataform/src/V1beta1/resources/dataform_descriptor_config.php +++ b/Dataform/src/V1beta1/resources/dataform_descriptor_config.php @@ -850,6 +850,7 @@ '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}', '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}', diff --git a/Dataform/tests/Unit/V1beta1/Client/DataformClientTest.php b/Dataform/tests/Unit/V1beta1/Client/DataformClientTest.php index 57aeebb81535..77fda5fe11eb 100644 --- a/Dataform/tests/Unit/V1beta1/Client/DataformClientTest.php +++ b/Dataform/tests/Unit/V1beta1/Client/DataformClientTest.php @@ -745,12 +745,14 @@ public function createWorkflowConfigTest() $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 @@ -1973,12 +1975,14 @@ public function getWorkflowConfigTest() $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 @@ -3987,12 +3991,14 @@ public function updateWorkflowConfigTest() $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 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 2aa6182bd3c7a788a8719c2c0469cd667141c628..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 39599 zcmc&-d2AfldH0ecMLtRtHM;1PWv$0{EYUI&myNl~^;d%fHpk{c~| z*E_qCX@d>oB&d_NX_K@-P&8AI+ zCm73@a<-jP57_H0g@4t?TB(>%+4Wo<|2uK}MYQ|q~sZDDZm-StK} zUoTe5DH?F8oVQM#Oo=(^-3O`_;QwSwL3No(0&=X*mFrfmoGY!)Sa!Zvtkx^F%Xl@N z-mvNpA?ceFC*`sHOQOtrY0 zDVHlmg-Y2@r(K-fDWV2Wmx@-o-rAV6MXOYpvNm%!ioo2ZdL2s z%`fN-h*|)$+-_p(-b;U0Ef&#i$ z%}>xCY}oQaQZ8Hv;U_pvL3r`ZwAcaCG_&P=ZM#aFinwVR3+&*HEjxR|+RomzYBs*l zk}?}jq!K3vr{4XIOwac+W9$ScA6^_6D}Y?~IF#tbG)-2yU~R96!RGJmWo*%^R_r45 z$hNVc?b4>}{YGZMcrP2u*DS1^CA>!WVxghQq?}j)3!05PGCGA(y~f>aPoZd6OSx?U z-vEaXj}pdD16-;Vd^?I?qVUPCkiJwpthYP^C3+wo~VttX%u_ULUl@rD~ z8!K10YWb{HzFDkQ%3BbU?9E)Qm|H7ZHr4|+_(I@6+RNdZ#K7-mPO&lZbSqcRZNS?2 zh_}RtO3E1xcKlYQc7vOdtT0eq`DH7ZyH+e%_UJB-(z)hQx~3+a<_3??cS%hr(0i8k zmvU=X$sX-X^@0T^E%`L-xkqOQ=Y^#>d6}F1y(LumJ zFx3y@d?T~VxQFe-qnpLNmCfbzl}5Qf$~g5n*`H>6lwfiR8sd*ma>Cxv?u!*jV}%`} z?GCmniOVD|MCKlBRxip8~x1{9SJ*63OrEV*3N~WQ?%h zMy(|G7O?Cwje;nguAJZGVmnAH^%z-pzeY;hn)S*JtK2=2d!5~F+nYMS zXpwxSyk6XZIMBviiXqeO_Rsi|y_s=k0dr6DsfDl<*dB=vS7BVZhbLPQ?f`wqmx(;W zN=@~RLdbfPKbl}iBET?SV8^*|R%^wZq>o4m`nI!BgV@ecgRO06NcU#Nu4jcmM{{ee zH5b{C1}wJ1=<=ltvkTd!<;?QcrR>#(rOUI^b7$vfXGZQa_Od~^sM)iZt}e`sB#a@p zdv0MRGe0*o(qjy=KJl?P*29&I9wPw*Hq2_2<@)0(qDFQ&(OSp2v0rEarpoS%;O7}dTNPjf(cIHC~W)cMC zQ%m`BEQ%{oMg|t}16ICnPrNQa?M##^&?=B5e5XF{Ow^RYDO&j6`D=S;Y>)E?9!)am zukERW%z$StTwiA&o4*2anJ?Nf1k!|I*rN4H1MZUXe%4>j)u7nq28J$zR6rLgKmyir zUIJ?zW`k8&fUFHCp3|aF?13YU@$dOY(1>arVgr?00g7{Nn{N!R5fa7$*1ujX0cgHE z#h2#C5^OXGvt0#|ECXuPK^nLKbW-vso8HyN5w@>vy$U%d_ywF~SqA~jP@@b(p5G+F z0Pwvh2F=Ut;5o~s-nOFM;~qa?j8pD`W`w}}HE?8_`wI?FoLM{I$Q09rfwQC)stEmz z4dc*uJ6kNc4D2yK4Y03PA>>vNYt4LYmCO&Wj?QirA`eU&(|C%K0)_w}hEHt4V+`9^{r@X*QTMD*IB>$)8pn!M0O zJjke-kFw*D(k>OTfqaiES=>CDu!DCmLgrlQAWS;enb6t#T3lTV9fEMInyYW>ifWuC z!$6Qw2UuZ#DZy4By3(*}(86kG&tUiDDc*yB$JzEyqLA=fSBjBBtt=EoE4*jcNd-*icO9!>}d+BqScb3HWTY_of# zV38DgitQGntlWt>I*7e7U)hME!{-xh*!S)PvISz>@N5C?n=o7HWD8)80<3v2*%`Qu4k9x4I}xM&9L!q`{TA2(gnrIwMYhL0 zk)IPY#|i|6;)g}x7nrjXRy@O88IWN^(-aX(8o3aMsJ^K03Og+P)BwnBli^9W2ih1B zi8M!njCzlOI22i%VhLH+0*)d?>RaRx&0mB(Uv892NS29doODLJ5Ycin*X~bQCNvXB z!rYpr<KB9qVV2eW9RQ?(Mi>^mfyaUv=ju2t>G^{5J?t=o4d)3?_IigXpwR zq}NHk4NqQ+(K4+=GERiHNJx6kYpjp|1wFZ+Ql_)Mj486BnVA_RPkFX3t_(66L&fhh=(=BWraC#`QNn)2E5c4G~SLR`a%yb=R$07ib z5N@!8ju-$PT)TSsyac_i<|2R(2&5BV07B7_KrGVQrKX^jFv;4(C5 z{xoEThrv#q>W|;M45KepCle9s2$6hA3HWe=-5Uj?MDHC4(4S(%4vj<%JIr>G{uPu& zzU%-Sbg~3|D-NE&Yic*^qlCe>`I!VWmaJSYze$?aF~OaYx4Fn(b1L1_1C7A1vI8E- zBvGf?u+0I+xw?(xNo8T;Hoce&I|5_qgg5l;fbS;rXA*3W=k=#Gnhs4)#90tfQXdW` z%=wuxH2L0`Ssb={r*c`BVk5*e{jt~bnGdoc@_5&mfNisVlnEtn-znY@Of~Cf zk?L&RBy7Sw$wu6zPV`~IQN0nCK0@5KfrBmKO%`oWsmXPABws0zuu);Gs5=7MR0kpgxi~#K zjnVKs)nEaI@S3o09(7Y$DlRBAU^89oLx~Z}>tldUFiJ7dG%7bcP4;4eri4lfmX6Nh)A>_U6j+3lUAs9JUG%ugm* zG7J=<9gJDFPa;Id1bbRJbEg!4Ba0(7)LKjjuCOD#5=5Ip>F6gsDZxj0G05seP0EA$ zhd@>pgoI4q3E}6Mk_1U8nILS5PTW2i_p<$7n)@<^p9L1GJ|qN-_DV#$2fz6|ONvb9 zqP`Wn!@&;^u>CVwjGN{^OBOoM2-kJn#C=@BPsfbr)7tQFP<(uYZ!mOjiB zNWk_Qx3QigRnoTg>@yxaO}2g5GR8r+Tb=fb)C~6!kpF>qm%kwbe6fZ~#0Z(>uVvWY9KVT^t>!S-u2&v?*db)eJ3*kJ7c=zAzz%_ue~U~BZDt4 z#zY*o{dX@r6zVp{6{>1Q)1qM2+Z%4va^afR(d zX+Krk)2?_bhGU`7kFQ_?o+KhxCMXF)3W}<2Rbj2ODHD_#7C5M9!q4O*{YAH$e>}#H ztu;^yS}bQ>bf`{V73gY}^aYkuWxu#kWvx{zH?lQU+mqj2;a5RyUYQ?X`@bNEFN)EZ z#9)qQ@?kdUAnq-`3KjvIzX88Cd@>`&_HX3vY^700fk1Yxk-vcrz9)fmZEr{>rP%CekbYJ?42uUh$r5SC*3hWT4a znUbfaDGa#-lxgh5|7g|mqhPt|GGTZe_eOy(9mR|6fVPc&nZI|(ZU!g%6C`QTVSI@l zg~J#itfDKDgW63Z#9^qtZY9Vue+l>tzcF%+PI!04Yh7zR11kN;mPtojs>eLX`h`s( zJ}Vuf?FA|a4=O1-mzId-73sAY`pr-S*XcP_XW|q#5oH7)zA?6MT?P!P7AW zh?oiY*2FZ>hu0W$%3&!hLatHE{+s}C+$}}M#8=s%V_bOtV`%c3Ho?s(n~Q0mC$Yob zXHiGZvp(@s7Da~{cP2~?`YLn4jsDPNyYy8i0h6xb+6-MJ!_^nu|KPbXX)n*VNsSpy zciEi{Ydp&OrLRc4uvuRbw>w7ixpJk9t9B*jY?5dgF*?JXV+x+B$O9SpM9>|v(Hf|$n&+O454)lHOZqLx7*f`ljZrkQJ zF#F)?shbx#qfx6s8tHly-3lH+7T7>Z6JH*PD_?b(TaJ!##$9tcv-D%R&z}4nxTX>0 z0KhsUJiHagbCiwXejLcOiF0pH628*R7{}QWc^fD|1)eBJY@gJZ z^$8E%+8xBEJ?eSKCrA|J4<;XHhr^MMwP{thN68A8>|?mMFgu@Fp1ZV=U4H&@Ncqij zW@>&GiKPaD_9F{8SGcbZlccusp-|LX7C( zM5G|3KhPyL?AK^QKqHiMyOc}5$c8kt9;N$*p=_No$q%vtW!<|$@u2C_FU@c-+%aZc z5RzZo#rFAJ0BC=dd5MGG>~?Oe#QBCA5~IZSI1lVsO41KoZqrctmK|Sur8I*Jz0_f* zQpRd`)RYVC|2o0;dX}YI!oolbCA!Xr#90)-aV$fqxXQ*T%j`#(=PJ34GcK`Rr3wn_ zh(+yt%=4H+n9Jk~jA_%i>C(YHKtBm=V6wT~T9N_jo5B@1WN{>?k{{`1%w5@dj_rm! zSwaIM9>vASRZ-+xDk67c(aaZdpbLSxhC3})^6exa;sUm&Cw>tb*4(Sbt;UvQz_V?N zv}UX|xK~$Mzc9GcN$l$MQ~hk$76_C?hR92@v(>lb0QjNkY3JFL`%s*tU$ z(Jl9gEa?{#?13v3I7d*{IdSYXLDKpqh0uDkpTNOx47@Vibe$#hZk#N$P10N{K z+vc2c0!)!iZl{*w7Bd626mDA6TTKxc(RxYemQ&2CG^t)t5mEWzJIfI#L$TMG+!Ik= zbkL;}Al|IyZ_z-(sj~24Lf*$MDKF?3p?Jx);o#H+?+Q|gXl0>@<+2hAwUtVX$MpPj zd$kr{#6c47fV?XXM!6UAou48pYKa-;RV>dN5Nwk&mLjuW|u3Yp;hswh2(=wbil8NJcyOK1(S6>53_qi zUaxB}lhZ6;ew3Y9$K{-DC_fQ3Vn%PEZ{y0bs2!rjo*afFC4c86_t=Q~f$(Y&C4Q0- zDv{nvlDpLd3KMt#j?$q+02XNj&an~2dnq1D^T*vO_Rbio@G0>dY*X?a8^u|JcM3(H zGoFKnaemNnqS*~({wWX^rwrkrBI%TcVip07HX$QkMnXf|Sr+|s5PzlGx zRmiP$G3h1_<_qkod)>~p=-uJumv=KmVeYCOm~{R4TY4?h9N<(6#U!nqO2Ht^1-U9V zGei%wH7$CWD&WcVcH0B#GcKrmUZlo`Cm)M((1H}y?r|aQt@}r?aK*A}Ja$M;OzGM2 zIfTYFw2~s(?L}+1qsXy|nwX#qDeFkVjNaCm5#2J5Ds4KbUJ0#3(P}-Z4h4nXx4+Yd zwqJ`^7Z&Cg&LORamS9U)r>AFU>5^Ly{W+akn4X=V$Dh4OH1(g&%+cpv?jsu5m;Mv@ z1Al-U{&D_*Ch<4A=M%WI>V84dajSO59A`^=b<)vP?w8~v=&ZkOrO9v0qwkEUNQ7S(B{ z*SrXtUjz}nRyDXvCmdXgcJkwMzd`zO3v1@taj$g>!rVD!u*fv}Mp~sH6x}1g$x_ja z2pKfLIl@MRFvxT7b?y9L=A}h;xY>BqC7nFF!pS_(GKfF9S%3k=I_msa<-djMZhIY- zDfX_@U`I%L^&?@mo(N|zD(e+dSsg{G@fq*YuygcFg%yPwR{hw?X zP4_N0wLo1*^MVG>L~FRffX&snaV(P)@J2kG^^ep^et7(V)QgSa*r#%!Fr`i=tJH6h~Lq2~d)b{P>0 z!nhDSPnI4_(*+{cSw9Ox@vt|5BR>=3(vti{4?7Stl|SKchb8=9x)T^_>3J+#LYmu~ zl)EE~x_SC!j*SR+?;SiX*@9^NAS@kvl$->5+ zKz7c})M&>J+rCqWcW!CtNa8R%DEFM_EC&U;cZ=^sAP*c*cut$lbrqT*2Dv=DFhill zT__sR0uubObYbrDWz}Y5W^Rcp04N&q#41`qLQng&Sf!sT#&f(-E+PZ?z8@cK&oH>S7Z*V zI&n|ubzy#R+XgM|o9VosF1($|v3touq5^HX`J7^F2>^BaZ>qU7EGn+7jiD-)UtOET zIU0R1&$AI;FHCsGtay9;PJTAW2FM~4-3+vH8KKC}X$pyyvk`Y7<{uz&NyZ6NaGdn( z&%TwBZLi<>`nNva^O*6d^D8*7i%OFx9ZrsE?YYOiZMltK$FV>7vG zE%48S=FbC7b*oYJu8rlTe}F>suo7R0KmR4AasE?2KCv6qxYGjI#y6?$IdAplazwT^ zGUB4Hh;a(=_*+d8eY>SbILCRDG0(WXX#uk|vUccZmrjfse}%3%)b_%~kUC2kk1N7P z#LmGX3bXgOF;b~Hj?^>8Q|%!I1;HDK7$56lDeeWhNI4x}U>|rV4vRm(p+hB_S2&s%jJfvE5$0hUl94900wzmGVLa6Cps^%5lJ@a7Dyfx9l zCtvMf6KtP*Odybmqp2m2Vsn*87p1$&%M2^%Rlk;U~w*1YcO1&3|TMF(E- z!w($#dp}7pXV}}(Hda@7UstHcNwR;GM01g&Id7hG(QKD}=_-nqT%7doxJ}@szur7f z-cff1Cwr4{f@r#pI?;@kjwtZ+V7Aee?IF)q8>H}y`}sj`w*q4&mRZiZ=Z$M!;2gJN zzJ-i$D?<&)wRX478EWqsg>X~E@(-2xzQpl;&RFRdzTR~Vv@$*nM+?!%HKnLkNEPRg zh7VIn$N8gCqb1(b`!?HhP<%QFPMM6Z{soPjQ6Ug)jcddSW#}k{YaFE_21`_zIEycu z=exk-8X-qJ7xlY)osC2-c4JdZp0^cdaUPs+ki_Ukj?p#as*6!)R>aw<9FzZn%?LiQWqw zy{pDjx6rfQ?!U(0L0&x_T4Uwa^R~h(PF{V3BxWyj%&wbVlh-Z1sV!|sBop_E=An+v z8gagh?|p@0TnaKUOd`3)kz8FhHPhMIuB>?*=MtWrjd~~9csA;9D;#6l=pA&&*r+c< z=>2hmuK3He)_6?(tzJ|}#ocak-T>6uyRQ@cX|MFiP zY+B1**bBR!jN_&@Kw`7H$|Y^ZywWY++)_WANUXteks;2~w62bJY=9daqSzG|;D(Kq zs9y7CiOw5mU6fl(L7-QL+gsQ+{sQMH{B%zHHufCFKR_YaQgco7s-89SVAMiT>qUn$ zM@ZWrP=|IpQgPG|8PgtKZzkSC7fP8&lJLpeBpmv2kmR2#qx78FC3dELcO8u%05R0z zUMs{18PgsyJ`Q4Ny_o5Q|CIl1aAQ*QV7wG+;d~JJPz^&m@C{G{Y0(4f3{ZPFHb@Q` zqo@&;aPtcHn8x3Zg!?}cLy($480u{UW5=Gugb!1A#KjO%qm^Ot>Zf_**>?34qFz5{ zIE0{|q7L93o6ZRvq!5lXH-Xj6=XHJM!LS9E2GJv(^}{{tm$3uO#vc*GJ*w*s+Yz?o z7dzU=^9^iS>iC1k1*bG{<^3pba$h#P$ltW*_6Je{^m`*8>5)HZ6CjAFjIxcmZt*4poSHxA~l* zWujYiLnwsP5khWNX(b%@uuXd$4MOk3N)WU;juCJLsNDx%kFv zuCPIE;`W2s&L`z|Rv;>O#P_%IN3QE93?1<`z0bFVfi_78g?DkyBLcA`2^-WVNj?FR zxK*2?Ffibid|=X-aUk|d!nNX-C<2I*LhhFYh=OZ;2i+6B7UU#skRnQyYvL95F>MQX zChY%(IwxIuxEFowSR)oOPN5Q4=M*_y>aEpPuj0CBTxi!nQS8*Q`zPe*HC5z3ip|f5 zj#601Wh>MMa@RAj>x#^SWgEP8=jG*-Ki0!Wy?V)g!HDBf)W8mK{V0VNe#KUFE}(Kp zWzFm+qtninR;_=C@#p9{;@yWW&?Rc1qD#~!_A+`*!?JTme-8*nT@s9E^zE-OCS$v} zMvj+zIV2(1G0JJ&r^Cfd%KE(7BY&kZxVx0+*_6{5Ib3lzuKgBwJ#RCMB**hy&X)`= z2i7?`g!73Xl^leE5{Ao&OXxXoDg>LWu{Y1?Dr>@c#8u3^%++_Lyu=GtbxUbWK`6Sr>N zlJSaj1tZs}Z%(Mr*QerM389(Ox+{MWeo= zp0BR*7gkr*`m3ueV&b=ZQeuj9n!l1xt5?!#^-89|#%wE(27Ft&GJd?R=BL~ef4E}R zs1L63KIi7c>+;jigcy$Y2I9lc#7*%szLB4H-p;%V5)vM`XX9UCy0%@dS1wrF#!|@a z>L)EQoBFsjal_hPMB@y6hfmoWKJHB9)in54e5S^;So-G@>_qI^3c=Uz00=HW6CpDSp+e_1|nTR#%&aS=|(uzh%#y5 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 2e7c0859ce31..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 8308a07f8586..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 4383b717be5e..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 90bc52fb50d3..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 4874da98a0b2..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 f1a343c32fe1..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 d44273a9692a..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 f41e96531c5b..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesRequest/FileOperation.php +++ /dev/null @@ -1,111 +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"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(FileOperation::class, \Google\Cloud\Dataform\V1beta1\CommitRepositoryChangesRequest_FileOperation::class); - 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 7f710230672f..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesRequest/FileOperation/DeleteFile.php +++ /dev/null @@ -1,36 +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); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DeleteFile::class, \Google\Cloud\Dataform\V1beta1\CommitRepositoryChangesRequest_FileOperation_DeleteFile::class); - 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 1489ad7b89a1..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CommitRepositoryChangesRequest/FileOperation/WriteFile.php +++ /dev/null @@ -1,70 +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; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(WriteFile::class, \Google\Cloud\Dataform\V1beta1\CommitRepositoryChangesRequest_FileOperation_WriteFile::class); - 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 15f018aa031c..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 b702242faadc..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 array|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\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 array|\Google\Protobuf\Internal\RepeatedField $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 afcd6e7f4c88..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 6ea6da59a21a..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResult.php +++ /dev/null @@ -1,487 +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; - 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 array<\Google\Cloud\Dataform\V1beta1\CompilationResult\CompilationError>|\Google\Protobuf\Internal\RepeatedField $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. - * } - */ - 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 \Google\Protobuf\Internal\RepeatedField - */ - 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 array<\Google\Cloud\Dataform\V1beta1\CompilationResult\CompilationError>|\Google\Protobuf\Internal\RepeatedField $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; - } - - /** - * @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 84755ec1c91a..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResult/CompilationError.php +++ /dev/null @@ -1,190 +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; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CompilationError::class, \Google\Cloud\Dataform\V1beta1\CompilationResult_CompilationError::class); - 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 8a5a3cc59014..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 22202f67b388..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Assertion.php +++ /dev/null @@ -1,273 +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 array<\Google\Cloud\Dataform\V1beta1\Target>|\Google\Protobuf\Internal\RepeatedField $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 array|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField - */ - 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 array<\Google\Cloud\Dataform\V1beta1\Target>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField - */ - public function getTags() - { - return $this->tags; - } - - /** - * Arbitrary, user-defined tags on this action. - * - * Generated from protobuf field repeated string tags = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $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; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Assertion::class, \Google\Cloud\Dataform\V1beta1\CompilationResultAction_Assertion::class); - 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 1d20d7b3f3c2..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Declaration.php +++ /dev/null @@ -1,85 +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; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Declaration::class, \Google\Cloud\Dataform\V1beta1\CompilationResultAction_Declaration::class); - 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 28b0a118ec0d..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Notebook.php +++ /dev/null @@ -1,172 +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 array<\Google\Cloud\Dataform\V1beta1\Target>|\Google\Protobuf\Internal\RepeatedField $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 array|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField - */ - 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 array<\Google\Cloud\Dataform\V1beta1\Target>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField - */ - public function getTags() - { - return $this->tags; - } - - /** - * Arbitrary, user-defined tags on this action. - * - * Generated from protobuf field repeated string tags = 4; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->tags = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Notebook::class, \Google\Cloud\Dataform\V1beta1\CompilationResultAction_Notebook::class); - 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 4c5726990cf5..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Operations.php +++ /dev/null @@ -1,258 +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 array<\Google\Cloud\Dataform\V1beta1\Target>|\Google\Protobuf\Internal\RepeatedField $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 array|\Google\Protobuf\Internal\RepeatedField $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 array|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField - */ - 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 array<\Google\Cloud\Dataform\V1beta1\Target>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField - */ - public function getTags() - { - return $this->tags; - } - - /** - * Arbitrary, user-defined tags on this action. - * - * Generated from protobuf field repeated string tags = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\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 array|\Google\Protobuf\Internal\RepeatedField $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; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Operations::class, \Google\Cloud\Dataform\V1beta1\CompilationResultAction_Operations::class); - 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 89200a6f3a15..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation.php +++ /dev/null @@ -1,552 +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; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dataform\V1beta1\Target>|\Google\Protobuf\Internal\RepeatedField $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 array|\Google\Protobuf\Internal\RepeatedField $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 array|\Google\Protobuf\Internal\RepeatedField $pre_operations - * SQL statements to be executed before creating the relation. - * @type array|\Google\Protobuf\Internal\RepeatedField $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 array|\Google\Protobuf\Internal\RepeatedField $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. - * } - */ - 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 \Google\Protobuf\Internal\RepeatedField - */ - 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 array<\Google\Cloud\Dataform\V1beta1\Target>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField - */ - public function getTags() - { - return $this->tags; - } - - /** - * Arbitrary, user-defined tags on this action. - * - * Generated from protobuf field repeated string tags = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\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 array|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\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 array|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\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 array|\Google\Protobuf\Internal\RepeatedField $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; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Relation::class, \Google\Cloud\Dataform\V1beta1\CompilationResultAction_Relation::class); - 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 56ef96d5f042..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation/IncrementalTableConfig.php +++ /dev/null @@ -1,272 +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 array|\Google\Protobuf\Internal\RepeatedField $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 array|\Google\Protobuf\Internal\RepeatedField $incremental_pre_operations - * SQL statements to be executed before inserting new rows into the - * relation. - * @type array|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\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 array|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\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 array|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\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 array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setIncrementalPostOperations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->incremental_post_operations = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(IncrementalTableConfig::class, \Google\Cloud\Dataform\V1beta1\CompilationResultAction_Relation_IncrementalTableConfig::class); - 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 5b0816a5700d..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CompilationResultAction/Relation/RelationType.php +++ /dev/null @@ -1,78 +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); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(RelationType::class, \Google\Cloud\Dataform\V1beta1\CompilationResultAction_Relation_RelationType::class); - 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 af8cf7c7c5f2..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 33f504c6759f..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 37b11230b663..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ComputeRepositoryAccessTokenStatusResponse/TokenStatus.php +++ /dev/null @@ -1,72 +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); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(TokenStatus::class, \Google\Cloud\Dataform\V1beta1\ComputeRepositoryAccessTokenStatusResponse_TokenStatus::class); - 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 d2682f006f57..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Config.php +++ /dev/null @@ -1,105 +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 = ''; - - /** - * 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. - * } - */ - 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; - } - -} - 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 c4ca7803576e..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/CreateReleaseConfigRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateReleaseConfigRequest.php deleted file mode 100644 index dd56851f2a17..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 b10b110eb5f5..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/CreateWorkflowConfigRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/CreateWorkflowConfigRequest.php deleted file mode 100644 index 0d2162284e7e..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 8e2ce4911ddb..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 1974d634d01a..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 03561671652b..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/DeleteReleaseConfigRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteReleaseConfigRequest.php deleted file mode 100644 index 10dbe348d449..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 0716e53296f3..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/DeleteRepositoryRequest.php +++ /dev/null @@ -1,123 +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, any child resources of this repository will also - * be deleted. (Otherwise, the request will only succeed if the repository has - * no child resources.) - * - * 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, any child resources of this repository will also - * be deleted. (Otherwise, the request will only succeed if the repository has - * no child resources.) - * } - */ - 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, any child resources of this repository will also - * be deleted. (Otherwise, the request will only succeed if the repository has - * no child resources.) - * - * 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, any child resources of this repository will also - * be deleted. (Otherwise, the request will only succeed if the repository has - * no child 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/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 95f92f8c02a6..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 bfd061a26936..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 bf2989f15dd4..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 090c33e414a8..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 9529ce375230..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 2e5e46755d5b..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 a6f86b5d5a6a..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 842203ba1a95..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 bd9423c0a369..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 array<\Google\Cloud\Dataform\V1beta1\FetchFileGitStatusesResponse\UncommittedFileChange>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField - */ - 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 array<\Google\Cloud\Dataform\V1beta1\FetchFileGitStatusesResponse\UncommittedFileChange>|\Google\Protobuf\Internal\RepeatedField $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 63a41bbadb0c..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileGitStatusesResponse/UncommittedFileChange.php +++ /dev/null @@ -1,104 +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; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(UncommittedFileChange::class, \Google\Cloud\Dataform\V1beta1\FetchFileGitStatusesResponse_UncommittedFileChange::class); - 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 cb9467723386..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/FetchFileGitStatusesResponse/UncommittedFileChange/State.php +++ /dev/null @@ -1,78 +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); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(State::class, \Google\Cloud\Dataform\V1beta1\FetchFileGitStatusesResponse_UncommittedFileChange_State::class); - 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 93f52b15bed5..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 27b1b288d80d..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 68515930cd47..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 bf0efee7b06e..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 array|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField - */ - public function getBranches() - { - return $this->branches; - } - - /** - * The remote repository's branch names. - * - * Generated from protobuf field repeated string branches = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $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 76dd1d9143e8..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 575423827c89..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 array<\Google\Cloud\Dataform\V1beta1\CommitLogEntry>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField - */ - 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 array<\Google\Cloud\Dataform\V1beta1\CommitLogEntry>|\Google\Protobuf\Internal\RepeatedField $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 8ebe49f7788f..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/GetCompilationResultRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetCompilationResultRequest.php deleted file mode 100644 index ff571e3e3e87..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 f7d31b81aa66..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/GetReleaseConfigRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetReleaseConfigRequest.php deleted file mode 100644 index 74e46b386dc0..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 faab65436cf9..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/GetWorkflowConfigRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/GetWorkflowConfigRequest.php deleted file mode 100644 index 9bf1531c25f2..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 f071607835a7..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 e4142c4e3257..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 a4f1c0cb7dd3..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 3f490121e19c..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 211b217da5cc..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/InvocationConfig.php +++ /dev/null @@ -1,247 +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 = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dataform\V1beta1\Target>|\Google\Protobuf\Internal\RepeatedField $included_targets - * Optional. The set of action identifiers to include. - * @type array|\Google\Protobuf\Internal\RepeatedField $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. - * } - */ - 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 \Google\Protobuf\Internal\RepeatedField - */ - 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 array<\Google\Cloud\Dataform\V1beta1\Target>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\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 array|\Google\Protobuf\Internal\RepeatedField $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; - } - -} - 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 576f638f5648..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 047d9705ca8e..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 array<\Google\Cloud\Dataform\V1beta1\CompilationResult>|\Google\Protobuf\Internal\RepeatedField $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 array|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField - */ - 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 array<\Google\Cloud\Dataform\V1beta1\CompilationResult>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations which could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $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 d3712165a1ef..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 4fb328ec2607..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 array<\Google\Cloud\Dataform\V1beta1\ReleaseConfig>|\Google\Protobuf\Internal\RepeatedField $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 array|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField - */ - 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 array<\Google\Cloud\Dataform\V1beta1\ReleaseConfig>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations which could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $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 1f70d114afb8..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 7852d0e1266a..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 array<\Google\Cloud\Dataform\V1beta1\Repository>|\Google\Protobuf\Internal\RepeatedField $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 array|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField - */ - public function getRepositories() - { - return $this->repositories; - } - - /** - * List of repositories. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Repository repositories = 1; - * @param array<\Google\Cloud\Dataform\V1beta1\Repository>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations which could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $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 8cfd1f506447..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 249a8ff65b5a..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 array<\Google\Cloud\Dataform\V1beta1\WorkflowConfig>|\Google\Protobuf\Internal\RepeatedField $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 array|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField - */ - 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 array<\Google\Cloud\Dataform\V1beta1\WorkflowConfig>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations which could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $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 c8577a9c840e..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 d9fcb85b2e33..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 array<\Google\Cloud\Dataform\V1beta1\WorkflowInvocation>|\Google\Protobuf\Internal\RepeatedField $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 array|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField - */ - 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 array<\Google\Cloud\Dataform\V1beta1\WorkflowInvocation>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations which could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $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 9ba99e5010dd..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 54ef94dd2164..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 array<\Google\Cloud\Dataform\V1beta1\Workspace>|\Google\Protobuf\Internal\RepeatedField $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 array|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField - */ - public function getWorkspaces() - { - return $this->workspaces; - } - - /** - * List of workspaces. - * - * Generated from protobuf field repeated .google.cloud.dataform.v1beta1.Workspace workspaces = 1; - * @param array<\Google\Cloud\Dataform\V1beta1\Workspace>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations which could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $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 1be1ded44314..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 05d2d176a30e..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 df67c6664f69..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 a3e6cb5265e9..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 062b2edca74d..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 25d0cb19ced2..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/NotebookRuntimeOptions.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/NotebookRuntimeOptions.php deleted file mode 100644 index 86733efea125..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/PullGitCommitsRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/PullGitCommitsRequest.php deleted file mode 100644 index 703bfc89a07e..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 669560673ef6..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 8e781babfedc..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 a7c3e276cd7b..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 932190816151..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 b21b880933e5..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 array<\Google\Cloud\Dataform\V1beta1\CompilationResultAction>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField - */ - 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 array<\Google\Cloud\Dataform\V1beta1\CompilationResultAction>|\Google\Protobuf\Internal\RepeatedField $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 8942158d8915..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 bc90bc97b0d9..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 array<\Google\Cloud\Dataform\V1beta1\DirectoryEntry>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField - */ - 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 array<\Google\Cloud\Dataform\V1beta1\DirectoryEntry>|\Google\Protobuf\Internal\RepeatedField $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/QueryRepositoryDirectoryContentsRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryRepositoryDirectoryContentsRequest.php deleted file mode 100644 index 7e6aa05bfed3..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 3b9d93ca014f..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 array<\Google\Cloud\Dataform\V1beta1\DirectoryEntry>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField - */ - 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 array<\Google\Cloud\Dataform\V1beta1\DirectoryEntry>|\Google\Protobuf\Internal\RepeatedField $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/QueryWorkflowInvocationActionsRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/QueryWorkflowInvocationActionsRequest.php deleted file mode 100644 index 0f0cd3056865..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 0c7779e7964f..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 array<\Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField - */ - 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 array<\Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction>|\Google\Protobuf\Internal\RepeatedField $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 69efe14339ec..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 f9978e7e33d8..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 0c85bc21ca50..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 8d655a20857a..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 eaa53f555348..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 array<\Google\Cloud\Dataform\V1beta1\RelationDescriptor\ColumnDescriptor>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField - */ - 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 array<\Google\Cloud\Dataform\V1beta1\RelationDescriptor\ColumnDescriptor>|\Google\Protobuf\Internal\RepeatedField $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 c2d4527016ee..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/RelationDescriptor/ColumnDescriptor.php +++ /dev/null @@ -1,142 +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 array|\Google\Protobuf\Internal\RepeatedField $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 array|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\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 array|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\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 array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBigqueryPolicyTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->bigquery_policy_tags = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ColumnDescriptor::class, \Google\Cloud\Dataform\V1beta1\RelationDescriptor_ColumnDescriptor::class); - 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 cd0d3d57f0ca..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 array<\Google\Cloud\Dataform\V1beta1\ReleaseConfig\ScheduledReleaseRecord>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField - */ - 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 array<\Google\Cloud\Dataform\V1beta1\ReleaseConfig\ScheduledReleaseRecord>|\Google\Protobuf\Internal\RepeatedField $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 fbf6384993eb..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/ReleaseConfig/ScheduledReleaseRecord.php +++ /dev/null @@ -1,165 +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"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ScheduledReleaseRecord::class, \Google\Cloud\Dataform\V1beta1\ReleaseConfig_ScheduledReleaseRecord::class); - 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 afbafa696306..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 056380672478..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 146eb32c334d..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 c55004b57eba..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 b03b4b24f190..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository.php +++ /dev/null @@ -1,555 +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 = ''; - /** - * 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 \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; - } - - /** - * 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 b00cdfd2ac47..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository/GitRemoteSettings.php +++ /dev/null @@ -1,237 +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() - { - @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; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(GitRemoteSettings::class, \Google\Cloud\Dataform\V1beta1\Repository_GitRemoteSettings::class); - 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 08404f32ce34..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository/GitRemoteSettings/SshAuthenticationConfig.php +++ /dev/null @@ -1,116 +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; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SshAuthenticationConfig::class, \Google\Cloud\Dataform\V1beta1\Repository_GitRemoteSettings_SshAuthenticationConfig::class); - 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 a43991fe6e6c..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository/GitRemoteSettings/TokenStatus.php +++ /dev/null @@ -1,72 +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); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(TokenStatus::class, \Google\Cloud\Dataform\V1beta1\Repository_GitRemoteSettings_TokenStatus::class); - 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 b45a28f49b41..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Repository/WorkspaceCompilationOverrides.php +++ /dev/null @@ -1,149 +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; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(WorkspaceCompilationOverrides::class, \Google\Cloud\Dataform\V1beta1\Repository_WorkspaceCompilationOverrides::class); - 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 1c7de3d1047f..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 array|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\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 array|\Google\Protobuf\Internal\RepeatedField $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 d11b5d8cb0de..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 fb3acc04b09f..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 82dc7d62a599..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 array<\Google\Cloud\Dataform\V1beta1\SearchResult>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField - */ - 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 array<\Google\Cloud\Dataform\V1beta1\SearchResult>|\Google\Protobuf\Internal\RepeatedField $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 4f64a0d1a55c..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/Target.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Target.php deleted file mode 100644 index 28debbf6a1ef..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/UpdateConfigRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateConfigRequest.php deleted file mode 100644 index 0bcfbc596303..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/UpdateReleaseConfigRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateReleaseConfigRequest.php deleted file mode 100644 index c835d001e602..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 23e3f2870bf5..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/UpdateWorkflowConfigRequest.php b/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/UpdateWorkflowConfigRequest.php deleted file mode 100644 index 26f603739387..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 059df4fe35b5..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 array<\Google\Cloud\Dataform\V1beta1\WorkflowConfig\ScheduledExecutionRecord>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField - */ - 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 array<\Google\Cloud\Dataform\V1beta1\WorkflowConfig\ScheduledExecutionRecord>|\Google\Protobuf\Internal\RepeatedField $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 3fffb84cc0ab..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowConfig/ScheduledExecutionRecord.php +++ /dev/null @@ -1,165 +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"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ScheduledExecutionRecord::class, \Google\Cloud\Dataform\V1beta1\WorkflowConfig_ScheduledExecutionRecord::class); - 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 f6ee1d4e6476..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocation.php +++ /dev/null @@ -1,411 +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; - 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. - * } - */ - 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; - } - - /** - * @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 b5a080c906ee..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocation/State.php +++ /dev/null @@ -1,86 +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); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(State::class, \Google\Cloud\Dataform\V1beta1\WorkflowInvocation_State::class); - 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 7d87747394b0..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 b3c00131410c..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/BigQueryAction.php +++ /dev/null @@ -1,108 +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; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(BigQueryAction::class, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction_BigQueryAction::class); - 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 90701db9b026..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/NotebookAction.php +++ /dev/null @@ -1,112 +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; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(NotebookAction::class, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction_NotebookAction::class); - 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 1f6c58220be2..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/WorkflowInvocationAction/State.php +++ /dev/null @@ -1,94 +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); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(State::class, \Google\Cloud\Dataform\V1beta1\WorkflowInvocationAction_State::class); - 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 151c14b1d4ba..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/proto/src/Google/Cloud/Dataform/V1beta1/Workspace.php +++ /dev/null @@ -1,211 +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; - - /** - * 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. - * } - */ - 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; - } - -} - 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 52c30bdc5692..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 610d4c47dfa2..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_workflow_invocation.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/cancel_workflow_invocation.php deleted file mode 100644 index 9e348c922926..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 d87ba6e9b34c..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 2742b5da7e33..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 02924986fc71..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 6bbb559acbd9..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_release_config.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_release_config.php deleted file mode 100644 index 2ad1200b5599..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 eda62b5185ad..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_workflow_config.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/create_workflow_config.php deleted file mode 100644 index 28741b908226..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 2d31525eb8aa..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 4f4ff1c18e56..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_release_config.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_release_config.php deleted file mode 100644 index 2137a7874585..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 0866c0dbaa8c..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_workflow_config.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/delete_workflow_config.php deleted file mode 100644 index 631ed3c0984d..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 48db43349a36..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 1ed82a115ff2..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 78302fa53e92..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 763dd08e74d3..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 ea20055ca56b..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 40371204a2de..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 3a567902250b..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 9b00b757c881..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 7fff504c7a0f..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_iam_policy.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_iam_policy.php deleted file mode 100644 index e2a5df9853c4..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_iam_policy.php +++ /dev/null @@ -1,72 +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 21f10220e69e..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_release_config.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_release_config.php deleted file mode 100644 index 07261d4fbf04..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 ceda522305e5..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_workflow_config.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/get_workflow_config.php deleted file mode 100644 index ce7c8b8387c0..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 92b81e828116..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 44532d552ba9..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 ec911b802719..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 df900b21339c..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 67fca0f22f65..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_locations.php +++ /dev/null @@ -1,62 +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_release_configs.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/list_release_configs.php deleted file mode 100644 index 5934532f4258..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 af18663d8762..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 421ed8106d3a..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 7e4c8752196a..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 07b2b4206b6f..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 4c6a55c22125..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 0a4b338028c0..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 1c4712d569b5..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/pull_git_commits.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/pull_git_commits.php deleted file mode 100644 index ef38e9082e26..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 942f2a86ad8c..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 0af7028b9a80..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 ecee241cd67e..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_repository_directory_contents.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_repository_directory_contents.php deleted file mode 100644 index eab3ecffbdc7..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_workflow_invocation_actions.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/query_workflow_invocation_actions.php deleted file mode 100644 index 124b9c7e1f3d..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 55a7731ac801..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 38a56794e85a..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 a76dbc8180f3..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 2ef99a5a3112..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 8226cdf64ae9..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 df40ae79c26b..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/set_iam_policy.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/set_iam_policy.php deleted file mode 100644 index d2e9db534d39..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/set_iam_policy.php +++ /dev/null @@ -1,77 +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 379863f1098f..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 2873ca1c9366..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_release_config.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_release_config.php deleted file mode 100644 index 60fbd7032053..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 0acfa6d98d0a..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_workflow_config.php b/owl-bot-staging/Dataform/v1beta1/samples/V1beta1/DataformClient/update_workflow_config.php deleted file mode 100644 index 299f58981cb9..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 7bc7edb535a3..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 f0d4aaa962f3..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/src/V1beta1/Client/DataformClient.php +++ /dev/null @@ -1,2320 +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 createReleaseConfigAsync(CreateReleaseConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface createRepositoryAsync(CreateRepositoryRequest $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 deleteReleaseConfigAsync(DeleteReleaseConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteRepositoryAsync(DeleteRepositoryRequest $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 getReleaseConfigAsync(GetReleaseConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface getRepositoryAsync(GetRepositoryRequest $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 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 queryRepositoryDirectoryContentsAsync(QueryRepositoryDirectoryContentsRequest $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 updateConfigAsync(UpdateConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateReleaseConfigAsync(UpdateReleaseConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateRepositoryAsync(UpdateRepositoryRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateWorkflowConfigAsync(UpdateWorkflowConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface writeFileAsync(WriteFileRequest $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 -{ - 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 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', - ], - ], - ]; - } - - /** - * 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 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 - * 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} - * - 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} - * - 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 $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 string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * *Important*: If you accept a credential configuration (credential - * JSON/File/Stream) from an external source for authentication to Google Cloud - * Platform, you must validate it before providing it to any Google API or library. - * Providing an unvalidated credential configuration to Google APIs can compromise - * the security of your systems and data. For more information {@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 - * } - * - * @throws ValidationException - * - * @experimental - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($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 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 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 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 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 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 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(); - } - - /** - * 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 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 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); - } - - /** - * 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 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 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(); - } - - /** - * 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. - * - * 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); - } - - /** - * 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(); - } - - /** - * 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(); - } -} 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 a2c1865cd409..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/src/V1beta1/gapic_metadata.json +++ /dev/null @@ -1,313 +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" - ] - }, - "CreateReleaseConfig": { - "methods": [ - "createReleaseConfig" - ] - }, - "CreateRepository": { - "methods": [ - "createRepository" - ] - }, - "CreateWorkflowConfig": { - "methods": [ - "createWorkflowConfig" - ] - }, - "CreateWorkflowInvocation": { - "methods": [ - "createWorkflowInvocation" - ] - }, - "CreateWorkspace": { - "methods": [ - "createWorkspace" - ] - }, - "DeleteReleaseConfig": { - "methods": [ - "deleteReleaseConfig" - ] - }, - "DeleteRepository": { - "methods": [ - "deleteRepository" - ] - }, - "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" - ] - }, - "GetReleaseConfig": { - "methods": [ - "getReleaseConfig" - ] - }, - "GetRepository": { - "methods": [ - "getRepository" - ] - }, - "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" - ] - }, - "PullGitCommits": { - "methods": [ - "pullGitCommits" - ] - }, - "PushGitCommits": { - "methods": [ - "pushGitCommits" - ] - }, - "QueryCompilationResultActions": { - "methods": [ - "queryCompilationResultActions" - ] - }, - "QueryDirectoryContents": { - "methods": [ - "queryDirectoryContents" - ] - }, - "QueryRepositoryDirectoryContents": { - "methods": [ - "queryRepositoryDirectoryContents" - ] - }, - "QueryWorkflowInvocationActions": { - "methods": [ - "queryWorkflowInvocationActions" - ] - }, - "ReadFile": { - "methods": [ - "readFile" - ] - }, - "ReadRepositoryFile": { - "methods": [ - "readRepositoryFile" - ] - }, - "RemoveDirectory": { - "methods": [ - "removeDirectory" - ] - }, - "RemoveFile": { - "methods": [ - "removeFile" - ] - }, - "ResetWorkspaceChanges": { - "methods": [ - "resetWorkspaceChanges" - ] - }, - "SearchFiles": { - "methods": [ - "searchFiles" - ] - }, - "UpdateConfig": { - "methods": [ - "updateConfig" - ] - }, - "UpdateReleaseConfig": { - "methods": [ - "updateReleaseConfig" - ] - }, - "UpdateRepository": { - "methods": [ - "updateRepository" - ] - }, - "UpdateWorkflowConfig": { - "methods": [ - "updateWorkflowConfig" - ] - }, - "WriteFile": { - "methods": [ - "writeFile" - ] - }, - "GetLocation": { - "methods": [ - "getLocation" - ] - }, - "ListLocations": { - "methods": [ - "listLocations" - ] - }, - "GetIamPolicy": { - "methods": [ - "getIamPolicy" - ] - }, - "SetIamPolicy": { - "methods": [ - "setIamPolicy" - ] - }, - "TestIamPermissions": { - "methods": [ - "testIamPermissions" - ] - } - } - } - } - } - } -} \ 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 a09537862d72..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/src/V1beta1/resources/dataform_client_config.json +++ /dev/null @@ -1,329 +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" - }, - "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" - }, - "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" - }, - "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" - }, - "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" - }, - "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" - }, - "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" - }, - "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" - }, - "QueryRepositoryDirectoryContents": { - "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" - }, - "UpdateConfig": { - "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" - }, - "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" - }, - "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" - }, - "GetIamPolicy": { - "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" - } - } - } - } -} 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 46244cfd182d..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/src/V1beta1/resources/dataform_descriptor_config.php +++ /dev/null @@ -1,863 +0,0 @@ - [ - 'google.cloud.dataform.v1beta1.Dataform' => [ - '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', - ], - ], - ], - ], - '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', - ], - ], - ], - ], - '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', - ], - ], - ], - ], - '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', - ], - ], - ], - ], - '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', - ], - ], - ], - ], - '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', - ], - ], - ], - ], - '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', - ], - ], - ], - ], - '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', - ], - ], - ], - ], - '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', - ], - ], - ], - ], - 'UpdateConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataform\V1beta1\Config', - 'headerParams' => [ - [ - 'keyName' => 'config.name', - 'fieldAccessors' => [ - 'getConfig', - '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', - ], - ], - ], - ], - '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', - ], - ], - ], - ], - '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', - ], - 'GetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'SetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'TestIamPermissions' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - '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}', - '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}', - '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 10a53ef62b71..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/src/V1beta1/resources/dataform_rest_client_config.php +++ /dev/null @@ -1,743 +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', - ], - ], - ], - ], - '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', - ], - ], - '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', - ], - ], - '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', - ], - ], - ], - ], - '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', - ], - ], - ], - ], - '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', - ], - ], - ], - ], - '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', - ], - ], - ], - ], - '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', - ], - ], - ], - ], - 'QueryRepositoryDirectoryContents' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/repositories/*}:queryDirectoryContents', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - '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', - ], - ], - ], - ], - 'UpdateConfig' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1beta1/{config.name=projects/*/locations/*/config}', - 'body' => 'config', - 'placeholders' => [ - 'config.name' => [ - 'getters' => [ - 'getConfig', - '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', - ], - ], - ], - ], - '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.iam.v1.IAMPolicy' => [ - 'GetIamPolicy' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{resource=projects/*/locations/*/repositories/*}:getIamPolicy', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:getIamPolicy', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'SetIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta1/{resource=projects/*/locations/*/repositories/*}:setIamPolicy', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1beta1/{resource=projects/*/locations/*/repositories/*/workspaces/*}: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' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - ], - ], - '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 c24a4175f194..000000000000 --- a/owl-bot-staging/Dataform/v1beta1/tests/Unit/V1beta1/Client/DataformClientTest.php +++ /dev/null @@ -1,4368 +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 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'; - $displayName = 'displayName1615086568'; - $npmrcEnvironmentVariablesSecretVersion = 'npmrcEnvironmentVariablesSecretVersion-2118517056'; - $setAuthenticatedUserAdmin = true; - $serviceAccount = 'serviceAccount-1948028253'; - $kmsKeyName = 'kmsKeyName2094986649'; - $internalMetadata = 'internalMetadata-1087755663'; - $expectedResponse = new Repository(); - $expectedResponse->setName($name); - $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 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'; - $expectedResponse = new Workspace(); - $expectedResponse->setName($name); - $expectedResponse->setInternalMetadata($internalMetadata); - $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 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 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'; - $expectedResponse = new Config(); - $expectedResponse->setName($name2); - $expectedResponse->setDefaultKmsKeyName($defaultKmsKeyName); - $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 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'; - $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); - $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 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'; - $expectedResponse = new Workspace(); - $expectedResponse->setName($name2); - $expectedResponse->setInternalMetadata($internalMetadata); - $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 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 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 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 updateConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $defaultKmsKeyName = 'defaultKmsKeyName-635012393'; - $expectedResponse = new Config(); - $expectedResponse->setName($name); - $expectedResponse->setDefaultKmsKeyName($defaultKmsKeyName); - $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 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'; - $displayName = 'displayName1615086568'; - $npmrcEnvironmentVariablesSecretVersion = 'npmrcEnvironmentVariablesSecretVersion-2118517056'; - $setAuthenticatedUserAdmin = true; - $serviceAccount = 'serviceAccount-1948028253'; - $kmsKeyName = 'kmsKeyName2094986649'; - $internalMetadata = 'internalMetadata-1087755663'; - $expectedResponse = new Repository(); - $expectedResponse->setName($name); - $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 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 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 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.iam.v1.IAMPolicy/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 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.iam.v1.IAMPolicy/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.iam.v1.IAMPolicy/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 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()); - } -}