@maxim_mazurok/gapi.client.run-v1 0.0.20230402 → 0.0.20230416
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 +87 -102
- package/package.json +1 -1
- package/tests.ts +37 -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://run.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230416
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -156,19 +156,13 @@ declare namespace gapi.client {
|
|
|
156
156
|
env?: EnvVar[];
|
|
157
157
|
/** Not supported by Cloud Run. */
|
|
158
158
|
envFrom?: EnvFromSource[];
|
|
159
|
-
/**
|
|
160
|
-
* Required. Name of the container image in Dockerhub, Google Artifact Registry, or Google Container Registry. If the host is not provided, Dockerhub is assumed. More info:
|
|
161
|
-
* https://kubernetes.io/docs/concepts/containers/images
|
|
162
|
-
*/
|
|
159
|
+
/** Required. Name of the container image in Dockerhub, Google Artifact Registry, or Google Container Registry. If the host is not provided, Dockerhub is assumed. */
|
|
163
160
|
image?: string;
|
|
164
|
-
/**
|
|
165
|
-
* Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. More info:
|
|
166
|
-
* https://kubernetes.io/docs/concepts/containers/images#updating-images
|
|
167
|
-
*/
|
|
161
|
+
/** Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. */
|
|
168
162
|
imagePullPolicy?: string;
|
|
169
|
-
/** Periodic probe of container liveness. Container will be restarted if the probe fails.
|
|
163
|
+
/** Periodic probe of container liveness. Container will be restarted if the probe fails. */
|
|
170
164
|
livenessProbe?: Probe;
|
|
171
|
-
/** Name of the container specified as a DNS_LABEL (RFC 1123).
|
|
165
|
+
/** Name of the container specified as a DNS_LABEL (RFC 1123). */
|
|
172
166
|
name?: string;
|
|
173
167
|
/**
|
|
174
168
|
* List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be
|
|
@@ -177,13 +171,13 @@ declare namespace gapi.client {
|
|
|
177
171
|
ports?: ContainerPort[];
|
|
178
172
|
/** Not supported by Cloud Run. */
|
|
179
173
|
readinessProbe?: Probe;
|
|
180
|
-
/** Compute Resources required by this container.
|
|
174
|
+
/** Compute Resources required by this container. */
|
|
181
175
|
resources?: ResourceRequirements;
|
|
182
176
|
/** Not supported by Cloud Run. */
|
|
183
177
|
securityContext?: SecurityContext;
|
|
184
178
|
/**
|
|
185
179
|
* Startup probe of application within the container. All other probes are disabled if a startup probe is provided, until it succeeds. Container will not receive traffic if the probe
|
|
186
|
-
* fails. If not provided, a default startup probe with TCP socket action is used.
|
|
180
|
+
* fails. If not provided, a default startup probe with TCP socket action is used.
|
|
187
181
|
*/
|
|
188
182
|
startupProbe?: Probe;
|
|
189
183
|
/**
|
|
@@ -203,6 +197,14 @@ declare namespace gapi.client {
|
|
|
203
197
|
/** Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. */
|
|
204
198
|
workingDir?: string;
|
|
205
199
|
}
|
|
200
|
+
interface ContainerOverride {
|
|
201
|
+
/** Arguments to the entrypoint. Will replace existing args for override. */
|
|
202
|
+
args?: string[];
|
|
203
|
+
/** List of environment variables to set in the container. Will be merged with existing env for override. */
|
|
204
|
+
env?: EnvVar[];
|
|
205
|
+
/** The name of the container specified as a DNS_LABEL. */
|
|
206
|
+
name?: string;
|
|
207
|
+
}
|
|
206
208
|
interface ContainerPort {
|
|
207
209
|
/**
|
|
208
210
|
* Port number the container listens on. If present, this must be a valid port number, 0 < x < 65536. If not present, it will default to port 8080. For more information, see
|
|
@@ -288,19 +290,19 @@ declare namespace gapi.client {
|
|
|
288
290
|
interface Execution {
|
|
289
291
|
/**
|
|
290
292
|
* Optional. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject
|
|
291
|
-
* unrecognized values.
|
|
293
|
+
* unrecognized values.
|
|
292
294
|
*/
|
|
293
295
|
apiVersion?: string;
|
|
294
296
|
/**
|
|
295
297
|
* Optional. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated.
|
|
296
|
-
* In CamelCase.
|
|
298
|
+
* In CamelCase.
|
|
297
299
|
*/
|
|
298
300
|
kind?: string;
|
|
299
|
-
/** Optional. Standard object's metadata.
|
|
301
|
+
/** Optional. Standard object's metadata. */
|
|
300
302
|
metadata?: ObjectMeta;
|
|
301
|
-
/** Optional. Specification of the desired behavior of an execution.
|
|
303
|
+
/** Optional. Specification of the desired behavior of an execution. */
|
|
302
304
|
spec?: ExecutionSpec;
|
|
303
|
-
/** Output only. Current status of an execution.
|
|
305
|
+
/** Output only. Current status of an execution. */
|
|
304
306
|
status?: ExecutionStatus;
|
|
305
307
|
}
|
|
306
308
|
interface ExecutionReference {
|
|
@@ -393,10 +395,7 @@ declare namespace gapi.client {
|
|
|
393
395
|
severity?: string;
|
|
394
396
|
/** Status of the condition, one of True, False, Unknown. */
|
|
395
397
|
status?: string;
|
|
396
|
-
/**
|
|
397
|
-
* type is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting Types
|
|
398
|
-
* common to all resources include: * "Ready" or "Completed": True when the Resource is ready.
|
|
399
|
-
*/
|
|
398
|
+
/** type is used to communicate the status of the reconciliation process. Types common to all resources include: * "Ready" or "Completed": True when the Resource is ready. */
|
|
400
399
|
type?: string;
|
|
401
400
|
}
|
|
402
401
|
interface GoogleRpcStatus {
|
|
@@ -413,10 +412,7 @@ declare namespace gapi.client {
|
|
|
413
412
|
interface GRPCAction {
|
|
414
413
|
/** Port number of the gRPC service. Number must be in the range 1 to 65535. */
|
|
415
414
|
port?: number;
|
|
416
|
-
/**
|
|
417
|
-
* Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the
|
|
418
|
-
* default behavior is defined by gRPC.
|
|
419
|
-
*/
|
|
415
|
+
/** Service is the name of the service to place in the gRPC HealthCheckRequest. If this is not specified, the default behavior is defined by gRPC. */
|
|
420
416
|
service?: string;
|
|
421
417
|
}
|
|
422
418
|
interface HTTPGetAction {
|
|
@@ -440,19 +436,19 @@ declare namespace gapi.client {
|
|
|
440
436
|
interface Job {
|
|
441
437
|
/**
|
|
442
438
|
* Optional. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject
|
|
443
|
-
* unrecognized values.
|
|
439
|
+
* unrecognized values.
|
|
444
440
|
*/
|
|
445
441
|
apiVersion?: string;
|
|
446
442
|
/**
|
|
447
443
|
* Optional. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated.
|
|
448
|
-
* In CamelCase.
|
|
444
|
+
* In CamelCase.
|
|
449
445
|
*/
|
|
450
446
|
kind?: string;
|
|
451
|
-
/** Optional. Standard object's metadata.
|
|
447
|
+
/** Optional. Standard object's metadata. */
|
|
452
448
|
metadata?: ObjectMeta;
|
|
453
|
-
/** Optional. Specification of the desired behavior of a job.
|
|
449
|
+
/** Optional. Specification of the desired behavior of a job. */
|
|
454
450
|
spec?: JobSpec;
|
|
455
|
-
/** Output only. Current status of a job.
|
|
451
|
+
/** Output only. Current status of a job. */
|
|
456
452
|
status?: JobStatus;
|
|
457
453
|
}
|
|
458
454
|
interface JobSpec {
|
|
@@ -554,7 +550,7 @@ declare namespace gapi.client {
|
|
|
554
550
|
continue?: string;
|
|
555
551
|
/**
|
|
556
552
|
* Opaque string that identifies the server's internal version of this object. It can be used by clients to determine when objects have changed. If the message is passed back to the
|
|
557
|
-
* server, it must be left unmodified.
|
|
553
|
+
* server, it must be left unmodified.
|
|
558
554
|
*/
|
|
559
555
|
resourceVersion?: string;
|
|
560
556
|
/** URL representing this object. */
|
|
@@ -609,7 +605,7 @@ declare namespace gapi.client {
|
|
|
609
605
|
unreachable?: string[];
|
|
610
606
|
}
|
|
611
607
|
interface LocalObjectReference {
|
|
612
|
-
/** Name of the referent.
|
|
608
|
+
/** Name of the referent. */
|
|
613
609
|
name?: string;
|
|
614
610
|
}
|
|
615
611
|
interface Location {
|
|
@@ -630,18 +626,17 @@ declare namespace gapi.client {
|
|
|
630
626
|
* modifying objects. In Cloud Run, annotations with 'run.googleapis.com/' and 'autoscaling.knative.dev' are restricted, and the accepted annotations will be different depending on the
|
|
631
627
|
* resource type. * `autoscaling.knative.dev/maxScale`: Revision. * `autoscaling.knative.dev/minScale`: Revision. * `run.googleapis.com/binary-authorization-breakglass`: Service, Job,
|
|
632
628
|
* * `run.googleapis.com/binary-authorization`: Service, Job, Execution. * `run.googleapis.com/client-name`: All resources. * `run.googleapis.com/cloudsql-instances`: Revision,
|
|
633
|
-
* Execution. * `run.googleapis.com/
|
|
634
|
-
* `run.googleapis.com/
|
|
635
|
-
*
|
|
636
|
-
* `run.googleapis.com/network-interfaces`: Revision, Execution. * `run.googleapis.com/post-key-revocation-action-type`: Revision. *
|
|
637
|
-
*
|
|
638
|
-
* `run.googleapis.com/vpc-access-connector`: Revision, Execution. * `run.googleapis.com/vpc-access-egress`: Revision, Execution.
|
|
639
|
-
* https://kubernetes.io/docs/user-guide/annotations
|
|
629
|
+
* Execution. * `run.googleapis.com/container-dependencies`: Revision. * `run.googleapis.com/cpu-throttling`: Revision. * `run.googleapis.com/custom-audiences`: Service. *
|
|
630
|
+
* `run.googleapis.com/description`: Service. * `run.googleapis.com/encryption-key-shutdown-hours`: Revision * `run.googleapis.com/encryption-key`: Revision, Execution. *
|
|
631
|
+
* `run.googleapis.com/execution-environment`: Revision, Execution. * `run.googleapis.com/gc-traffic-tags`: Service. * `run.googleapis.com/ingress`: Service. *
|
|
632
|
+
* `run.googleapis.com/launch-stage`: Service, Job. * `run.googleapis.com/network-interfaces`: Revision, Execution. * `run.googleapis.com/post-key-revocation-action-type`: Revision. *
|
|
633
|
+
* `run.googleapis.com/secrets`: Revision, Execution. * `run.googleapis.com/secure-session-agent`: Revision. * `run.googleapis.com/sessionAffinity`: Revision. *
|
|
634
|
+
* `run.googleapis.com/startup-cpu-boost`: Revision. * `run.googleapis.com/vpc-access-connector`: Revision, Execution. * `run.googleapis.com/vpc-access-egress`: Revision, Execution.
|
|
640
635
|
*/
|
|
641
636
|
annotations?: { [P in string]: string };
|
|
642
637
|
/** Not supported by Cloud Run */
|
|
643
638
|
clusterName?: string;
|
|
644
|
-
/** UTC timestamp representing the server time when this object was created.
|
|
639
|
+
/** UTC timestamp representing the server time when this object was created. */
|
|
645
640
|
creationTimestamp?: string;
|
|
646
641
|
/** Not supported by Cloud Run */
|
|
647
642
|
deletionGracePeriodSeconds?: number;
|
|
@@ -653,14 +648,11 @@ declare namespace gapi.client {
|
|
|
653
648
|
generateName?: string;
|
|
654
649
|
/** A system-provided sequence number representing a specific generation of the desired state. */
|
|
655
650
|
generation?: number;
|
|
656
|
-
/**
|
|
657
|
-
* Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and routes. More info:
|
|
658
|
-
* https://kubernetes.io/docs/user-guide/labels
|
|
659
|
-
*/
|
|
651
|
+
/** Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and routes. */
|
|
660
652
|
labels?: { [P in string]: string };
|
|
661
653
|
/**
|
|
662
|
-
* Required. The name of the resource.
|
|
663
|
-
*
|
|
654
|
+
* Required. The name of the resource. Name is required when creating top-level resources (Service, Job), must be unique within a Cloud Run project/region, and cannot be changed once
|
|
655
|
+
* created.
|
|
664
656
|
*/
|
|
665
657
|
name?: string;
|
|
666
658
|
/** Required. Defines the space within each name must be unique within a Cloud Run region. In Cloud Run, it must be project ID or number. */
|
|
@@ -670,14 +662,22 @@ declare namespace gapi.client {
|
|
|
670
662
|
/**
|
|
671
663
|
* Opaque, system-generated value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic
|
|
672
664
|
* concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server or omit
|
|
673
|
-
* the value to disable conflict-detection.
|
|
665
|
+
* the value to disable conflict-detection.
|
|
674
666
|
*/
|
|
675
667
|
resourceVersion?: string;
|
|
676
668
|
/** URL representing this object. */
|
|
677
669
|
selfLink?: string;
|
|
678
|
-
/** Unique, system-generated identifier for this resource.
|
|
670
|
+
/** Unique, system-generated identifier for this resource. */
|
|
679
671
|
uid?: string;
|
|
680
672
|
}
|
|
673
|
+
interface Overrides {
|
|
674
|
+
/** Per container override specification. */
|
|
675
|
+
containerOverrides?: ContainerOverride[];
|
|
676
|
+
/** The desired number of tasks the execution should run. Will replace existing task_count value. */
|
|
677
|
+
taskCount?: number;
|
|
678
|
+
/** Duration in seconds the task may be active before the system will actively try to mark it failed and kill associated containers. Will replace existing timeout_seconds value. */
|
|
679
|
+
timeoutSeconds?: number;
|
|
680
|
+
}
|
|
681
681
|
interface OwnerReference {
|
|
682
682
|
/** This is not supported or used by Cloud Run. */
|
|
683
683
|
apiVersion?: string;
|
|
@@ -731,7 +731,7 @@ declare namespace gapi.client {
|
|
|
731
731
|
httpGet?: HTTPGetAction;
|
|
732
732
|
/**
|
|
733
733
|
* Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe is 3600. Maximum value
|
|
734
|
-
* for startup probe is 240.
|
|
734
|
+
* for startup probe is 240.
|
|
735
735
|
*/
|
|
736
736
|
initialDelaySeconds?: number;
|
|
737
737
|
/**
|
|
@@ -743,10 +743,7 @@ declare namespace gapi.client {
|
|
|
743
743
|
successThreshold?: number;
|
|
744
744
|
/** TCPSocket specifies an action involving a TCP port. */
|
|
745
745
|
tcpSocket?: TCPSocketAction;
|
|
746
|
-
/**
|
|
747
|
-
* Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than period_seconds. More info:
|
|
748
|
-
* https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
|
|
749
|
-
*/
|
|
746
|
+
/** Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than period_seconds. */
|
|
750
747
|
timeoutSeconds?: number;
|
|
751
748
|
}
|
|
752
749
|
interface ResourceRecord {
|
|
@@ -759,14 +756,14 @@ declare namespace gapi.client {
|
|
|
759
756
|
}
|
|
760
757
|
interface ResourceRequirements {
|
|
761
758
|
/**
|
|
762
|
-
*
|
|
763
|
-
* https://
|
|
759
|
+
* Limits describes the maximum amount of compute resources allowed. Only 'cpu' and 'memory' keys are supported. * For supported 'cpu' values, go to
|
|
760
|
+
* https://cloud.google.com/run/docs/configuring/cpu. * For supported 'memory' values and syntax, go to https://cloud.google.com/run/docs/configuring/memory-limits
|
|
764
761
|
*/
|
|
765
762
|
limits?: { [P in string]: string };
|
|
766
763
|
/**
|
|
767
|
-
*
|
|
768
|
-
* explicitly specified, otherwise to an implementation-defined value.
|
|
769
|
-
* https://
|
|
764
|
+
* Requests describes the minimum amount of compute resources required. Only `cpu` and `memory` are supported. If Requests is omitted for a container, it defaults to Limits if that is
|
|
765
|
+
* explicitly specified, otherwise to an implementation-defined value. * For supported 'cpu' values, go to https://cloud.google.com/run/docs/configuring/cpu. * For supported 'memory'
|
|
766
|
+
* values and syntax, go to https://cloud.google.com/run/docs/configuring/memory-limits
|
|
770
767
|
*/
|
|
771
768
|
requests?: { [P in string]: string };
|
|
772
769
|
}
|
|
@@ -787,8 +784,7 @@ declare namespace gapi.client {
|
|
|
787
784
|
containerConcurrency?: number;
|
|
788
785
|
/**
|
|
789
786
|
* Containers holds the single container that defines the unit of execution for this Revision. In the context of a Revision, we disallow a number of fields on this Container,
|
|
790
|
-
* including: name and lifecycle. In Cloud Run, only a single container may be provided.
|
|
791
|
-
* https://github.com/knative/specs/blob/main/specs/serving/runtime-contract.md
|
|
787
|
+
* including: name and lifecycle. In Cloud Run, only a single container may be provided.
|
|
792
788
|
*/
|
|
793
789
|
containers?: Container[];
|
|
794
790
|
/** Not supported by Cloud Run. */
|
|
@@ -876,8 +872,9 @@ declare namespace gapi.client {
|
|
|
876
872
|
/** URL holds the url that will distribute traffic over the provided traffic targets. It generally has the form: https://{route-hash}-{project-hash}-{cluster-level-suffix}.a.run.app */
|
|
877
873
|
url?: string;
|
|
878
874
|
}
|
|
879
|
-
// tslint:disable-next-line:no-empty-interface
|
|
880
875
|
interface RunJobRequest {
|
|
876
|
+
/** Optional. Overrides specification for a given execution of a job. If provided, overrides will be applied to update the execution or task spec. */
|
|
877
|
+
overrides?: Overrides;
|
|
881
878
|
}
|
|
882
879
|
interface SecretEnvSource {
|
|
883
880
|
/** This field should not be used directly as it is meant to be inlined directly into the message. Use the "name" field instead. */
|
|
@@ -1010,14 +1007,14 @@ declare namespace gapi.client {
|
|
|
1010
1007
|
details?: StatusDetails;
|
|
1011
1008
|
/** A human-readable description of the status of this operation. */
|
|
1012
1009
|
message?: string;
|
|
1013
|
-
/** Standard list metadata.
|
|
1010
|
+
/** Standard list metadata. */
|
|
1014
1011
|
metadata?: ListMeta;
|
|
1015
1012
|
/**
|
|
1016
1013
|
* A machine-readable description of why this operation is in the "Failure" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but
|
|
1017
1014
|
* does not override it.
|
|
1018
1015
|
*/
|
|
1019
1016
|
reason?: string;
|
|
1020
|
-
/** Status of the operation. One of: "Success" or "Failure".
|
|
1017
|
+
/** Status of the operation. One of: "Success" or "Failure". */
|
|
1021
1018
|
status?: string;
|
|
1022
1019
|
}
|
|
1023
1020
|
interface StatusCause {
|
|
@@ -1037,10 +1034,7 @@ declare namespace gapi.client {
|
|
|
1037
1034
|
causes?: StatusCause[];
|
|
1038
1035
|
/** The group attribute of the resource associated with the status StatusReason. */
|
|
1039
1036
|
group?: string;
|
|
1040
|
-
/**
|
|
1041
|
-
* The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info:
|
|
1042
|
-
* https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
1043
|
-
*/
|
|
1037
|
+
/** The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. */
|
|
1044
1038
|
kind?: string;
|
|
1045
1039
|
/** The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described). */
|
|
1046
1040
|
name?: string;
|
|
@@ -1049,25 +1043,25 @@ declare namespace gapi.client {
|
|
|
1049
1043
|
* indicate how long to wait before taking the alternate action.
|
|
1050
1044
|
*/
|
|
1051
1045
|
retryAfterSeconds?: number;
|
|
1052
|
-
/** UID of the resource. (when there is a single resource which can be described).
|
|
1046
|
+
/** UID of the resource. (when there is a single resource which can be described). */
|
|
1053
1047
|
uid?: string;
|
|
1054
1048
|
}
|
|
1055
1049
|
interface Task {
|
|
1056
1050
|
/**
|
|
1057
1051
|
* Optional. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject
|
|
1058
|
-
* unrecognized values.
|
|
1052
|
+
* unrecognized values.
|
|
1059
1053
|
*/
|
|
1060
1054
|
apiVersion?: string;
|
|
1061
1055
|
/**
|
|
1062
1056
|
* Optional. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated.
|
|
1063
|
-
* In CamelCase.
|
|
1057
|
+
* In CamelCase.
|
|
1064
1058
|
*/
|
|
1065
1059
|
kind?: string;
|
|
1066
|
-
/** Optional. Standard object's metadata.
|
|
1060
|
+
/** Optional. Standard object's metadata. */
|
|
1067
1061
|
metadata?: ObjectMeta;
|
|
1068
|
-
/** Optional. Specification of the desired behavior of a task.
|
|
1062
|
+
/** Optional. Specification of the desired behavior of a task. */
|
|
1069
1063
|
spec?: TaskSpec;
|
|
1070
|
-
/** Output only. Current status of a task.
|
|
1064
|
+
/** Output only. Current status of a task. */
|
|
1071
1065
|
status?: TaskStatus;
|
|
1072
1066
|
}
|
|
1073
1067
|
interface TaskAttemptResult {
|
|
@@ -1094,7 +1088,7 @@ declare namespace gapi.client {
|
|
|
1094
1088
|
* meaning each retry can run for the full timeout. Defaults to 600 seconds.
|
|
1095
1089
|
*/
|
|
1096
1090
|
timeoutSeconds?: string;
|
|
1097
|
-
/** Optional. List of volumes that can be mounted by containers belonging to the task.
|
|
1091
|
+
/** Optional. List of volumes that can be mounted by containers belonging to the task. */
|
|
1098
1092
|
volumes?: Volume[];
|
|
1099
1093
|
}
|
|
1100
1094
|
interface TaskStatus {
|
|
@@ -1125,7 +1119,7 @@ declare namespace gapi.client {
|
|
|
1125
1119
|
startTime?: string;
|
|
1126
1120
|
}
|
|
1127
1121
|
interface TaskTemplateSpec {
|
|
1128
|
-
/** Optional. Specification of the desired behavior of the task.
|
|
1122
|
+
/** Optional. Specification of the desired behavior of the task. */
|
|
1129
1123
|
spec?: TaskSpec;
|
|
1130
1124
|
}
|
|
1131
1125
|
interface TCPSocketAction {
|
|
@@ -1307,7 +1301,7 @@ declare namespace gapi.client {
|
|
|
1307
1301
|
/** OAuth 2.0 token for the current user. */
|
|
1308
1302
|
oauth_token?: string;
|
|
1309
1303
|
/**
|
|
1310
|
-
* The namespace in which the domain mapping should be created. For Cloud Run (fully managed), replace {namespace} with the project ID or number. It takes the form
|
|
1304
|
+
* Required. The namespace in which the domain mapping should be created. For Cloud Run (fully managed), replace {namespace} with the project ID or number. It takes the form
|
|
1311
1305
|
* namespaces/{namespace}. For example: namespaces/PROJECT_ID
|
|
1312
1306
|
*/
|
|
1313
1307
|
parent: string;
|
|
@@ -1340,7 +1334,7 @@ declare namespace gapi.client {
|
|
|
1340
1334
|
/** OAuth 2.0 token for the current user. */
|
|
1341
1335
|
oauth_token?: string;
|
|
1342
1336
|
/**
|
|
1343
|
-
* The namespace in which the domain mapping should be created. For Cloud Run (fully managed), replace {namespace} with the project ID or number. It takes the form
|
|
1337
|
+
* Required. The namespace in which the domain mapping should be created. For Cloud Run (fully managed), replace {namespace} with the project ID or number. It takes the form
|
|
1344
1338
|
* namespaces/{namespace}. For example: namespaces/PROJECT_ID
|
|
1345
1339
|
*/
|
|
1346
1340
|
parent: string;
|
|
@@ -1375,8 +1369,8 @@ declare namespace gapi.client {
|
|
|
1375
1369
|
/** Cloud Run currently ignores this parameter. */
|
|
1376
1370
|
kind?: string;
|
|
1377
1371
|
/**
|
|
1378
|
-
* The name of the domain mapping to delete. For Cloud Run (fully managed), replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}.
|
|
1379
|
-
* example: namespaces/PROJECT_ID
|
|
1372
|
+
* Required. The name of the domain mapping to delete. For Cloud Run (fully managed), replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}.
|
|
1373
|
+
* For example: namespaces/PROJECT_ID
|
|
1380
1374
|
*/
|
|
1381
1375
|
name: string;
|
|
1382
1376
|
/** OAuth 2.0 token for the current user. */
|
|
@@ -1410,8 +1404,8 @@ declare namespace gapi.client {
|
|
|
1410
1404
|
/** 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. */
|
|
1411
1405
|
key?: string;
|
|
1412
1406
|
/**
|
|
1413
|
-
* The name of the domain mapping to retrieve. For Cloud Run (fully managed), replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}.
|
|
1414
|
-
* example: namespaces/PROJECT_ID
|
|
1407
|
+
* Required. The name of the domain mapping to retrieve. For Cloud Run (fully managed), replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}.
|
|
1408
|
+
* For example: namespaces/PROJECT_ID
|
|
1415
1409
|
*/
|
|
1416
1410
|
name: string;
|
|
1417
1411
|
/** OAuth 2.0 token for the current user. */
|
|
@@ -1452,7 +1446,7 @@ declare namespace gapi.client {
|
|
|
1452
1446
|
/** OAuth 2.0 token for the current user. */
|
|
1453
1447
|
oauth_token?: string;
|
|
1454
1448
|
/**
|
|
1455
|
-
* The namespace from which the domain mappings should be listed. For Cloud Run (fully managed), replace {namespace} with the project ID or number. It takes the form
|
|
1449
|
+
* Required. The namespace from which the domain mappings should be listed. For Cloud Run (fully managed), replace {namespace} with the project ID or number. It takes the form
|
|
1456
1450
|
* namespaces/{namespace}. For example: namespaces/PROJECT_ID
|
|
1457
1451
|
*/
|
|
1458
1452
|
parent: string;
|
|
@@ -1551,10 +1545,7 @@ declare namespace gapi.client {
|
|
|
1551
1545
|
oauth_token?: string;
|
|
1552
1546
|
/** Returns response with indentations and line breaks. */
|
|
1553
1547
|
prettyPrint?: boolean;
|
|
1554
|
-
/**
|
|
1555
|
-
* Optional. Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see
|
|
1556
|
-
* https://kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for more information.
|
|
1557
|
-
*/
|
|
1548
|
+
/** Optional. Specifies the propagation policy of delete. Cloud Run currently ignores this setting. */
|
|
1558
1549
|
propagationPolicy?: string;
|
|
1559
1550
|
/** 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. */
|
|
1560
1551
|
quotaUser?: string;
|
|
@@ -1951,10 +1942,7 @@ declare namespace gapi.client {
|
|
|
1951
1942
|
oauth_token?: string;
|
|
1952
1943
|
/** Returns response with indentations and line breaks. */
|
|
1953
1944
|
prettyPrint?: boolean;
|
|
1954
|
-
/**
|
|
1955
|
-
* Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see
|
|
1956
|
-
* https://kubernetes.io/docs/concepts/architecture/garbage-collection/ for more information.
|
|
1957
|
-
*/
|
|
1945
|
+
/** Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. */
|
|
1958
1946
|
propagationPolicy?: string;
|
|
1959
1947
|
/** 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. */
|
|
1960
1948
|
quotaUser?: string;
|
|
@@ -2614,7 +2602,7 @@ declare namespace gapi.client {
|
|
|
2614
2602
|
/** OAuth 2.0 token for the current user. */
|
|
2615
2603
|
oauth_token?: string;
|
|
2616
2604
|
/**
|
|
2617
|
-
* The namespace in which the domain mapping should be created. For Cloud Run (fully managed), replace {namespace} with the project ID or number. It takes the form
|
|
2605
|
+
* Required. The namespace in which the domain mapping should be created. For Cloud Run (fully managed), replace {namespace} with the project ID or number. It takes the form
|
|
2618
2606
|
* namespaces/{namespace}. For example: namespaces/PROJECT_ID
|
|
2619
2607
|
*/
|
|
2620
2608
|
parent: string;
|
|
@@ -2647,7 +2635,7 @@ declare namespace gapi.client {
|
|
|
2647
2635
|
/** OAuth 2.0 token for the current user. */
|
|
2648
2636
|
oauth_token?: string;
|
|
2649
2637
|
/**
|
|
2650
|
-
* The namespace in which the domain mapping should be created. For Cloud Run (fully managed), replace {namespace} with the project ID or number. It takes the form
|
|
2638
|
+
* Required. The namespace in which the domain mapping should be created. For Cloud Run (fully managed), replace {namespace} with the project ID or number. It takes the form
|
|
2651
2639
|
* namespaces/{namespace}. For example: namespaces/PROJECT_ID
|
|
2652
2640
|
*/
|
|
2653
2641
|
parent: string;
|
|
@@ -2682,8 +2670,8 @@ declare namespace gapi.client {
|
|
|
2682
2670
|
/** Cloud Run currently ignores this parameter. */
|
|
2683
2671
|
kind?: string;
|
|
2684
2672
|
/**
|
|
2685
|
-
* The name of the domain mapping to delete. For Cloud Run (fully managed), replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}.
|
|
2686
|
-
* example: namespaces/PROJECT_ID
|
|
2673
|
+
* Required. The name of the domain mapping to delete. For Cloud Run (fully managed), replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}.
|
|
2674
|
+
* For example: namespaces/PROJECT_ID
|
|
2687
2675
|
*/
|
|
2688
2676
|
name: string;
|
|
2689
2677
|
/** OAuth 2.0 token for the current user. */
|
|
@@ -2717,8 +2705,8 @@ declare namespace gapi.client {
|
|
|
2717
2705
|
/** 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. */
|
|
2718
2706
|
key?: string;
|
|
2719
2707
|
/**
|
|
2720
|
-
* The name of the domain mapping to retrieve. For Cloud Run (fully managed), replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}.
|
|
2721
|
-
* example: namespaces/PROJECT_ID
|
|
2708
|
+
* Required. The name of the domain mapping to retrieve. For Cloud Run (fully managed), replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}.
|
|
2709
|
+
* For example: namespaces/PROJECT_ID
|
|
2722
2710
|
*/
|
|
2723
2711
|
name: string;
|
|
2724
2712
|
/** OAuth 2.0 token for the current user. */
|
|
@@ -2759,7 +2747,7 @@ declare namespace gapi.client {
|
|
|
2759
2747
|
/** OAuth 2.0 token for the current user. */
|
|
2760
2748
|
oauth_token?: string;
|
|
2761
2749
|
/**
|
|
2762
|
-
* The namespace from which the domain mappings should be listed. For Cloud Run (fully managed), replace {namespace} with the project ID or number. It takes the form
|
|
2750
|
+
* Required. The namespace from which the domain mappings should be listed. For Cloud Run (fully managed), replace {namespace} with the project ID or number. It takes the form
|
|
2763
2751
|
* namespaces/{namespace}. For example: namespaces/PROJECT_ID
|
|
2764
2752
|
*/
|
|
2765
2753
|
parent: string;
|
|
@@ -2909,10 +2897,7 @@ declare namespace gapi.client {
|
|
|
2909
2897
|
oauth_token?: string;
|
|
2910
2898
|
/** Returns response with indentations and line breaks. */
|
|
2911
2899
|
prettyPrint?: boolean;
|
|
2912
|
-
/**
|
|
2913
|
-
* Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see
|
|
2914
|
-
* https://kubernetes.io/docs/concepts/architecture/garbage-collection/ for more information.
|
|
2915
|
-
*/
|
|
2900
|
+
/** Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. */
|
|
2916
2901
|
propagationPolicy?: string;
|
|
2917
2902
|
/** 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. */
|
|
2918
2903
|
quotaUser?: string;
|
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: 20230416
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -826,6 +826,42 @@ gapi.load('client', async () => {
|
|
|
826
826
|
await gapi.client.run.namespaces.jobs.run({
|
|
827
827
|
name: "Test string",
|
|
828
828
|
}, {
|
|
829
|
+
overrides: {
|
|
830
|
+
containerOverrides: [
|
|
831
|
+
{
|
|
832
|
+
args: [
|
|
833
|
+
"Test string"
|
|
834
|
+
],
|
|
835
|
+
env: [
|
|
836
|
+
{
|
|
837
|
+
name: "Test string",
|
|
838
|
+
value: "Test string",
|
|
839
|
+
valueFrom: {
|
|
840
|
+
configMapKeyRef: {
|
|
841
|
+
key: "Test string",
|
|
842
|
+
localObjectReference: {
|
|
843
|
+
name: "Test string",
|
|
844
|
+
},
|
|
845
|
+
name: "Test string",
|
|
846
|
+
optional: true,
|
|
847
|
+
},
|
|
848
|
+
secretKeyRef: {
|
|
849
|
+
key: "Test string",
|
|
850
|
+
localObjectReference: {
|
|
851
|
+
name: "Test string",
|
|
852
|
+
},
|
|
853
|
+
name: "Test string",
|
|
854
|
+
optional: true,
|
|
855
|
+
},
|
|
856
|
+
},
|
|
857
|
+
}
|
|
858
|
+
],
|
|
859
|
+
name: "Test string",
|
|
860
|
+
}
|
|
861
|
+
],
|
|
862
|
+
taskCount: 42,
|
|
863
|
+
timeoutSeconds: 42,
|
|
864
|
+
},
|
|
829
865
|
});
|
|
830
866
|
/** Delete a revision. */
|
|
831
867
|
await gapi.client.run.namespaces.revisions.delete({
|