@maxim_mazurok/gapi.client.run-v1 0.0.20231203 → 0.0.20231217

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 (2) hide show
  1. package/index.d.ts +192 -2
  2. 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: 20231203
12
+ // Revision: 20231217
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -48,7 +48,7 @@ declare namespace gapi.client {
48
48
  interface Binding {
49
49
  /** 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`, 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 resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */
50
50
  condition?: Expr;
51
- /** 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 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 account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service 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]`. * `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 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 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 the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. */
51
+ /** 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 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 account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service 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]`. * `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 users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workforce identity pool. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities with a specific attribute value. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`: All identities in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`: All identities in a workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: Deleted single identity in a workforce identity pool. For example, `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`. */
52
52
  members?: string[];
53
53
  /** Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. */
54
54
  role?: string;
@@ -162,6 +162,14 @@ declare namespace gapi.client {
162
162
  /** Protocol for port. Must be "TCP". Defaults to "TCP". */
163
163
  protocol?: string;
164
164
  }
165
+ interface CSIVolumeSource {
166
+ /** name of the CSI driver for the requested storage system. Cloud Run supports the following drivers: * gcsfuse.run.googleapis.com : Mount a Cloud Storage Bucket as a volume. */
167
+ driver?: string;
168
+ /** If true, mount the volume as read only. Defaults to false. */
169
+ readOnly?: boolean;
170
+ /** stores driver specific attributes. For Google Cloud Storage volumes, the following attributes are supported: * bucketName: the name of the Cloud Storage bucket to mount. The Cloud Run Service identity must have access to this bucket. */
171
+ volumeAttributes?: {[P in string]: string};
172
+ }
165
173
  interface DomainMapping {
166
174
  /** The API version for this call such as "domains.cloudrun.com/v1". */
167
175
  apiVersion?: string;
@@ -194,6 +202,7 @@ declare namespace gapi.client {
194
202
  /** Optional. Not supported by Cloud Run. */
195
203
  url?: string;
196
204
  }
205
+ interface Empty {}
197
206
  interface EmptyDirVolumeSource {
198
207
  /** The medium on which the data is stored. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir */
199
208
  medium?: string;
@@ -306,6 +315,28 @@ declare namespace gapi.client {
306
315
  /** 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. */
307
316
  type?: string;
308
317
  }
318
+ interface GoogleLongrunningListOperationsResponse {
319
+ /** The standard List next-page token. */
320
+ nextPageToken?: string;
321
+ /** A list of operations that matches the specified filter in the request. */
322
+ operations?: GoogleLongrunningOperation[];
323
+ }
324
+ interface GoogleLongrunningOperation {
325
+ /** If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. */
326
+ done?: boolean;
327
+ /** The error result of the operation in case of failure or cancellation. */
328
+ error?: GoogleRpcStatus;
329
+ /** Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. */
330
+ metadata?: {[P in string]: any};
331
+ /** The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. */
332
+ name?: string;
333
+ /** The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. */
334
+ response?: {[P in string]: any};
335
+ }
336
+ interface GoogleLongrunningWaitOperationRequest {
337
+ /** The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used. */
338
+ timeout?: string;
339
+ }
309
340
  interface GoogleRpcStatus {
310
341
  /** The status code, which should be an enum value of google.rpc.Code. */
311
342
  code?: number;
@@ -504,6 +535,14 @@ declare namespace gapi.client {
504
535
  /** Resource name for the location, which may vary between implementations. For example: `"projects/example-project/locations/us-east1"` */
505
536
  name?: string;
506
537
  }
538
+ interface NFSVolumeSource {
539
+ /** Path that is exported by the NFS server. */
540
+ path?: string;
541
+ /** If true, mount the NFS volume as read only. Defaults to false. */
542
+ readOnly?: boolean;
543
+ /** Hostname or IP address of the NFS server. */
544
+ server?: string;
545
+ }
507
546
  interface ObjectMeta {
508
547
  /** Unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when 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 resource type. * `autoscaling.knative.dev/maxScale`: Revision. * `autoscaling.knative.dev/minScale`: Revision. * `run.googleapis.com/binary-authorization-breakglass`: Service, Job, * `run.googleapis.com/binary-authorization`: Service, Job, Execution. * `run.googleapis.com/client-name`: All resources. * `run.googleapis.com/cloudsql-instances`: Revision, Execution. * `run.googleapis.com/container-dependencies`: Revision. * `run.googleapis.com/cpu-throttling`: Revision. * `run.googleapis.com/custom-audiences`: Service. * `run.googleapis.com/description`: Service. * `run.googleapis.com/encryption-key-shutdown-hours`: Revision * `run.googleapis.com/encryption-key`: Revision, Execution. * `run.googleapis.com/execution-environment`: Revision, Execution. * `run.googleapis.com/gc-traffic-tags`: Service. * `run.googleapis.com/ingress`: Service. * `run.googleapis.com/launch-stage`: Service, Job. * `run.googleapis.com/minScale`: Service (ALPHA) * `run.googleapis.com/network-interfaces`: Revision, Execution. * `run.googleapis.com/post-key-revocation-action-type`: Revision. * `run.googleapis.com/secrets`: Revision, Execution. * `run.googleapis.com/secure-session-agent`: Revision. * `run.googleapis.com/sessionAffinity`: Revision. * `run.googleapis.com/startup-cpu-boost`: Revision. * `run.googleapis.com/vpc-access-connector`: Revision, Execution. * `run.googleapis.com/vpc-access-egress`: Revision, Execution. */
509
548
  annotations?: {[P in string]: string};
@@ -872,10 +911,13 @@ declare namespace gapi.client {
872
911
  interface Volume {
873
912
  /** Not supported in Cloud Run. */
874
913
  configMap?: ConfigMapVolumeSource;
914
+ /** Volume specified by the Container Storage Interface driver */
915
+ csi?: CSIVolumeSource;
875
916
  /** Ephemeral storage used as a shared volume. */
876
917
  emptyDir?: EmptyDirVolumeSource;
877
918
  /** Volume's name. In Cloud Run Fully Managed, the name 'cloudsql' is reserved. */
878
919
  name?: string;
920
+ nfs?: NFSVolumeSource;
879
921
  /** The secret's value will be presented as the content of a file whose name is defined in the item path. If no items are defined, the name of the file is the secretName. */
880
922
  secret?: SecretVolumeSource;
881
923
  }
@@ -2476,6 +2518,153 @@ declare namespace gapi.client {
2476
2518
  body: TestIamPermissionsRequest
2477
2519
  ): Request<TestIamPermissionsResponse>;
2478
2520
  }
2521
+ interface OperationsResource {
2522
+ /** Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. */
2523
+ delete(request?: {
2524
+ /** V1 error format. */
2525
+ '$.xgafv'?: string;
2526
+ /** OAuth access token. */
2527
+ access_token?: string;
2528
+ /** Data format for response. */
2529
+ alt?: string;
2530
+ /** JSONP */
2531
+ callback?: string;
2532
+ /** Selector specifying which fields to include in a partial response. */
2533
+ fields?: string;
2534
+ /** 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. */
2535
+ key?: string;
2536
+ /** The name of the operation resource to be deleted. */
2537
+ name: string;
2538
+ /** OAuth 2.0 token for the current user. */
2539
+ oauth_token?: string;
2540
+ /** Returns response with indentations and line breaks. */
2541
+ prettyPrint?: boolean;
2542
+ /** 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. */
2543
+ quotaUser?: string;
2544
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2545
+ upload_protocol?: string;
2546
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2547
+ uploadType?: string;
2548
+ }): Request<{}>;
2549
+ /** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
2550
+ get(request?: {
2551
+ /** V1 error format. */
2552
+ '$.xgafv'?: string;
2553
+ /** OAuth access token. */
2554
+ access_token?: string;
2555
+ /** Data format for response. */
2556
+ alt?: string;
2557
+ /** JSONP */
2558
+ callback?: string;
2559
+ /** Selector specifying which fields to include in a partial response. */
2560
+ fields?: string;
2561
+ /** 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. */
2562
+ key?: string;
2563
+ /** The name of the operation resource. */
2564
+ name: string;
2565
+ /** OAuth 2.0 token for the current user. */
2566
+ oauth_token?: string;
2567
+ /** Returns response with indentations and line breaks. */
2568
+ prettyPrint?: boolean;
2569
+ /** 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. */
2570
+ quotaUser?: string;
2571
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2572
+ upload_protocol?: string;
2573
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2574
+ uploadType?: string;
2575
+ }): Request<GoogleLongrunningOperation>;
2576
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
2577
+ list(request?: {
2578
+ /** V1 error format. */
2579
+ '$.xgafv'?: string;
2580
+ /** OAuth access token. */
2581
+ access_token?: string;
2582
+ /** Data format for response. */
2583
+ alt?: string;
2584
+ /** JSONP */
2585
+ callback?: string;
2586
+ /** Selector specifying which fields to include in a partial response. */
2587
+ fields?: string;
2588
+ /** Optional. A filter for matching the completed or in-progress operations. The supported formats of *filter* are: To query for only completed operations: done:true To query for only ongoing operations: done:false Must be empty to query for all of the latest operations for the given parent project. */
2589
+ filter?: string;
2590
+ /** 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. */
2591
+ key?: string;
2592
+ /** Required. To query for all of the operations for a project. */
2593
+ name: string;
2594
+ /** OAuth 2.0 token for the current user. */
2595
+ oauth_token?: string;
2596
+ /** The maximum number of records that should be returned. Requested page size cannot exceed 100. If not set or set to less than or equal to 0, the default page size is 100. . */
2597
+ pageSize?: number;
2598
+ /** Token identifying which result to start with, which is returned by a previous list call. */
2599
+ pageToken?: string;
2600
+ /** Returns response with indentations and line breaks. */
2601
+ prettyPrint?: boolean;
2602
+ /** 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. */
2603
+ quotaUser?: string;
2604
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2605
+ upload_protocol?: string;
2606
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2607
+ uploadType?: string;
2608
+ }): Request<GoogleLongrunningListOperationsResponse>;
2609
+ /** Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done. */
2610
+ wait(request: {
2611
+ /** V1 error format. */
2612
+ '$.xgafv'?: string;
2613
+ /** OAuth access token. */
2614
+ access_token?: string;
2615
+ /** Data format for response. */
2616
+ alt?: string;
2617
+ /** JSONP */
2618
+ callback?: string;
2619
+ /** Selector specifying which fields to include in a partial response. */
2620
+ fields?: string;
2621
+ /** 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. */
2622
+ key?: string;
2623
+ /** The name of the operation resource to wait on. */
2624
+ name: string;
2625
+ /** OAuth 2.0 token for the current user. */
2626
+ oauth_token?: string;
2627
+ /** Returns response with indentations and line breaks. */
2628
+ prettyPrint?: boolean;
2629
+ /** 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. */
2630
+ quotaUser?: string;
2631
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2632
+ upload_protocol?: string;
2633
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2634
+ uploadType?: string;
2635
+ /** Request body */
2636
+ resource: GoogleLongrunningWaitOperationRequest;
2637
+ }): Request<GoogleLongrunningOperation>;
2638
+ wait(
2639
+ request: {
2640
+ /** V1 error format. */
2641
+ '$.xgafv'?: string;
2642
+ /** OAuth access token. */
2643
+ access_token?: string;
2644
+ /** Data format for response. */
2645
+ alt?: string;
2646
+ /** JSONP */
2647
+ callback?: string;
2648
+ /** Selector specifying which fields to include in a partial response. */
2649
+ fields?: string;
2650
+ /** 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. */
2651
+ key?: string;
2652
+ /** The name of the operation resource to wait on. */
2653
+ name: string;
2654
+ /** OAuth 2.0 token for the current user. */
2655
+ oauth_token?: string;
2656
+ /** Returns response with indentations and line breaks. */
2657
+ prettyPrint?: boolean;
2658
+ /** 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. */
2659
+ quotaUser?: string;
2660
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2661
+ upload_protocol?: string;
2662
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2663
+ uploadType?: string;
2664
+ },
2665
+ body: GoogleLongrunningWaitOperationRequest
2666
+ ): Request<GoogleLongrunningOperation>;
2667
+ }
2479
2668
  interface RevisionsResource {
2480
2669
  /** Delete a revision. */
2481
2670
  delete(request?: {
@@ -3007,6 +3196,7 @@ declare namespace gapi.client {
3007
3196
  configurations: ConfigurationsResource;
3008
3197
  domainmappings: DomainmappingsResource;
3009
3198
  jobs: JobsResource;
3199
+ operations: OperationsResource;
3010
3200
  revisions: RevisionsResource;
3011
3201
  routes: RoutesResource;
3012
3202
  services: ServicesResource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.run-v1",
3
- "version": "0.0.20231203",
3
+ "version": "0.0.20231217",
4
4
  "description": "TypeScript typings for Cloud Run Admin API v1",
5
5
  "repository": {
6
6
  "type": "git",