Skip to content

Commit 003e683

Browse files
feat: [clouddeploy] Add custom target type support (#10109)
* feat: Add custom target type support feat: Add revision tagging for one of the Cloud Run deployment strategies docs: Fixed a number of comments. PiperOrigin-RevId: 587671915 Source-Link: googleapis/googleapis@1523043 Source-Link: https://github.com/googleapis/googleapis-gen/commit/d0ab47de58741dba7a2a4300f10bd2b853f0a6cf Copy-Tag: eyJwIjoiamF2YS1kZXBsb3kvLk93bEJvdC55YW1sIiwiaCI6ImQwYWI0N2RlNTg3NDFkYmE3YTJhNDMwMGYxMGJkMmI4NTNmMGE2Y2YifQ== * 🦉 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 d0c836e commit 003e683

File tree

95 files changed

+30481
-1316
lines changed

Some content is hidden

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

95 files changed

+30481
-1316
lines changed

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

+873-6
Large diffs are not rendered by default.

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

+105
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
import static com.google.cloud.deploy.v1.CloudDeployClient.ListAutomationRunsPagedResponse;
2020
import static com.google.cloud.deploy.v1.CloudDeployClient.ListAutomationsPagedResponse;
21+
import static com.google.cloud.deploy.v1.CloudDeployClient.ListCustomTargetTypesPagedResponse;
2122
import static com.google.cloud.deploy.v1.CloudDeployClient.ListDeliveryPipelinesPagedResponse;
2223
import static com.google.cloud.deploy.v1.CloudDeployClient.ListJobRunsPagedResponse;
2324
import static com.google.cloud.deploy.v1.CloudDeployClient.ListLocationsPagedResponse;
@@ -193,6 +194,57 @@ public UnaryCallSettings<DeleteTargetRequest, Operation> deleteTargetSettings()
193194
return ((CloudDeployStubSettings) getStubSettings()).deleteTargetOperationSettings();
194195
}
195196

197+
/** Returns the object with the settings used for calls to listCustomTargetTypes. */
198+
public PagedCallSettings<
199+
ListCustomTargetTypesRequest,
200+
ListCustomTargetTypesResponse,
201+
ListCustomTargetTypesPagedResponse>
202+
listCustomTargetTypesSettings() {
203+
return ((CloudDeployStubSettings) getStubSettings()).listCustomTargetTypesSettings();
204+
}
205+
206+
/** Returns the object with the settings used for calls to getCustomTargetType. */
207+
public UnaryCallSettings<GetCustomTargetTypeRequest, CustomTargetType>
208+
getCustomTargetTypeSettings() {
209+
return ((CloudDeployStubSettings) getStubSettings()).getCustomTargetTypeSettings();
210+
}
211+
212+
/** Returns the object with the settings used for calls to createCustomTargetType. */
213+
public UnaryCallSettings<CreateCustomTargetTypeRequest, Operation>
214+
createCustomTargetTypeSettings() {
215+
return ((CloudDeployStubSettings) getStubSettings()).createCustomTargetTypeSettings();
216+
}
217+
218+
/** Returns the object with the settings used for calls to createCustomTargetType. */
219+
public OperationCallSettings<CreateCustomTargetTypeRequest, CustomTargetType, OperationMetadata>
220+
createCustomTargetTypeOperationSettings() {
221+
return ((CloudDeployStubSettings) getStubSettings()).createCustomTargetTypeOperationSettings();
222+
}
223+
224+
/** Returns the object with the settings used for calls to updateCustomTargetType. */
225+
public UnaryCallSettings<UpdateCustomTargetTypeRequest, Operation>
226+
updateCustomTargetTypeSettings() {
227+
return ((CloudDeployStubSettings) getStubSettings()).updateCustomTargetTypeSettings();
228+
}
229+
230+
/** Returns the object with the settings used for calls to updateCustomTargetType. */
231+
public OperationCallSettings<UpdateCustomTargetTypeRequest, CustomTargetType, OperationMetadata>
232+
updateCustomTargetTypeOperationSettings() {
233+
return ((CloudDeployStubSettings) getStubSettings()).updateCustomTargetTypeOperationSettings();
234+
}
235+
236+
/** Returns the object with the settings used for calls to deleteCustomTargetType. */
237+
public UnaryCallSettings<DeleteCustomTargetTypeRequest, Operation>
238+
deleteCustomTargetTypeSettings() {
239+
return ((CloudDeployStubSettings) getStubSettings()).deleteCustomTargetTypeSettings();
240+
}
241+
242+
/** Returns the object with the settings used for calls to deleteCustomTargetType. */
243+
public OperationCallSettings<DeleteCustomTargetTypeRequest, Empty, OperationMetadata>
244+
deleteCustomTargetTypeOperationSettings() {
245+
return ((CloudDeployStubSettings) getStubSettings()).deleteCustomTargetTypeOperationSettings();
246+
}
247+
196248
/** Returns the object with the settings used for calls to listReleases. */
197249
public PagedCallSettings<ListReleasesRequest, ListReleasesResponse, ListReleasesPagedResponse>
198250
listReleasesSettings() {
@@ -597,6 +649,59 @@ public UnaryCallSettings.Builder<DeleteTargetRequest, Operation> deleteTargetSet
597649
return getStubSettingsBuilder().deleteTargetOperationSettings();
598650
}
599651

652+
/** Returns the builder for the settings used for calls to listCustomTargetTypes. */
653+
public PagedCallSettings.Builder<
654+
ListCustomTargetTypesRequest,
655+
ListCustomTargetTypesResponse,
656+
ListCustomTargetTypesPagedResponse>
657+
listCustomTargetTypesSettings() {
658+
return getStubSettingsBuilder().listCustomTargetTypesSettings();
659+
}
660+
661+
/** Returns the builder for the settings used for calls to getCustomTargetType. */
662+
public UnaryCallSettings.Builder<GetCustomTargetTypeRequest, CustomTargetType>
663+
getCustomTargetTypeSettings() {
664+
return getStubSettingsBuilder().getCustomTargetTypeSettings();
665+
}
666+
667+
/** Returns the builder for the settings used for calls to createCustomTargetType. */
668+
public UnaryCallSettings.Builder<CreateCustomTargetTypeRequest, Operation>
669+
createCustomTargetTypeSettings() {
670+
return getStubSettingsBuilder().createCustomTargetTypeSettings();
671+
}
672+
673+
/** Returns the builder for the settings used for calls to createCustomTargetType. */
674+
public OperationCallSettings.Builder<
675+
CreateCustomTargetTypeRequest, CustomTargetType, OperationMetadata>
676+
createCustomTargetTypeOperationSettings() {
677+
return getStubSettingsBuilder().createCustomTargetTypeOperationSettings();
678+
}
679+
680+
/** Returns the builder for the settings used for calls to updateCustomTargetType. */
681+
public UnaryCallSettings.Builder<UpdateCustomTargetTypeRequest, Operation>
682+
updateCustomTargetTypeSettings() {
683+
return getStubSettingsBuilder().updateCustomTargetTypeSettings();
684+
}
685+
686+
/** Returns the builder for the settings used for calls to updateCustomTargetType. */
687+
public OperationCallSettings.Builder<
688+
UpdateCustomTargetTypeRequest, CustomTargetType, OperationMetadata>
689+
updateCustomTargetTypeOperationSettings() {
690+
return getStubSettingsBuilder().updateCustomTargetTypeOperationSettings();
691+
}
692+
693+
/** Returns the builder for the settings used for calls to deleteCustomTargetType. */
694+
public UnaryCallSettings.Builder<DeleteCustomTargetTypeRequest, Operation>
695+
deleteCustomTargetTypeSettings() {
696+
return getStubSettingsBuilder().deleteCustomTargetTypeSettings();
697+
}
698+
699+
/** Returns the builder for the settings used for calls to deleteCustomTargetType. */
700+
public OperationCallSettings.Builder<DeleteCustomTargetTypeRequest, Empty, OperationMetadata>
701+
deleteCustomTargetTypeOperationSettings() {
702+
return getStubSettingsBuilder().deleteCustomTargetTypeOperationSettings();
703+
}
704+
600705
/** Returns the builder for the settings used for calls to listReleases. */
601706
public PagedCallSettings.Builder<
602707
ListReleasesRequest, ListReleasesResponse, ListReleasesPagedResponse>

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

+15
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
"CreateAutomation": {
2929
"methods": ["createAutomationAsync", "createAutomationAsync", "createAutomationAsync", "createAutomationOperationCallable", "createAutomationCallable"]
3030
},
31+
"CreateCustomTargetType": {
32+
"methods": ["createCustomTargetTypeAsync", "createCustomTargetTypeAsync", "createCustomTargetTypeAsync", "createCustomTargetTypeOperationCallable", "createCustomTargetTypeCallable"]
33+
},
3134
"CreateDeliveryPipeline": {
3235
"methods": ["createDeliveryPipelineAsync", "createDeliveryPipelineAsync", "createDeliveryPipelineAsync", "createDeliveryPipelineOperationCallable", "createDeliveryPipelineCallable"]
3336
},
@@ -43,6 +46,9 @@
4346
"DeleteAutomation": {
4447
"methods": ["deleteAutomationAsync", "deleteAutomationAsync", "deleteAutomationAsync", "deleteAutomationOperationCallable", "deleteAutomationCallable"]
4548
},
49+
"DeleteCustomTargetType": {
50+
"methods": ["deleteCustomTargetTypeAsync", "deleteCustomTargetTypeAsync", "deleteCustomTargetTypeAsync", "deleteCustomTargetTypeOperationCallable", "deleteCustomTargetTypeCallable"]
51+
},
4652
"DeleteDeliveryPipeline": {
4753
"methods": ["deleteDeliveryPipelineAsync", "deleteDeliveryPipelineAsync", "deleteDeliveryPipelineAsync", "deleteDeliveryPipelineOperationCallable", "deleteDeliveryPipelineCallable"]
4854
},
@@ -58,6 +64,9 @@
5864
"GetConfig": {
5965
"methods": ["getConfig", "getConfig", "getConfig", "getConfigCallable"]
6066
},
67+
"GetCustomTargetType": {
68+
"methods": ["getCustomTargetType", "getCustomTargetType", "getCustomTargetType", "getCustomTargetTypeCallable"]
69+
},
6170
"GetDeliveryPipeline": {
6271
"methods": ["getDeliveryPipeline", "getDeliveryPipeline", "getDeliveryPipeline", "getDeliveryPipelineCallable"]
6372
},
@@ -88,6 +97,9 @@
8897
"ListAutomations": {
8998
"methods": ["listAutomations", "listAutomations", "listAutomations", "listAutomationsPagedCallable", "listAutomationsCallable"]
9099
},
100+
"ListCustomTargetTypes": {
101+
"methods": ["listCustomTargetTypes", "listCustomTargetTypes", "listCustomTargetTypes", "listCustomTargetTypesPagedCallable", "listCustomTargetTypesCallable"]
102+
},
91103
"ListDeliveryPipelines": {
92104
"methods": ["listDeliveryPipelines", "listDeliveryPipelines", "listDeliveryPipelines", "listDeliveryPipelinesPagedCallable", "listDeliveryPipelinesCallable"]
93105
},
@@ -124,6 +136,9 @@
124136
"UpdateAutomation": {
125137
"methods": ["updateAutomationAsync", "updateAutomationAsync", "updateAutomationOperationCallable", "updateAutomationCallable"]
126138
},
139+
"UpdateCustomTargetType": {
140+
"methods": ["updateCustomTargetTypeAsync", "updateCustomTargetTypeAsync", "updateCustomTargetTypeOperationCallable", "updateCustomTargetTypeCallable"]
141+
},
127142
"UpdateDeliveryPipeline": {
128143
"methods": ["updateDeliveryPipelineAsync", "updateDeliveryPipelineAsync", "updateDeliveryPipelineOperationCallable", "updateDeliveryPipelineCallable"]
129144
},

java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStub.java

+53
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
import static com.google.cloud.deploy.v1.CloudDeployClient.ListAutomationRunsPagedResponse;
2020
import static com.google.cloud.deploy.v1.CloudDeployClient.ListAutomationsPagedResponse;
21+
import static com.google.cloud.deploy.v1.CloudDeployClient.ListCustomTargetTypesPagedResponse;
2122
import static com.google.cloud.deploy.v1.CloudDeployClient.ListDeliveryPipelinesPagedResponse;
2223
import static com.google.cloud.deploy.v1.CloudDeployClient.ListJobRunsPagedResponse;
2324
import static com.google.cloud.deploy.v1.CloudDeployClient.ListLocationsPagedResponse;
@@ -42,17 +43,21 @@
4243
import com.google.cloud.deploy.v1.CancelRolloutResponse;
4344
import com.google.cloud.deploy.v1.Config;
4445
import com.google.cloud.deploy.v1.CreateAutomationRequest;
46+
import com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest;
4547
import com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest;
4648
import com.google.cloud.deploy.v1.CreateReleaseRequest;
4749
import com.google.cloud.deploy.v1.CreateRolloutRequest;
4850
import com.google.cloud.deploy.v1.CreateTargetRequest;
51+
import com.google.cloud.deploy.v1.CustomTargetType;
4952
import com.google.cloud.deploy.v1.DeleteAutomationRequest;
53+
import com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest;
5054
import com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest;
5155
import com.google.cloud.deploy.v1.DeleteTargetRequest;
5256
import com.google.cloud.deploy.v1.DeliveryPipeline;
5357
import com.google.cloud.deploy.v1.GetAutomationRequest;
5458
import com.google.cloud.deploy.v1.GetAutomationRunRequest;
5559
import com.google.cloud.deploy.v1.GetConfigRequest;
60+
import com.google.cloud.deploy.v1.GetCustomTargetTypeRequest;
5661
import com.google.cloud.deploy.v1.GetDeliveryPipelineRequest;
5762
import com.google.cloud.deploy.v1.GetJobRunRequest;
5863
import com.google.cloud.deploy.v1.GetReleaseRequest;
@@ -65,6 +70,8 @@
6570
import com.google.cloud.deploy.v1.ListAutomationRunsResponse;
6671
import com.google.cloud.deploy.v1.ListAutomationsRequest;
6772
import com.google.cloud.deploy.v1.ListAutomationsResponse;
73+
import com.google.cloud.deploy.v1.ListCustomTargetTypesRequest;
74+
import com.google.cloud.deploy.v1.ListCustomTargetTypesResponse;
6875
import com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest;
6976
import com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse;
7077
import com.google.cloud.deploy.v1.ListJobRunsRequest;
@@ -86,6 +93,7 @@
8693
import com.google.cloud.deploy.v1.TerminateJobRunRequest;
8794
import com.google.cloud.deploy.v1.TerminateJobRunResponse;
8895
import com.google.cloud.deploy.v1.UpdateAutomationRequest;
96+
import com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest;
8997
import com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest;
9098
import com.google.cloud.deploy.v1.UpdateTargetRequest;
9199
import com.google.cloud.location.GetLocationRequest;
@@ -207,6 +215,51 @@ public UnaryCallable<DeleteTargetRequest, Operation> deleteTargetCallable() {
207215
throw new UnsupportedOperationException("Not implemented: deleteTargetCallable()");
208216
}
209217

218+
public UnaryCallable<ListCustomTargetTypesRequest, ListCustomTargetTypesPagedResponse>
219+
listCustomTargetTypesPagedCallable() {
220+
throw new UnsupportedOperationException(
221+
"Not implemented: listCustomTargetTypesPagedCallable()");
222+
}
223+
224+
public UnaryCallable<ListCustomTargetTypesRequest, ListCustomTargetTypesResponse>
225+
listCustomTargetTypesCallable() {
226+
throw new UnsupportedOperationException("Not implemented: listCustomTargetTypesCallable()");
227+
}
228+
229+
public UnaryCallable<GetCustomTargetTypeRequest, CustomTargetType> getCustomTargetTypeCallable() {
230+
throw new UnsupportedOperationException("Not implemented: getCustomTargetTypeCallable()");
231+
}
232+
233+
public OperationCallable<CreateCustomTargetTypeRequest, CustomTargetType, OperationMetadata>
234+
createCustomTargetTypeOperationCallable() {
235+
throw new UnsupportedOperationException(
236+
"Not implemented: createCustomTargetTypeOperationCallable()");
237+
}
238+
239+
public UnaryCallable<CreateCustomTargetTypeRequest, Operation> createCustomTargetTypeCallable() {
240+
throw new UnsupportedOperationException("Not implemented: createCustomTargetTypeCallable()");
241+
}
242+
243+
public OperationCallable<UpdateCustomTargetTypeRequest, CustomTargetType, OperationMetadata>
244+
updateCustomTargetTypeOperationCallable() {
245+
throw new UnsupportedOperationException(
246+
"Not implemented: updateCustomTargetTypeOperationCallable()");
247+
}
248+
249+
public UnaryCallable<UpdateCustomTargetTypeRequest, Operation> updateCustomTargetTypeCallable() {
250+
throw new UnsupportedOperationException("Not implemented: updateCustomTargetTypeCallable()");
251+
}
252+
253+
public OperationCallable<DeleteCustomTargetTypeRequest, Empty, OperationMetadata>
254+
deleteCustomTargetTypeOperationCallable() {
255+
throw new UnsupportedOperationException(
256+
"Not implemented: deleteCustomTargetTypeOperationCallable()");
257+
}
258+
259+
public UnaryCallable<DeleteCustomTargetTypeRequest, Operation> deleteCustomTargetTypeCallable() {
260+
throw new UnsupportedOperationException("Not implemented: deleteCustomTargetTypeCallable()");
261+
}
262+
210263
public UnaryCallable<ListReleasesRequest, ListReleasesPagedResponse> listReleasesPagedCallable() {
211264
throw new UnsupportedOperationException("Not implemented: listReleasesPagedCallable()");
212265
}

0 commit comments

Comments
 (0)