[go: nahoru, domu]

Skip to content

Commit

Permalink
feat: [clouddeploy] Add deploy parameters for cloud deploy (#9570)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 542243817

Source-Link: https://togithub.com/googleapis/googleapis/commit/1ef8cc2287ed9abb9e9c9800032c2a3405fa8089

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/a021b9b5a8c8365653fcafbb6e98a644ba1c45e4
Copy-Tag: eyJwIjoiamF2YS1kZXBsb3kvLk93bEJvdC55YW1sIiwiaCI6ImEwMjFiOWI1YThjODM2NTY1M2ZjYWZiYjZlOThhNjQ0YmExYzQ1ZTQifQ==
  • Loading branch information
gcf-owl-bot[bot] committed Jun 22, 2023
1 parent 9c1a805 commit c6b3360
Show file tree
Hide file tree
Showing 13 changed files with 3,549 additions and 705 deletions.
2 changes: 1 addition & 1 deletion java-deploy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,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.16.0</version>
<version>26.17.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -745,6 +745,7 @@ public void getTargetTest() throws Exception {
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.addAllExecutionConfigs(new ArrayList<ExecutionConfig>())
.putAllDeployParameters(new HashMap<String, String>())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -799,6 +800,7 @@ public void getTargetTest2() throws Exception {
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.addAllExecutionConfigs(new ArrayList<ExecutionConfig>())
.putAllDeployParameters(new HashMap<String, String>())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -853,6 +855,7 @@ public void createTargetTest() throws Exception {
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.addAllExecutionConfigs(new ArrayList<ExecutionConfig>())
.putAllDeployParameters(new HashMap<String, String>())
.build();
Operation resultOperation =
Operation.newBuilder()
Expand Down Expand Up @@ -916,6 +919,7 @@ public void createTargetTest2() throws Exception {
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.addAllExecutionConfigs(new ArrayList<ExecutionConfig>())
.putAllDeployParameters(new HashMap<String, String>())
.build();
Operation resultOperation =
Operation.newBuilder()
Expand Down Expand Up @@ -979,6 +983,7 @@ public void updateTargetTest() throws Exception {
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.addAllExecutionConfigs(new ArrayList<ExecutionConfig>())
.putAllDeployParameters(new HashMap<String, String>())
.build();
Operation resultOperation =
Operation.newBuilder()
Expand All @@ -1001,6 +1006,7 @@ public void updateTargetTest() throws Exception {
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.addAllExecutionConfigs(new ArrayList<ExecutionConfig>())
.putAllDeployParameters(new HashMap<String, String>())
.build();
FieldMask updateMask = FieldMask.newBuilder().build();

Expand Down Expand Up @@ -1043,6 +1049,7 @@ public void updateTargetExceptionTest() throws Exception {
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.addAllExecutionConfigs(new ArrayList<ExecutionConfig>())
.putAllDeployParameters(new HashMap<String, String>())
.build();
FieldMask updateMask = FieldMask.newBuilder().build();
client.updateTargetAsync(target, updateMask).get();
Expand Down Expand Up @@ -1270,6 +1277,7 @@ public void getReleaseTest() throws Exception {
.putAllTargetArtifacts(new HashMap<String, TargetArtifact>())
.putAllTargetRenders(new HashMap<String, Release.TargetRender>())
.setCondition(Release.ReleaseCondition.newBuilder().build())
.putAllDeployParameters(new HashMap<String, String>())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -1336,6 +1344,7 @@ public void getReleaseTest2() throws Exception {
.putAllTargetArtifacts(new HashMap<String, TargetArtifact>())
.putAllTargetRenders(new HashMap<String, Release.TargetRender>())
.setCondition(Release.ReleaseCondition.newBuilder().build())
.putAllDeployParameters(new HashMap<String, String>())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -1402,6 +1411,7 @@ public void createReleaseTest() throws Exception {
.putAllTargetArtifacts(new HashMap<String, TargetArtifact>())
.putAllTargetRenders(new HashMap<String, Release.TargetRender>())
.setCondition(Release.ReleaseCondition.newBuilder().build())
.putAllDeployParameters(new HashMap<String, String>())
.build();
Operation resultOperation =
Operation.newBuilder()
Expand Down Expand Up @@ -1477,6 +1487,7 @@ public void createReleaseTest2() throws Exception {
.putAllTargetArtifacts(new HashMap<String, TargetArtifact>())
.putAllTargetRenders(new HashMap<String, Release.TargetRender>())
.setCondition(Release.ReleaseCondition.newBuilder().build())
.putAllDeployParameters(new HashMap<String, String>())
.build();
Operation resultOperation =
Operation.newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,7 @@ public void getTargetTest() throws Exception {
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.addAllExecutionConfigs(new ArrayList<ExecutionConfig>())
.putAllDeployParameters(new HashMap<String, String>())
.build();
mockCloudDeploy.addResponse(expectedResponse);

Expand Down Expand Up @@ -731,6 +732,7 @@ public void getTargetTest2() throws Exception {
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.addAllExecutionConfigs(new ArrayList<ExecutionConfig>())
.putAllDeployParameters(new HashMap<String, String>())
.build();
mockCloudDeploy.addResponse(expectedResponse);

Expand Down Expand Up @@ -779,6 +781,7 @@ public void createTargetTest() throws Exception {
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.addAllExecutionConfigs(new ArrayList<ExecutionConfig>())
.putAllDeployParameters(new HashMap<String, String>())
.build();
Operation resultOperation =
Operation.newBuilder()
Expand Down Expand Up @@ -841,6 +844,7 @@ public void createTargetTest2() throws Exception {
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.addAllExecutionConfigs(new ArrayList<ExecutionConfig>())
.putAllDeployParameters(new HashMap<String, String>())
.build();
Operation resultOperation =
Operation.newBuilder()
Expand Down Expand Up @@ -903,6 +907,7 @@ public void updateTargetTest() throws Exception {
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.addAllExecutionConfigs(new ArrayList<ExecutionConfig>())
.putAllDeployParameters(new HashMap<String, String>())
.build();
Operation resultOperation =
Operation.newBuilder()
Expand Down Expand Up @@ -1146,6 +1151,7 @@ public void getReleaseTest() throws Exception {
.putAllTargetArtifacts(new HashMap<String, TargetArtifact>())
.putAllTargetRenders(new HashMap<String, Release.TargetRender>())
.setCondition(Release.ReleaseCondition.newBuilder().build())
.putAllDeployParameters(new HashMap<String, String>())
.build();
mockCloudDeploy.addResponse(expectedResponse);

Expand Down Expand Up @@ -1206,6 +1212,7 @@ public void getReleaseTest2() throws Exception {
.putAllTargetArtifacts(new HashMap<String, TargetArtifact>())
.putAllTargetRenders(new HashMap<String, Release.TargetRender>())
.setCondition(Release.ReleaseCondition.newBuilder().build())
.putAllDeployParameters(new HashMap<String, String>())
.build();
mockCloudDeploy.addResponse(expectedResponse);

Expand Down Expand Up @@ -1264,6 +1271,7 @@ public void createReleaseTest() throws Exception {
.putAllTargetArtifacts(new HashMap<String, TargetArtifact>())
.putAllTargetRenders(new HashMap<String, Release.TargetRender>())
.setCondition(Release.ReleaseCondition.newBuilder().build())
.putAllDeployParameters(new HashMap<String, String>())
.build();
Operation resultOperation =
Operation.newBuilder()
Expand Down Expand Up @@ -1338,6 +1346,7 @@ public void createReleaseTest2() throws Exception {
.putAllTargetArtifacts(new HashMap<String, TargetArtifact>())
.putAllTargetRenders(new HashMap<String, Release.TargetRender>())
.setCondition(Release.ReleaseCondition.newBuilder().build())
.putAllDeployParameters(new HashMap<String, String>())
.build();
Operation resultOperation =
Operation.newBuilder()
Expand Down
Loading

0 comments on commit c6b3360

Please sign in to comment.