Sample code:
*
@@ -805,24 +811,29 @@ public final UnaryCallable Sample code:
*
@@ -833,25 +844,30 @@ public final FetchRemoteBranchesResponse fetchRemoteBranches(FetchRemoteBranches
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * FetchRemoteBranchesRequest request =
- * FetchRemoteBranchesRequest.newBuilder()
+ * CommitRepositoryChangesRequest request =
+ * CommitRepositoryChangesRequest.newBuilder()
* .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+ * .setCommitMetadata(CommitMetadata.newBuilder().build())
+ * .setRequiredHeadCommitSha("requiredHeadCommitSha-393901930")
+ * .putAllFileOperations(
+ * new HashMap Sample code:
*
@@ -862,28 +878,27 @@ public final FetchRemoteBranchesResponse fetchRemoteBranches(FetchRemoteBranches
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
- * for (Workspace element : dataformClient.listWorkspaces(parent).iterateAll()) {
- * // doThingsWith(element);
- * }
+ * ReadRepositoryFileRequest request =
+ * ReadRepositoryFileRequest.newBuilder()
+ * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+ * .setCommitSha("commitSha-1491174411")
+ * .setPath("path3433509")
+ * .build();
+ * ReadRepositoryFileResponse response = dataformClient.readRepositoryFile(request);
* }
* }
*
- * @param parent Required. The repository in which to list workspaces. Must be in the format
- * `projects/*/locations/*/repositories/*`.
+ * @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ListWorkspacesPagedResponse listWorkspaces(RepositoryName parent) {
- ListWorkspacesRequest request =
- ListWorkspacesRequest.newBuilder()
- .setParent(parent == null ? null : parent.toString())
- .build();
- return listWorkspaces(request);
+ public final ReadRepositoryFileResponse readRepositoryFile(ReadRepositoryFileRequest request) {
+ return readRepositoryFileCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists Workspaces in a given Repository.
+ * Returns the contents of a file (inside a Repository). The Repository must not have a value for
+ * `git_remote_settings.url`.
*
* Sample code:
*
@@ -894,25 +909,28 @@ public final ListWorkspacesPagedResponse listWorkspaces(RepositoryName parent) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString();
- * for (Workspace element : dataformClient.listWorkspaces(parent).iterateAll()) {
- * // doThingsWith(element);
- * }
+ * ReadRepositoryFileRequest request =
+ * ReadRepositoryFileRequest.newBuilder()
+ * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+ * .setCommitSha("commitSha-1491174411")
+ * .setPath("path3433509")
+ * .build();
+ * ApiFuture Sample code:
*
@@ -923,15 +941,16 @@ public final ListWorkspacesPagedResponse listWorkspaces(String parent) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * ListWorkspacesRequest request =
- * ListWorkspacesRequest.newBuilder()
- * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+ * QueryRepositoryDirectoryContentsRequest request =
+ * QueryRepositoryDirectoryContentsRequest.newBuilder()
+ * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+ * .setCommitSha("commitSha-1491174411")
+ * .setPath("path3433509")
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
- * .setOrderBy("orderBy-1207110587")
- * .setFilter("filter-1274492040")
* .build();
- * for (Workspace element : dataformClient.listWorkspaces(request).iterateAll()) {
+ * for (DirectoryEntry element :
+ * dataformClient.queryRepositoryDirectoryContents(request).iterateAll()) {
* // doThingsWith(element);
* }
* }
@@ -940,13 +959,15 @@ public final ListWorkspacesPagedResponse listWorkspaces(String parent) {
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ListWorkspacesPagedResponse listWorkspaces(ListWorkspacesRequest request) {
- return listWorkspacesPagedCallable().call(request);
+ public final QueryRepositoryDirectoryContentsPagedResponse queryRepositoryDirectoryContents(
+ QueryRepositoryDirectoryContentsRequest request) {
+ return queryRepositoryDirectoryContentsPagedCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists Workspaces in a given Repository.
+ * Returns the contents of a given Repository directory. The Repository must not have a value for
+ * `git_remote_settings.url`.
*
* Sample code:
*
@@ -957,31 +978,33 @@ public final ListWorkspacesPagedResponse listWorkspaces(ListWorkspacesRequest re
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * ListWorkspacesRequest request =
- * ListWorkspacesRequest.newBuilder()
- * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+ * QueryRepositoryDirectoryContentsRequest request =
+ * QueryRepositoryDirectoryContentsRequest.newBuilder()
+ * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+ * .setCommitSha("commitSha-1491174411")
+ * .setPath("path3433509")
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
- * .setOrderBy("orderBy-1207110587")
- * .setFilter("filter-1274492040")
* .build();
- * ApiFuture Sample code:
*
@@ -992,17 +1015,18 @@ public final ListWorkspacesPagedResponse listWorkspaces(ListWorkspacesRequest re
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * ListWorkspacesRequest request =
- * ListWorkspacesRequest.newBuilder()
- * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+ * QueryRepositoryDirectoryContentsRequest request =
+ * QueryRepositoryDirectoryContentsRequest.newBuilder()
+ * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+ * .setCommitSha("commitSha-1491174411")
+ * .setPath("path3433509")
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
- * .setOrderBy("orderBy-1207110587")
- * .setFilter("filter-1274492040")
* .build();
* while (true) {
- * ListWorkspacesResponse response = dataformClient.listWorkspacesCallable().call(request);
- * for (Workspace element : response.getWorkspacesList()) {
+ * QueryRepositoryDirectoryContentsResponse response =
+ * dataformClient.queryRepositoryDirectoryContentsCallable().call(request);
+ * for (DirectoryEntry element : response.getDirectoryEntriesList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
@@ -1015,14 +1039,16 @@ public final ListWorkspacesPagedResponse listWorkspaces(ListWorkspacesRequest re
* }
* }
*/
- public final UnaryCallable Sample code:
*
@@ -1033,24 +1059,30 @@ public final ListWorkspacesPagedResponse listWorkspaces(ListWorkspacesRequest re
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * WorkspaceName name =
- * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]");
- * Workspace response = dataformClient.getWorkspace(name);
+ * FetchRepositoryHistoryRequest request =
+ * FetchRepositoryHistoryRequest.newBuilder()
+ * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (CommitLogEntry element : dataformClient.fetchRepositoryHistory(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
* }
* }
*
- * @param name Required. The workspace's name.
+ * @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final Workspace getWorkspace(WorkspaceName name) {
- GetWorkspaceRequest request =
- GetWorkspaceRequest.newBuilder().setName(name == null ? null : name.toString()).build();
- return getWorkspace(request);
+ public final FetchRepositoryHistoryPagedResponse fetchRepositoryHistory(
+ FetchRepositoryHistoryRequest request) {
+ return fetchRepositoryHistoryPagedCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Fetches a single Workspace.
+ * Fetches a Repository's history of commits. The Repository must not have a value for
+ * `git_remote_settings.url`.
*
* Sample code:
*
@@ -1061,23 +1093,30 @@ public final Workspace getWorkspace(WorkspaceName name) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * String name =
- * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]").toString();
- * Workspace response = dataformClient.getWorkspace(name);
+ * FetchRepositoryHistoryRequest request =
+ * FetchRepositoryHistoryRequest.newBuilder()
+ * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture Sample code:
*
@@ -1088,26 +1127,36 @@ public final Workspace getWorkspace(String name) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * GetWorkspaceRequest request =
- * GetWorkspaceRequest.newBuilder()
- * .setName(
- * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
- * .toString())
+ * FetchRepositoryHistoryRequest request =
+ * FetchRepositoryHistoryRequest.newBuilder()
+ * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
* .build();
- * Workspace response = dataformClient.getWorkspace(request);
+ * while (true) {
+ * FetchRepositoryHistoryResponse response =
+ * dataformClient.fetchRepositoryHistoryCallable().call(request);
+ * for (CommitLogEntry element : response.getCommitsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
* }
* }
- *
- * @param request The request object containing all of the parameters for the API call.
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final Workspace getWorkspace(GetWorkspaceRequest request) {
- return getWorkspaceCallable().call(request);
+ public final UnaryCallable Sample code:
*
@@ -1118,25 +1167,26 @@ public final Workspace getWorkspace(GetWorkspaceRequest request) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * GetWorkspaceRequest request =
- * GetWorkspaceRequest.newBuilder()
- * .setName(
- * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
- * .toString())
+ * ComputeRepositoryAccessTokenStatusRequest request =
+ * ComputeRepositoryAccessTokenStatusRequest.newBuilder()
+ * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
* .build();
- * ApiFuture Sample code:
*
@@ -1147,34 +1197,26 @@ public final UnaryCallable Sample code:
*
@@ -1185,33 +1227,24 @@ public final Workspace createWorkspace(
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString();
- * Workspace workspace = Workspace.newBuilder().build();
- * String workspaceId = "workspaceId466560144";
- * Workspace response = dataformClient.createWorkspace(parent, workspace, workspaceId);
+ * FetchRemoteBranchesRequest request =
+ * FetchRemoteBranchesRequest.newBuilder()
+ * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+ * .build();
+ * FetchRemoteBranchesResponse response = dataformClient.fetchRemoteBranches(request);
* }
* }
*
- * @param parent Required. The repository in which to create the workspace. Must be in the format
- * `projects/*/locations/*/repositories/*`.
- * @param workspace Required. The workspace to create.
- * @param workspaceId Required. The ID to use for the workspace, which will become the final
- * component of the workspace's resource name.
+ * @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final Workspace createWorkspace(String parent, Workspace workspace, String workspaceId) {
- CreateWorkspaceRequest request =
- CreateWorkspaceRequest.newBuilder()
- .setParent(parent)
- .setWorkspace(workspace)
- .setWorkspaceId(workspaceId)
- .build();
- return createWorkspace(request);
+ public final FetchRemoteBranchesResponse fetchRemoteBranches(FetchRemoteBranchesRequest request) {
+ return fetchRemoteBranchesCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Creates a new Workspace in a given Repository.
+ * Fetches a Repository's remote branches.
*
* Sample code:
*
@@ -1222,26 +1255,25 @@ public final Workspace createWorkspace(String parent, Workspace workspace, Strin
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * CreateWorkspaceRequest request =
- * CreateWorkspaceRequest.newBuilder()
- * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
- * .setWorkspace(Workspace.newBuilder().build())
- * .setWorkspaceId("workspaceId466560144")
+ * FetchRemoteBranchesRequest request =
+ * FetchRemoteBranchesRequest.newBuilder()
+ * .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
* .build();
- * Workspace response = dataformClient.createWorkspace(request);
+ * ApiFuture Sample code:
*
@@ -1252,25 +1284,28 @@ public final Workspace createWorkspace(CreateWorkspaceRequest request) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * CreateWorkspaceRequest request =
- * CreateWorkspaceRequest.newBuilder()
- * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
- * .setWorkspace(Workspace.newBuilder().build())
- * .setWorkspaceId("workspaceId466560144")
- * .build();
- * ApiFuture Sample code:
*
@@ -1281,24 +1316,25 @@ public final UnaryCallable Sample code:
*
@@ -1309,23 +1345,30 @@ public final void deleteWorkspace(WorkspaceName name) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * String name =
- * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]").toString();
- * dataformClient.deleteWorkspace(name);
+ * ListWorkspacesRequest request =
+ * ListWorkspacesRequest.newBuilder()
+ * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setOrderBy("orderBy-1207110587")
+ * .setFilter("filter-1274492040")
+ * .build();
+ * for (Workspace element : dataformClient.listWorkspaces(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
* }
* }
*
- * @param name Required. The workspace resource's name.
+ * @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final void deleteWorkspace(String name) {
- DeleteWorkspaceRequest request = DeleteWorkspaceRequest.newBuilder().setName(name).build();
- deleteWorkspace(request);
+ public final ListWorkspacesPagedResponse listWorkspaces(ListWorkspacesRequest request) {
+ return listWorkspacesPagedCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Deletes a single Workspace.
+ * Lists Workspaces in a given Repository.
*
* Sample code:
*
@@ -1336,26 +1379,31 @@ public final void deleteWorkspace(String name) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * DeleteWorkspaceRequest request =
- * DeleteWorkspaceRequest.newBuilder()
- * .setName(
- * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
- * .toString())
+ * ListWorkspacesRequest request =
+ * ListWorkspacesRequest.newBuilder()
+ * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setOrderBy("orderBy-1207110587")
+ * .setFilter("filter-1274492040")
* .build();
- * dataformClient.deleteWorkspace(request);
+ * ApiFuture Sample code:
*
@@ -1366,25 +1414,37 @@ public final void deleteWorkspace(DeleteWorkspaceRequest request) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * DeleteWorkspaceRequest request =
- * DeleteWorkspaceRequest.newBuilder()
- * .setName(
- * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
- * .toString())
+ * ListWorkspacesRequest request =
+ * ListWorkspacesRequest.newBuilder()
+ * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setOrderBy("orderBy-1207110587")
+ * .setFilter("filter-1274492040")
* .build();
- * ApiFuture Sample code:
*
@@ -1395,26 +1455,24 @@ public final UnaryCallable Sample code:
*
@@ -1425,27 +1483,23 @@ public final InstallNpmPackagesResponse installNpmPackages(InstallNpmPackagesReq
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * InstallNpmPackagesRequest request =
- * InstallNpmPackagesRequest.newBuilder()
- * .setWorkspace(
- * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
- * .toString())
- * .build();
- * ApiFuture Sample code:
*
@@ -1456,28 +1510,26 @@ public final InstallNpmPackagesResponse installNpmPackages(InstallNpmPackagesReq
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * PullGitCommitsRequest request =
- * PullGitCommitsRequest.newBuilder()
+ * GetWorkspaceRequest request =
+ * GetWorkspaceRequest.newBuilder()
* .setName(
* WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
* .toString())
- * .setRemoteBranch("remoteBranch-533119608")
- * .setAuthor(CommitAuthor.newBuilder().build())
* .build();
- * dataformClient.pullGitCommits(request);
+ * Workspace response = dataformClient.getWorkspace(request);
* }
* }
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final void pullGitCommits(PullGitCommitsRequest request) {
- pullGitCommitsCallable().call(request);
+ public final Workspace getWorkspace(GetWorkspaceRequest request) {
+ return getWorkspaceCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Pulls Git commits from the Repository's remote into a Workspace.
+ * Fetches a single Workspace.
*
* Sample code:
*
@@ -1488,27 +1540,25 @@ public final void pullGitCommits(PullGitCommitsRequest request) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * PullGitCommitsRequest request =
- * PullGitCommitsRequest.newBuilder()
+ * GetWorkspaceRequest request =
+ * GetWorkspaceRequest.newBuilder()
* .setName(
* WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
* .toString())
- * .setRemoteBranch("remoteBranch-533119608")
- * .setAuthor(CommitAuthor.newBuilder().build())
* .build();
- * ApiFuture Sample code:
*
@@ -1519,27 +1569,34 @@ public final UnaryCallable Sample code:
*
@@ -1550,26 +1607,33 @@ public final void pushGitCommits(PushGitCommitsRequest request) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * PushGitCommitsRequest request =
- * PushGitCommitsRequest.newBuilder()
- * .setName(
- * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
- * .toString())
- * .setRemoteBranch("remoteBranch-533119608")
- * .build();
- * ApiFuture Sample code:
*
@@ -1580,27 +1644,26 @@ public final UnaryCallable Sample code:
*
@@ -1611,27 +1674,25 @@ public final FetchFileGitStatusesResponse fetchFileGitStatuses(
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * FetchFileGitStatusesRequest request =
- * FetchFileGitStatusesRequest.newBuilder()
- * .setName(
- * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
- * .toString())
+ * CreateWorkspaceRequest request =
+ * CreateWorkspaceRequest.newBuilder()
+ * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+ * .setWorkspace(Workspace.newBuilder().build())
+ * .setWorkspaceId("workspaceId466560144")
* .build();
- * ApiFuture Sample code:
*
@@ -1642,27 +1703,24 @@ public final FetchFileGitStatusesResponse fetchFileGitStatuses(
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * FetchGitAheadBehindRequest request =
- * FetchGitAheadBehindRequest.newBuilder()
- * .setName(
- * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
- * .toString())
- * .setRemoteBranch("remoteBranch-533119608")
- * .build();
- * FetchGitAheadBehindResponse response = dataformClient.fetchGitAheadBehind(request);
+ * WorkspaceName name =
+ * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]");
+ * dataformClient.deleteWorkspace(name);
* }
* }
*
- * @param request The request object containing all of the parameters for the API call.
+ * @param name Required. The workspace resource's name.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final FetchGitAheadBehindResponse fetchGitAheadBehind(FetchGitAheadBehindRequest request) {
- return fetchGitAheadBehindCallable().call(request);
+ public final void deleteWorkspace(WorkspaceName name) {
+ DeleteWorkspaceRequest request =
+ DeleteWorkspaceRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ deleteWorkspace(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Fetches Git ahead/behind against a remote branch.
+ * Deletes a single Workspace.
*
* Sample code:
*
@@ -1673,28 +1731,23 @@ public final FetchGitAheadBehindResponse fetchGitAheadBehind(FetchGitAheadBehind
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * FetchGitAheadBehindRequest request =
- * FetchGitAheadBehindRequest.newBuilder()
- * .setName(
- * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
- * .toString())
- * .setRemoteBranch("remoteBranch-533119608")
- * .build();
- * ApiFuture Sample code:
*
@@ -1705,29 +1758,26 @@ public final FetchGitAheadBehindResponse fetchGitAheadBehind(FetchGitAheadBehind
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * CommitWorkspaceChangesRequest request =
- * CommitWorkspaceChangesRequest.newBuilder()
+ * DeleteWorkspaceRequest request =
+ * DeleteWorkspaceRequest.newBuilder()
* .setName(
* WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
* .toString())
- * .setAuthor(CommitAuthor.newBuilder().build())
- * .setCommitMessage("commitMessage2039804624")
- * .addAllPaths(new ArrayList Sample code:
*
@@ -1738,29 +1788,25 @@ public final void commitWorkspaceChanges(CommitWorkspaceChangesRequest request)
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * CommitWorkspaceChangesRequest request =
- * CommitWorkspaceChangesRequest.newBuilder()
+ * DeleteWorkspaceRequest request =
+ * DeleteWorkspaceRequest.newBuilder()
* .setName(
* WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
* .toString())
- * .setAuthor(CommitAuthor.newBuilder().build())
- * .setCommitMessage("commitMessage2039804624")
- * .addAllPaths(new ArrayList Sample code:
*
@@ -1771,28 +1817,26 @@ public final void commitWorkspaceChanges(CommitWorkspaceChangesRequest request)
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * ResetWorkspaceChangesRequest request =
- * ResetWorkspaceChangesRequest.newBuilder()
- * .setName(
+ * InstallNpmPackagesRequest request =
+ * InstallNpmPackagesRequest.newBuilder()
+ * .setWorkspace(
* WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
* .toString())
- * .addAllPaths(new ArrayList Sample code:
*
@@ -1803,27 +1847,27 @@ public final void resetWorkspaceChanges(ResetWorkspaceChangesRequest request) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * ResetWorkspaceChangesRequest request =
- * ResetWorkspaceChangesRequest.newBuilder()
- * .setName(
+ * InstallNpmPackagesRequest request =
+ * InstallNpmPackagesRequest.newBuilder()
+ * .setWorkspace(
* WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
* .toString())
- * .addAllPaths(new ArrayList Sample code:
*
@@ -1834,27 +1878,28 @@ public final UnaryCallable Sample code:
*
@@ -1865,27 +1910,27 @@ public final FetchFileDiffResponse fetchFileDiff(FetchFileDiffRequest request) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * FetchFileDiffRequest request =
- * FetchFileDiffRequest.newBuilder()
- * .setWorkspace(
+ * PullGitCommitsRequest request =
+ * PullGitCommitsRequest.newBuilder()
+ * .setName(
* WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
* .toString())
- * .setPath("path3433509")
+ * .setRemoteBranch("remoteBranch-533119608")
+ * .setAuthor(CommitAuthor.newBuilder().build())
* .build();
- * ApiFuture Sample code:
*
@@ -1896,33 +1941,27 @@ public final UnaryCallable Sample code:
*
@@ -1933,32 +1972,26 @@ public final QueryDirectoryContentsPagedResponse queryDirectoryContents(
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * QueryDirectoryContentsRequest request =
- * QueryDirectoryContentsRequest.newBuilder()
- * .setWorkspace(
+ * PushGitCommitsRequest request =
+ * PushGitCommitsRequest.newBuilder()
+ * .setName(
* WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
* .toString())
- * .setPath("path3433509")
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
+ * .setRemoteBranch("remoteBranch-533119608")
* .build();
- * ApiFuture Sample code:
*
@@ -1969,40 +2002,27 @@ public final QueryDirectoryContentsPagedResponse queryDirectoryContents(
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * QueryDirectoryContentsRequest request =
- * QueryDirectoryContentsRequest.newBuilder()
- * .setWorkspace(
+ * FetchFileGitStatusesRequest request =
+ * FetchFileGitStatusesRequest.newBuilder()
+ * .setName(
* WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
* .toString())
- * .setPath("path3433509")
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
* .build();
- * while (true) {
- * QueryDirectoryContentsResponse response =
- * dataformClient.queryDirectoryContentsCallable().call(request);
- * for (QueryDirectoryContentsResponse.DirectoryEntry element :
- * response.getDirectoryEntriesList()) {
- * // doThingsWith(element);
- * }
- * String nextPageToken = response.getNextPageToken();
- * if (!Strings.isNullOrEmpty(nextPageToken)) {
- * request = request.toBuilder().setPageToken(nextPageToken).build();
- * } else {
- * break;
- * }
- * }
+ * FetchFileGitStatusesResponse response = dataformClient.fetchFileGitStatuses(request);
* }
* }
- */
- public final UnaryCallable Sample code:
*
@@ -2013,27 +2033,58 @@ public final QueryDirectoryContentsPagedResponse queryDirectoryContents(
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * MakeDirectoryRequest request =
- * MakeDirectoryRequest.newBuilder()
- * .setWorkspace(
+ * FetchFileGitStatusesRequest request =
+ * FetchFileGitStatusesRequest.newBuilder()
+ * .setName(
* WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
* .toString())
- * .setPath("path3433509")
* .build();
- * MakeDirectoryResponse response = dataformClient.makeDirectory(request);
+ * ApiFuture Sample code:
+ *
+ * Sample code:
*
@@ -2044,27 +2095,28 @@ public final MakeDirectoryResponse makeDirectory(MakeDirectoryRequest request) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * MakeDirectoryRequest request =
- * MakeDirectoryRequest.newBuilder()
- * .setWorkspace(
+ * FetchGitAheadBehindRequest request =
+ * FetchGitAheadBehindRequest.newBuilder()
+ * .setName(
* WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
* .toString())
- * .setPath("path3433509")
+ * .setRemoteBranch("remoteBranch-533119608")
* .build();
- * ApiFuture Sample code:
*
@@ -2075,27 +2127,29 @@ public final UnaryCallable Sample code:
*
@@ -2106,26 +2160,29 @@ public final void removeDirectory(RemoveDirectoryRequest request) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * RemoveDirectoryRequest request =
- * RemoveDirectoryRequest.newBuilder()
- * .setWorkspace(
+ * CommitWorkspaceChangesRequest request =
+ * CommitWorkspaceChangesRequest.newBuilder()
+ * .setName(
* WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
* .toString())
- * .setPath("path3433509")
+ * .setAuthor(CommitAuthor.newBuilder().build())
+ * .setCommitMessage("commitMessage2039804624")
+ * .addAllPaths(new ArrayList Sample code:
*
@@ -2136,28 +2193,28 @@ public final UnaryCallable Sample code:
*
@@ -2168,28 +2225,27 @@ public final MoveDirectoryResponse moveDirectory(MoveDirectoryRequest request) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * MoveDirectoryRequest request =
- * MoveDirectoryRequest.newBuilder()
- * .setWorkspace(
+ * ResetWorkspaceChangesRequest request =
+ * ResetWorkspaceChangesRequest.newBuilder()
+ * .setName(
* WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
* .toString())
- * .setPath("path3433509")
- * .setNewPath("newPath1845080549")
+ * .addAllPaths(new ArrayList Sample code:
*
@@ -2200,27 +2256,27 @@ public final UnaryCallable Sample code:
*
@@ -2231,26 +2287,27 @@ public final ReadFileResponse readFile(ReadFileRequest request) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * ReadFileRequest request =
- * ReadFileRequest.newBuilder()
+ * FetchFileDiffRequest request =
+ * FetchFileDiffRequest.newBuilder()
* .setWorkspace(
* WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
* .toString())
* .setPath("path3433509")
* .build();
- * ApiFuture Sample code:
*
@@ -2261,27 +2318,32 @@ public final UnaryCallable Sample code:
*
@@ -2292,26 +2354,32 @@ public final void removeFile(RemoveFileRequest request) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * RemoveFileRequest request =
- * RemoveFileRequest.newBuilder()
+ * QueryDirectoryContentsRequest request =
+ * QueryDirectoryContentsRequest.newBuilder()
* .setWorkspace(
* WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
* .toString())
* .setPath("path3433509")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
* .build();
- * ApiFuture Sample code:
*
@@ -2322,28 +2390,39 @@ public final UnaryCallable Sample code:
*
@@ -2354,27 +2433,27 @@ public final MoveFileResponse moveFile(MoveFileRequest request) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * MoveFileRequest request =
- * MoveFileRequest.newBuilder()
+ * MakeDirectoryRequest request =
+ * MakeDirectoryRequest.newBuilder()
* .setWorkspace(
* WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
* .toString())
* .setPath("path3433509")
- * .setNewPath("newPath1845080549")
* .build();
- * ApiFuture Sample code:
*
@@ -2385,28 +2464,1536 @@ public final UnaryCallable Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
*
@@ -2417,27 +4004,41 @@ public final WriteFileResponse writeFile(WriteFileRequest request) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * WriteFileRequest request =
- * WriteFileRequest.newBuilder()
- * .setWorkspace(
- * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
+ * QueryCompilationResultActionsRequest request =
+ * QueryCompilationResultActionsRequest.newBuilder()
+ * .setName(
+ * CompilationResultName.of(
+ * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]")
* .toString())
- * .setPath("path3433509")
- * .setContents(ByteString.EMPTY)
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
* .build();
- * ApiFuture Sample code:
*
@@ -2449,27 +4050,27 @@ public final UnaryCallable Sample code:
*
@@ -2481,25 +4082,25 @@ public final ListCompilationResultsPagedResponse listCompilationResults(Reposito
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
* String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString();
- * for (CompilationResult element : dataformClient.listCompilationResults(parent).iterateAll()) {
+ * for (WorkflowConfig element : dataformClient.listWorkflowConfigs(parent).iterateAll()) {
* // doThingsWith(element);
* }
* }
* }
*
- * @param parent Required. The repository in which to list compilation results. Must be in the
- * format `projects/*/locations/*/repositories/*`.
+ * @param parent Required. The repository in which to list workflow configs. Must be in the format
+ * `projects/*/locations/*/repositories/*`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ListCompilationResultsPagedResponse listCompilationResults(String parent) {
- ListCompilationResultsRequest request =
- ListCompilationResultsRequest.newBuilder().setParent(parent).build();
- return listCompilationResults(request);
+ public final ListWorkflowConfigsPagedResponse listWorkflowConfigs(String parent) {
+ ListWorkflowConfigsRequest request =
+ ListWorkflowConfigsRequest.newBuilder().setParent(parent).build();
+ return listWorkflowConfigs(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists CompilationResults in a given Repository.
+ * Lists WorkflowConfigs in a given Repository.
*
* Sample code:
*
@@ -2510,14 +4111,13 @@ public final ListCompilationResultsPagedResponse listCompilationResults(String p
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * ListCompilationResultsRequest request =
- * ListCompilationResultsRequest.newBuilder()
+ * ListWorkflowConfigsRequest request =
+ * ListWorkflowConfigsRequest.newBuilder()
* .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .build();
- * for (CompilationResult element :
- * dataformClient.listCompilationResults(request).iterateAll()) {
+ * for (WorkflowConfig element : dataformClient.listWorkflowConfigs(request).iterateAll()) {
* // doThingsWith(element);
* }
* }
@@ -2526,14 +4126,14 @@ public final ListCompilationResultsPagedResponse listCompilationResults(String p
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ListCompilationResultsPagedResponse listCompilationResults(
- ListCompilationResultsRequest request) {
- return listCompilationResultsPagedCallable().call(request);
+ public final ListWorkflowConfigsPagedResponse listWorkflowConfigs(
+ ListWorkflowConfigsRequest request) {
+ return listWorkflowConfigsPagedCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists CompilationResults in a given Repository.
+ * Lists WorkflowConfigs in a given Repository.
*
* Sample code:
*
@@ -2544,29 +4144,29 @@ public final ListCompilationResultsPagedResponse listCompilationResults(
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * ListCompilationResultsRequest request =
- * ListCompilationResultsRequest.newBuilder()
+ * ListWorkflowConfigsRequest request =
+ * ListWorkflowConfigsRequest.newBuilder()
* .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .build();
- * ApiFuture Sample code:
*
@@ -2577,16 +4177,16 @@ public final ListCompilationResultsPagedResponse listCompilationResults(
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * ListCompilationResultsRequest request =
- * ListCompilationResultsRequest.newBuilder()
+ * ListWorkflowConfigsRequest request =
+ * ListWorkflowConfigsRequest.newBuilder()
* .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .build();
* while (true) {
- * ListCompilationResultsResponse response =
- * dataformClient.listCompilationResultsCallable().call(request);
- * for (CompilationResult element : response.getCompilationResultsList()) {
+ * ListWorkflowConfigsResponse response =
+ * dataformClient.listWorkflowConfigsCallable().call(request);
+ * for (WorkflowConfig element : response.getWorkflowConfigsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
@@ -2599,14 +4199,14 @@ public final ListCompilationResultsPagedResponse listCompilationResults(
* }
* }
*/
- public final UnaryCallable Sample code:
*
@@ -2617,27 +4217,26 @@ public final ListCompilationResultsPagedResponse listCompilationResults(
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * CompilationResultName name =
- * CompilationResultName.of(
- * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]");
- * CompilationResult response = dataformClient.getCompilationResult(name);
+ * WorkflowConfigName name =
+ * WorkflowConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]");
+ * WorkflowConfig response = dataformClient.getWorkflowConfig(name);
* }
* }
*
- * @param name Required. The compilation result's name.
+ * @param name Required. The workflow config's name.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final CompilationResult getCompilationResult(CompilationResultName name) {
- GetCompilationResultRequest request =
- GetCompilationResultRequest.newBuilder()
+ public final WorkflowConfig getWorkflowConfig(WorkflowConfigName name) {
+ GetWorkflowConfigRequest request =
+ GetWorkflowConfigRequest.newBuilder()
.setName(name == null ? null : name.toString())
.build();
- return getCompilationResult(request);
+ return getWorkflowConfig(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Fetches a single CompilationResult.
+ * Fetches a single WorkflowConfig.
*
* Sample code:
*
@@ -2649,25 +4248,23 @@ public final CompilationResult getCompilationResult(CompilationResultName name)
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
* String name =
- * CompilationResultName.of(
- * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]")
+ * WorkflowConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]")
* .toString();
- * CompilationResult response = dataformClient.getCompilationResult(name);
+ * WorkflowConfig response = dataformClient.getWorkflowConfig(name);
* }
* }
*
- * @param name Required. The compilation result's name.
+ * @param name Required. The workflow config's name.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final CompilationResult getCompilationResult(String name) {
- GetCompilationResultRequest request =
- GetCompilationResultRequest.newBuilder().setName(name).build();
- return getCompilationResult(request);
+ public final WorkflowConfig getWorkflowConfig(String name) {
+ GetWorkflowConfigRequest request = GetWorkflowConfigRequest.newBuilder().setName(name).build();
+ return getWorkflowConfig(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Fetches a single CompilationResult.
+ * Fetches a single WorkflowConfig.
*
* Sample code:
*
@@ -2678,27 +4275,27 @@ public final CompilationResult getCompilationResult(String name) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * GetCompilationResultRequest request =
- * GetCompilationResultRequest.newBuilder()
+ * GetWorkflowConfigRequest request =
+ * GetWorkflowConfigRequest.newBuilder()
* .setName(
- * CompilationResultName.of(
- * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]")
+ * WorkflowConfigName.of(
+ * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]")
* .toString())
* .build();
- * CompilationResult response = dataformClient.getCompilationResult(request);
+ * WorkflowConfig response = dataformClient.getWorkflowConfig(request);
* }
* }
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final CompilationResult getCompilationResult(GetCompilationResultRequest request) {
- return getCompilationResultCallable().call(request);
+ public final WorkflowConfig getWorkflowConfig(GetWorkflowConfigRequest request) {
+ return getWorkflowConfigCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Fetches a single CompilationResult.
+ * Fetches a single WorkflowConfig.
*
* Sample code:
*
@@ -2709,28 +4306,27 @@ public final CompilationResult getCompilationResult(GetCompilationResultRequest
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * GetCompilationResultRequest request =
- * GetCompilationResultRequest.newBuilder()
+ * GetWorkflowConfigRequest request =
+ * GetWorkflowConfigRequest.newBuilder()
* .setName(
- * CompilationResultName.of(
- * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]")
+ * WorkflowConfigName.of(
+ * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]")
* .toString())
* .build();
- * ApiFuture Sample code:
*
@@ -2742,30 +4338,34 @@ public final CompilationResult getCompilationResult(GetCompilationResultRequest
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
* RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
- * CompilationResult compilationResult = CompilationResult.newBuilder().build();
- * CompilationResult response =
- * dataformClient.createCompilationResult(parent, compilationResult);
+ * WorkflowConfig workflowConfig = WorkflowConfig.newBuilder().build();
+ * String workflowConfigId = "workflowConfigId-1331048228";
+ * WorkflowConfig response =
+ * dataformClient.createWorkflowConfig(parent, workflowConfig, workflowConfigId);
* }
* }
*
- * @param parent Required. The repository in which to create the compilation result. Must be in
- * the format `projects/*/locations/*/repositories/*`.
- * @param compilationResult Required. The compilation result to create.
+ * @param parent Required. The repository in which to create the workflow config. Must be in the
+ * format `projects/*/locations/*/repositories/*`.
+ * @param workflowConfig Required. The workflow config to create.
+ * @param workflowConfigId Required. The ID to use for the workflow config, which will become the
+ * final component of the workflow config's resource name.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final CompilationResult createCompilationResult(
- RepositoryName parent, CompilationResult compilationResult) {
- CreateCompilationResultRequest request =
- CreateCompilationResultRequest.newBuilder()
+ public final WorkflowConfig createWorkflowConfig(
+ RepositoryName parent, WorkflowConfig workflowConfig, String workflowConfigId) {
+ CreateWorkflowConfigRequest request =
+ CreateWorkflowConfigRequest.newBuilder()
.setParent(parent == null ? null : parent.toString())
- .setCompilationResult(compilationResult)
+ .setWorkflowConfig(workflowConfig)
+ .setWorkflowConfigId(workflowConfigId)
.build();
- return createCompilationResult(request);
+ return createWorkflowConfig(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Creates a new CompilationResult in a given project and location.
+ * Creates a new WorkflowConfig in a given Repository.
*
* Sample code:
*
@@ -2777,30 +4377,158 @@ public final CompilationResult createCompilationResult(
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
* String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString();
- * CompilationResult compilationResult = CompilationResult.newBuilder().build();
- * CompilationResult response =
- * dataformClient.createCompilationResult(parent, compilationResult);
+ * WorkflowConfig workflowConfig = WorkflowConfig.newBuilder().build();
+ * String workflowConfigId = "workflowConfigId-1331048228";
+ * WorkflowConfig response =
+ * dataformClient.createWorkflowConfig(parent, workflowConfig, workflowConfigId);
* }
* }
*
- * @param parent Required. The repository in which to create the compilation result. Must be in
- * the format `projects/*/locations/*/repositories/*`.
- * @param compilationResult Required. The compilation result to create.
+ * @param parent Required. The repository in which to create the workflow config. Must be in the
+ * format `projects/*/locations/*/repositories/*`.
+ * @param workflowConfig Required. The workflow config to create.
+ * @param workflowConfigId Required. The ID to use for the workflow config, which will become the
+ * final component of the workflow config's resource name.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final CompilationResult createCompilationResult(
- String parent, CompilationResult compilationResult) {
- CreateCompilationResultRequest request =
- CreateCompilationResultRequest.newBuilder()
+ public final WorkflowConfig createWorkflowConfig(
+ String parent, WorkflowConfig workflowConfig, String workflowConfigId) {
+ CreateWorkflowConfigRequest request =
+ CreateWorkflowConfigRequest.newBuilder()
.setParent(parent)
- .setCompilationResult(compilationResult)
+ .setWorkflowConfig(workflowConfig)
+ .setWorkflowConfigId(workflowConfigId)
.build();
- return createCompilationResult(request);
+ return createWorkflowConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new WorkflowConfig in a given Repository.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
*
@@ -2811,25 +4539,26 @@ public final CompilationResult createCompilationResult(
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * CreateCompilationResultRequest request =
- * CreateCompilationResultRequest.newBuilder()
- * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
- * .setCompilationResult(CompilationResult.newBuilder().build())
+ * UpdateWorkflowConfigRequest request =
+ * UpdateWorkflowConfigRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setWorkflowConfig(WorkflowConfig.newBuilder().build())
* .build();
- * CompilationResult response = dataformClient.createCompilationResult(request);
+ * ApiFuture Sample code:
*
@@ -2840,26 +4569,26 @@ public final CompilationResult createCompilationResult(CreateCompilationResultRe
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * CreateCompilationResultRequest request =
- * CreateCompilationResultRequest.newBuilder()
- * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
- * .setCompilationResult(CompilationResult.newBuilder().build())
- * .build();
- * ApiFuture Sample code:
*
@@ -2870,34 +4599,25 @@ public final CompilationResult createCompilationResult(CreateCompilationResultRe
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * QueryCompilationResultActionsRequest request =
- * QueryCompilationResultActionsRequest.newBuilder()
- * .setName(
- * CompilationResultName.of(
- * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]")
- * .toString())
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
- * .setFilter("filter-1274492040")
- * .build();
- * for (CompilationResultAction element :
- * dataformClient.queryCompilationResultActions(request).iterateAll()) {
- * // doThingsWith(element);
- * }
+ * String name =
+ * WorkflowConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]")
+ * .toString();
+ * dataformClient.deleteWorkflowConfig(name);
* }
* }
*
- * @param request The request object containing all of the parameters for the API call.
+ * @param name Required. The workflow config's name.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final QueryCompilationResultActionsPagedResponse queryCompilationResultActions(
- QueryCompilationResultActionsRequest request) {
- return queryCompilationResultActionsPagedCallable().call(request);
+ public final void deleteWorkflowConfig(String name) {
+ DeleteWorkflowConfigRequest request =
+ DeleteWorkflowConfigRequest.newBuilder().setName(name).build();
+ deleteWorkflowConfig(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Returns CompilationResultActions in a given CompilationResult.
+ * Deletes a single WorkflowConfig.
*
* Sample code:
*
@@ -2908,34 +4628,27 @@ public final QueryCompilationResultActionsPagedResponse queryCompilationResultAc
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * QueryCompilationResultActionsRequest request =
- * QueryCompilationResultActionsRequest.newBuilder()
+ * DeleteWorkflowConfigRequest request =
+ * DeleteWorkflowConfigRequest.newBuilder()
* .setName(
- * CompilationResultName.of(
- * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]")
+ * WorkflowConfigName.of(
+ * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]")
* .toString())
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
- * .setFilter("filter-1274492040")
* .build();
- * ApiFuture Sample code:
*
@@ -2946,36 +4659,21 @@ public final QueryCompilationResultActionsPagedResponse queryCompilationResultAc
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * QueryCompilationResultActionsRequest request =
- * QueryCompilationResultActionsRequest.newBuilder()
+ * DeleteWorkflowConfigRequest request =
+ * DeleteWorkflowConfigRequest.newBuilder()
* .setName(
- * CompilationResultName.of(
- * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]")
+ * WorkflowConfigName.of(
+ * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKFLOW_CONFIG]")
* .toString())
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
- * .setFilter("filter-1274492040")
* .build();
- * while (true) {
- * QueryCompilationResultActionsResponse response =
- * dataformClient.queryCompilationResultActionsCallable().call(request);
- * for (CompilationResultAction element : response.getCompilationResultActionsList()) {
- * // doThingsWith(element);
- * }
- * String nextPageToken = response.getNextPageToken();
- * if (!Strings.isNullOrEmpty(nextPageToken)) {
- * request = request.toBuilder().setPageToken(nextPageToken).build();
- * } else {
- * break;
- * }
- * }
+ * ApiFuture Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.
*
* Sample code:
*
@@ -3721,29 +5581,28 @@ public final QueryWorkflowInvocationActionsPagedResponse queryWorkflowInvocation
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * ListLocationsRequest request =
- * ListLocationsRequest.newBuilder()
- * .setName("name3373707")
- * .setFilter("filter-1274492040")
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
+ * SetIamPolicyRequest request =
+ * SetIamPolicyRequest.newBuilder()
+ * .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+ * .setPolicy(Policy.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
* .build();
- * for (Location element : dataformClient.listLocations(request).iterateAll()) {
- * // doThingsWith(element);
- * }
+ * Policy response = dataformClient.setIamPolicy(request);
* }
* }
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) {
- return listLocationsPagedCallable().call(request);
+ public final Policy setIamPolicy(SetIamPolicyRequest request) {
+ return setIamPolicyCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists information about the supported locations for this service.
+ * Sets the access control policy on the specified resource. Replacesany existing policy.
+ *
+ * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.
*
* Sample code:
*
@@ -3754,29 +5613,26 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * ListLocationsRequest request =
- * ListLocationsRequest.newBuilder()
- * .setName("name3373707")
- * .setFilter("filter-1274492040")
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
+ * SetIamPolicyRequest request =
+ * SetIamPolicyRequest.newBuilder()
+ * .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+ * .setPolicy(Policy.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
* .build();
- * ApiFuture Sample code:
*
@@ -3787,35 +5643,26 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * ListLocationsRequest request =
- * ListLocationsRequest.newBuilder()
- * .setName("name3373707")
- * .setFilter("filter-1274492040")
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
+ * GetIamPolicyRequest request =
+ * GetIamPolicyRequest.newBuilder()
+ * .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+ * .setOptions(GetPolicyOptions.newBuilder().build())
* .build();
- * while (true) {
- * ListLocationsResponse response = dataformClient.listLocationsCallable().call(request);
- * for (Location element : response.getLocationsList()) {
- * // doThingsWith(element);
- * }
- * String nextPageToken = response.getNextPageToken();
- * if (!Strings.isNullOrEmpty(nextPageToken)) {
- * request = request.toBuilder().setPageToken(nextPageToken).build();
- * } else {
- * break;
- * }
- * }
+ * Policy response = dataformClient.getIamPolicy(request);
* }
* }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final UnaryCallable Sample code:
*
@@ -3826,21 +5673,63 @@ public final UnaryCallable Note: This operation is designed to be used for buildingpermission-aware UIs and
+ * command-line tools, not for authorizationchecking. This operation may "fail open" without
+ * warning.
+ *
+ * Sample code:
+ *
+ * Note: This operation is designed to be used for buildingpermission-aware UIs and
+ * command-line tools, not for authorizationchecking. This operation may "fail open" without
+ * warning.
*
* Sample code:
*
@@ -3851,15 +5740,21 @@ public final Location getLocation(GetLocationRequest request) {
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DataformClient dataformClient = DataformClient.create()) {
- * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
- * ApiFuture{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * FetchGitAheadBehindRequest request =
+ * FetchGitAheadBehindRequest.newBuilder()
+ * .setName(
+ * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
+ * .toString())
+ * .setRemoteBranch("remoteBranch-533119608")
+ * .build();
+ * FetchGitAheadBehindResponse response = dataformClient.fetchGitAheadBehind(request);
* }
* }
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final MakeDirectoryResponse makeDirectory(MakeDirectoryRequest request) {
- return makeDirectoryCallable().call(request);
+ public final FetchGitAheadBehindResponse fetchGitAheadBehind(FetchGitAheadBehindRequest request) {
+ return fetchGitAheadBehindCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Creates a directory inside a Workspace.
+ * Fetches Git ahead/behind against a remote branch.
*
* {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * RemoveDirectoryRequest request =
+ * RemoveDirectoryRequest.newBuilder()
+ * .setWorkspace(
+ * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
+ * .toString())
+ * .setPath("path3433509")
+ * .build();
+ * dataformClient.removeDirectory(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void removeDirectory(RemoveDirectoryRequest request) {
+ removeDirectoryCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a directory (inside a Workspace) and all of its contents.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * RemoveDirectoryRequest request =
+ * RemoveDirectoryRequest.newBuilder()
+ * .setWorkspace(
+ * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
+ * .toString())
+ * .setPath("path3433509")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * MoveDirectoryRequest request =
+ * MoveDirectoryRequest.newBuilder()
+ * .setWorkspace(
+ * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
+ * .toString())
+ * .setPath("path3433509")
+ * .setNewPath("newPath1845080549")
+ * .build();
+ * MoveDirectoryResponse response = dataformClient.moveDirectory(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final MoveDirectoryResponse moveDirectory(MoveDirectoryRequest request) {
+ return moveDirectoryCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Moves a directory (inside a Workspace), and all of its contents, to a new location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * MoveDirectoryRequest request =
+ * MoveDirectoryRequest.newBuilder()
+ * .setWorkspace(
+ * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
+ * .toString())
+ * .setPath("path3433509")
+ * .setNewPath("newPath1845080549")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * ReadFileRequest request =
+ * ReadFileRequest.newBuilder()
+ * .setWorkspace(
+ * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
+ * .toString())
+ * .setPath("path3433509")
+ * .build();
+ * ReadFileResponse response = dataformClient.readFile(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ReadFileResponse readFile(ReadFileRequest request) {
+ return readFileCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the contents of a file (inside a Workspace).
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * ReadFileRequest request =
+ * ReadFileRequest.newBuilder()
+ * .setWorkspace(
+ * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
+ * .toString())
+ * .setPath("path3433509")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * RemoveFileRequest request =
+ * RemoveFileRequest.newBuilder()
* .setWorkspace(
* WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
* .toString())
- * .setPath("path3433509")
- * .setContents(ByteString.EMPTY)
+ * .setPath("path3433509")
+ * .build();
+ * dataformClient.removeFile(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void removeFile(RemoveFileRequest request) {
+ removeFileCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a file (inside a Workspace).
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * RemoveFileRequest request =
+ * RemoveFileRequest.newBuilder()
+ * .setWorkspace(
+ * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
+ * .toString())
+ * .setPath("path3433509")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * MoveFileRequest request =
+ * MoveFileRequest.newBuilder()
+ * .setWorkspace(
+ * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
+ * .toString())
+ * .setPath("path3433509")
+ * .setNewPath("newPath1845080549")
+ * .build();
+ * MoveFileResponse response = dataformClient.moveFile(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final MoveFileResponse moveFile(MoveFileRequest request) {
+ return moveFileCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Moves a file (inside a Workspace) to a new location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * MoveFileRequest request =
+ * MoveFileRequest.newBuilder()
+ * .setWorkspace(
+ * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
+ * .toString())
+ * .setPath("path3433509")
+ * .setNewPath("newPath1845080549")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * WriteFileRequest request =
+ * WriteFileRequest.newBuilder()
+ * .setWorkspace(
+ * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
+ * .toString())
+ * .setPath("path3433509")
+ * .setContents(ByteString.EMPTY)
+ * .build();
+ * WriteFileResponse response = dataformClient.writeFile(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final WriteFileResponse writeFile(WriteFileRequest request) {
+ return writeFileCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Writes to a file (inside a Workspace).
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * WriteFileRequest request =
+ * WriteFileRequest.newBuilder()
+ * .setWorkspace(
+ * WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]")
+ * .toString())
+ * .setPath("path3433509")
+ * .setContents(ByteString.EMPTY)
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
+ * for (ReleaseConfig element : dataformClient.listReleaseConfigs(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The repository in which to list release configs. Must be in the format
+ * `projects/*/locations/*/repositories/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListReleaseConfigsPagedResponse listReleaseConfigs(RepositoryName parent) {
+ ListReleaseConfigsRequest request =
+ ListReleaseConfigsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listReleaseConfigs(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists ReleaseConfigs in a given Repository.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString();
+ * for (ReleaseConfig element : dataformClient.listReleaseConfigs(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The repository in which to list release configs. Must be in the format
+ * `projects/*/locations/*/repositories/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListReleaseConfigsPagedResponse listReleaseConfigs(String parent) {
+ ListReleaseConfigsRequest request =
+ ListReleaseConfigsRequest.newBuilder().setParent(parent).build();
+ return listReleaseConfigs(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists ReleaseConfigs in a given Repository.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * ListReleaseConfigsRequest request =
+ * ListReleaseConfigsRequest.newBuilder()
+ * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (ReleaseConfig element : dataformClient.listReleaseConfigs(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListReleaseConfigsPagedResponse listReleaseConfigs(
+ ListReleaseConfigsRequest request) {
+ return listReleaseConfigsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists ReleaseConfigs in a given Repository.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * ListReleaseConfigsRequest request =
+ * ListReleaseConfigsRequest.newBuilder()
+ * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * ListReleaseConfigsRequest request =
+ * ListReleaseConfigsRequest.newBuilder()
+ * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListReleaseConfigsResponse response =
+ * dataformClient.listReleaseConfigsCallable().call(request);
+ * for (ReleaseConfig element : response.getReleaseConfigsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * ReleaseConfigName name =
+ * ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]");
+ * ReleaseConfig response = dataformClient.getReleaseConfig(name);
+ * }
+ * }
+ *
+ * @param name Required. The release config's name.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ReleaseConfig getReleaseConfig(ReleaseConfigName name) {
+ GetReleaseConfigRequest request =
+ GetReleaseConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getReleaseConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Fetches a single ReleaseConfig.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * String name =
+ * ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]")
+ * .toString();
+ * ReleaseConfig response = dataformClient.getReleaseConfig(name);
+ * }
+ * }
+ *
+ * @param name Required. The release config's name.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ReleaseConfig getReleaseConfig(String name) {
+ GetReleaseConfigRequest request = GetReleaseConfigRequest.newBuilder().setName(name).build();
+ return getReleaseConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Fetches a single ReleaseConfig.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * GetReleaseConfigRequest request =
+ * GetReleaseConfigRequest.newBuilder()
+ * .setName(
+ * ReleaseConfigName.of(
+ * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]")
+ * .toString())
+ * .build();
+ * ReleaseConfig response = dataformClient.getReleaseConfig(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ReleaseConfig getReleaseConfig(GetReleaseConfigRequest request) {
+ return getReleaseConfigCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Fetches a single ReleaseConfig.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * GetReleaseConfigRequest request =
+ * GetReleaseConfigRequest.newBuilder()
+ * .setName(
+ * ReleaseConfigName.of(
+ * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]")
+ * .toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
+ * ReleaseConfig releaseConfig = ReleaseConfig.newBuilder().build();
+ * String releaseConfigId = "releaseConfigId1350457636";
+ * ReleaseConfig response =
+ * dataformClient.createReleaseConfig(parent, releaseConfig, releaseConfigId);
+ * }
+ * }
+ *
+ * @param parent Required. The repository in which to create the release config. Must be in the
+ * format `projects/*/locations/*/repositories/*`.
+ * @param releaseConfig Required. The release config to create.
+ * @param releaseConfigId Required. The ID to use for the release config, which will become the
+ * final component of the release config's resource name.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ReleaseConfig createReleaseConfig(
+ RepositoryName parent, ReleaseConfig releaseConfig, String releaseConfigId) {
+ CreateReleaseConfigRequest request =
+ CreateReleaseConfigRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setReleaseConfig(releaseConfig)
+ .setReleaseConfigId(releaseConfigId)
+ .build();
+ return createReleaseConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new ReleaseConfig in a given Repository.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString();
+ * ReleaseConfig releaseConfig = ReleaseConfig.newBuilder().build();
+ * String releaseConfigId = "releaseConfigId1350457636";
+ * ReleaseConfig response =
+ * dataformClient.createReleaseConfig(parent, releaseConfig, releaseConfigId);
+ * }
+ * }
+ *
+ * @param parent Required. The repository in which to create the release config. Must be in the
+ * format `projects/*/locations/*/repositories/*`.
+ * @param releaseConfig Required. The release config to create.
+ * @param releaseConfigId Required. The ID to use for the release config, which will become the
+ * final component of the release config's resource name.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ReleaseConfig createReleaseConfig(
+ String parent, ReleaseConfig releaseConfig, String releaseConfigId) {
+ CreateReleaseConfigRequest request =
+ CreateReleaseConfigRequest.newBuilder()
+ .setParent(parent)
+ .setReleaseConfig(releaseConfig)
+ .setReleaseConfigId(releaseConfigId)
+ .build();
+ return createReleaseConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new ReleaseConfig in a given Repository.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * CreateReleaseConfigRequest request =
+ * CreateReleaseConfigRequest.newBuilder()
+ * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+ * .setReleaseConfig(ReleaseConfig.newBuilder().build())
+ * .setReleaseConfigId("releaseConfigId1350457636")
+ * .build();
+ * ReleaseConfig response = dataformClient.createReleaseConfig(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ReleaseConfig createReleaseConfig(CreateReleaseConfigRequest request) {
+ return createReleaseConfigCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new ReleaseConfig in a given Repository.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * CreateReleaseConfigRequest request =
+ * CreateReleaseConfigRequest.newBuilder()
+ * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+ * .setReleaseConfig(ReleaseConfig.newBuilder().build())
+ * .setReleaseConfigId("releaseConfigId1350457636")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * ReleaseConfig releaseConfig = ReleaseConfig.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * ReleaseConfig response = dataformClient.updateReleaseConfig(releaseConfig, updateMask);
+ * }
+ * }
+ *
+ * @param releaseConfig Required. The release config to update.
+ * @param updateMask Optional. Specifies the fields to be updated in the release config. If left
+ * unset, all fields will be updated.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ReleaseConfig updateReleaseConfig(
+ ReleaseConfig releaseConfig, FieldMask updateMask) {
+ UpdateReleaseConfigRequest request =
+ UpdateReleaseConfigRequest.newBuilder()
+ .setReleaseConfig(releaseConfig)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateReleaseConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a single ReleaseConfig.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * UpdateReleaseConfigRequest request =
+ * UpdateReleaseConfigRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setReleaseConfig(ReleaseConfig.newBuilder().build())
+ * .build();
+ * ReleaseConfig response = dataformClient.updateReleaseConfig(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ReleaseConfig updateReleaseConfig(UpdateReleaseConfigRequest request) {
+ return updateReleaseConfigCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a single ReleaseConfig.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * UpdateReleaseConfigRequest request =
+ * UpdateReleaseConfigRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setReleaseConfig(ReleaseConfig.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * ReleaseConfigName name =
+ * ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]");
+ * dataformClient.deleteReleaseConfig(name);
+ * }
+ * }
+ *
+ * @param name Required. The release config's name.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteReleaseConfig(ReleaseConfigName name) {
+ DeleteReleaseConfigRequest request =
+ DeleteReleaseConfigRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ deleteReleaseConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single ReleaseConfig.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * String name =
+ * ReleaseConfigName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]")
+ * .toString();
+ * dataformClient.deleteReleaseConfig(name);
+ * }
+ * }
+ *
+ * @param name Required. The release config's name.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteReleaseConfig(String name) {
+ DeleteReleaseConfigRequest request =
+ DeleteReleaseConfigRequest.newBuilder().setName(name).build();
+ deleteReleaseConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single ReleaseConfig.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * DeleteReleaseConfigRequest request =
+ * DeleteReleaseConfigRequest.newBuilder()
+ * .setName(
+ * ReleaseConfigName.of(
+ * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]")
+ * .toString())
+ * .build();
+ * dataformClient.deleteReleaseConfig(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteReleaseConfig(DeleteReleaseConfigRequest request) {
+ deleteReleaseConfigCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a single ReleaseConfig.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * DeleteReleaseConfigRequest request =
+ * DeleteReleaseConfigRequest.newBuilder()
+ * .setName(
+ * ReleaseConfigName.of(
+ * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RELEASE_CONFIG]")
+ * .toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
+ * for (CompilationResult element : dataformClient.listCompilationResults(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The repository in which to list compilation results. Must be in the
+ * format `projects/*/locations/*/repositories/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListCompilationResultsPagedResponse listCompilationResults(RepositoryName parent) {
+ ListCompilationResultsRequest request =
+ ListCompilationResultsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listCompilationResults(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists CompilationResults in a given Repository.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString();
+ * for (CompilationResult element : dataformClient.listCompilationResults(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The repository in which to list compilation results. Must be in the
+ * format `projects/*/locations/*/repositories/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListCompilationResultsPagedResponse listCompilationResults(String parent) {
+ ListCompilationResultsRequest request =
+ ListCompilationResultsRequest.newBuilder().setParent(parent).build();
+ return listCompilationResults(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists CompilationResults in a given Repository.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * ListCompilationResultsRequest request =
+ * ListCompilationResultsRequest.newBuilder()
+ * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (CompilationResult element :
+ * dataformClient.listCompilationResults(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListCompilationResultsPagedResponse listCompilationResults(
+ ListCompilationResultsRequest request) {
+ return listCompilationResultsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists CompilationResults in a given Repository.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * ListCompilationResultsRequest request =
+ * ListCompilationResultsRequest.newBuilder()
+ * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * ListCompilationResultsRequest request =
+ * ListCompilationResultsRequest.newBuilder()
+ * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListCompilationResultsResponse response =
+ * dataformClient.listCompilationResultsCallable().call(request);
+ * for (CompilationResult element : response.getCompilationResultsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * CompilationResultName name =
+ * CompilationResultName.of(
+ * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]");
+ * CompilationResult response = dataformClient.getCompilationResult(name);
+ * }
+ * }
+ *
+ * @param name Required. The compilation result's name.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CompilationResult getCompilationResult(CompilationResultName name) {
+ GetCompilationResultRequest request =
+ GetCompilationResultRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getCompilationResult(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Fetches a single CompilationResult.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * String name =
+ * CompilationResultName.of(
+ * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]")
+ * .toString();
+ * CompilationResult response = dataformClient.getCompilationResult(name);
+ * }
+ * }
+ *
+ * @param name Required. The compilation result's name.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CompilationResult getCompilationResult(String name) {
+ GetCompilationResultRequest request =
+ GetCompilationResultRequest.newBuilder().setName(name).build();
+ return getCompilationResult(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Fetches a single CompilationResult.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * GetCompilationResultRequest request =
+ * GetCompilationResultRequest.newBuilder()
+ * .setName(
+ * CompilationResultName.of(
+ * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]")
+ * .toString())
+ * .build();
+ * CompilationResult response = dataformClient.getCompilationResult(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CompilationResult getCompilationResult(GetCompilationResultRequest request) {
+ return getCompilationResultCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Fetches a single CompilationResult.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * GetCompilationResultRequest request =
+ * GetCompilationResultRequest.newBuilder()
+ * .setName(
+ * CompilationResultName.of(
+ * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]")
+ * .toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
+ * CompilationResult compilationResult = CompilationResult.newBuilder().build();
+ * CompilationResult response =
+ * dataformClient.createCompilationResult(parent, compilationResult);
+ * }
+ * }
+ *
+ * @param parent Required. The repository in which to create the compilation result. Must be in
+ * the format `projects/*/locations/*/repositories/*`.
+ * @param compilationResult Required. The compilation result to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CompilationResult createCompilationResult(
+ RepositoryName parent, CompilationResult compilationResult) {
+ CreateCompilationResultRequest request =
+ CreateCompilationResultRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setCompilationResult(compilationResult)
+ .build();
+ return createCompilationResult(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new CompilationResult in a given project and location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString();
+ * CompilationResult compilationResult = CompilationResult.newBuilder().build();
+ * CompilationResult response =
+ * dataformClient.createCompilationResult(parent, compilationResult);
+ * }
+ * }
+ *
+ * @param parent Required. The repository in which to create the compilation result. Must be in
+ * the format `projects/*/locations/*/repositories/*`.
+ * @param compilationResult Required. The compilation result to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CompilationResult createCompilationResult(
+ String parent, CompilationResult compilationResult) {
+ CreateCompilationResultRequest request =
+ CreateCompilationResultRequest.newBuilder()
+ .setParent(parent)
+ .setCompilationResult(compilationResult)
+ .build();
+ return createCompilationResult(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new CompilationResult in a given project and location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * CreateCompilationResultRequest request =
+ * CreateCompilationResultRequest.newBuilder()
+ * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+ * .setCompilationResult(CompilationResult.newBuilder().build())
+ * .build();
+ * CompilationResult response = dataformClient.createCompilationResult(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CompilationResult createCompilationResult(CreateCompilationResultRequest request) {
+ return createCompilationResultCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new CompilationResult in a given project and location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * CreateCompilationResultRequest request =
+ * CreateCompilationResultRequest.newBuilder()
+ * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+ * .setCompilationResult(CompilationResult.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * QueryCompilationResultActionsRequest request =
+ * QueryCompilationResultActionsRequest.newBuilder()
+ * .setName(
+ * CompilationResultName.of(
+ * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]")
+ * .toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .build();
+ * for (CompilationResultAction element :
+ * dataformClient.queryCompilationResultActions(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final QueryCompilationResultActionsPagedResponse queryCompilationResultActions(
+ QueryCompilationResultActionsRequest request) {
+ return queryCompilationResultActionsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns CompilationResultActions in a given CompilationResult.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * QueryCompilationResultActionsRequest request =
+ * QueryCompilationResultActionsRequest.newBuilder()
+ * .setName(
+ * CompilationResultName.of(
+ * "[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[COMPILATION_RESULT]")
+ * .toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
* .build();
- * WriteFileResponse response = dataformClient.writeFile(request);
+ * ApiFuture
- *
- * @param request The request object containing all of the parameters for the API call.
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final WriteFileResponse writeFile(WriteFileRequest request) {
- return writeFileCallable().call(request);
+ public final UnaryCallable<
+ QueryCompilationResultActionsRequest, QueryCompilationResultActionsPagedResponse>
+ queryCompilationResultActionsPagedCallable() {
+ return stub.queryCompilationResultActionsPagedCallable();
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Writes to a file (inside a Workspace).
+ * Returns CompilationResultActions in a given CompilationResult.
*
* {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * CreateWorkflowConfigRequest request =
+ * CreateWorkflowConfigRequest.newBuilder()
+ * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+ * .setWorkflowConfig(WorkflowConfig.newBuilder().build())
+ * .setWorkflowConfigId("workflowConfigId-1331048228")
+ * .build();
+ * WorkflowConfig response = dataformClient.createWorkflowConfig(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final WorkflowConfig createWorkflowConfig(CreateWorkflowConfigRequest request) {
+ return createWorkflowConfigCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new WorkflowConfig in a given Repository.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * CreateWorkflowConfigRequest request =
+ * CreateWorkflowConfigRequest.newBuilder()
+ * .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+ * .setWorkflowConfig(WorkflowConfig.newBuilder().build())
+ * .setWorkflowConfigId("workflowConfigId-1331048228")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * WorkflowConfig workflowConfig = WorkflowConfig.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * WorkflowConfig response = dataformClient.updateWorkflowConfig(workflowConfig, updateMask);
+ * }
+ * }
+ *
+ * @param workflowConfig Required. The workflow config to update.
+ * @param updateMask Optional. Specifies the fields to be updated in the workflow config. If left
+ * unset, all fields will be updated.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final WorkflowConfig updateWorkflowConfig(
+ WorkflowConfig workflowConfig, FieldMask updateMask) {
+ UpdateWorkflowConfigRequest request =
+ UpdateWorkflowConfigRequest.newBuilder()
+ .setWorkflowConfig(workflowConfig)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateWorkflowConfig(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a single WorkflowConfig.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * UpdateWorkflowConfigRequest request =
+ * UpdateWorkflowConfigRequest.newBuilder()
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setWorkflowConfig(WorkflowConfig.newBuilder().build())
+ * .build();
+ * WorkflowConfig response = dataformClient.updateWorkflowConfig(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final WorkflowConfig updateWorkflowConfig(UpdateWorkflowConfigRequest request) {
+ return updateWorkflowConfigCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Creates a new CompilationResult in a given project and location.
+ * Updates a single WorkflowConfig.
*
* {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (Location element : dataformClient.listLocations(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) {
+ return listLocationsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists information about the supported locations for this service.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListLocationsResponse response = dataformClient.listLocationsCallable().call(request);
+ * for (Location element : response.getLocationsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+ * Location response = dataformClient.getLocation(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Location getLocation(GetLocationRequest request) {
+ return getLocationCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets information about a location.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DataformClient dataformClient = DataformClient.create()) {
+ * TestIamPermissionsRequest request =
+ * TestIamPermissionsRequest.newBuilder()
+ * .setResource(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+ * .addAllPermissions(new ArrayList
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final Location getLocation(GetLocationRequest request) {
- return getLocationCallable().call(request);
+ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) {
+ return testIamPermissionsCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Gets information about a location.
+ * Returns permissions that a caller has on the specified resource. If theresource does not exist,
+ * this will return an empty set ofpermissions, not a `NOT_FOUND` error.
+ *
+ *