Skip to content

Commit c6b3360

Browse files
feat: [clouddeploy] Add deploy parameters for cloud deploy (#9570)
- [ ] 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==
1 parent 9c1a805 commit c6b3360

File tree

13 files changed

+3549
-705
lines changed

13 files changed

+3549
-705
lines changed

java-deploy/README.md

Lines changed: 1 addition & 1 deletion
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.16.0</version>
23+
<version>26.17.0</version>
2424
<type>pom</type>
2525
<scope>import</scope>
2626
</dependency>

java-deploy/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/CloudDeployClientHttpJsonTest.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -745,6 +745,7 @@ public void getTargetTest() throws Exception {
745745
.setUpdateTime(Timestamp.newBuilder().build())
746746
.setEtag("etag3123477")
747747
.addAllExecutionConfigs(new ArrayList<ExecutionConfig>())
748+
.putAllDeployParameters(new HashMap<String, String>())
748749
.build();
749750
mockService.addResponse(expectedResponse);
750751

@@ -799,6 +800,7 @@ public void getTargetTest2() throws Exception {
799800
.setUpdateTime(Timestamp.newBuilder().build())
800801
.setEtag("etag3123477")
801802
.addAllExecutionConfigs(new ArrayList<ExecutionConfig>())
803+
.putAllDeployParameters(new HashMap<String, String>())
802804
.build();
803805
mockService.addResponse(expectedResponse);
804806

@@ -853,6 +855,7 @@ public void createTargetTest() throws Exception {
853855
.setUpdateTime(Timestamp.newBuilder().build())
854856
.setEtag("etag3123477")
855857
.addAllExecutionConfigs(new ArrayList<ExecutionConfig>())
858+
.putAllDeployParameters(new HashMap<String, String>())
856859
.build();
857860
Operation resultOperation =
858861
Operation.newBuilder()
@@ -916,6 +919,7 @@ public void createTargetTest2() throws Exception {
916919
.setUpdateTime(Timestamp.newBuilder().build())
917920
.setEtag("etag3123477")
918921
.addAllExecutionConfigs(new ArrayList<ExecutionConfig>())
922+
.putAllDeployParameters(new HashMap<String, String>())
919923
.build();
920924
Operation resultOperation =
921925
Operation.newBuilder()
@@ -979,6 +983,7 @@ public void updateTargetTest() throws Exception {
979983
.setUpdateTime(Timestamp.newBuilder().build())
980984
.setEtag("etag3123477")
981985
.addAllExecutionConfigs(new ArrayList<ExecutionConfig>())
986+
.putAllDeployParameters(new HashMap<String, String>())
982987
.build();
983988
Operation resultOperation =
984989
Operation.newBuilder()
@@ -1001,6 +1006,7 @@ public void updateTargetTest() throws Exception {
10011006
.setUpdateTime(Timestamp.newBuilder().build())
10021007
.setEtag("etag3123477")
10031008
.addAllExecutionConfigs(new ArrayList<ExecutionConfig>())
1009+
.putAllDeployParameters(new HashMap<String, String>())
10041010
.build();
10051011
FieldMask updateMask = FieldMask.newBuilder().build();
10061012

@@ -1043,6 +1049,7 @@ public void updateTargetExceptionTest() throws Exception {
10431049
.setUpdateTime(Timestamp.newBuilder().build())
10441050
.setEtag("etag3123477")
10451051
.addAllExecutionConfigs(new ArrayList<ExecutionConfig>())
1052+
.putAllDeployParameters(new HashMap<String, String>())
10461053
.build();
10471054
FieldMask updateMask = FieldMask.newBuilder().build();
10481055
client.updateTargetAsync(target, updateMask).get();
@@ -1270,6 +1277,7 @@ public void getReleaseTest() throws Exception {
12701277
.putAllTargetArtifacts(new HashMap<String, TargetArtifact>())
12711278
.putAllTargetRenders(new HashMap<String, Release.TargetRender>())
12721279
.setCondition(Release.ReleaseCondition.newBuilder().build())
1280+
.putAllDeployParameters(new HashMap<String, String>())
12731281
.build();
12741282
mockService.addResponse(expectedResponse);
12751283

@@ -1336,6 +1344,7 @@ public void getReleaseTest2() throws Exception {
13361344
.putAllTargetArtifacts(new HashMap<String, TargetArtifact>())
13371345
.putAllTargetRenders(new HashMap<String, Release.TargetRender>())
13381346
.setCondition(Release.ReleaseCondition.newBuilder().build())
1347+
.putAllDeployParameters(new HashMap<String, String>())
13391348
.build();
13401349
mockService.addResponse(expectedResponse);
13411350

@@ -1402,6 +1411,7 @@ public void createReleaseTest() throws Exception {
14021411
.putAllTargetArtifacts(new HashMap<String, TargetArtifact>())
14031412
.putAllTargetRenders(new HashMap<String, Release.TargetRender>())
14041413
.setCondition(Release.ReleaseCondition.newBuilder().build())
1414+
.putAllDeployParameters(new HashMap<String, String>())
14051415
.build();
14061416
Operation resultOperation =
14071417
Operation.newBuilder()
@@ -1477,6 +1487,7 @@ public void createReleaseTest2() throws Exception {
14771487
.putAllTargetArtifacts(new HashMap<String, TargetArtifact>())
14781488
.putAllTargetRenders(new HashMap<String, Release.TargetRender>())
14791489
.setCondition(Release.ReleaseCondition.newBuilder().build())
1490+
.putAllDeployParameters(new HashMap<String, String>())
14801491
.build();
14811492
Operation resultOperation =
14821493
Operation.newBuilder()

java-deploy/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/CloudDeployClientTest.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,7 @@ public void getTargetTest() throws Exception {
683683
.setUpdateTime(Timestamp.newBuilder().build())
684684
.setEtag("etag3123477")
685685
.addAllExecutionConfigs(new ArrayList<ExecutionConfig>())
686+
.putAllDeployParameters(new HashMap<String, String>())
686687
.build();
687688
mockCloudDeploy.addResponse(expectedResponse);
688689

@@ -731,6 +732,7 @@ public void getTargetTest2() throws Exception {
731732
.setUpdateTime(Timestamp.newBuilder().build())
732733
.setEtag("etag3123477")
733734
.addAllExecutionConfigs(new ArrayList<ExecutionConfig>())
735+
.putAllDeployParameters(new HashMap<String, String>())
734736
.build();
735737
mockCloudDeploy.addResponse(expectedResponse);
736738

@@ -779,6 +781,7 @@ public void createTargetTest() throws Exception {
779781
.setUpdateTime(Timestamp.newBuilder().build())
780782
.setEtag("etag3123477")
781783
.addAllExecutionConfigs(new ArrayList<ExecutionConfig>())
784+
.putAllDeployParameters(new HashMap<String, String>())
782785
.build();
783786
Operation resultOperation =
784787
Operation.newBuilder()
@@ -841,6 +844,7 @@ public void createTargetTest2() throws Exception {
841844
.setUpdateTime(Timestamp.newBuilder().build())
842845
.setEtag("etag3123477")
843846
.addAllExecutionConfigs(new ArrayList<ExecutionConfig>())
847+
.putAllDeployParameters(new HashMap<String, String>())
844848
.build();
845849
Operation resultOperation =
846850
Operation.newBuilder()
@@ -903,6 +907,7 @@ public void updateTargetTest() throws Exception {
903907
.setUpdateTime(Timestamp.newBuilder().build())
904908
.setEtag("etag3123477")
905909
.addAllExecutionConfigs(new ArrayList<ExecutionConfig>())
910+
.putAllDeployParameters(new HashMap<String, String>())
906911
.build();
907912
Operation resultOperation =
908913
Operation.newBuilder()
@@ -1146,6 +1151,7 @@ public void getReleaseTest() throws Exception {
11461151
.putAllTargetArtifacts(new HashMap<String, TargetArtifact>())
11471152
.putAllTargetRenders(new HashMap<String, Release.TargetRender>())
11481153
.setCondition(Release.ReleaseCondition.newBuilder().build())
1154+
.putAllDeployParameters(new HashMap<String, String>())
11491155
.build();
11501156
mockCloudDeploy.addResponse(expectedResponse);
11511157

@@ -1206,6 +1212,7 @@ public void getReleaseTest2() throws Exception {
12061212
.putAllTargetArtifacts(new HashMap<String, TargetArtifact>())
12071213
.putAllTargetRenders(new HashMap<String, Release.TargetRender>())
12081214
.setCondition(Release.ReleaseCondition.newBuilder().build())
1215+
.putAllDeployParameters(new HashMap<String, String>())
12091216
.build();
12101217
mockCloudDeploy.addResponse(expectedResponse);
12111218

@@ -1264,6 +1271,7 @@ public void createReleaseTest() throws Exception {
12641271
.putAllTargetArtifacts(new HashMap<String, TargetArtifact>())
12651272
.putAllTargetRenders(new HashMap<String, Release.TargetRender>())
12661273
.setCondition(Release.ReleaseCondition.newBuilder().build())
1274+
.putAllDeployParameters(new HashMap<String, String>())
12671275
.build();
12681276
Operation resultOperation =
12691277
Operation.newBuilder()
@@ -1338,6 +1346,7 @@ public void createReleaseTest2() throws Exception {
13381346
.putAllTargetArtifacts(new HashMap<String, TargetArtifact>())
13391347
.putAllTargetRenders(new HashMap<String, Release.TargetRender>())
13401348
.setCondition(Release.ReleaseCondition.newBuilder().build())
1349+
.putAllDeployParameters(new HashMap<String, String>())
13411350
.build();
13421351
Operation resultOperation =
13431352
Operation.newBuilder()

0 commit comments

Comments
 (0)