Skip to content

Commit

Permalink
feat: [dataform] Support for ReleaseConfigs (#9999)
Browse files Browse the repository at this point in the history
* feat: Support for ReleaseConfigs
feat: Support for WorkflowConfigs
feat: Support new first-party repository methods for committing, listing/reading files, and fetching history
feat: Support new ComputeRepositoryAccessTokenStatus repository method
feat: Support SSH based git authentication configuration
feat: Support workspace compilation override fields
feat: Support NPMRC environment variables
feat: Support labels on repositories
feat: Support custom service account repository configuration
docs: several comments reformatted
fix: rearrange several messages, thus changing field types

PiperOrigin-RevId: 576787262

Source-Link: googleapis/googleapis@7e7ae1a

Source-Link: https://github.com/googleapis/googleapis-gen/commit/b145f1c69a1d3618a6dddda36188dfe9d99eeb43
Copy-Tag: eyJwIjoiamF2YS1kYXRhZm9ybS8uT3dsQm90LnlhbWwiLCJoIjoiYjE0NWYxYzY5YTFkMzYxOGE2ZGRkZGEzNjE4OGRmZTlkOTllZWI0MyJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Oct 26, 2023
1 parent baf18bd commit 2021b5a
Show file tree
Hide file tree
Showing 196 changed files with 68,268 additions and 10,564 deletions.
4 changes: 2 additions & 2 deletions java-dataform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>26.23.0</version>
<version>26.25.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down Expand Up @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataform.svg
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataform/0.23.0
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataform/0.28.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,17 @@

package com.google.cloud.dataform.v1beta1;

import static com.google.cloud.dataform.v1beta1.DataformClient.FetchRepositoryHistoryPagedResponse;
import static com.google.cloud.dataform.v1beta1.DataformClient.ListCompilationResultsPagedResponse;
import static com.google.cloud.dataform.v1beta1.DataformClient.ListLocationsPagedResponse;
import static com.google.cloud.dataform.v1beta1.DataformClient.ListReleaseConfigsPagedResponse;
import static com.google.cloud.dataform.v1beta1.DataformClient.ListRepositoriesPagedResponse;
import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkflowConfigsPagedResponse;
import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkflowInvocationsPagedResponse;
import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkspacesPagedResponse;
import static com.google.cloud.dataform.v1beta1.DataformClient.QueryCompilationResultActionsPagedResponse;
import static com.google.cloud.dataform.v1beta1.DataformClient.QueryDirectoryContentsPagedResponse;
import static com.google.cloud.dataform.v1beta1.DataformClient.QueryRepositoryDirectoryContentsPagedResponse;
import static com.google.cloud.dataform.v1beta1.DataformClient.QueryWorkflowInvocationActionsPagedResponse;

import com.google.api.core.ApiFunction;
Expand All @@ -42,6 +46,11 @@
import com.google.cloud.location.ListLocationsRequest;
import com.google.cloud.location.ListLocationsResponse;
import com.google.cloud.location.Location;
import com.google.iam.v1.GetIamPolicyRequest;
import com.google.iam.v1.Policy;
import com.google.iam.v1.SetIamPolicyRequest;
import com.google.iam.v1.TestIamPermissionsRequest;
import com.google.iam.v1.TestIamPermissionsResponse;
import com.google.protobuf.Empty;
import java.io.IOException;
import java.util.List;
Expand Down Expand Up @@ -114,6 +123,43 @@ public UnaryCallSettings<DeleteRepositoryRequest, Empty> deleteRepositorySetting
return ((DataformStubSettings) getStubSettings()).deleteRepositorySettings();
}

/** Returns the object with the settings used for calls to commitRepositoryChanges. */
public UnaryCallSettings<CommitRepositoryChangesRequest, Empty>
commitRepositoryChangesSettings() {
return ((DataformStubSettings) getStubSettings()).commitRepositoryChangesSettings();
}

/** Returns the object with the settings used for calls to readRepositoryFile. */
public UnaryCallSettings<ReadRepositoryFileRequest, ReadRepositoryFileResponse>
readRepositoryFileSettings() {
return ((DataformStubSettings) getStubSettings()).readRepositoryFileSettings();
}

/** Returns the object with the settings used for calls to queryRepositoryDirectoryContents. */
public PagedCallSettings<
QueryRepositoryDirectoryContentsRequest,
QueryRepositoryDirectoryContentsResponse,
QueryRepositoryDirectoryContentsPagedResponse>
queryRepositoryDirectoryContentsSettings() {
return ((DataformStubSettings) getStubSettings()).queryRepositoryDirectoryContentsSettings();
}

/** Returns the object with the settings used for calls to fetchRepositoryHistory. */
public PagedCallSettings<
FetchRepositoryHistoryRequest,
FetchRepositoryHistoryResponse,
FetchRepositoryHistoryPagedResponse>
fetchRepositoryHistorySettings() {
return ((DataformStubSettings) getStubSettings()).fetchRepositoryHistorySettings();
}

/** Returns the object with the settings used for calls to computeRepositoryAccessTokenStatus. */
public UnaryCallSettings<
ComputeRepositoryAccessTokenStatusRequest, ComputeRepositoryAccessTokenStatusResponse>
computeRepositoryAccessTokenStatusSettings() {
return ((DataformStubSettings) getStubSettings()).computeRepositoryAccessTokenStatusSettings();
}

/** Returns the object with the settings used for calls to fetchRemoteBranches. */
public UnaryCallSettings<FetchRemoteBranchesRequest, FetchRemoteBranchesResponse>
fetchRemoteBranchesSettings() {
Expand Down Expand Up @@ -229,6 +275,35 @@ public UnaryCallSettings<WriteFileRequest, WriteFileResponse> writeFileSettings(
return ((DataformStubSettings) getStubSettings()).writeFileSettings();
}

/** Returns the object with the settings used for calls to listReleaseConfigs. */
public PagedCallSettings<
ListReleaseConfigsRequest, ListReleaseConfigsResponse, ListReleaseConfigsPagedResponse>
listReleaseConfigsSettings() {
return ((DataformStubSettings) getStubSettings()).listReleaseConfigsSettings();
}

/** Returns the object with the settings used for calls to getReleaseConfig. */
public UnaryCallSettings<GetReleaseConfigRequest, ReleaseConfig> getReleaseConfigSettings() {
return ((DataformStubSettings) getStubSettings()).getReleaseConfigSettings();
}

/** Returns the object with the settings used for calls to createReleaseConfig. */
public UnaryCallSettings<CreateReleaseConfigRequest, ReleaseConfig>
createReleaseConfigSettings() {
return ((DataformStubSettings) getStubSettings()).createReleaseConfigSettings();
}

/** Returns the object with the settings used for calls to updateReleaseConfig. */
public UnaryCallSettings<UpdateReleaseConfigRequest, ReleaseConfig>
updateReleaseConfigSettings() {
return ((DataformStubSettings) getStubSettings()).updateReleaseConfigSettings();
}

/** Returns the object with the settings used for calls to deleteReleaseConfig. */
public UnaryCallSettings<DeleteReleaseConfigRequest, Empty> deleteReleaseConfigSettings() {
return ((DataformStubSettings) getStubSettings()).deleteReleaseConfigSettings();
}

/** Returns the object with the settings used for calls to listCompilationResults. */
public PagedCallSettings<
ListCompilationResultsRequest,
Expand Down Expand Up @@ -259,6 +334,35 @@ public UnaryCallSettings<WriteFileRequest, WriteFileResponse> writeFileSettings(
return ((DataformStubSettings) getStubSettings()).queryCompilationResultActionsSettings();
}

/** Returns the object with the settings used for calls to listWorkflowConfigs. */
public PagedCallSettings<
ListWorkflowConfigsRequest, ListWorkflowConfigsResponse, ListWorkflowConfigsPagedResponse>
listWorkflowConfigsSettings() {
return ((DataformStubSettings) getStubSettings()).listWorkflowConfigsSettings();
}

/** Returns the object with the settings used for calls to getWorkflowConfig. */
public UnaryCallSettings<GetWorkflowConfigRequest, WorkflowConfig> getWorkflowConfigSettings() {
return ((DataformStubSettings) getStubSettings()).getWorkflowConfigSettings();
}

/** Returns the object with the settings used for calls to createWorkflowConfig. */
public UnaryCallSettings<CreateWorkflowConfigRequest, WorkflowConfig>
createWorkflowConfigSettings() {
return ((DataformStubSettings) getStubSettings()).createWorkflowConfigSettings();
}

/** Returns the object with the settings used for calls to updateWorkflowConfig. */
public UnaryCallSettings<UpdateWorkflowConfigRequest, WorkflowConfig>
updateWorkflowConfigSettings() {
return ((DataformStubSettings) getStubSettings()).updateWorkflowConfigSettings();
}

/** Returns the object with the settings used for calls to deleteWorkflowConfig. */
public UnaryCallSettings<DeleteWorkflowConfigRequest, Empty> deleteWorkflowConfigSettings() {
return ((DataformStubSettings) getStubSettings()).deleteWorkflowConfigSettings();
}

/** Returns the object with the settings used for calls to listWorkflowInvocations. */
public PagedCallSettings<
ListWorkflowInvocationsRequest,
Expand Down Expand Up @@ -312,6 +416,22 @@ public UnaryCallSettings<GetLocationRequest, Location> getLocationSettings() {
return ((DataformStubSettings) getStubSettings()).getLocationSettings();
}

/** Returns the object with the settings used for calls to setIamPolicy. */
public UnaryCallSettings<SetIamPolicyRequest, Policy> setIamPolicySettings() {
return ((DataformStubSettings) getStubSettings()).setIamPolicySettings();
}

/** Returns the object with the settings used for calls to getIamPolicy. */
public UnaryCallSettings<GetIamPolicyRequest, Policy> getIamPolicySettings() {
return ((DataformStubSettings) getStubSettings()).getIamPolicySettings();
}

/** Returns the object with the settings used for calls to testIamPermissions. */
public UnaryCallSettings<TestIamPermissionsRequest, TestIamPermissionsResponse>
testIamPermissionsSettings() {
return ((DataformStubSettings) getStubSettings()).testIamPermissionsSettings();
}

public static final DataformSettings create(DataformStubSettings stub) throws IOException {
return new DataformSettings.Builder(stub.toBuilder()).build();
}
Expand Down Expand Up @@ -455,6 +575,45 @@ public UnaryCallSettings.Builder<DeleteRepositoryRequest, Empty> deleteRepositor
return getStubSettingsBuilder().deleteRepositorySettings();
}

/** Returns the builder for the settings used for calls to commitRepositoryChanges. */
public UnaryCallSettings.Builder<CommitRepositoryChangesRequest, Empty>
commitRepositoryChangesSettings() {
return getStubSettingsBuilder().commitRepositoryChangesSettings();
}

/** Returns the builder for the settings used for calls to readRepositoryFile. */
public UnaryCallSettings.Builder<ReadRepositoryFileRequest, ReadRepositoryFileResponse>
readRepositoryFileSettings() {
return getStubSettingsBuilder().readRepositoryFileSettings();
}

/** Returns the builder for the settings used for calls to queryRepositoryDirectoryContents. */
public PagedCallSettings.Builder<
QueryRepositoryDirectoryContentsRequest,
QueryRepositoryDirectoryContentsResponse,
QueryRepositoryDirectoryContentsPagedResponse>
queryRepositoryDirectoryContentsSettings() {
return getStubSettingsBuilder().queryRepositoryDirectoryContentsSettings();
}

/** Returns the builder for the settings used for calls to fetchRepositoryHistory. */
public PagedCallSettings.Builder<
FetchRepositoryHistoryRequest,
FetchRepositoryHistoryResponse,
FetchRepositoryHistoryPagedResponse>
fetchRepositoryHistorySettings() {
return getStubSettingsBuilder().fetchRepositoryHistorySettings();
}

/**
* Returns the builder for the settings used for calls to computeRepositoryAccessTokenStatus.
*/
public UnaryCallSettings.Builder<
ComputeRepositoryAccessTokenStatusRequest, ComputeRepositoryAccessTokenStatusResponse>
computeRepositoryAccessTokenStatusSettings() {
return getStubSettingsBuilder().computeRepositoryAccessTokenStatusSettings();
}

/** Returns the builder for the settings used for calls to fetchRemoteBranches. */
public UnaryCallSettings.Builder<FetchRemoteBranchesRequest, FetchRemoteBranchesResponse>
fetchRemoteBranchesSettings() {
Expand Down Expand Up @@ -575,6 +734,37 @@ public UnaryCallSettings.Builder<WriteFileRequest, WriteFileResponse> writeFileS
return getStubSettingsBuilder().writeFileSettings();
}

/** Returns the builder for the settings used for calls to listReleaseConfigs. */
public PagedCallSettings.Builder<
ListReleaseConfigsRequest, ListReleaseConfigsResponse, ListReleaseConfigsPagedResponse>
listReleaseConfigsSettings() {
return getStubSettingsBuilder().listReleaseConfigsSettings();
}

/** Returns the builder for the settings used for calls to getReleaseConfig. */
public UnaryCallSettings.Builder<GetReleaseConfigRequest, ReleaseConfig>
getReleaseConfigSettings() {
return getStubSettingsBuilder().getReleaseConfigSettings();
}

/** Returns the builder for the settings used for calls to createReleaseConfig. */
public UnaryCallSettings.Builder<CreateReleaseConfigRequest, ReleaseConfig>
createReleaseConfigSettings() {
return getStubSettingsBuilder().createReleaseConfigSettings();
}

/** Returns the builder for the settings used for calls to updateReleaseConfig. */
public UnaryCallSettings.Builder<UpdateReleaseConfigRequest, ReleaseConfig>
updateReleaseConfigSettings() {
return getStubSettingsBuilder().updateReleaseConfigSettings();
}

/** Returns the builder for the settings used for calls to deleteReleaseConfig. */
public UnaryCallSettings.Builder<DeleteReleaseConfigRequest, Empty>
deleteReleaseConfigSettings() {
return getStubSettingsBuilder().deleteReleaseConfigSettings();
}

/** Returns the builder for the settings used for calls to listCompilationResults. */
public PagedCallSettings.Builder<
ListCompilationResultsRequest,
Expand Down Expand Up @@ -605,6 +795,39 @@ public UnaryCallSettings.Builder<WriteFileRequest, WriteFileResponse> writeFileS
return getStubSettingsBuilder().queryCompilationResultActionsSettings();
}

/** Returns the builder for the settings used for calls to listWorkflowConfigs. */
public PagedCallSettings.Builder<
ListWorkflowConfigsRequest,
ListWorkflowConfigsResponse,
ListWorkflowConfigsPagedResponse>
listWorkflowConfigsSettings() {
return getStubSettingsBuilder().listWorkflowConfigsSettings();
}

/** Returns the builder for the settings used for calls to getWorkflowConfig. */
public UnaryCallSettings.Builder<GetWorkflowConfigRequest, WorkflowConfig>
getWorkflowConfigSettings() {
return getStubSettingsBuilder().getWorkflowConfigSettings();
}

/** Returns the builder for the settings used for calls to createWorkflowConfig. */
public UnaryCallSettings.Builder<CreateWorkflowConfigRequest, WorkflowConfig>
createWorkflowConfigSettings() {
return getStubSettingsBuilder().createWorkflowConfigSettings();
}

/** Returns the builder for the settings used for calls to updateWorkflowConfig. */
public UnaryCallSettings.Builder<UpdateWorkflowConfigRequest, WorkflowConfig>
updateWorkflowConfigSettings() {
return getStubSettingsBuilder().updateWorkflowConfigSettings();
}

/** Returns the builder for the settings used for calls to deleteWorkflowConfig. */
public UnaryCallSettings.Builder<DeleteWorkflowConfigRequest, Empty>
deleteWorkflowConfigSettings() {
return getStubSettingsBuilder().deleteWorkflowConfigSettings();
}

/** Returns the builder for the settings used for calls to listWorkflowInvocations. */
public PagedCallSettings.Builder<
ListWorkflowInvocationsRequest,
Expand Down Expand Up @@ -659,6 +882,22 @@ public UnaryCallSettings.Builder<GetLocationRequest, Location> getLocationSettin
return getStubSettingsBuilder().getLocationSettings();
}

/** Returns the builder for the settings used for calls to setIamPolicy. */
public UnaryCallSettings.Builder<SetIamPolicyRequest, Policy> setIamPolicySettings() {
return getStubSettingsBuilder().setIamPolicySettings();
}

/** Returns the builder for the settings used for calls to getIamPolicy. */
public UnaryCallSettings.Builder<GetIamPolicyRequest, Policy> getIamPolicySettings() {
return getStubSettingsBuilder().getIamPolicySettings();
}

/** Returns the builder for the settings used for calls to testIamPermissions. */
public UnaryCallSettings.Builder<TestIamPermissionsRequest, TestIamPermissionsResponse>
testIamPermissionsSettings() {
return getStubSettingsBuilder().testIamPermissionsSettings();
}

@Override
public DataformSettings build() throws IOException {
return new DataformSettings(this);
Expand Down
Loading

0 comments on commit 2021b5a

Please sign in to comment.