Skip to content

Commit 399cb6d

Browse files
feat: [clouddeploy] add Automation API and Rollback API (#10034)
* feat: add Automation API and Rollback API chore: update platform logs docs: small documentation updates PiperOrigin-RevId: 578872129 Source-Link: googleapis/googleapis@41d7a83 Source-Link: https://github.com/googleapis/googleapis-gen/commit/eb84145fc26cf1f77d65af9ad82a239dfddc16bd Copy-Tag: eyJwIjoiamF2YS1kZXBsb3kvLk93bEJvdC55YW1sIiwiaCI6ImViODQxNDVmYzI2Y2YxZjc3ZDY1YWY5YWQ4MmEyMzlkZmRkYzE2YmQifQ== * 🦉 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 7d010c3 commit 399cb6d

File tree

224 files changed

+72326
-1741
lines changed

Some content is hidden

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

224 files changed

+72326
-1741
lines changed

java-deploy/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
2020
<dependency>
2121
<groupId>com.google.cloud</groupId>
2222
<artifactId>libraries-bom</artifactId>
23-
<version>26.25.0</version>
23+
<version>26.26.0</version>
2424
<type>pom</type>
2525
<scope>import</scope>
2626
</dependency>
@@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
195195
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
196196
[stability-image]: https://img.shields.io/badge/stability-stable-green
197197
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-deploy.svg
198-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-deploy/1.26.0
198+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-deploy/1.27.0
199199
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
200200
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
201201
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles

java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeployClient.java

Lines changed: 1673 additions & 160 deletions
Large diffs are not rendered by default.

java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeploySettings.java

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
package com.google.cloud.deploy.v1;
1818

19+
import static com.google.cloud.deploy.v1.CloudDeployClient.ListAutomationRunsPagedResponse;
20+
import static com.google.cloud.deploy.v1.CloudDeployClient.ListAutomationsPagedResponse;
1921
import static com.google.cloud.deploy.v1.CloudDeployClient.ListDeliveryPipelinesPagedResponse;
2022
import static com.google.cloud.deploy.v1.CloudDeployClient.ListJobRunsPagedResponse;
2123
import static com.google.cloud.deploy.v1.CloudDeployClient.ListLocationsPagedResponse;
@@ -148,6 +150,11 @@ public class CloudDeploySettings extends ClientSettings<CloudDeploySettings> {
148150
return ((CloudDeployStubSettings) getStubSettings()).listTargetsSettings();
149151
}
150152

153+
/** Returns the object with the settings used for calls to rollbackTarget. */
154+
public UnaryCallSettings<RollbackTargetRequest, RollbackTargetResponse> rollbackTargetSettings() {
155+
return ((CloudDeployStubSettings) getStubSettings()).rollbackTargetSettings();
156+
}
157+
151158
/** Returns the object with the settings used for calls to getTarget. */
152159
public UnaryCallSettings<GetTargetRequest, Target> getTargetSettings() {
153160
return ((CloudDeployStubSettings) getStubSettings()).getTargetSettings();
@@ -282,6 +289,69 @@ public UnaryCallSettings<GetConfigRequest, Config> getConfigSettings() {
282289
return ((CloudDeployStubSettings) getStubSettings()).getConfigSettings();
283290
}
284291

292+
/** Returns the object with the settings used for calls to createAutomation. */
293+
public UnaryCallSettings<CreateAutomationRequest, Operation> createAutomationSettings() {
294+
return ((CloudDeployStubSettings) getStubSettings()).createAutomationSettings();
295+
}
296+
297+
/** Returns the object with the settings used for calls to createAutomation. */
298+
public OperationCallSettings<CreateAutomationRequest, Automation, OperationMetadata>
299+
createAutomationOperationSettings() {
300+
return ((CloudDeployStubSettings) getStubSettings()).createAutomationOperationSettings();
301+
}
302+
303+
/** Returns the object with the settings used for calls to updateAutomation. */
304+
public UnaryCallSettings<UpdateAutomationRequest, Operation> updateAutomationSettings() {
305+
return ((CloudDeployStubSettings) getStubSettings()).updateAutomationSettings();
306+
}
307+
308+
/** Returns the object with the settings used for calls to updateAutomation. */
309+
public OperationCallSettings<UpdateAutomationRequest, Automation, OperationMetadata>
310+
updateAutomationOperationSettings() {
311+
return ((CloudDeployStubSettings) getStubSettings()).updateAutomationOperationSettings();
312+
}
313+
314+
/** Returns the object with the settings used for calls to deleteAutomation. */
315+
public UnaryCallSettings<DeleteAutomationRequest, Operation> deleteAutomationSettings() {
316+
return ((CloudDeployStubSettings) getStubSettings()).deleteAutomationSettings();
317+
}
318+
319+
/** Returns the object with the settings used for calls to deleteAutomation. */
320+
public OperationCallSettings<DeleteAutomationRequest, Empty, OperationMetadata>
321+
deleteAutomationOperationSettings() {
322+
return ((CloudDeployStubSettings) getStubSettings()).deleteAutomationOperationSettings();
323+
}
324+
325+
/** Returns the object with the settings used for calls to getAutomation. */
326+
public UnaryCallSettings<GetAutomationRequest, Automation> getAutomationSettings() {
327+
return ((CloudDeployStubSettings) getStubSettings()).getAutomationSettings();
328+
}
329+
330+
/** Returns the object with the settings used for calls to listAutomations. */
331+
public PagedCallSettings<
332+
ListAutomationsRequest, ListAutomationsResponse, ListAutomationsPagedResponse>
333+
listAutomationsSettings() {
334+
return ((CloudDeployStubSettings) getStubSettings()).listAutomationsSettings();
335+
}
336+
337+
/** Returns the object with the settings used for calls to getAutomationRun. */
338+
public UnaryCallSettings<GetAutomationRunRequest, AutomationRun> getAutomationRunSettings() {
339+
return ((CloudDeployStubSettings) getStubSettings()).getAutomationRunSettings();
340+
}
341+
342+
/** Returns the object with the settings used for calls to listAutomationRuns. */
343+
public PagedCallSettings<
344+
ListAutomationRunsRequest, ListAutomationRunsResponse, ListAutomationRunsPagedResponse>
345+
listAutomationRunsSettings() {
346+
return ((CloudDeployStubSettings) getStubSettings()).listAutomationRunsSettings();
347+
}
348+
349+
/** Returns the object with the settings used for calls to cancelAutomationRun. */
350+
public UnaryCallSettings<CancelAutomationRunRequest, CancelAutomationRunResponse>
351+
cancelAutomationRunSettings() {
352+
return ((CloudDeployStubSettings) getStubSettings()).cancelAutomationRunSettings();
353+
}
354+
285355
/** Returns the object with the settings used for calls to listLocations. */
286356
public PagedCallSettings<ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
287357
listLocationsSettings() {
@@ -483,6 +553,12 @@ public Builder applyToAllUnaryMethods(
483553
return getStubSettingsBuilder().listTargetsSettings();
484554
}
485555

556+
/** Returns the builder for the settings used for calls to rollbackTarget. */
557+
public UnaryCallSettings.Builder<RollbackTargetRequest, RollbackTargetResponse>
558+
rollbackTargetSettings() {
559+
return getStubSettingsBuilder().rollbackTargetSettings();
560+
}
561+
486562
/** Returns the builder for the settings used for calls to getTarget. */
487563
public UnaryCallSettings.Builder<GetTargetRequest, Target> getTargetSettings() {
488564
return getStubSettingsBuilder().getTargetSettings();
@@ -624,6 +700,73 @@ public UnaryCallSettings.Builder<GetConfigRequest, Config> getConfigSettings() {
624700
return getStubSettingsBuilder().getConfigSettings();
625701
}
626702

703+
/** Returns the builder for the settings used for calls to createAutomation. */
704+
public UnaryCallSettings.Builder<CreateAutomationRequest, Operation>
705+
createAutomationSettings() {
706+
return getStubSettingsBuilder().createAutomationSettings();
707+
}
708+
709+
/** Returns the builder for the settings used for calls to createAutomation. */
710+
public OperationCallSettings.Builder<CreateAutomationRequest, Automation, OperationMetadata>
711+
createAutomationOperationSettings() {
712+
return getStubSettingsBuilder().createAutomationOperationSettings();
713+
}
714+
715+
/** Returns the builder for the settings used for calls to updateAutomation. */
716+
public UnaryCallSettings.Builder<UpdateAutomationRequest, Operation>
717+
updateAutomationSettings() {
718+
return getStubSettingsBuilder().updateAutomationSettings();
719+
}
720+
721+
/** Returns the builder for the settings used for calls to updateAutomation. */
722+
public OperationCallSettings.Builder<UpdateAutomationRequest, Automation, OperationMetadata>
723+
updateAutomationOperationSettings() {
724+
return getStubSettingsBuilder().updateAutomationOperationSettings();
725+
}
726+
727+
/** Returns the builder for the settings used for calls to deleteAutomation. */
728+
public UnaryCallSettings.Builder<DeleteAutomationRequest, Operation>
729+
deleteAutomationSettings() {
730+
return getStubSettingsBuilder().deleteAutomationSettings();
731+
}
732+
733+
/** Returns the builder for the settings used for calls to deleteAutomation. */
734+
public OperationCallSettings.Builder<DeleteAutomationRequest, Empty, OperationMetadata>
735+
deleteAutomationOperationSettings() {
736+
return getStubSettingsBuilder().deleteAutomationOperationSettings();
737+
}
738+
739+
/** Returns the builder for the settings used for calls to getAutomation. */
740+
public UnaryCallSettings.Builder<GetAutomationRequest, Automation> getAutomationSettings() {
741+
return getStubSettingsBuilder().getAutomationSettings();
742+
}
743+
744+
/** Returns the builder for the settings used for calls to listAutomations. */
745+
public PagedCallSettings.Builder<
746+
ListAutomationsRequest, ListAutomationsResponse, ListAutomationsPagedResponse>
747+
listAutomationsSettings() {
748+
return getStubSettingsBuilder().listAutomationsSettings();
749+
}
750+
751+
/** Returns the builder for the settings used for calls to getAutomationRun. */
752+
public UnaryCallSettings.Builder<GetAutomationRunRequest, AutomationRun>
753+
getAutomationRunSettings() {
754+
return getStubSettingsBuilder().getAutomationRunSettings();
755+
}
756+
757+
/** Returns the builder for the settings used for calls to listAutomationRuns. */
758+
public PagedCallSettings.Builder<
759+
ListAutomationRunsRequest, ListAutomationRunsResponse, ListAutomationRunsPagedResponse>
760+
listAutomationRunsSettings() {
761+
return getStubSettingsBuilder().listAutomationRunsSettings();
762+
}
763+
764+
/** Returns the builder for the settings used for calls to cancelAutomationRun. */
765+
public UnaryCallSettings.Builder<CancelAutomationRunRequest, CancelAutomationRunResponse>
766+
cancelAutomationRunSettings() {
767+
return getStubSettingsBuilder().cancelAutomationRunSettings();
768+
}
769+
627770
/** Returns the builder for the settings used for calls to listLocations. */
628771
public PagedCallSettings.Builder<
629772
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>

java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/gapic_metadata.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,15 @@
1919
"ApproveRollout": {
2020
"methods": ["approveRollout", "approveRollout", "approveRollout", "approveRolloutCallable"]
2121
},
22+
"CancelAutomationRun": {
23+
"methods": ["cancelAutomationRun", "cancelAutomationRun", "cancelAutomationRun", "cancelAutomationRunCallable"]
24+
},
2225
"CancelRollout": {
2326
"methods": ["cancelRollout", "cancelRollout", "cancelRollout", "cancelRolloutCallable"]
2427
},
28+
"CreateAutomation": {
29+
"methods": ["createAutomationAsync", "createAutomationAsync", "createAutomationAsync", "createAutomationOperationCallable", "createAutomationCallable"]
30+
},
2531
"CreateDeliveryPipeline": {
2632
"methods": ["createDeliveryPipelineAsync", "createDeliveryPipelineAsync", "createDeliveryPipelineAsync", "createDeliveryPipelineOperationCallable", "createDeliveryPipelineCallable"]
2733
},
@@ -34,12 +40,21 @@
3440
"CreateTarget": {
3541
"methods": ["createTargetAsync", "createTargetAsync", "createTargetAsync", "createTargetOperationCallable", "createTargetCallable"]
3642
},
43+
"DeleteAutomation": {
44+
"methods": ["deleteAutomationAsync", "deleteAutomationAsync", "deleteAutomationAsync", "deleteAutomationOperationCallable", "deleteAutomationCallable"]
45+
},
3746
"DeleteDeliveryPipeline": {
3847
"methods": ["deleteDeliveryPipelineAsync", "deleteDeliveryPipelineAsync", "deleteDeliveryPipelineAsync", "deleteDeliveryPipelineOperationCallable", "deleteDeliveryPipelineCallable"]
3948
},
4049
"DeleteTarget": {
4150
"methods": ["deleteTargetAsync", "deleteTargetAsync", "deleteTargetAsync", "deleteTargetOperationCallable", "deleteTargetCallable"]
4251
},
52+
"GetAutomation": {
53+
"methods": ["getAutomation", "getAutomation", "getAutomation", "getAutomationCallable"]
54+
},
55+
"GetAutomationRun": {
56+
"methods": ["getAutomationRun", "getAutomationRun", "getAutomationRun", "getAutomationRunCallable"]
57+
},
4358
"GetConfig": {
4459
"methods": ["getConfig", "getConfig", "getConfig", "getConfigCallable"]
4560
},
@@ -67,6 +82,12 @@
6782
"IgnoreJob": {
6883
"methods": ["ignoreJob", "ignoreJob", "ignoreJob", "ignoreJobCallable"]
6984
},
85+
"ListAutomationRuns": {
86+
"methods": ["listAutomationRuns", "listAutomationRuns", "listAutomationRuns", "listAutomationRunsPagedCallable", "listAutomationRunsCallable"]
87+
},
88+
"ListAutomations": {
89+
"methods": ["listAutomations", "listAutomations", "listAutomations", "listAutomationsPagedCallable", "listAutomationsCallable"]
90+
},
7091
"ListDeliveryPipelines": {
7192
"methods": ["listDeliveryPipelines", "listDeliveryPipelines", "listDeliveryPipelines", "listDeliveryPipelinesPagedCallable", "listDeliveryPipelinesCallable"]
7293
},
@@ -88,6 +109,9 @@
88109
"RetryJob": {
89110
"methods": ["retryJob", "retryJob", "retryJob", "retryJobCallable"]
90111
},
112+
"RollbackTarget": {
113+
"methods": ["rollbackTarget", "rollbackTarget", "rollbackTarget", "rollbackTargetCallable"]
114+
},
91115
"SetIamPolicy": {
92116
"methods": ["setIamPolicy", "setIamPolicyCallable"]
93117
},
@@ -97,6 +121,9 @@
97121
"TestIamPermissions": {
98122
"methods": ["testIamPermissions", "testIamPermissionsCallable"]
99123
},
124+
"UpdateAutomation": {
125+
"methods": ["updateAutomationAsync", "updateAutomationAsync", "updateAutomationOperationCallable", "updateAutomationCallable"]
126+
},
100127
"UpdateDeliveryPipeline": {
101128
"methods": ["updateDeliveryPipelineAsync", "updateDeliveryPipelineAsync", "updateDeliveryPipelineOperationCallable", "updateDeliveryPipelineCallable"]
102129
},

0 commit comments

Comments
 (0)