Skip to content

Commit 2021b5a

Browse files
feat: [dataform] Support for ReleaseConfigs (#9999)
* 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>
1 parent baf18bd commit 2021b5a

File tree

196 files changed

+68268
-10564
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

196 files changed

+68268
-10564
lines changed

java-dataform/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
2323
<dependency>
2424
<groupId>com.google.cloud</groupId>
2525
<artifactId>libraries-bom</artifactId>
26-
<version>26.23.0</version>
26+
<version>26.25.0</version>
2727
<type>pom</type>
2828
<scope>import</scope>
2929
</dependency>
@@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
201201
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
202202
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
203203
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataform.svg
204-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataform/0.23.0
204+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataform/0.28.0
205205
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
206206
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
207207
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles

java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformClient.java

Lines changed: 3068 additions & 839 deletions
Large diffs are not rendered by default.

java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformSettings.java

Lines changed: 239 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,17 @@
1616

1717
package com.google.cloud.dataform.v1beta1;
1818

19+
import static com.google.cloud.dataform.v1beta1.DataformClient.FetchRepositoryHistoryPagedResponse;
1920
import static com.google.cloud.dataform.v1beta1.DataformClient.ListCompilationResultsPagedResponse;
2021
import static com.google.cloud.dataform.v1beta1.DataformClient.ListLocationsPagedResponse;
22+
import static com.google.cloud.dataform.v1beta1.DataformClient.ListReleaseConfigsPagedResponse;
2123
import static com.google.cloud.dataform.v1beta1.DataformClient.ListRepositoriesPagedResponse;
24+
import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkflowConfigsPagedResponse;
2225
import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkflowInvocationsPagedResponse;
2326
import static com.google.cloud.dataform.v1beta1.DataformClient.ListWorkspacesPagedResponse;
2427
import static com.google.cloud.dataform.v1beta1.DataformClient.QueryCompilationResultActionsPagedResponse;
2528
import static com.google.cloud.dataform.v1beta1.DataformClient.QueryDirectoryContentsPagedResponse;
29+
import static com.google.cloud.dataform.v1beta1.DataformClient.QueryRepositoryDirectoryContentsPagedResponse;
2630
import static com.google.cloud.dataform.v1beta1.DataformClient.QueryWorkflowInvocationActionsPagedResponse;
2731

2832
import com.google.api.core.ApiFunction;
@@ -42,6 +46,11 @@
4246
import com.google.cloud.location.ListLocationsRequest;
4347
import com.google.cloud.location.ListLocationsResponse;
4448
import com.google.cloud.location.Location;
49+
import com.google.iam.v1.GetIamPolicyRequest;
50+
import com.google.iam.v1.Policy;
51+
import com.google.iam.v1.SetIamPolicyRequest;
52+
import com.google.iam.v1.TestIamPermissionsRequest;
53+
import com.google.iam.v1.TestIamPermissionsResponse;
4554
import com.google.protobuf.Empty;
4655
import java.io.IOException;
4756
import java.util.List;
@@ -114,6 +123,43 @@ public UnaryCallSettings<DeleteRepositoryRequest, Empty> deleteRepositorySetting
114123
return ((DataformStubSettings) getStubSettings()).deleteRepositorySettings();
115124
}
116125

126+
/** Returns the object with the settings used for calls to commitRepositoryChanges. */
127+
public UnaryCallSettings<CommitRepositoryChangesRequest, Empty>
128+
commitRepositoryChangesSettings() {
129+
return ((DataformStubSettings) getStubSettings()).commitRepositoryChangesSettings();
130+
}
131+
132+
/** Returns the object with the settings used for calls to readRepositoryFile. */
133+
public UnaryCallSettings<ReadRepositoryFileRequest, ReadRepositoryFileResponse>
134+
readRepositoryFileSettings() {
135+
return ((DataformStubSettings) getStubSettings()).readRepositoryFileSettings();
136+
}
137+
138+
/** Returns the object with the settings used for calls to queryRepositoryDirectoryContents. */
139+
public PagedCallSettings<
140+
QueryRepositoryDirectoryContentsRequest,
141+
QueryRepositoryDirectoryContentsResponse,
142+
QueryRepositoryDirectoryContentsPagedResponse>
143+
queryRepositoryDirectoryContentsSettings() {
144+
return ((DataformStubSettings) getStubSettings()).queryRepositoryDirectoryContentsSettings();
145+
}
146+
147+
/** Returns the object with the settings used for calls to fetchRepositoryHistory. */
148+
public PagedCallSettings<
149+
FetchRepositoryHistoryRequest,
150+
FetchRepositoryHistoryResponse,
151+
FetchRepositoryHistoryPagedResponse>
152+
fetchRepositoryHistorySettings() {
153+
return ((DataformStubSettings) getStubSettings()).fetchRepositoryHistorySettings();
154+
}
155+
156+
/** Returns the object with the settings used for calls to computeRepositoryAccessTokenStatus. */
157+
public UnaryCallSettings<
158+
ComputeRepositoryAccessTokenStatusRequest, ComputeRepositoryAccessTokenStatusResponse>
159+
computeRepositoryAccessTokenStatusSettings() {
160+
return ((DataformStubSettings) getStubSettings()).computeRepositoryAccessTokenStatusSettings();
161+
}
162+
117163
/** Returns the object with the settings used for calls to fetchRemoteBranches. */
118164
public UnaryCallSettings<FetchRemoteBranchesRequest, FetchRemoteBranchesResponse>
119165
fetchRemoteBranchesSettings() {
@@ -229,6 +275,35 @@ public UnaryCallSettings<WriteFileRequest, WriteFileResponse> writeFileSettings(
229275
return ((DataformStubSettings) getStubSettings()).writeFileSettings();
230276
}
231277

278+
/** Returns the object with the settings used for calls to listReleaseConfigs. */
279+
public PagedCallSettings<
280+
ListReleaseConfigsRequest, ListReleaseConfigsResponse, ListReleaseConfigsPagedResponse>
281+
listReleaseConfigsSettings() {
282+
return ((DataformStubSettings) getStubSettings()).listReleaseConfigsSettings();
283+
}
284+
285+
/** Returns the object with the settings used for calls to getReleaseConfig. */
286+
public UnaryCallSettings<GetReleaseConfigRequest, ReleaseConfig> getReleaseConfigSettings() {
287+
return ((DataformStubSettings) getStubSettings()).getReleaseConfigSettings();
288+
}
289+
290+
/** Returns the object with the settings used for calls to createReleaseConfig. */
291+
public UnaryCallSettings<CreateReleaseConfigRequest, ReleaseConfig>
292+
createReleaseConfigSettings() {
293+
return ((DataformStubSettings) getStubSettings()).createReleaseConfigSettings();
294+
}
295+
296+
/** Returns the object with the settings used for calls to updateReleaseConfig. */
297+
public UnaryCallSettings<UpdateReleaseConfigRequest, ReleaseConfig>
298+
updateReleaseConfigSettings() {
299+
return ((DataformStubSettings) getStubSettings()).updateReleaseConfigSettings();
300+
}
301+
302+
/** Returns the object with the settings used for calls to deleteReleaseConfig. */
303+
public UnaryCallSettings<DeleteReleaseConfigRequest, Empty> deleteReleaseConfigSettings() {
304+
return ((DataformStubSettings) getStubSettings()).deleteReleaseConfigSettings();
305+
}
306+
232307
/** Returns the object with the settings used for calls to listCompilationResults. */
233308
public PagedCallSettings<
234309
ListCompilationResultsRequest,
@@ -259,6 +334,35 @@ public UnaryCallSettings<WriteFileRequest, WriteFileResponse> writeFileSettings(
259334
return ((DataformStubSettings) getStubSettings()).queryCompilationResultActionsSettings();
260335
}
261336

337+
/** Returns the object with the settings used for calls to listWorkflowConfigs. */
338+
public PagedCallSettings<
339+
ListWorkflowConfigsRequest, ListWorkflowConfigsResponse, ListWorkflowConfigsPagedResponse>
340+
listWorkflowConfigsSettings() {
341+
return ((DataformStubSettings) getStubSettings()).listWorkflowConfigsSettings();
342+
}
343+
344+
/** Returns the object with the settings used for calls to getWorkflowConfig. */
345+
public UnaryCallSettings<GetWorkflowConfigRequest, WorkflowConfig> getWorkflowConfigSettings() {
346+
return ((DataformStubSettings) getStubSettings()).getWorkflowConfigSettings();
347+
}
348+
349+
/** Returns the object with the settings used for calls to createWorkflowConfig. */
350+
public UnaryCallSettings<CreateWorkflowConfigRequest, WorkflowConfig>
351+
createWorkflowConfigSettings() {
352+
return ((DataformStubSettings) getStubSettings()).createWorkflowConfigSettings();
353+
}
354+
355+
/** Returns the object with the settings used for calls to updateWorkflowConfig. */
356+
public UnaryCallSettings<UpdateWorkflowConfigRequest, WorkflowConfig>
357+
updateWorkflowConfigSettings() {
358+
return ((DataformStubSettings) getStubSettings()).updateWorkflowConfigSettings();
359+
}
360+
361+
/** Returns the object with the settings used for calls to deleteWorkflowConfig. */
362+
public UnaryCallSettings<DeleteWorkflowConfigRequest, Empty> deleteWorkflowConfigSettings() {
363+
return ((DataformStubSettings) getStubSettings()).deleteWorkflowConfigSettings();
364+
}
365+
262366
/** Returns the object with the settings used for calls to listWorkflowInvocations. */
263367
public PagedCallSettings<
264368
ListWorkflowInvocationsRequest,
@@ -312,6 +416,22 @@ public UnaryCallSettings<GetLocationRequest, Location> getLocationSettings() {
312416
return ((DataformStubSettings) getStubSettings()).getLocationSettings();
313417
}
314418

419+
/** Returns the object with the settings used for calls to setIamPolicy. */
420+
public UnaryCallSettings<SetIamPolicyRequest, Policy> setIamPolicySettings() {
421+
return ((DataformStubSettings) getStubSettings()).setIamPolicySettings();
422+
}
423+
424+
/** Returns the object with the settings used for calls to getIamPolicy. */
425+
public UnaryCallSettings<GetIamPolicyRequest, Policy> getIamPolicySettings() {
426+
return ((DataformStubSettings) getStubSettings()).getIamPolicySettings();
427+
}
428+
429+
/** Returns the object with the settings used for calls to testIamPermissions. */
430+
public UnaryCallSettings<TestIamPermissionsRequest, TestIamPermissionsResponse>
431+
testIamPermissionsSettings() {
432+
return ((DataformStubSettings) getStubSettings()).testIamPermissionsSettings();
433+
}
434+
315435
public static final DataformSettings create(DataformStubSettings stub) throws IOException {
316436
return new DataformSettings.Builder(stub.toBuilder()).build();
317437
}
@@ -455,6 +575,45 @@ public UnaryCallSettings.Builder<DeleteRepositoryRequest, Empty> deleteRepositor
455575
return getStubSettingsBuilder().deleteRepositorySettings();
456576
}
457577

578+
/** Returns the builder for the settings used for calls to commitRepositoryChanges. */
579+
public UnaryCallSettings.Builder<CommitRepositoryChangesRequest, Empty>
580+
commitRepositoryChangesSettings() {
581+
return getStubSettingsBuilder().commitRepositoryChangesSettings();
582+
}
583+
584+
/** Returns the builder for the settings used for calls to readRepositoryFile. */
585+
public UnaryCallSettings.Builder<ReadRepositoryFileRequest, ReadRepositoryFileResponse>
586+
readRepositoryFileSettings() {
587+
return getStubSettingsBuilder().readRepositoryFileSettings();
588+
}
589+
590+
/** Returns the builder for the settings used for calls to queryRepositoryDirectoryContents. */
591+
public PagedCallSettings.Builder<
592+
QueryRepositoryDirectoryContentsRequest,
593+
QueryRepositoryDirectoryContentsResponse,
594+
QueryRepositoryDirectoryContentsPagedResponse>
595+
queryRepositoryDirectoryContentsSettings() {
596+
return getStubSettingsBuilder().queryRepositoryDirectoryContentsSettings();
597+
}
598+
599+
/** Returns the builder for the settings used for calls to fetchRepositoryHistory. */
600+
public PagedCallSettings.Builder<
601+
FetchRepositoryHistoryRequest,
602+
FetchRepositoryHistoryResponse,
603+
FetchRepositoryHistoryPagedResponse>
604+
fetchRepositoryHistorySettings() {
605+
return getStubSettingsBuilder().fetchRepositoryHistorySettings();
606+
}
607+
608+
/**
609+
* Returns the builder for the settings used for calls to computeRepositoryAccessTokenStatus.
610+
*/
611+
public UnaryCallSettings.Builder<
612+
ComputeRepositoryAccessTokenStatusRequest, ComputeRepositoryAccessTokenStatusResponse>
613+
computeRepositoryAccessTokenStatusSettings() {
614+
return getStubSettingsBuilder().computeRepositoryAccessTokenStatusSettings();
615+
}
616+
458617
/** Returns the builder for the settings used for calls to fetchRemoteBranches. */
459618
public UnaryCallSettings.Builder<FetchRemoteBranchesRequest, FetchRemoteBranchesResponse>
460619
fetchRemoteBranchesSettings() {
@@ -575,6 +734,37 @@ public UnaryCallSettings.Builder<WriteFileRequest, WriteFileResponse> writeFileS
575734
return getStubSettingsBuilder().writeFileSettings();
576735
}
577736

737+
/** Returns the builder for the settings used for calls to listReleaseConfigs. */
738+
public PagedCallSettings.Builder<
739+
ListReleaseConfigsRequest, ListReleaseConfigsResponse, ListReleaseConfigsPagedResponse>
740+
listReleaseConfigsSettings() {
741+
return getStubSettingsBuilder().listReleaseConfigsSettings();
742+
}
743+
744+
/** Returns the builder for the settings used for calls to getReleaseConfig. */
745+
public UnaryCallSettings.Builder<GetReleaseConfigRequest, ReleaseConfig>
746+
getReleaseConfigSettings() {
747+
return getStubSettingsBuilder().getReleaseConfigSettings();
748+
}
749+
750+
/** Returns the builder for the settings used for calls to createReleaseConfig. */
751+
public UnaryCallSettings.Builder<CreateReleaseConfigRequest, ReleaseConfig>
752+
createReleaseConfigSettings() {
753+
return getStubSettingsBuilder().createReleaseConfigSettings();
754+
}
755+
756+
/** Returns the builder for the settings used for calls to updateReleaseConfig. */
757+
public UnaryCallSettings.Builder<UpdateReleaseConfigRequest, ReleaseConfig>
758+
updateReleaseConfigSettings() {
759+
return getStubSettingsBuilder().updateReleaseConfigSettings();
760+
}
761+
762+
/** Returns the builder for the settings used for calls to deleteReleaseConfig. */
763+
public UnaryCallSettings.Builder<DeleteReleaseConfigRequest, Empty>
764+
deleteReleaseConfigSettings() {
765+
return getStubSettingsBuilder().deleteReleaseConfigSettings();
766+
}
767+
578768
/** Returns the builder for the settings used for calls to listCompilationResults. */
579769
public PagedCallSettings.Builder<
580770
ListCompilationResultsRequest,
@@ -605,6 +795,39 @@ public UnaryCallSettings.Builder<WriteFileRequest, WriteFileResponse> writeFileS
605795
return getStubSettingsBuilder().queryCompilationResultActionsSettings();
606796
}
607797

798+
/** Returns the builder for the settings used for calls to listWorkflowConfigs. */
799+
public PagedCallSettings.Builder<
800+
ListWorkflowConfigsRequest,
801+
ListWorkflowConfigsResponse,
802+
ListWorkflowConfigsPagedResponse>
803+
listWorkflowConfigsSettings() {
804+
return getStubSettingsBuilder().listWorkflowConfigsSettings();
805+
}
806+
807+
/** Returns the builder for the settings used for calls to getWorkflowConfig. */
808+
public UnaryCallSettings.Builder<GetWorkflowConfigRequest, WorkflowConfig>
809+
getWorkflowConfigSettings() {
810+
return getStubSettingsBuilder().getWorkflowConfigSettings();
811+
}
812+
813+
/** Returns the builder for the settings used for calls to createWorkflowConfig. */
814+
public UnaryCallSettings.Builder<CreateWorkflowConfigRequest, WorkflowConfig>
815+
createWorkflowConfigSettings() {
816+
return getStubSettingsBuilder().createWorkflowConfigSettings();
817+
}
818+
819+
/** Returns the builder for the settings used for calls to updateWorkflowConfig. */
820+
public UnaryCallSettings.Builder<UpdateWorkflowConfigRequest, WorkflowConfig>
821+
updateWorkflowConfigSettings() {
822+
return getStubSettingsBuilder().updateWorkflowConfigSettings();
823+
}
824+
825+
/** Returns the builder for the settings used for calls to deleteWorkflowConfig. */
826+
public UnaryCallSettings.Builder<DeleteWorkflowConfigRequest, Empty>
827+
deleteWorkflowConfigSettings() {
828+
return getStubSettingsBuilder().deleteWorkflowConfigSettings();
829+
}
830+
608831
/** Returns the builder for the settings used for calls to listWorkflowInvocations. */
609832
public PagedCallSettings.Builder<
610833
ListWorkflowInvocationsRequest,
@@ -659,6 +882,22 @@ public UnaryCallSettings.Builder<GetLocationRequest, Location> getLocationSettin
659882
return getStubSettingsBuilder().getLocationSettings();
660883
}
661884

885+
/** Returns the builder for the settings used for calls to setIamPolicy. */
886+
public UnaryCallSettings.Builder<SetIamPolicyRequest, Policy> setIamPolicySettings() {
887+
return getStubSettingsBuilder().setIamPolicySettings();
888+
}
889+
890+
/** Returns the builder for the settings used for calls to getIamPolicy. */
891+
public UnaryCallSettings.Builder<GetIamPolicyRequest, Policy> getIamPolicySettings() {
892+
return getStubSettingsBuilder().getIamPolicySettings();
893+
}
894+
895+
/** Returns the builder for the settings used for calls to testIamPermissions. */
896+
public UnaryCallSettings.Builder<TestIamPermissionsRequest, TestIamPermissionsResponse>
897+
testIamPermissionsSettings() {
898+
return getStubSettingsBuilder().testIamPermissionsSettings();
899+
}
900+
662901
@Override
663902
public DataformSettings build() throws IOException {
664903
return new DataformSettings(this);

0 commit comments

Comments
 (0)