@maxim_mazurok/gapi.client.batch-v1 0.0.20230118 → 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.
- package/index.d.ts +29 -221
- package/package.json +1 -1
- package/tests.ts +3 -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:
|
|
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`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
|
|
159
|
-
* identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to
|
|
160
|
-
* `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing
|
|
161
|
-
* a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value
|
|
162
|
-
* reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
|
|
163
|
-
* identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to
|
|
164
|
-
* `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For
|
|
165
|
-
* example, `google.com` or `example.com`.
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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;
|
|
@@ -549,9 +475,16 @@ declare namespace gapi.client {
|
|
|
549
475
|
timeout?: string;
|
|
550
476
|
}
|
|
551
477
|
interface Script {
|
|
552
|
-
/**
|
|
478
|
+
/**
|
|
479
|
+
* Script file path on the host VM. To specify an interpreter, please add a `#!`(also known as [shebang line](https://en.wikipedia.org/wiki/Shebang_(Unix))) as the first line of the
|
|
480
|
+
* file.(For example, to execute the script using bash, `#!/bin/bash` should be the first line of the file. To execute the script using`Python3`, `#!/usr/bin/env python3` should be the
|
|
481
|
+
* first line of the file.) Otherwise, the file will by default be excuted by `/bin/sh`.
|
|
482
|
+
*/
|
|
553
483
|
path?: string;
|
|
554
|
-
/**
|
|
484
|
+
/**
|
|
485
|
+
* Shell script text. To specify an interpreter, please add a `#!\n` at the beginning of the text.(For example, to execute the script using bash, `#!/bin/bash\n` should be added. To
|
|
486
|
+
* execute the script using`Python3`, `#!/usr/bin/env python3\n` should be added.) Otherwise, the script will by default be excuted by `/bin/sh`.
|
|
487
|
+
*/
|
|
555
488
|
text?: string;
|
|
556
489
|
}
|
|
557
490
|
interface ServiceAccount {
|
|
@@ -563,18 +496,6 @@ declare namespace gapi.client {
|
|
|
563
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. */
|
|
564
497
|
scopes?: string[];
|
|
565
498
|
}
|
|
566
|
-
interface SetIamPolicyRequest {
|
|
567
|
-
/**
|
|
568
|
-
* 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
|
|
569
|
-
* services (such as Projects) might reject them.
|
|
570
|
-
*/
|
|
571
|
-
policy?: Policy;
|
|
572
|
-
/**
|
|
573
|
-
* 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:
|
|
574
|
-
* `paths: "bindings, etag"`
|
|
575
|
-
*/
|
|
576
|
-
updateMask?: string;
|
|
577
|
-
}
|
|
578
499
|
interface Status {
|
|
579
500
|
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
580
501
|
code?: number;
|
|
@@ -593,6 +514,8 @@ declare namespace gapi.client {
|
|
|
593
514
|
eventTime?: string;
|
|
594
515
|
/** Task Execution */
|
|
595
516
|
taskExecution?: TaskExecution;
|
|
517
|
+
/** Task State */
|
|
518
|
+
taskState?: string;
|
|
596
519
|
/** Type of the event. */
|
|
597
520
|
type?: string;
|
|
598
521
|
}
|
|
@@ -643,10 +566,9 @@ declare namespace gapi.client {
|
|
|
643
566
|
/** Deprecated: please use environment(non-plural) instead. */
|
|
644
567
|
environments?: { [P in string]: string };
|
|
645
568
|
/**
|
|
646
|
-
* Lifecycle management schema when any task in a task group is failed.
|
|
647
|
-
*
|
|
648
|
-
*
|
|
649
|
-
* 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.
|
|
650
572
|
*/
|
|
651
573
|
lifecyclePolicies?: LifecyclePolicy[];
|
|
652
574
|
/** Maximum number of retries on failures. The default, 0, which means never retry. The valid value range is [0, 10]. */
|
|
@@ -669,17 +591,6 @@ declare namespace gapi.client {
|
|
|
669
591
|
/** Detailed info about why the state is reached. */
|
|
670
592
|
statusEvents?: StatusEvent[];
|
|
671
593
|
}
|
|
672
|
-
interface TestIamPermissionsRequest {
|
|
673
|
-
/**
|
|
674
|
-
* The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM
|
|
675
|
-
* Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
|
676
|
-
*/
|
|
677
|
-
permissions?: string[];
|
|
678
|
-
}
|
|
679
|
-
interface TestIamPermissionsResponse {
|
|
680
|
-
/** A subset of `TestPermissionsRequest.permissions` that the caller is allowed. */
|
|
681
|
-
permissions?: string[];
|
|
682
|
-
}
|
|
683
594
|
interface Volume {
|
|
684
595
|
/**
|
|
685
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
|
|
@@ -796,8 +707,8 @@ declare namespace gapi.client {
|
|
|
796
707
|
quotaUser?: string;
|
|
797
708
|
/**
|
|
798
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
|
|
799
|
-
* 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
|
|
800
|
-
*
|
|
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
|
|
801
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
|
|
802
713
|
* supported (00000000-0000-0000-0000-000000000000).
|
|
803
714
|
*/
|
|
@@ -838,8 +749,8 @@ declare namespace gapi.client {
|
|
|
838
749
|
quotaUser?: string;
|
|
839
750
|
/**
|
|
840
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
|
|
841
|
-
* 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
|
|
842
|
-
*
|
|
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
|
|
843
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
|
|
844
755
|
* supported (00000000-0000-0000-0000-000000000000).
|
|
845
756
|
*/
|
|
@@ -876,8 +787,8 @@ declare namespace gapi.client {
|
|
|
876
787
|
reason?: string;
|
|
877
788
|
/**
|
|
878
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
|
|
879
|
-
* 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
|
|
880
|
-
*
|
|
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
|
|
881
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
|
|
882
793
|
* supported (00000000-0000-0000-0000-000000000000).
|
|
883
794
|
*/
|
|
@@ -914,44 +825,6 @@ declare namespace gapi.client {
|
|
|
914
825
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
915
826
|
uploadType?: string;
|
|
916
827
|
}): Request<Job>;
|
|
917
|
-
/** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
|
|
918
|
-
getIamPolicy(request?: {
|
|
919
|
-
/** V1 error format. */
|
|
920
|
-
"$.xgafv"?: string;
|
|
921
|
-
/** OAuth access token. */
|
|
922
|
-
access_token?: string;
|
|
923
|
-
/** Data format for response. */
|
|
924
|
-
alt?: string;
|
|
925
|
-
/** JSONP */
|
|
926
|
-
callback?: string;
|
|
927
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
928
|
-
fields?: string;
|
|
929
|
-
/** 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. */
|
|
930
|
-
key?: string;
|
|
931
|
-
/** OAuth 2.0 token for the current user. */
|
|
932
|
-
oauth_token?: string;
|
|
933
|
-
/**
|
|
934
|
-
* 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
|
|
935
|
-
* 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
|
|
936
|
-
* 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
|
|
937
|
-
* role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM
|
|
938
|
-
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
939
|
-
*/
|
|
940
|
-
"options.requestedPolicyVersion"?: number;
|
|
941
|
-
/** Returns response with indentations and line breaks. */
|
|
942
|
-
prettyPrint?: boolean;
|
|
943
|
-
/** 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. */
|
|
944
|
-
quotaUser?: string;
|
|
945
|
-
/**
|
|
946
|
-
* 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
|
|
947
|
-
* field.
|
|
948
|
-
*/
|
|
949
|
-
resource: string;
|
|
950
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
951
|
-
upload_protocol?: string;
|
|
952
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
953
|
-
uploadType?: string;
|
|
954
|
-
}): Request<Policy>;
|
|
955
828
|
/** List all Jobs for a project within a region. */
|
|
956
829
|
list(request?: {
|
|
957
830
|
/** V1 error format. */
|
|
@@ -985,71 +858,6 @@ declare namespace gapi.client {
|
|
|
985
858
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
986
859
|
uploadType?: string;
|
|
987
860
|
}): Request<ListJobsResponse>;
|
|
988
|
-
/** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
|
|
989
|
-
setIamPolicy(request: {
|
|
990
|
-
/** V1 error format. */
|
|
991
|
-
"$.xgafv"?: string;
|
|
992
|
-
/** OAuth access token. */
|
|
993
|
-
access_token?: string;
|
|
994
|
-
/** Data format for response. */
|
|
995
|
-
alt?: string;
|
|
996
|
-
/** JSONP */
|
|
997
|
-
callback?: string;
|
|
998
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
999
|
-
fields?: string;
|
|
1000
|
-
/** 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. */
|
|
1001
|
-
key?: string;
|
|
1002
|
-
/** OAuth 2.0 token for the current user. */
|
|
1003
|
-
oauth_token?: string;
|
|
1004
|
-
/** Returns response with indentations and line breaks. */
|
|
1005
|
-
prettyPrint?: boolean;
|
|
1006
|
-
/** 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. */
|
|
1007
|
-
quotaUser?: string;
|
|
1008
|
-
/**
|
|
1009
|
-
* 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
|
|
1010
|
-
* field.
|
|
1011
|
-
*/
|
|
1012
|
-
resource: string;
|
|
1013
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1014
|
-
upload_protocol?: string;
|
|
1015
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1016
|
-
uploadType?: string;
|
|
1017
|
-
},
|
|
1018
|
-
body: SetIamPolicyRequest): Request<Policy>;
|
|
1019
|
-
/**
|
|
1020
|
-
* 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
|
|
1021
|
-
* 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.
|
|
1022
|
-
*/
|
|
1023
|
-
testIamPermissions(request: {
|
|
1024
|
-
/** V1 error format. */
|
|
1025
|
-
"$.xgafv"?: string;
|
|
1026
|
-
/** OAuth access token. */
|
|
1027
|
-
access_token?: string;
|
|
1028
|
-
/** Data format for response. */
|
|
1029
|
-
alt?: string;
|
|
1030
|
-
/** JSONP */
|
|
1031
|
-
callback?: string;
|
|
1032
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
1033
|
-
fields?: string;
|
|
1034
|
-
/** 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. */
|
|
1035
|
-
key?: string;
|
|
1036
|
-
/** OAuth 2.0 token for the current user. */
|
|
1037
|
-
oauth_token?: string;
|
|
1038
|
-
/** Returns response with indentations and line breaks. */
|
|
1039
|
-
prettyPrint?: boolean;
|
|
1040
|
-
/** 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. */
|
|
1041
|
-
quotaUser?: string;
|
|
1042
|
-
/**
|
|
1043
|
-
* 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
|
|
1044
|
-
* this field.
|
|
1045
|
-
*/
|
|
1046
|
-
resource: string;
|
|
1047
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1048
|
-
upload_protocol?: string;
|
|
1049
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1050
|
-
uploadType?: string;
|
|
1051
|
-
},
|
|
1052
|
-
body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
|
|
1053
861
|
taskGroups: TaskGroupsResource;
|
|
1054
862
|
}
|
|
1055
863
|
interface OperationsResource {
|
package/package.json
CHANGED
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:
|
|
6
|
+
// Revision: 20230213
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -139,6 +139,7 @@ gapi.load('client', async () => {
|
|
|
139
139
|
taskExecution: {
|
|
140
140
|
exitCode: 42,
|
|
141
141
|
},
|
|
142
|
+
taskState: "Test string",
|
|
142
143
|
type: "Test string",
|
|
143
144
|
}
|
|
144
145
|
],
|
|
@@ -292,11 +293,6 @@ gapi.load('client', async () => {
|
|
|
292
293
|
await gapi.client.batch.projects.locations.jobs.get({
|
|
293
294
|
name: "Test string",
|
|
294
295
|
});
|
|
295
|
-
/** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
|
|
296
|
-
await gapi.client.batch.projects.locations.jobs.getIamPolicy({
|
|
297
|
-
"options.requestedPolicyVersion": 42,
|
|
298
|
-
resource: "Test string",
|
|
299
|
-
});
|
|
300
296
|
/** List all Jobs for a project within a region. */
|
|
301
297
|
await gapi.client.batch.projects.locations.jobs.list({
|
|
302
298
|
filter: "Test string",
|
|
@@ -304,54 +300,6 @@ gapi.load('client', async () => {
|
|
|
304
300
|
pageToken: "Test string",
|
|
305
301
|
parent: "Test string",
|
|
306
302
|
});
|
|
307
|
-
/** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
|
|
308
|
-
await gapi.client.batch.projects.locations.jobs.setIamPolicy({
|
|
309
|
-
resource: "Test string",
|
|
310
|
-
}, {
|
|
311
|
-
policy: {
|
|
312
|
-
auditConfigs: [
|
|
313
|
-
{
|
|
314
|
-
auditLogConfigs: [
|
|
315
|
-
{
|
|
316
|
-
exemptedMembers: [
|
|
317
|
-
"Test string"
|
|
318
|
-
],
|
|
319
|
-
logType: "Test string",
|
|
320
|
-
}
|
|
321
|
-
],
|
|
322
|
-
service: "Test string",
|
|
323
|
-
}
|
|
324
|
-
],
|
|
325
|
-
bindings: [
|
|
326
|
-
{
|
|
327
|
-
condition: {
|
|
328
|
-
description: "Test string",
|
|
329
|
-
expression: "Test string",
|
|
330
|
-
location: "Test string",
|
|
331
|
-
title: "Test string",
|
|
332
|
-
},
|
|
333
|
-
members: [
|
|
334
|
-
"Test string"
|
|
335
|
-
],
|
|
336
|
-
role: "Test string",
|
|
337
|
-
}
|
|
338
|
-
],
|
|
339
|
-
etag: "Test string",
|
|
340
|
-
version: 42,
|
|
341
|
-
},
|
|
342
|
-
updateMask: "Test string",
|
|
343
|
-
});
|
|
344
|
-
/**
|
|
345
|
-
* 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
|
|
346
|
-
* 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.
|
|
347
|
-
*/
|
|
348
|
-
await gapi.client.batch.projects.locations.jobs.testIamPermissions({
|
|
349
|
-
resource: "Test string",
|
|
350
|
-
}, {
|
|
351
|
-
permissions: [
|
|
352
|
-
"Test string"
|
|
353
|
-
],
|
|
354
|
-
});
|
|
355
303
|
/** Return a single Task. */
|
|
356
304
|
await gapi.client.batch.projects.locations.jobs.taskGroups.tasks.get({
|
|
357
305
|
name: "Test string",
|
|
@@ -418,6 +366,7 @@ gapi.load('client', async () => {
|
|
|
418
366
|
taskExecution: {
|
|
419
367
|
exitCode: 42,
|
|
420
368
|
},
|
|
369
|
+
taskState: "Test string",
|
|
421
370
|
type: "Test string",
|
|
422
371
|
}
|
|
423
372
|
],
|