@@ -644,6 +644,147 @@ public Create set(String parameterName, Object value) {
644
644
return (Create ) super .set (parameterName , value );
645
645
}
646
646
}
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
+ }
647
788
/**
648
789
* Returns all metadata stored about an execution, excluding most data that is already accessible
649
790
* using other API methods.
@@ -1652,6 +1793,22 @@ public Get setName(java.lang.String name) {
1652
1793
return this ;
1653
1794
}
1654
1795
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
+
1655
1812
@ Override
1656
1813
public Get set (String parameterName , Object value ) {
1657
1814
return (Get ) super .set (parameterName , value );
@@ -1667,8 +1824,7 @@ public Get set(String parameterName, Object value) {
1667
1824
* optional parameters, call the {@link List#execute()} method to invoke the remote operation.
1668
1825
*
1669
1826
* @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}
1672
1828
* @return the request
1673
1829
*/
1674
1830
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
1697
1853
* called to initialize this instance immediately after invoking the constructor. </p>
1698
1854
*
1699
1855
* @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}
1702
1857
* @since 1.13
1703
1858
*/
1704
1859
protected List (java .lang .String parent ) {
@@ -1777,22 +1932,22 @@ public List setUploadProtocol(java.lang.String uploadProtocol) {
1777
1932
}
1778
1933
1779
1934
/**
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}
1782
1937
*/
1783
1938
@ com .google .api .client .util .Key
1784
1939
private java .lang .String parent ;
1785
1940
1786
1941
/** 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}
1788
1943
*/
1789
1944
public java .lang .String getParent () {
1790
1945
return parent ;
1791
1946
}
1792
1947
1793
1948
/**
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}
1796
1951
*/
1797
1952
public List setParent (java .lang .String parent ) {
1798
1953
if (!getSuppressPatternChecks ()) {
@@ -1807,17 +1962,17 @@ public List setParent(java.lang.String parent) {
1807
1962
/**
1808
1963
* Optional. Filters applied to the `[StepEntries.ListStepEntries]` results. The
1809
1964
* 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"`
1813
1968
*/
1814
1969
@ com .google .api .client .util .Key
1815
1970
private java .lang .String filter ;
1816
1971
1817
1972
/** Optional. Filters applied to the `[StepEntries.ListStepEntries]` results. The following fields are
1818
1973
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"`
1821
1976
*/
1822
1977
public java .lang .String getFilter () {
1823
1978
return filter ;
@@ -1826,9 +1981,9 @@ public java.lang.String getFilter() {
1826
1981
/**
1827
1982
* Optional. Filters applied to the `[StepEntries.ListStepEntries]` results. The
1828
1983
* 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"`
1832
1987
*/
1833
1988
public List setFilter (java .lang .String filter ) {
1834
1989
this .filter = filter ;
@@ -1934,6 +2089,22 @@ public List setSkip(java.lang.Integer skip) {
1934
2089
return this ;
1935
2090
}
1936
2091
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
+
1937
2108
@ Override
1938
2109
public List set (String parameterName , Object value ) {
1939
2110
return (List ) super .set (parameterName , value );
0 commit comments