Skip to content

Commit e9ad43e

Browse files
1 parent c81a051 commit e9ad43e

File tree

9 files changed

+375
-25
lines changed

9 files changed

+375
-25
lines changed

clients/google-api-services-workflowexecutions/v1/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-workflowexecutions</artifactId>
25-
<version>v1-rev20240715-2.0.0</version>
25+
<version>v1-rev20240813-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-workflowexecutions:v1-rev20240715-2.0.0'
38+
implementation 'com.google.apis:google-api-services-workflowexecutions:v1-rev20240813-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-workflowexecutions/v1/2.0.0/com/google/api/services/workflowexecutions/v1/WorkflowExecutions.java

Lines changed: 188 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,147 @@ public Create set(String parameterName, Object value) {
644644
return (Create) super.set(parameterName, value);
645645
}
646646
}
647+
/**
648+
* Deletes all step entries for an execution.
649+
*
650+
* Create a request for the method "executions.deleteExecutionHistory".
651+
*
652+
* This request holds the parameters needed by the workflowexecutions server. After setting any
653+
* optional parameters, call the {@link DeleteExecutionHistory#execute()} method to invoke the
654+
* remote operation.
655+
*
656+
* @param name Required. Name of the execution for which step entries should be deleted. Format:
657+
* projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
658+
* @param content the {@link com.google.api.services.workflowexecutions.v1.model.DeleteExecutionHistoryRequest}
659+
* @return the request
660+
*/
661+
public DeleteExecutionHistory deleteExecutionHistory(java.lang.String name, com.google.api.services.workflowexecutions.v1.model.DeleteExecutionHistoryRequest content) throws java.io.IOException {
662+
DeleteExecutionHistory result = new DeleteExecutionHistory(name, content);
663+
initialize(result);
664+
return result;
665+
}
666+
667+
public class DeleteExecutionHistory extends WorkflowExecutionsRequest<com.google.api.services.workflowexecutions.v1.model.Empty> {
668+
669+
private static final String REST_PATH = "v1/{+name}:deleteExecutionHistory";
670+
671+
private final java.util.regex.Pattern NAME_PATTERN =
672+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/workflows/[^/]+/executions/[^/]+$");
673+
674+
/**
675+
* Deletes all step entries for an execution.
676+
*
677+
* Create a request for the method "executions.deleteExecutionHistory".
678+
*
679+
* This request holds the parameters needed by the the workflowexecutions server. After setting
680+
* any optional parameters, call the {@link DeleteExecutionHistory#execute()} method to invoke the
681+
* remote operation. <p> {@link DeleteExecutionHistory#initialize(com.google.api.client.googleapis
682+
* .services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately
683+
* after invoking the constructor. </p>
684+
*
685+
* @param name Required. Name of the execution for which step entries should be deleted. Format:
686+
* projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
687+
* @param content the {@link com.google.api.services.workflowexecutions.v1.model.DeleteExecutionHistoryRequest}
688+
* @since 1.13
689+
*/
690+
protected DeleteExecutionHistory(java.lang.String name, com.google.api.services.workflowexecutions.v1.model.DeleteExecutionHistoryRequest content) {
691+
super(WorkflowExecutions.this, "POST", REST_PATH, content, com.google.api.services.workflowexecutions.v1.model.Empty.class);
692+
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
693+
if (!getSuppressPatternChecks()) {
694+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
695+
"Parameter name must conform to the pattern " +
696+
"^projects/[^/]+/locations/[^/]+/workflows/[^/]+/executions/[^/]+$");
697+
}
698+
}
699+
700+
@Override
701+
public DeleteExecutionHistory set$Xgafv(java.lang.String $Xgafv) {
702+
return (DeleteExecutionHistory) super.set$Xgafv($Xgafv);
703+
}
704+
705+
@Override
706+
public DeleteExecutionHistory setAccessToken(java.lang.String accessToken) {
707+
return (DeleteExecutionHistory) super.setAccessToken(accessToken);
708+
}
709+
710+
@Override
711+
public DeleteExecutionHistory setAlt(java.lang.String alt) {
712+
return (DeleteExecutionHistory) super.setAlt(alt);
713+
}
714+
715+
@Override
716+
public DeleteExecutionHistory setCallback(java.lang.String callback) {
717+
return (DeleteExecutionHistory) super.setCallback(callback);
718+
}
719+
720+
@Override
721+
public DeleteExecutionHistory setFields(java.lang.String fields) {
722+
return (DeleteExecutionHistory) super.setFields(fields);
723+
}
724+
725+
@Override
726+
public DeleteExecutionHistory setKey(java.lang.String key) {
727+
return (DeleteExecutionHistory) super.setKey(key);
728+
}
729+
730+
@Override
731+
public DeleteExecutionHistory setOauthToken(java.lang.String oauthToken) {
732+
return (DeleteExecutionHistory) super.setOauthToken(oauthToken);
733+
}
734+
735+
@Override
736+
public DeleteExecutionHistory setPrettyPrint(java.lang.Boolean prettyPrint) {
737+
return (DeleteExecutionHistory) super.setPrettyPrint(prettyPrint);
738+
}
739+
740+
@Override
741+
public DeleteExecutionHistory setQuotaUser(java.lang.String quotaUser) {
742+
return (DeleteExecutionHistory) super.setQuotaUser(quotaUser);
743+
}
744+
745+
@Override
746+
public DeleteExecutionHistory setUploadType(java.lang.String uploadType) {
747+
return (DeleteExecutionHistory) super.setUploadType(uploadType);
748+
}
749+
750+
@Override
751+
public DeleteExecutionHistory setUploadProtocol(java.lang.String uploadProtocol) {
752+
return (DeleteExecutionHistory) super.setUploadProtocol(uploadProtocol);
753+
}
754+
755+
/**
756+
* Required. Name of the execution for which step entries should be deleted. Format:
757+
* projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
758+
*/
759+
@com.google.api.client.util.Key
760+
private java.lang.String name;
761+
762+
/** Required. Name of the execution for which step entries should be deleted. Format:
763+
projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
764+
*/
765+
public java.lang.String getName() {
766+
return name;
767+
}
768+
769+
/**
770+
* Required. Name of the execution for which step entries should be deleted. Format:
771+
* projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
772+
*/
773+
public DeleteExecutionHistory setName(java.lang.String name) {
774+
if (!getSuppressPatternChecks()) {
775+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
776+
"Parameter name must conform to the pattern " +
777+
"^projects/[^/]+/locations/[^/]+/workflows/[^/]+/executions/[^/]+$");
778+
}
779+
this.name = name;
780+
return this;
781+
}
782+
783+
@Override
784+
public DeleteExecutionHistory set(String parameterName, Object value) {
785+
return (DeleteExecutionHistory) super.set(parameterName, value);
786+
}
787+
}
647788
/**
648789
* Returns all metadata stored about an execution, excluding most data that is already accessible
649790
* using other API methods.
@@ -1652,6 +1793,22 @@ public Get setName(java.lang.String name) {
16521793
return this;
16531794
}
16541795

1796+
/** Deprecated field. */
1797+
@com.google.api.client.util.Key
1798+
private java.lang.String view;
1799+
1800+
/** Deprecated field.
1801+
*/
1802+
public java.lang.String getView() {
1803+
return view;
1804+
}
1805+
1806+
/** Deprecated field. */
1807+
public Get setView(java.lang.String view) {
1808+
this.view = view;
1809+
return this;
1810+
}
1811+
16551812
@Override
16561813
public Get set(String parameterName, Object value) {
16571814
return (Get) super.set(parameterName, value);
@@ -1667,8 +1824,7 @@ public Get set(String parameterName, Object value) {
16671824
* optional parameters, call the {@link List#execute()} method to invoke the remote operation.
16681825
*
16691826
* @param parent Required. Name of the workflow execution to list entries for. Format:
1670-
* projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}/stepEn
1671-
* tries/
1827+
* projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
16721828
* @return the request
16731829
*/
16741830
public List list(java.lang.String parent) throws java.io.IOException {
@@ -1697,8 +1853,7 @@ public class List extends WorkflowExecutionsRequest<com.google.api.services.work
16971853
* called to initialize this instance immediately after invoking the constructor. </p>
16981854
*
16991855
* @param parent Required. Name of the workflow execution to list entries for. Format:
1700-
* projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}/stepEn
1701-
* tries/
1856+
* projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
17021857
* @since 1.13
17031858
*/
17041859
protected List(java.lang.String parent) {
@@ -1777,22 +1932,22 @@ public List setUploadProtocol(java.lang.String uploadProtocol) {
17771932
}
17781933

17791934
/**
1780-
* Required. Name of the workflow execution to list entries for. Format: projects/{pro
1781-
* ject}/locations/{location}/workflows/{workflow}/executions/{execution}/stepEntries/
1935+
* Required. Name of the workflow execution to list entries for. Format:
1936+
* projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
17821937
*/
17831938
@com.google.api.client.util.Key
17841939
private java.lang.String parent;
17851940

17861941
/** Required. Name of the workflow execution to list entries for. Format:
1787-
projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}/stepEntries/
1942+
projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
17881943
*/
17891944
public java.lang.String getParent() {
17901945
return parent;
17911946
}
17921947

17931948
/**
1794-
* Required. Name of the workflow execution to list entries for. Format: projects/{pro
1795-
* ject}/locations/{location}/workflows/{workflow}/executions/{execution}/stepEntries/
1949+
* Required. Name of the workflow execution to list entries for. Format:
1950+
* projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
17961951
*/
17971952
public List setParent(java.lang.String parent) {
17981953
if (!getSuppressPatternChecks()) {
@@ -1807,17 +1962,17 @@ public List setParent(java.lang.String parent) {
18071962
/**
18081963
* Optional. Filters applied to the `[StepEntries.ListStepEntries]` results. The
18091964
* following fields are supported for filtering: `entryId`, `createTime`,
1810-
* `updateTime`, `routine`, `step`, `stepType`, `state`. For details, see AIP-160. For
1811-
* example, if you are using the Google APIs Explorer: `state="SUCCEEDED"` or
1812-
* `createTime>"2023-08-01" AND state="FAILED"`
1965+
* `updateTime`, `routine`, `step`, `stepType`, `parent`, `state`. For details, see
1966+
* AIP-160. For example, if you are using the Google APIs Explorer:
1967+
* `state="SUCCEEDED"` or `createTime>"2023-08-01" AND state="FAILED"`
18131968
*/
18141969
@com.google.api.client.util.Key
18151970
private java.lang.String filter;
18161971

18171972
/** Optional. Filters applied to the `[StepEntries.ListStepEntries]` results. The following fields are
18181973
supported for filtering: `entryId`, `createTime`, `updateTime`, `routine`, `step`, `stepType`,
1819-
`state`. For details, see AIP-160. For example, if you are using the Google APIs Explorer:
1820-
`state="SUCCEEDED"` or `createTime>"2023-08-01" AND state="FAILED"`
1974+
`parent`, `state`. For details, see AIP-160. For example, if you are using the Google APIs
1975+
Explorer: `state="SUCCEEDED"` or `createTime>"2023-08-01" AND state="FAILED"`
18211976
*/
18221977
public java.lang.String getFilter() {
18231978
return filter;
@@ -1826,9 +1981,9 @@ public java.lang.String getFilter() {
18261981
/**
18271982
* Optional. Filters applied to the `[StepEntries.ListStepEntries]` results. The
18281983
* following fields are supported for filtering: `entryId`, `createTime`,
1829-
* `updateTime`, `routine`, `step`, `stepType`, `state`. For details, see AIP-160. For
1830-
* example, if you are using the Google APIs Explorer: `state="SUCCEEDED"` or
1831-
* `createTime>"2023-08-01" AND state="FAILED"`
1984+
* `updateTime`, `routine`, `step`, `stepType`, `parent`, `state`. For details, see
1985+
* AIP-160. For example, if you are using the Google APIs Explorer:
1986+
* `state="SUCCEEDED"` or `createTime>"2023-08-01" AND state="FAILED"`
18321987
*/
18331988
public List setFilter(java.lang.String filter) {
18341989
this.filter = filter;
@@ -1934,6 +2089,22 @@ public List setSkip(java.lang.Integer skip) {
19342089
return this;
19352090
}
19362091

2092+
/** Deprecated field. */
2093+
@com.google.api.client.util.Key
2094+
private java.lang.String view;
2095+
2096+
/** Deprecated field.
2097+
*/
2098+
public java.lang.String getView() {
2099+
return view;
2100+
}
2101+
2102+
/** Deprecated field. */
2103+
public List setView(java.lang.String view) {
2104+
this.view = view;
2105+
return this;
2106+
}
2107+
19372108
@Override
19382109
public List set(String parameterName, Object value) {
19392110
return (List) super.set(parameterName, value);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.workflowexecutions.v1.model;
18+
19+
/**
20+
* Request for the DeleteExecutionHistory method.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Workflow Executions API. For a detailed explanation
24+
* see:
25+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class DeleteExecutionHistoryRequest extends com.google.api.client.json.GenericJson {
32+
33+
@Override
34+
public DeleteExecutionHistoryRequest set(String fieldName, Object value) {
35+
return (DeleteExecutionHistoryRequest) super.set(fieldName, value);
36+
}
37+
38+
@Override
39+
public DeleteExecutionHistoryRequest clone() {
40+
return (DeleteExecutionHistoryRequest) super.clone();
41+
}
42+
43+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.workflowexecutions.v1.model;
18+
19+
/**
20+
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your
21+
* APIs. A typical example is to use it as the request or the response type of an API method. For
22+
* instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
23+
*
24+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
25+
* transmitted over HTTP when working with the Workflow Executions API. For a detailed explanation
26+
* see:
27+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
28+
* </p>
29+
*
30+
* @author Google, Inc.
31+
*/
32+
@SuppressWarnings("javadoc")
33+
public final class Empty extends com.google.api.client.json.GenericJson {
34+
35+
@Override
36+
public Empty set(String fieldName, Object value) {
37+
return (Empty) super.set(fieldName, value);
38+
}
39+
40+
@Override
41+
public Empty clone() {
42+
return (Empty) super.clone();
43+
}
44+
45+
}

0 commit comments

Comments
 (0)