@maxim_mazurok/gapi.client.run-v1 0.0.20230326 → 0.0.20230409
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 +26 -8
- 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: 20230409
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -203,6 +203,14 @@ declare namespace gapi.client {
|
|
|
203
203
|
/** Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. */
|
|
204
204
|
workingDir?: string;
|
|
205
205
|
}
|
|
206
|
+
interface ContainerOverride {
|
|
207
|
+
/** Arguments to the entrypoint. Will replace existing args for override. */
|
|
208
|
+
args?: string[];
|
|
209
|
+
/** List of environment variables to set in the container. Will be merged with existing env for override. */
|
|
210
|
+
env?: EnvVar[];
|
|
211
|
+
/** The name of the container specified as a DNS_LABEL. */
|
|
212
|
+
name?: string;
|
|
213
|
+
}
|
|
206
214
|
interface ContainerPort {
|
|
207
215
|
/**
|
|
208
216
|
* 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
|
|
@@ -630,12 +638,13 @@ declare namespace gapi.client {
|
|
|
630
638
|
* 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
639
|
* resource type. * `autoscaling.knative.dev/maxScale`: Revision. * `autoscaling.knative.dev/minScale`: Revision. * `run.googleapis.com/binary-authorization-breakglass`: Service, Job,
|
|
632
640
|
* * `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/
|
|
637
|
-
* `run.googleapis.com/
|
|
638
|
-
* `run.googleapis.com/vpc-access-
|
|
641
|
+
* Execution. * `run.googleapis.com/container-dependencies`: Revision. * `run.googleapis.com/cpu-throttling`: Revision. * `run.googleapis.com/custom-audiences`: Service. *
|
|
642
|
+
* `run.googleapis.com/description`: Service. * `run.googleapis.com/encryption-key-shutdown-hours`: Revision * `run.googleapis.com/encryption-key`: Revision, Execution. *
|
|
643
|
+
* `run.googleapis.com/execution-environment`: Revision, Execution. * `run.googleapis.com/gc-traffic-tags`: Service. * `run.googleapis.com/ingress`: Service. *
|
|
644
|
+
* `run.googleapis.com/launch-stage`: Service, Job. * `run.googleapis.com/network-interfaces`: Revision, Execution. * `run.googleapis.com/post-key-revocation-action-type`: Revision. *
|
|
645
|
+
* `run.googleapis.com/secrets`: Revision, Execution. * `run.googleapis.com/secure-session-agent`: Revision. * `run.googleapis.com/sessionAffinity`: Revision. *
|
|
646
|
+
* `run.googleapis.com/startup-cpu-boost`: Revision. * `run.googleapis.com/vpc-access-connector`: Revision, Execution. * `run.googleapis.com/vpc-access-egress`: Revision, Execution.
|
|
647
|
+
* Execution. More info: https://kubernetes.io/docs/user-guide/annotations
|
|
639
648
|
*/
|
|
640
649
|
annotations?: { [P in string]: string };
|
|
641
650
|
/** Not supported by Cloud Run */
|
|
@@ -677,6 +686,14 @@ declare namespace gapi.client {
|
|
|
677
686
|
/** Unique, system-generated identifier for this resource. More info: https://kubernetes.io/docs/user-guide/identifiers#uids */
|
|
678
687
|
uid?: string;
|
|
679
688
|
}
|
|
689
|
+
interface Overrides {
|
|
690
|
+
/** Per container override specification. */
|
|
691
|
+
containerOverrides?: ContainerOverride[];
|
|
692
|
+
/** The desired number of tasks the execution should run. Will replace existing task_count value. */
|
|
693
|
+
taskCount?: number;
|
|
694
|
+
/** 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. */
|
|
695
|
+
timeoutSeconds?: number;
|
|
696
|
+
}
|
|
680
697
|
interface OwnerReference {
|
|
681
698
|
/** This is not supported or used by Cloud Run. */
|
|
682
699
|
apiVersion?: string;
|
|
@@ -875,8 +892,9 @@ declare namespace gapi.client {
|
|
|
875
892
|
/** 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 */
|
|
876
893
|
url?: string;
|
|
877
894
|
}
|
|
878
|
-
// tslint:disable-next-line:no-empty-interface
|
|
879
895
|
interface RunJobRequest {
|
|
896
|
+
/** Optional. Overrides specification for a given execution of a job. If provided, overrides will be applied to update the execution or task spec. */
|
|
897
|
+
overrides?: Overrides;
|
|
880
898
|
}
|
|
881
899
|
interface SecretEnvSource {
|
|
882
900
|
/** This field should not be used directly as it is meant to be inlined directly into the message. Use the "name" field instead. */
|
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: 20230409
|
|
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({
|