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

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 +32 -230
  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: 20230226
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
  }
@@ -180,7 +138,10 @@ declare namespace gapi.client {
180
138
  memoryMib?: string;
181
139
  }
182
140
  interface Container {
183
- /** If set to true, external network access to and from container will be blocked. The container will use the default internal network 'goog-internal'. */
141
+ /**
142
+ * If set to true, external network access to and from container will be blocked, containers that are with block_external_network as true can still communicate with each other, network
143
+ * cannot be specified in the `container.options` field.
144
+ */
184
145
  blockExternalNetwork?: boolean;
185
146
  /**
186
147
  * Overrides the `CMD` specified in the container. If there is an ENTRYPOINT (either in the container image or with the entrypoint field below) then commands are appended as arguments
@@ -204,9 +165,9 @@ declare namespace gapi.client {
204
165
  /** Local SSDs are available through both "SCSI" and "NVMe" interfaces. If not indicated, "NVMe" will be the default one for local ssds. We only support "SCSI" for persistent disks now. */
205
166
  diskInterface?: string;
206
167
  /**
207
- * Name of a public or custom image used as the data source. For example, the following are all valid URLs: (1) Specify the image by its family name:
208
- * projects/{project}/global/images/family/{image_family} (2) Specify the image version: projects/{project}/global/images/{image_version} You can also use Batch customized image in
209
- * short names. The following image values are supported for a boot disk: "batch-debian": use Batch Debian images. "batch-centos": use Batch CentOS images. "batch-cos": use Batch
168
+ * Name of a public or custom image used as the data source. For example, the following are all valid URLs: * Specify the image by its family name:
169
+ * projects/{project}/global/images/family/{image_family} * Specify the image version: projects/{project}/global/images/{image_version} You can also use Batch customized image in short
170
+ * names. The following image values are supported for a boot disk: * "batch-debian": use Batch Debian images. * "batch-centos": use Batch CentOS images. * "batch-cos": use Batch
210
171
  * Container-Optimized images.
211
172
  */
212
173
  image?: string;
@@ -235,16 +196,6 @@ declare namespace gapi.client {
235
196
  /** A map of environment variable names to values. */
236
197
  variables?: { [P in string]: string };
237
198
  }
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
199
  interface GCS {
249
200
  /** Remote path, either a bucket name or a subdirectory of a bucket, e.g.: bucket_name, bucket_name/subdirectory/ */
250
201
  remotePath?: string;
@@ -252,13 +203,13 @@ declare namespace gapi.client {
252
203
  interface InstancePolicy {
253
204
  /** The accelerators attached to each VM instance. */
254
205
  accelerators?: Accelerator[];
255
- /** Book disk to be created and attached to each VM by this InstancePolicy. Boot disk will be deleted when the VM is deleted. */
206
+ /** Boot disk to be created and attached to each VM by this InstancePolicy. Boot disk will be deleted when the VM is deleted. */
256
207
  bootDisk?: Disk;
257
208
  /** Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the VM is deleted. */
258
209
  disks?: AttachedDisk[];
259
210
  /** The Compute Engine machine type. */
260
211
  machineType?: string;
261
- /** The minimum CPU platform. See `https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform`. Not yet implemented. */
212
+ /** The minimum CPU platform. See https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform. Not yet implemented. */
262
213
  minCpuPlatform?: string;
263
214
  /** The provisioning model. */
264
215
  provisioningModel?: string;
@@ -301,7 +252,10 @@ declare namespace gapi.client {
301
252
  name?: string;
302
253
  /** Notification configurations. */
303
254
  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. */
255
+ /**
256
+ * 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
257
+ * all other requirements are satisfied.
258
+ */
305
259
  priority?: string;
306
260
  /** Output only. Job status. It is read only for users. */
307
261
  status?: JobStatus;
@@ -338,7 +292,10 @@ declare namespace gapi.client {
338
292
  keyName?: string;
339
293
  }
340
294
  interface LifecyclePolicy {
341
- /** Action to execute when ActionCondition is true. */
295
+ /**
296
+ * 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.
297
+ * 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.
298
+ */
342
299
  action?: string;
343
300
  /** Conditions that decide why a task failure is dealt with a specific action. */
344
301
  actionCondition?: ActionCondition;
@@ -411,8 +368,8 @@ declare namespace gapi.client {
411
368
  }
412
369
  interface NetworkInterface {
413
370
  /**
414
- * The URL of an existing network resource. You can specify the network as a full or partial URL. For example, the following are all valid URLs:
415
- * https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network} projects/{project}/global/networks/{network} global/networks/{network}
371
+ * The URL of an existing network resource. You can specify the network as a full or partial URL. For example, the following are all valid URLs: *
372
+ * https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network} * projects/{project}/global/networks/{network} * global/networks/{network}
416
373
  */
417
374
  network?: string;
418
375
  /**
@@ -422,8 +379,8 @@ declare namespace gapi.client {
422
379
  */
423
380
  noExternalIpAddress?: boolean;
424
381
  /**
425
- * The URL of an existing subnetwork resource in the network. You can specify the subnetwork as a full or partial URL. For example, the following are all valid URLs:
426
- * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork} projects/{project}/regions/{region}/subnetworks/{subnetwork}
382
+ * The URL of an existing subnetwork resource in the network. You can specify the subnetwork as a full or partial URL. For example, the following are all valid URLs: *
383
+ * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork} * projects/{project}/regions/{region}/subnetworks/{subnetwork} *
427
384
  * regions/{region}/subnetworks/{subnetwork}
428
385
  */
429
386
  subnetwork?: string;
@@ -479,34 +436,6 @@ declare namespace gapi.client {
479
436
  /** Output only. Name of the verb executed by the operation. */
480
437
  verb?: string;
481
438
  }
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
439
  interface ReportAgentStateRequest {
511
440
  /** Agent info. */
512
441
  agentInfo?: AgentInfo;
@@ -570,18 +499,6 @@ declare namespace gapi.client {
570
499
  /** 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
500
  scopes?: string[];
572
501
  }
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
502
  interface Status {
586
503
  /** The status code, which should be an enum value of google.rpc.Code. */
587
504
  code?: number;
@@ -624,7 +541,7 @@ declare namespace gapi.client {
624
541
  permissiveSsh?: boolean;
625
542
  /** When true, Batch will populate a file with a list of all VMs assigned to the TaskGroup and set the BATCH_HOSTS_FILE environment variable to the path of that file. Defaults to false. */
626
543
  requireHostsFile?: boolean;
627
- /** Number of Tasks in the TaskGroup. default is 1 */
544
+ /** Number of Tasks in the TaskGroup. Default is 1. */
628
545
  taskCount?: string;
629
546
  /** Max number of tasks that can be run on a VM at the same time. If not specified, the system will decide a value based on available compute resources on a VM and task requirements. */
630
547
  taskCountPerNode?: string;
@@ -652,10 +569,9 @@ declare namespace gapi.client {
652
569
  /** Deprecated: please use environment(non-plural) instead. */
653
570
  environments?: { [P in string]: string };
654
571
  /**
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.
572
+ * 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
573
+ * 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
574
+ * task. If task ends with non-zero exit code, retry the task with max_retry_count.
659
575
  */
660
576
  lifecyclePolicies?: LifecyclePolicy[];
661
577
  /** Maximum number of retries on failures. The default, 0, which means never retry. The valid value range is [0, 10]. */
@@ -678,17 +594,6 @@ declare namespace gapi.client {
678
594
  /** Detailed info about why the state is reached. */
679
595
  statusEvents?: StatusEvent[];
680
596
  }
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
597
  interface Volume {
693
598
  /**
694
599
  * 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 +710,8 @@ declare namespace gapi.client {
805
710
  quotaUser?: string;
806
711
  /**
807
712
  * 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
713
+ * 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
714
+ * 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
715
  * 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
716
  * supported (00000000-0000-0000-0000-000000000000).
812
717
  */
@@ -847,8 +752,8 @@ declare namespace gapi.client {
847
752
  quotaUser?: string;
848
753
  /**
849
754
  * 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
755
+ * 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
756
+ * 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
757
  * 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
758
  * supported (00000000-0000-0000-0000-000000000000).
854
759
  */
@@ -885,8 +790,8 @@ declare namespace gapi.client {
885
790
  reason?: string;
886
791
  /**
887
792
  * 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
793
+ * 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
794
+ * 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
795
  * 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
796
  * supported (00000000-0000-0000-0000-000000000000).
892
797
  */
@@ -923,44 +828,6 @@ declare namespace gapi.client {
923
828
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
924
829
  uploadType?: string;
925
830
  }): 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
831
  /** List all Jobs for a project within a region. */
965
832
  list(request?: {
966
833
  /** V1 error format. */
@@ -994,71 +861,6 @@ declare namespace gapi.client {
994
861
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
995
862
  uploadType?: string;
996
863
  }): 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
864
  taskGroups: TaskGroupsResource;
1063
865
  }
1064
866
  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.20230226",
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: 20230226
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",