@maxim_mazurok/gapi.client.run-v1 0.0.20250321 → 0.0.20250418
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 +267 -1
- package/package.json +1 -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: 20250418
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -843,6 +843,14 @@ declare namespace gapi.client {
|
|
|
843
843
|
/** The header field value */
|
|
844
844
|
value?: string;
|
|
845
845
|
}
|
|
846
|
+
interface InstanceSplit {
|
|
847
|
+
/** Uses the "status.latestReadyRevisionName" to determine the traffic target. When it changes, traffic will automatically migrate from the prior "latest ready" revision to the new one. */
|
|
848
|
+
latestRevision?: boolean;
|
|
849
|
+
/** Specifies percent of the instance split to this Revision. This defaults to zero if unspecified. */
|
|
850
|
+
percent?: number;
|
|
851
|
+
/** Revision to which to assign this portion of instances. */
|
|
852
|
+
revisionName?: string;
|
|
853
|
+
}
|
|
846
854
|
interface Job {
|
|
847
855
|
/** 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 unrecognized values. */
|
|
848
856
|
apiVersion?: string;
|
|
@@ -997,6 +1005,18 @@ declare namespace gapi.client {
|
|
|
997
1005
|
/** Locations that could not be reached. */
|
|
998
1006
|
unreachable?: string[];
|
|
999
1007
|
}
|
|
1008
|
+
interface ListWorkerPoolsResponse {
|
|
1009
|
+
/** The API version for this call; returns "run.googleapis.com/v1". */
|
|
1010
|
+
apiVersion?: string;
|
|
1011
|
+
/** List of WorkerPools. */
|
|
1012
|
+
items?: WorkerPool[];
|
|
1013
|
+
/** The kind of this resource; returns "WorkerPoolList". */
|
|
1014
|
+
kind?: string;
|
|
1015
|
+
/** Metadata associated with this WorkerPool list. */
|
|
1016
|
+
metadata?: ListMeta;
|
|
1017
|
+
/** For calls against the global endpoint, returns the list of Cloud locations that could not be reached. For regional calls, this field is not used. */
|
|
1018
|
+
unreachable?: string[];
|
|
1019
|
+
}
|
|
1000
1020
|
interface LocalObjectReference {
|
|
1001
1021
|
/** Name of the referent. */
|
|
1002
1022
|
name?: string;
|
|
@@ -1415,6 +1435,36 @@ declare namespace gapi.client {
|
|
|
1415
1435
|
/** Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). */
|
|
1416
1436
|
subPath?: string;
|
|
1417
1437
|
}
|
|
1438
|
+
interface WorkerPool {
|
|
1439
|
+
/** The API version for this call. It must be "run.googleapis.com/v1". */
|
|
1440
|
+
apiVersion?: string;
|
|
1441
|
+
/** The kind of resource. It must be "WorkerPool". */
|
|
1442
|
+
kind?: string;
|
|
1443
|
+
/** Metadata associated with this WorkerPool, including name, namespace, labels, and annotations. In Cloud Run, annotations with 'run.googleapis.com/' and 'autoscaling.knative.dev' are restricted, and the accepted annotations will be different depending on the resource type. The following Cloud Run-specific annotations are accepted in WorkerPool.metadata.annotations. * `run.googleapis.com/binary-authorization-breakglass` * `run.googleapis.com/binary-authorization` * `run.googleapis.com/client-name` * `run.googleapis.com/description` */
|
|
1444
|
+
metadata?: ObjectMeta;
|
|
1445
|
+
/** Holds the desired state of the WorkerPool (from the client). */
|
|
1446
|
+
spec?: WorkerPoolSpec;
|
|
1447
|
+
/** Communicates the system-controlled state of the WorkerPool. */
|
|
1448
|
+
status?: WorkerPoolStatus;
|
|
1449
|
+
}
|
|
1450
|
+
interface WorkerPoolSpec {
|
|
1451
|
+
/** Specifies how to distribute instances over a collection of Revisions. */
|
|
1452
|
+
instanceSplits?: InstanceSplit[];
|
|
1453
|
+
/** Holds the latest specification for the Revision to be stamped out. */
|
|
1454
|
+
template?: RevisionTemplate;
|
|
1455
|
+
}
|
|
1456
|
+
interface WorkerPoolStatus {
|
|
1457
|
+
/** Conditions communicate information about ongoing/complete reconciliation processes that bring the `spec` inline with the observed state of the world. * `Ready`: `True` when all underlying resources are ready. */
|
|
1458
|
+
conditions?: GoogleCloudRunV1Condition[];
|
|
1459
|
+
/** Holds the configured traffic distribution. These entries will always contain RevisionName references. When ConfigurationName appears in the spec, this will hold the LatestReadyRevisionName that we last observed. */
|
|
1460
|
+
instanceSplits?: InstanceSplit[];
|
|
1461
|
+
/** Name of the last revision that was created from this WorkerPool's template. It might not be ready yet, for that use LatestReadyRevisionName. */
|
|
1462
|
+
latestCreatedRevisionName?: string;
|
|
1463
|
+
/** Name of the latest Revision from this WorkerPool's template that has had its `Ready` condition become `True`. */
|
|
1464
|
+
latestReadyRevisionName?: string;
|
|
1465
|
+
/** Returns the generation last seen by the system. Clients polling for completed reconciliation should poll until observedGeneration = metadata.generation and the Ready condition's status is True or False. */
|
|
1466
|
+
observedGeneration?: number;
|
|
1467
|
+
}
|
|
1418
1468
|
interface AuthorizeddomainsResource {
|
|
1419
1469
|
/** List authorized domains. */
|
|
1420
1470
|
list(request?: {
|
|
@@ -2597,6 +2647,221 @@ declare namespace gapi.client {
|
|
|
2597
2647
|
watch?: boolean;
|
|
2598
2648
|
}): Request<ListTasksResponse>;
|
|
2599
2649
|
}
|
|
2650
|
+
interface WorkerpoolsResource {
|
|
2651
|
+
/** Creates a new WorkerPool. WorkerPool creation will trigger a new deployment. Use GetWorkerPool, and check worker_pool.status to determine if the WorkerPool is ready. */
|
|
2652
|
+
create(request: {
|
|
2653
|
+
/** V1 error format. */
|
|
2654
|
+
'$.xgafv'?: string;
|
|
2655
|
+
/** OAuth access token. */
|
|
2656
|
+
access_token?: string;
|
|
2657
|
+
/** Data format for response. */
|
|
2658
|
+
alt?: string;
|
|
2659
|
+
/** JSONP */
|
|
2660
|
+
callback?: string;
|
|
2661
|
+
/** Indicates that the server should validate the request and populate default values without persisting the request. Supported values: `all` */
|
|
2662
|
+
dryRun?: string;
|
|
2663
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2664
|
+
fields?: string;
|
|
2665
|
+
/** 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. */
|
|
2666
|
+
key?: string;
|
|
2667
|
+
/** OAuth 2.0 token for the current user. */
|
|
2668
|
+
oauth_token?: string;
|
|
2669
|
+
/** Required. The resource's parent. In Cloud Run, it may be one of the following: * `{project_id_or_number}` * `namespaces/{project_id_or_number}` * `namespaces/{project_id_or_number}/workerpools` * `projects/{project_id_or_number}/locations/{region}` * `projects/{project_id_or_number}/regions/{region}` */
|
|
2670
|
+
parent: string;
|
|
2671
|
+
/** Returns response with indentations and line breaks. */
|
|
2672
|
+
prettyPrint?: boolean;
|
|
2673
|
+
/** 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. */
|
|
2674
|
+
quotaUser?: string;
|
|
2675
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2676
|
+
upload_protocol?: string;
|
|
2677
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2678
|
+
uploadType?: string;
|
|
2679
|
+
/** Request body */
|
|
2680
|
+
resource: WorkerPool;
|
|
2681
|
+
}): Request<WorkerPool>;
|
|
2682
|
+
create(
|
|
2683
|
+
request: {
|
|
2684
|
+
/** V1 error format. */
|
|
2685
|
+
'$.xgafv'?: string;
|
|
2686
|
+
/** OAuth access token. */
|
|
2687
|
+
access_token?: string;
|
|
2688
|
+
/** Data format for response. */
|
|
2689
|
+
alt?: string;
|
|
2690
|
+
/** JSONP */
|
|
2691
|
+
callback?: string;
|
|
2692
|
+
/** Indicates that the server should validate the request and populate default values without persisting the request. Supported values: `all` */
|
|
2693
|
+
dryRun?: string;
|
|
2694
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2695
|
+
fields?: string;
|
|
2696
|
+
/** 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. */
|
|
2697
|
+
key?: string;
|
|
2698
|
+
/** OAuth 2.0 token for the current user. */
|
|
2699
|
+
oauth_token?: string;
|
|
2700
|
+
/** Required. The resource's parent. In Cloud Run, it may be one of the following: * `{project_id_or_number}` * `namespaces/{project_id_or_number}` * `namespaces/{project_id_or_number}/workerpools` * `projects/{project_id_or_number}/locations/{region}` * `projects/{project_id_or_number}/regions/{region}` */
|
|
2701
|
+
parent: string;
|
|
2702
|
+
/** Returns response with indentations and line breaks. */
|
|
2703
|
+
prettyPrint?: boolean;
|
|
2704
|
+
/** 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. */
|
|
2705
|
+
quotaUser?: string;
|
|
2706
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2707
|
+
upload_protocol?: string;
|
|
2708
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2709
|
+
uploadType?: string;
|
|
2710
|
+
},
|
|
2711
|
+
body: WorkerPool,
|
|
2712
|
+
): Request<WorkerPool>;
|
|
2713
|
+
/** Deletes the provided worker pool. This will cause the WorkerPool to stop all instances and will delete all associated WorkerPoolRevisions. */
|
|
2714
|
+
delete(request?: {
|
|
2715
|
+
/** V1 error format. */
|
|
2716
|
+
'$.xgafv'?: string;
|
|
2717
|
+
/** OAuth access token. */
|
|
2718
|
+
access_token?: string;
|
|
2719
|
+
/** Data format for response. */
|
|
2720
|
+
alt?: string;
|
|
2721
|
+
/** JSONP */
|
|
2722
|
+
callback?: string;
|
|
2723
|
+
/** Indicates that the server should validate the request and populate default values without persisting the request. Supported values: `all` */
|
|
2724
|
+
dryRun?: string;
|
|
2725
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2726
|
+
fields?: string;
|
|
2727
|
+
/** 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. */
|
|
2728
|
+
key?: string;
|
|
2729
|
+
/** Required. The fully qualified name of the worker pool to delete. It can be any of the following forms: * `namespaces/{project_id_or_number}/workerpools/{worker_pool_name}` (only when the `endpoint` is regional) * `projects/{project_id_or_number}/locations/{region}/workerpools/{worker_pool_name}` * `projects/{project_id_or_number}/regions/{region}/workerpools/{worker_pool_name}` */
|
|
2730
|
+
name: string;
|
|
2731
|
+
/** OAuth 2.0 token for the current user. */
|
|
2732
|
+
oauth_token?: string;
|
|
2733
|
+
/** Returns response with indentations and line breaks. */
|
|
2734
|
+
prettyPrint?: boolean;
|
|
2735
|
+
/** 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. */
|
|
2736
|
+
quotaUser?: string;
|
|
2737
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2738
|
+
upload_protocol?: string;
|
|
2739
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2740
|
+
uploadType?: string;
|
|
2741
|
+
}): Request<Status>;
|
|
2742
|
+
/** Gets information about a worker pool. */
|
|
2743
|
+
get(request?: {
|
|
2744
|
+
/** V1 error format. */
|
|
2745
|
+
'$.xgafv'?: string;
|
|
2746
|
+
/** OAuth access token. */
|
|
2747
|
+
access_token?: string;
|
|
2748
|
+
/** Data format for response. */
|
|
2749
|
+
alt?: string;
|
|
2750
|
+
/** JSONP */
|
|
2751
|
+
callback?: string;
|
|
2752
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2753
|
+
fields?: string;
|
|
2754
|
+
/** 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. */
|
|
2755
|
+
key?: string;
|
|
2756
|
+
/** Required. The fully qualified name of the worker pool to retrieve. It can be any of the following forms: * `namespaces/{project_id_or_number}/workerpools/{worker_pool_name}` (only when the `endpoint` is regional) * `projects/{project_id_or_number}/locations/{region}/workerpools/{worker_pool_name}` * `projects/{project_id_or_number}/regions/{region}/workerpools/{worker_pool_name}` */
|
|
2757
|
+
name: string;
|
|
2758
|
+
/** OAuth 2.0 token for the current user. */
|
|
2759
|
+
oauth_token?: string;
|
|
2760
|
+
/** Returns response with indentations and line breaks. */
|
|
2761
|
+
prettyPrint?: boolean;
|
|
2762
|
+
/** 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. */
|
|
2763
|
+
quotaUser?: string;
|
|
2764
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2765
|
+
upload_protocol?: string;
|
|
2766
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2767
|
+
uploadType?: string;
|
|
2768
|
+
}): Request<WorkerPool>;
|
|
2769
|
+
/** Lists worker pools for the given project and region. Results are sorted by creation time, descending. */
|
|
2770
|
+
list(request?: {
|
|
2771
|
+
/** V1 error format. */
|
|
2772
|
+
'$.xgafv'?: string;
|
|
2773
|
+
/** OAuth access token. */
|
|
2774
|
+
access_token?: string;
|
|
2775
|
+
/** Data format for response. */
|
|
2776
|
+
alt?: string;
|
|
2777
|
+
/** JSONP */
|
|
2778
|
+
callback?: string;
|
|
2779
|
+
/** Encoded string to continue paging. */
|
|
2780
|
+
continue?: string;
|
|
2781
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2782
|
+
fields?: string;
|
|
2783
|
+
/** 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. */
|
|
2784
|
+
key?: string;
|
|
2785
|
+
/** =, !=, exists, in, and notIn. */
|
|
2786
|
+
labelSelector?: string;
|
|
2787
|
+
/** The maximum number of records that should be returned. */
|
|
2788
|
+
limit?: number;
|
|
2789
|
+
/** OAuth 2.0 token for the current user. */
|
|
2790
|
+
oauth_token?: string;
|
|
2791
|
+
/** Required. The parent from where the resources should be listed. In Cloud Run, it may be one of the following: * `{project_id_or_number}` * `namespaces/{project_id_or_number}` * `namespaces/{project_id_or_number}/workerpools` * `projects/{project_id_or_number}/locations/{region}` * `projects/{project_id_or_number}/regions/{region}` */
|
|
2792
|
+
parent: string;
|
|
2793
|
+
/** Returns response with indentations and line breaks. */
|
|
2794
|
+
prettyPrint?: boolean;
|
|
2795
|
+
/** 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. */
|
|
2796
|
+
quotaUser?: string;
|
|
2797
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2798
|
+
upload_protocol?: string;
|
|
2799
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2800
|
+
uploadType?: string;
|
|
2801
|
+
}): Request<ListWorkerPoolsResponse>;
|
|
2802
|
+
/** Replaces a worker pool. Only the spec and metadata labels and annotations are modifiable. After the Update request, Cloud Run will work to make the 'status' match the requested 'spec'. May provide metadata.resourceVersion to enforce update from last read for optimistic concurrency control. */
|
|
2803
|
+
replaceWorkerPool(request: {
|
|
2804
|
+
/** V1 error format. */
|
|
2805
|
+
'$.xgafv'?: string;
|
|
2806
|
+
/** OAuth access token. */
|
|
2807
|
+
access_token?: string;
|
|
2808
|
+
/** Data format for response. */
|
|
2809
|
+
alt?: string;
|
|
2810
|
+
/** JSONP */
|
|
2811
|
+
callback?: string;
|
|
2812
|
+
/** Indicates that the server should validate the request and populate default values without persisting the request. Supported values: `all` */
|
|
2813
|
+
dryRun?: string;
|
|
2814
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2815
|
+
fields?: string;
|
|
2816
|
+
/** 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. */
|
|
2817
|
+
key?: string;
|
|
2818
|
+
/** Required. The fully qualified name of the worker pool to replace. It can be any of the following forms: * `namespaces/{project_id_or_number}/workerpools/{worker_pool_name}` (only when the `endpoint` is regional) * `projects/{project_id_or_number}/locations/{region}/workerpools/{worker_pool_name}` * `projects/{project_id_or_number}/regions/{region}/workerpools/{worker_pool_name}` */
|
|
2819
|
+
name: string;
|
|
2820
|
+
/** OAuth 2.0 token for the current user. */
|
|
2821
|
+
oauth_token?: string;
|
|
2822
|
+
/** Returns response with indentations and line breaks. */
|
|
2823
|
+
prettyPrint?: boolean;
|
|
2824
|
+
/** 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. */
|
|
2825
|
+
quotaUser?: string;
|
|
2826
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2827
|
+
upload_protocol?: string;
|
|
2828
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2829
|
+
uploadType?: string;
|
|
2830
|
+
/** Request body */
|
|
2831
|
+
resource: WorkerPool;
|
|
2832
|
+
}): Request<WorkerPool>;
|
|
2833
|
+
replaceWorkerPool(
|
|
2834
|
+
request: {
|
|
2835
|
+
/** V1 error format. */
|
|
2836
|
+
'$.xgafv'?: string;
|
|
2837
|
+
/** OAuth access token. */
|
|
2838
|
+
access_token?: string;
|
|
2839
|
+
/** Data format for response. */
|
|
2840
|
+
alt?: string;
|
|
2841
|
+
/** JSONP */
|
|
2842
|
+
callback?: string;
|
|
2843
|
+
/** Indicates that the server should validate the request and populate default values without persisting the request. Supported values: `all` */
|
|
2844
|
+
dryRun?: string;
|
|
2845
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2846
|
+
fields?: string;
|
|
2847
|
+
/** 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. */
|
|
2848
|
+
key?: string;
|
|
2849
|
+
/** Required. The fully qualified name of the worker pool to replace. It can be any of the following forms: * `namespaces/{project_id_or_number}/workerpools/{worker_pool_name}` (only when the `endpoint` is regional) * `projects/{project_id_or_number}/locations/{region}/workerpools/{worker_pool_name}` * `projects/{project_id_or_number}/regions/{region}/workerpools/{worker_pool_name}` */
|
|
2850
|
+
name: string;
|
|
2851
|
+
/** OAuth 2.0 token for the current user. */
|
|
2852
|
+
oauth_token?: string;
|
|
2853
|
+
/** Returns response with indentations and line breaks. */
|
|
2854
|
+
prettyPrint?: boolean;
|
|
2855
|
+
/** 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. */
|
|
2856
|
+
quotaUser?: string;
|
|
2857
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2858
|
+
upload_protocol?: string;
|
|
2859
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2860
|
+
uploadType?: string;
|
|
2861
|
+
},
|
|
2862
|
+
body: WorkerPool,
|
|
2863
|
+
): Request<WorkerPool>;
|
|
2864
|
+
}
|
|
2600
2865
|
interface NamespacesResource {
|
|
2601
2866
|
authorizeddomains: AuthorizeddomainsResource;
|
|
2602
2867
|
configurations: ConfigurationsResource;
|
|
@@ -2607,6 +2872,7 @@ declare namespace gapi.client {
|
|
|
2607
2872
|
routes: RoutesResource;
|
|
2608
2873
|
services: ServicesResource;
|
|
2609
2874
|
tasks: TasksResource;
|
|
2875
|
+
workerpools: WorkerpoolsResource;
|
|
2610
2876
|
}
|
|
2611
2877
|
interface AuthorizeddomainsResource {
|
|
2612
2878
|
/** List authorized domains. */
|