@maxim_mazurok/gapi.client.batch-v1 0.0.20230130 → 0.0.20230213

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 +18 -219
  2. package/package.json +1 -1
  3. package/tests.ts +1 -54
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://batch.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20230130
12
+ // Revision: 20230213
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -122,52 +122,10 @@ declare namespace gapi.client {
122
122
  existingDisk?: string;
123
123
  newDisk?: Disk;
124
124
  }
125
- interface AuditConfig {
126
- /** The configuration for logging of each type of permission. */
127
- auditLogConfigs?: AuditLogConfig[];
128
- /**
129
- * Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all
130
- * services.
131
- */
132
- service?: string;
133
- }
134
- interface AuditLogConfig {
135
- /** Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members. */
136
- exemptedMembers?: string[];
137
- /** The log type that this config enables. */
138
- logType?: string;
139
- }
140
125
  interface Barrier {
141
126
  /** Barriers are identified by their index in runnable list. Names are not required, but if present should be an identifier. */
142
127
  name?: string;
143
128
  }
144
- interface Binding {
145
- /**
146
- * The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`,
147
- * then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which
148
- * resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
149
- */
150
- condition?: Expr;
151
- /**
152
- * Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on
153
- * the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service
154
- * account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific
155
- * Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example,
156
- * `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service
157
- * account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. *
158
- * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the
159
- * users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has
160
- * been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains
161
- * the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently
162
- * deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and
163
- * the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that
164
- * has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group
165
- * retains the role in the binding.
166
- */
167
- members?: string[];
168
- /** Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. */
169
- role?: string;
170
- }
171
129
  // tslint:disable-next-line:no-empty-interface
172
130
  interface CancelOperationRequest {
173
131
  }
@@ -235,16 +193,6 @@ declare namespace gapi.client {
235
193
  /** A map of environment variable names to values. */
236
194
  variables?: { [P in string]: string };
237
195
  }
238
- interface Expr {
239
- /** Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. */
240
- description?: string;
241
- /** Textual representation of an expression in Common Expression Language syntax. */
242
- expression?: string;
243
- /** Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. */
244
- location?: string;
245
- /** Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression. */
246
- title?: string;
247
- }
248
196
  interface GCS {
249
197
  /** Remote path, either a bucket name or a subdirectory of a bucket, e.g.: bucket_name, bucket_name/subdirectory/ */
250
198
  remotePath?: string;
@@ -301,7 +249,10 @@ declare namespace gapi.client {
301
249
  name?: string;
302
250
  /** Notification configurations. */
303
251
  notifications?: JobNotification[];
304
- /** Priority of the Job. The valid value range is [0, 100). A job with higher priority value is more likely to run earlier if all other requirements are satisfied. */
252
+ /**
253
+ * Priority of the Job. The valid value range is [0, 100). Default value is 0. Higher value indicates higher priority. A job with higher priority value is more likely to run earlier if
254
+ * all other requirements are satisfied.
255
+ */
305
256
  priority?: string;
306
257
  /** Output only. Job status. It is read only for users. */
307
258
  status?: JobStatus;
@@ -338,7 +289,10 @@ declare namespace gapi.client {
338
289
  keyName?: string;
339
290
  }
340
291
  interface LifecyclePolicy {
341
- /** Action to execute when ActionCondition is true. */
292
+ /**
293
+ * Action to execute when ActionCondition is true. When RETRY_TASK is specified, we will retry failed tasks if we notice any exit code match and fail tasks if no match is found.
294
+ * Likewise, when FAIL_TASK is specified, we will fail tasks if we notice any exit code match and retry tasks if no match is found.
295
+ */
342
296
  action?: string;
343
297
  /** Conditions that decide why a task failure is dealt with a specific action. */
344
298
  actionCondition?: ActionCondition;
@@ -479,34 +433,6 @@ declare namespace gapi.client {
479
433
  /** Output only. Name of the verb executed by the operation. */
480
434
  verb?: string;
481
435
  }
482
- interface Policy {
483
- /** Specifies cloud audit logging configuration for this policy. */
484
- auditConfigs?: AuditConfig[];
485
- /**
486
- * Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings`
487
- * must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a
488
- * principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other principal, then you can add another
489
- * 1,450 principals to the `bindings` in the `Policy`.
490
- */
491
- bindings?: Binding[];
492
- /**
493
- * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make
494
- * use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems
495
- * are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM
496
- * Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1`
497
- * policy, and all of the conditions in the version `3` policy are lost.
498
- */
499
- etag?: string;
500
- /**
501
- * Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings
502
- * must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a
503
- * policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use
504
- * IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1`
505
- * policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave
506
- * the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
507
- */
508
- version?: number;
509
- }
510
436
  interface ReportAgentStateRequest {
511
437
  /** Agent info. */
512
438
  agentInfo?: AgentInfo;
@@ -570,18 +496,6 @@ declare namespace gapi.client {
570
496
  /** List of scopes to be enabled for this service account on the VM, in addition to the cloud-platform API scope that will be added by default. */
571
497
  scopes?: string[];
572
498
  }
573
- interface SetIamPolicyRequest {
574
- /**
575
- * REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud
576
- * services (such as Projects) might reject them.
577
- */
578
- policy?: Policy;
579
- /**
580
- * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the mask will be modified. If no mask is provided, the following default mask is used:
581
- * `paths: "bindings, etag"`
582
- */
583
- updateMask?: string;
584
- }
585
499
  interface Status {
586
500
  /** The status code, which should be an enum value of google.rpc.Code. */
587
501
  code?: number;
@@ -652,10 +566,9 @@ declare namespace gapi.client {
652
566
  /** Deprecated: please use environment(non-plural) instead. */
653
567
  environments?: { [P in string]: string };
654
568
  /**
655
- * Lifecycle management schema when any task in a task group is failed. The valid size of lifecycle policies are [0, 10]. For each lifecycle policy, when the condition is met, the
656
- * action in that policy will execute. If there are multiple policies that the task execution result matches, we use the action from the first matched policy. If task execution result
657
- * does not meet with any of the defined lifecycle policy, we consider it as the default policy. Default policy means if the exit code is 0, exit task. If task ends with non-zero exit
658
- * code, retry the task with max_retry_count.
569
+ * Lifecycle management schema when any task in a task group is failed. Currently we only support one lifecycle policy. When the lifecycle policy condition is met, the action in the
570
+ * policy will execute. If task execution result does not meet with the defined lifecycle policy, we consider it as the default policy. Default policy means if the exit code is 0, exit
571
+ * task. If task ends with non-zero exit code, retry the task with max_retry_count.
659
572
  */
660
573
  lifecyclePolicies?: LifecyclePolicy[];
661
574
  /** Maximum number of retries on failures. The default, 0, which means never retry. The valid value range is [0, 10]. */
@@ -678,17 +591,6 @@ declare namespace gapi.client {
678
591
  /** Detailed info about why the state is reached. */
679
592
  statusEvents?: StatusEvent[];
680
593
  }
681
- interface TestIamPermissionsRequest {
682
- /**
683
- * The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM
684
- * Overview](https://cloud.google.com/iam/docs/overview#permissions).
685
- */
686
- permissions?: string[];
687
- }
688
- interface TestIamPermissionsResponse {
689
- /** A subset of `TestPermissionsRequest.permissions` that the caller is allowed. */
690
- permissions?: string[];
691
- }
692
594
  interface Volume {
693
595
  /**
694
596
  * Device name of an attached disk volume, which should align with a device_name specified by job.allocation_policy.instances[0].policy.disks[i].device_name or defined by the given
@@ -805,8 +707,8 @@ declare namespace gapi.client {
805
707
  quotaUser?: string;
806
708
  /**
807
709
  * Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has
808
- * already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t
809
- * he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will
710
+ * already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and
711
+ * the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will
810
712
  * ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not
811
713
  * supported (00000000-0000-0000-0000-000000000000).
812
714
  */
@@ -847,8 +749,8 @@ declare namespace gapi.client {
847
749
  quotaUser?: string;
848
750
  /**
849
751
  * Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has
850
- * already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t
851
- * he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will
752
+ * already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and
753
+ * the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will
852
754
  * ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not
853
755
  * supported (00000000-0000-0000-0000-000000000000).
854
756
  */
@@ -885,8 +787,8 @@ declare namespace gapi.client {
885
787
  reason?: string;
886
788
  /**
887
789
  * Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has
888
- * already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and t
889
- * he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will
790
+ * already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and
791
+ * the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will
890
792
  * ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not
891
793
  * supported (00000000-0000-0000-0000-000000000000).
892
794
  */
@@ -923,44 +825,6 @@ declare namespace gapi.client {
923
825
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
924
826
  uploadType?: string;
925
827
  }): Request<Job>;
926
- /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
927
- getIamPolicy(request?: {
928
- /** V1 error format. */
929
- "$.xgafv"?: string;
930
- /** OAuth access token. */
931
- access_token?: string;
932
- /** Data format for response. */
933
- alt?: string;
934
- /** JSONP */
935
- callback?: string;
936
- /** Selector specifying which fields to include in a partial response. */
937
- fields?: string;
938
- /** 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. */
939
- key?: string;
940
- /** OAuth 2.0 token for the current user. */
941
- oauth_token?: string;
942
- /**
943
- * Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for
944
- * policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy
945
- * in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional
946
- * role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM
947
- * documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
948
- */
949
- "options.requestedPolicyVersion"?: number;
950
- /** Returns response with indentations and line breaks. */
951
- prettyPrint?: boolean;
952
- /** 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. */
953
- quotaUser?: string;
954
- /**
955
- * REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this
956
- * field.
957
- */
958
- resource: string;
959
- /** Upload protocol for media (e.g. "raw", "multipart"). */
960
- upload_protocol?: string;
961
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
962
- uploadType?: string;
963
- }): Request<Policy>;
964
828
  /** List all Jobs for a project within a region. */
965
829
  list(request?: {
966
830
  /** V1 error format. */
@@ -994,71 +858,6 @@ declare namespace gapi.client {
994
858
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
995
859
  uploadType?: string;
996
860
  }): Request<ListJobsResponse>;
997
- /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
998
- setIamPolicy(request: {
999
- /** V1 error format. */
1000
- "$.xgafv"?: string;
1001
- /** OAuth access token. */
1002
- access_token?: string;
1003
- /** Data format for response. */
1004
- alt?: string;
1005
- /** JSONP */
1006
- callback?: string;
1007
- /** Selector specifying which fields to include in a partial response. */
1008
- fields?: string;
1009
- /** 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. */
1010
- key?: string;
1011
- /** OAuth 2.0 token for the current user. */
1012
- oauth_token?: string;
1013
- /** Returns response with indentations and line breaks. */
1014
- prettyPrint?: boolean;
1015
- /** 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. */
1016
- quotaUser?: string;
1017
- /**
1018
- * REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this
1019
- * field.
1020
- */
1021
- resource: string;
1022
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1023
- upload_protocol?: string;
1024
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1025
- uploadType?: string;
1026
- },
1027
- body: SetIamPolicyRequest): Request<Policy>;
1028
- /**
1029
- * Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This
1030
- * operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
1031
- */
1032
- testIamPermissions(request: {
1033
- /** V1 error format. */
1034
- "$.xgafv"?: string;
1035
- /** OAuth access token. */
1036
- access_token?: string;
1037
- /** Data format for response. */
1038
- alt?: string;
1039
- /** JSONP */
1040
- callback?: string;
1041
- /** Selector specifying which fields to include in a partial response. */
1042
- fields?: string;
1043
- /** 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. */
1044
- key?: string;
1045
- /** OAuth 2.0 token for the current user. */
1046
- oauth_token?: string;
1047
- /** Returns response with indentations and line breaks. */
1048
- prettyPrint?: boolean;
1049
- /** 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. */
1050
- quotaUser?: string;
1051
- /**
1052
- * REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
1053
- * this field.
1054
- */
1055
- resource: string;
1056
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1057
- upload_protocol?: string;
1058
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1059
- uploadType?: string;
1060
- },
1061
- body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
1062
861
  taskGroups: TaskGroupsResource;
1063
862
  }
1064
863
  interface OperationsResource {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.batch-v1",
3
- "version": "0.0.20230130",
3
+ "version": "0.0.20230213",
4
4
  "description": "TypeScript typings for Batch 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: 20230130
6
+ // Revision: 20230213
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -293,11 +293,6 @@ gapi.load('client', async () => {
293
293
  await gapi.client.batch.projects.locations.jobs.get({
294
294
  name: "Test string",
295
295
  });
296
- /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
297
- await gapi.client.batch.projects.locations.jobs.getIamPolicy({
298
- "options.requestedPolicyVersion": 42,
299
- resource: "Test string",
300
- });
301
296
  /** List all Jobs for a project within a region. */
302
297
  await gapi.client.batch.projects.locations.jobs.list({
303
298
  filter: "Test string",
@@ -305,54 +300,6 @@ gapi.load('client', async () => {
305
300
  pageToken: "Test string",
306
301
  parent: "Test string",
307
302
  });
308
- /** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
309
- await gapi.client.batch.projects.locations.jobs.setIamPolicy({
310
- resource: "Test string",
311
- }, {
312
- policy: {
313
- auditConfigs: [
314
- {
315
- auditLogConfigs: [
316
- {
317
- exemptedMembers: [
318
- "Test string"
319
- ],
320
- logType: "Test string",
321
- }
322
- ],
323
- service: "Test string",
324
- }
325
- ],
326
- bindings: [
327
- {
328
- condition: {
329
- description: "Test string",
330
- expression: "Test string",
331
- location: "Test string",
332
- title: "Test string",
333
- },
334
- members: [
335
- "Test string"
336
- ],
337
- role: "Test string",
338
- }
339
- ],
340
- etag: "Test string",
341
- version: 42,
342
- },
343
- updateMask: "Test string",
344
- });
345
- /**
346
- * Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This
347
- * operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
348
- */
349
- await gapi.client.batch.projects.locations.jobs.testIamPermissions({
350
- resource: "Test string",
351
- }, {
352
- permissions: [
353
- "Test string"
354
- ],
355
- });
356
303
  /** Return a single Task. */
357
304
  await gapi.client.batch.projects.locations.jobs.taskGroups.tasks.get({
358
305
  name: "Test string",