@maxim_mazurok/gapi.client.workflows-v1 0.0.20230809 → 0.0.20230913

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.d.ts +64 -8
  2. package/package.json +1 -1
  3. package/tests.ts +7 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://workflows.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20230809
12
+ // Revision: 20230913
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -41,6 +41,14 @@ declare namespace gapi.client {
41
41
  operations?:
42
42
  Operation[];
43
43
  }
44
+ interface ListWorkflowRevisionsResponse {
45
+ /** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
46
+ nextPageToken?:
47
+ string;
48
+ /** The revisions of the workflow, ordered in reverse chronological order. */
49
+ workflows?:
50
+ Workflow[];
51
+ }
44
52
  interface ListWorkflowsResponse {
45
53
  /** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
46
54
  nextPageToken?:
@@ -142,7 +150,7 @@ declare namespace gapi.client {
142
150
  */
143
151
  callLogLevel?:
144
152
  string;
145
- /** Output only. The timestamp for when the workflow was created. */
153
+ /** Output only. The timestamp for when the workflow was created. This is a workflow-wide field and is not tied to a specific revision. */
146
154
  createTime?:
147
155
  string;
148
156
  /**
@@ -152,16 +160,16 @@ declare namespace gapi.client {
152
160
  */
153
161
  cryptoKeyName?:
154
162
  string;
155
- /** Description of the workflow provided by the user. Must be at most 1000 unicode characters long. */
163
+ /** Description of the workflow provided by the user. Must be at most 1000 Unicode characters long. This is a workflow-wide field and is not tied to a specific revision. */
156
164
  description?:
157
165
  string;
158
166
  /**
159
167
  * Labels associated with this workflow. Labels can contain at most 64 entries. Keys and values can be no longer than 63 characters and can only contain lowercase letters, numeric
160
- * characters, underscores, and dashes. Label keys must start with a letter. International characters are allowed.
168
+ * characters, underscores, and dashes. Label keys must start with a letter. International characters are allowed. This is a workflow-wide field and is not tied to a specific revision.
161
169
  */
162
170
  labels?:
163
171
  { [P in string]: string };
164
- /** The resource name of the workflow. Format: projects/{project}/locations/{location}/workflows/{workflow} */
172
+ /** The resource name of the workflow. Format: projects/{project}/locations/{location}/workflows/{workflow}. This is a workflow-wide field and is not tied to a specific revision. */
165
173
  name?:
166
174
  string;
167
175
  /** Output only. The timestamp for the latest revision of the workflow's creation. */
@@ -191,7 +199,7 @@ declare namespace gapi.client {
191
199
  /** Output only. Error regarding the state of the workflow. For example, this field will have error details if the execution data is unavailable due to revoked KMS key permissions. */
192
200
  stateError?:
193
201
  StateError;
194
- /** Output only. The timestamp for when the workflow was last updated. */
202
+ /** Output only. The timestamp for when the workflow was last updated. This is a workflow-wide field and is not tied to a specific revision. */
195
203
  updateTime?:
196
204
  string;
197
205
  /**
@@ -570,6 +578,54 @@ declare namespace gapi.client {
570
578
  uploadType?:
571
579
  string;
572
580
  }): Request<ListWorkflowsResponse>;
581
+ /** Lists revisions for a given workflow. */
582
+ listRevisions(request?: {
583
+ /** V1 error format. */
584
+ "$.xgafv"?:
585
+ string;
586
+ /** OAuth access token. */
587
+ access_token?:
588
+ string;
589
+ /** Data format for response. */
590
+ alt?:
591
+ string;
592
+ /** JSONP */
593
+ callback?:
594
+ string;
595
+ /** Selector specifying which fields to include in a partial response. */
596
+ fields?:
597
+ string;
598
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
599
+ key?:
600
+ string;
601
+ /** Required. Workflow for which the revisions should be listed. Format: projects/{project}/locations/{location}/workflows/{workflow} */
602
+ name:
603
+ string;
604
+ /** OAuth 2.0 token for the current user. */
605
+ oauth_token?:
606
+ string;
607
+ /**
608
+ * The maximum number of revisions to return per page. If a value is not specified, a default value of 20 is used. The maximum permitted value is 100. Values greater than 100 are
609
+ * coerced down to 100.
610
+ */
611
+ pageSize?:
612
+ number;
613
+ /** The page token, received from a previous ListWorkflowRevisions call. Provide this to retrieve the subsequent page. */
614
+ pageToken?:
615
+ string;
616
+ /** Returns response with indentations and line breaks. */
617
+ prettyPrint?:
618
+ boolean;
619
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
620
+ quotaUser?:
621
+ string;
622
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
623
+ upload_protocol?:
624
+ string;
625
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
626
+ uploadType?:
627
+ string;
628
+ }): Request<ListWorkflowRevisionsResponse>;
573
629
  /**
574
630
  * Updates an existing workflow. Running this method has no impact on already running executions of the workflow. A new revision of the workflow might be created as a result of a
575
631
  * successful update operation. In that case, the new revision is used in new workflow executions.
@@ -593,7 +649,7 @@ declare namespace gapi.client {
593
649
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
594
650
  key?:
595
651
  string;
596
- /** The resource name of the workflow. Format: projects/{project}/locations/{location}/workflows/{workflow} */
652
+ /** The resource name of the workflow. Format: projects/{project}/locations/{location}/workflows/{workflow}. This is a workflow-wide field and is not tied to a specific revision. */
597
653
  name:
598
654
  string;
599
655
  /** OAuth 2.0 token for the current user. */
@@ -637,7 +693,7 @@ declare namespace gapi.client {
637
693
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
638
694
  key?:
639
695
  string;
640
- /** The resource name of the workflow. Format: projects/{project}/locations/{location}/workflows/{workflow} */
696
+ /** The resource name of the workflow. Format: projects/{project}/locations/{location}/workflows/{workflow}. This is a workflow-wide field and is not tied to a specific revision. */
641
697
  name:
642
698
  string;
643
699
  /** OAuth 2.0 token for the current user. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.workflows-v1",
3
- "version": "0.0.20230809",
3
+ "version": "0.0.20230913",
4
4
  "description": "TypeScript typings for Workflows API v1",
5
5
  "license": "MIT",
6
6
  "author": {
package/tests.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
4
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
5
 
6
- // Revision: 20230809
6
+ // Revision: 20230913
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -102,6 +102,12 @@ gapi.load('client', async () => {
102
102
  pageToken: "Test string",
103
103
  parent: "Test string",
104
104
  });
105
+ /** Lists revisions for a given workflow. */
106
+ await gapi.client.workflows.projects.locations.workflows.listRevisions({
107
+ name: "Test string",
108
+ pageSize: 42,
109
+ pageToken: "Test string",
110
+ });
105
111
  /**
106
112
  * Updates an existing workflow. Running this method has no impact on already running executions of the workflow. A new revision of the workflow might be created as a result of a
107
113
  * successful update operation. In that case, the new revision is used in new workflow executions.