@maxim_mazurok/gapi.client.compute-alpha 0.0.20240618 → 0.0.20240702

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 +28 -10
  2. package/package.json +1 -1
  3. package/readme.md +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://www.googleapis.com/discovery/v1/apis/compute/alpha/rest
12
- // Revision: 20240618
12
+ // Revision: 20240702
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -321,6 +321,8 @@ declare namespace gapi.client {
321
321
  interface AllocationResourceStatusSpecificSKUAllocation {
322
322
  /** ID of the instance template used to populate reservation properties. */
323
323
  sourceInstanceTemplateId?: string;
324
+ /** Per service utilization breakdown. The Key is the Google Cloud managed service name. */
325
+ utilizations?: {[P in string]: string};
324
326
  }
325
327
  interface AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk {
326
328
  /** Specifies the size of the disk in base-2 GB. */
@@ -671,6 +673,8 @@ declare namespace gapi.client {
671
673
  balancingMode?: string;
672
674
  /** A multiplier applied to the backend's target capacity of its balancing mode. The default value is 1, which means the group serves up to 100% of its configured capacity (depending on balancingMode). A setting of 0 means the group is completely drained, offering 0% of its available capacity. The valid ranges are 0.0 and [0.1,1.0]. You cannot configure a setting larger than 0 and smaller than 0.1. You cannot configure a setting of 0 when there is only one backend attached to the backend service. Not available with backends that don't support using a balancingMode. This includes backends such as global internet NEGs, regional serverless NEGs, and PSC NEGs. */
673
675
  capacityScaler?: number;
676
+ /** List of custom metrics that are used for CUSTOM_METRICS BalancingMode and WEIGHTED_ROUND_ROBIN BackendService locality_lb_policy. */
677
+ customMetrics?: BackendCustomMetric[];
674
678
  /** An optional description of this resource. Provide this property when you create the resource. */
675
679
  description?: string;
676
680
  /** This field designates whether this is a failover backend. More than one failover backend can be configured for a given BackendService. */
@@ -792,6 +796,14 @@ declare namespace gapi.client {
792
796
  message?: string;
793
797
  };
794
798
  }
799
+ interface BackendCustomMetric {
800
+ /** If true, the metric data is collected and reported to Cloud Monitoring, but is not used for load balancing. */
801
+ dryRun?: boolean;
802
+ /** Optional parameter to define a target utilization for the Custom Metrics balancing mode. The valid range is [0.0, 1.0]. */
803
+ maxUtilization?: number;
804
+ /** Name of a custom utilization signal. The name must be 1-24 characters long, and comply with RFC1035. Specifically, the name must be 1-24 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. For usage guidelines, see Custom Metrics balancing mode. This field can only be used for a global or regional backend service with the loadBalancingScheme set to EXTERNAL_MANAGED, INTERNAL_MANAGED INTERNAL_SELF_MANAGED. */
805
+ name?: string;
806
+ }
795
807
  interface BackendService {
796
808
  /** Lifetime of cookies in seconds. This setting is applicable to Application Load Balancers and Traffic Director and requires GENERATED_COOKIE or HTTP_COOKIE session affinity. If set to 0, the cookie is non-persistent and lasts only until the end of the browser session (or equivalent). The maximum allowed value is two weeks (1,209,600). Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. */
797
809
  affinityCookieTtlSec?: number;
@@ -886,6 +898,7 @@ declare namespace gapi.client {
886
898
  subsetting?: Subsetting;
887
899
  /** The backend service timeout has a different meaning depending on the type of load balancer. For more information see, Backend service settings. The default is 30 seconds. The full range of timeout values allowed goes from 1 through 2,147,483,647 seconds. This value can be overridden in the PathMatcher configuration of the UrlMap that references this backend service. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. Instead, use maxStreamDuration. */
888
900
  timeoutSec?: number;
901
+ /** [Output Only] List of resources referencing given backend service. */
889
902
  usedBy?: BackendServiceUsedBy[];
890
903
  /** The network scope of the backends that can be added to the backend service. This field can be either GLOBAL_VPC_NETWORK or REGIONAL_VPC_NETWORK. A backend service with the VPC scope set to GLOBAL_VPC_NETWORK is only allowed to have backends in global VPC networks. When the VPC scope is set to REGIONAL_VPC_NETWORK the backend service is only allowed to have backends in regional networks in the same scope as the backend service. Note: if not specified then GLOBAL_VPC_NETWORK will be used. */
891
904
  vpcNetworkScope?: string;
@@ -1134,6 +1147,7 @@ declare namespace gapi.client {
1134
1147
  };
1135
1148
  }
1136
1149
  interface BackendServiceUsedBy {
1150
+ /** [Output Only] Server-defined URL for resources referencing given BackendService like UrlMaps, TargetTcpProxies, TargetSslProxies and ForwardingRule. */
1137
1151
  reference?: string;
1138
1152
  }
1139
1153
  interface BfdPacket {
@@ -1354,6 +1368,8 @@ declare namespace gapi.client {
1354
1368
  category?: string;
1355
1369
  /** [Output Only] Creation timestamp in RFC3339 text format. */
1356
1370
  creationTimestamp?: string;
1371
+ /** [Input Only] Optional, specifies the CUD end time requested by the customer in RFC3339 text format. Needed when the customer wants CUD's end date is later than the start date + term duration. */
1372
+ customEndTimestamp?: string;
1357
1373
  /** An optional description of this resource. Provide this property when you create the resource. */
1358
1374
  description?: string;
1359
1375
  /** [Output Only] Commitment end time in RFC3339 text format. */
@@ -1452,6 +1468,8 @@ declare namespace gapi.client {
1452
1468
  interface CommitmentResourceStatus {
1453
1469
  /** [Output Only] An optional, contains all the needed information of cancellation. */
1454
1470
  cancellationInformation?: CommitmentResourceStatusCancellationInformation;
1471
+ /** [Output Only] Indicates the end time of customer's eligibility to send custom term requests in RFC3339 text format. Term extension requests that (not the end time in the request) after this time will be rejected. */
1472
+ customTermEligibilityEndTimestamp?: string;
1455
1473
  }
1456
1474
  interface CommitmentResourceStatusCancellationInformation {
1457
1475
  /** [Output Only] An optional amount of CUDs canceled so far in the last 365 days. */
@@ -3735,7 +3753,7 @@ declare namespace gapi.client {
3735
3753
  allInstancesConfig?: InstanceGroupManagerAllInstancesConfig;
3736
3754
  /** The autohealing policy for this managed instance group. You can specify only one value. */
3737
3755
  autoHealingPolicies?: InstanceGroupManagerAutoHealingPolicy[];
3738
- /** The base instance name to use for instances in this group. The value must be 1-58 characters long. Instances are named by appending a hyphen and a random four-character string to the base instance name. The base instance name must comply with RFC1035. */
3756
+ /** The base instance name is a prefix that you want to attach to the names of all VMs in a MIG. The maximum character length is 58 and the name must comply with RFC1035 format. When a VM is created in the group, the MIG appends a hyphen and a random four-character string to the base instance name. If you want the MIG to assign sequential numbers instead of a random string, then end the base instance name with a hyphen followed by one or more hash symbols. The hash symbols indicate the number of digits. For example, a base instance name of "vm-###" results in "vm-001" as a VM name. @pattern [a-z](([-a-z0-9]{0,57})|([-a-z0-9]{0,52}-#{1,10}(\\[[0-9]{1,10}\\])?)) */
3739
3757
  baseInstanceName?: string;
3740
3758
  /** [Output Only] The creation timestamp for this managed instance group in RFC3339 text format. */
3741
3759
  creationTimestamp?: string;
@@ -6261,8 +6279,6 @@ declare namespace gapi.client {
6261
6279
  annotations?: {[P in string]: string};
6262
6280
  /** Represents the port number to which PSC consumer sends packets. Only valid for network endpoint groups created with GCE_VM_IP_PORTMAP endpoint type. */
6263
6281
  clientDestinationPort?: number;
6264
- /** Represents the port number to which PSC consumer sends packets. Only valid for network endpoint groups created with CLIENT_PORT_PER_ENDPOINT mapping mode. */
6265
- clientPort?: number;
6266
6282
  /** Optional fully qualified domain name of network endpoint. This can only be specified when NetworkEndpointGroup.network_endpoint_type is NON_GCP_FQDN_PORT. */
6267
6283
  fqdn?: string;
6268
6284
  /** The name or a URL of VM instance of this network endpoint. This field is required for network endpoints of type GCE_VM_IP and GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group (for zonal NEGs) or in the zone within the region of the NEG (for regional NEGs). If the ipAddress is specified, it must belongs to the VM instance. The name must be 1-63 characters long, and comply with RFC1035 or be a valid URL pointing to an existing instance. */
@@ -6281,8 +6297,6 @@ declare namespace gapi.client {
6281
6297
  annotations?: {[P in string]: string};
6282
6298
  /** Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set. */
6283
6299
  appEngine?: NetworkEndpointGroupAppEngine;
6284
- /** Only valid when networkEndpointType is GCE_VM_IP_PORT and the NEG is regional. */
6285
- clientPortMappingMode?: string;
6286
6300
  /** Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set. */
6287
6301
  cloudFunction?: NetworkEndpointGroupCloudFunction;
6288
6302
  /** Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set. */
@@ -8879,6 +8893,7 @@ declare namespace gapi.client {
8879
8893
  status?: string;
8880
8894
  /** Resource policy applicable to VMs for infrastructure maintenance. */
8881
8895
  vmMaintenancePolicy?: ResourcePolicyVmMaintenancePolicy;
8896
+ workloadPolicy?: ResourcePolicyWorkloadPolicy;
8882
8897
  }
8883
8898
  interface ResourcePolicyAggregatedList {
8884
8899
  etag?: string;
@@ -9048,6 +9063,9 @@ declare namespace gapi.client {
9048
9063
  /** Time within the window to start the operations. It must be in format "HH:MM", where HH : [00-23] and MM : [00-00] GMT. */
9049
9064
  startTime?: string;
9050
9065
  }
9066
+ interface ResourcePolicyWorkloadPolicy {
9067
+ type?: string;
9068
+ }
9051
9069
  interface ResourceStatus {
9052
9070
  /** [Output Only] Contains last termination details why the instance was terminated. */
9053
9071
  lastInstanceTerminationDetails?: ResourceStatusLastInstanceTerminationDetails;
@@ -9067,7 +9085,7 @@ declare namespace gapi.client {
9067
9085
  terminationReason?: string;
9068
9086
  }
9069
9087
  interface ResourceStatusScheduling {
9070
- /** Specifies the availability domain (AD), which this instance should be scheduled on. The AD belongs to the spread GroupPlacementPolicy resource policy that has been assigned to the instance. Specify a value between 1-max count of availability domains in your GroupPlacementPolicy. See go/placement-policy-extension for more details. */
9088
+ /** Specifies the availability domain to place the instance in. The value must be a number between 1 and the number of availability domains specified in the spread placement policy attached to the instance. */
9071
9089
  availabilityDomain?: number;
9072
9090
  /** Time in future when the instance will be terminated in RFC3339 text format. */
9073
9091
  terminationTimestamp?: string;
@@ -9775,7 +9793,7 @@ declare namespace gapi.client {
9775
9793
  interface Scheduling {
9776
9794
  /** Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). You can only set the automatic restart option for standard instances. Preemptible instances cannot be automatically restarted. By default, this is set to true so an instance is automatically restarted if it is terminated by Compute Engine. */
9777
9795
  automaticRestart?: boolean;
9778
- /** Specifies the availability domain (AD), which this instance should be scheduled on. The AD belongs to the spread GroupPlacementPolicy resource policy that has been assigned to the instance. Specify a value between 1-max count of availability domains in your GroupPlacementPolicy. See go/placement-policy-extension for more details. */
9796
+ /** Specifies the availability domain to place the instance in. The value must be a number between 1 and the number of availability domains specified in the spread placement policy attached to the instance. */
9779
9797
  availabilityDomain?: number;
9780
9798
  /** Current number of vCPUs available for VM. 0 or unset means default vCPUs of the current machine type. */
9781
9799
  currentCpus?: number;
@@ -12753,7 +12771,7 @@ declare namespace gapi.client {
12753
12771
  region?: string;
12754
12772
  /** [Output Only] Server-defined URL for the resource. */
12755
12773
  selfLink?: string;
12756
- /** The stack type for this VPN gateway to identify the IP protocols that are enabled. Possible values are: IPV4_ONLY, IPV4_IPV6. If not specified, IPV4_ONLY will be used. */
12774
+ /** The stack type for this VPN gateway to identify the IP protocols that are enabled. Possible values are: IPV4_ONLY, IPV4_IPV6, IPV6_ONLY. If not specified, IPV4_ONLY is used if the gateway IP version is IPV4, or IPV4_IPV6 if the gateway IP version is IPV6. */
12757
12775
  stackType?: string;
12758
12776
  /** The list of VPN interfaces associated with this VPN gateway. */
12759
12777
  vpnInterfaces?: VpnGatewayVpnGatewayInterface[];
@@ -45049,7 +45067,7 @@ declare namespace gapi.client {
45049
45067
  }): Request<Operation>;
45050
45068
  }
45051
45069
  interface RegionsResource {
45052
- /** Returns the specified Region resource. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. */
45070
+ /** Returns the specified Region resource. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. This method fails if the quota information is unavailable for the region and if the organization policy constraint compute.requireBasicQuotaInResponse is enforced. This constraint, when enforced, disables the fail-open behaviour when quota information (the `items.quotas` field) is unavailable for the region. It is recommended to use the default setting for the constraint unless your application requires the fail-closed behaviour for this method. */
45053
45071
  get(request?: {
45054
45072
  /** V1 error format. */
45055
45073
  '$.xgafv'?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.compute-alpha",
3
- "version": "0.0.20240618",
3
+ "version": "0.0.20240702",
4
4
  "description": "TypeScript typings for Compute Engine API alpha",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -3306,7 +3306,7 @@ Waits for the specified Operation resource to return as `DONE` or for the reques
3306
3306
  await gapi.client.compute.regionOperations.wait({ operation: "operation", project: "project", region: "region", });
3307
3307
 
3308
3308
  /*
3309
- Returns the specified Region resource. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request.
3309
+ Returns the specified Region resource. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. This method fails if the quota information is unavailable for the region and if the organization policy constraint compute.requireBasicQuotaInResponse is enforced. This constraint, when enforced, disables the fail-open behaviour when quota information (the `items.quotas` field) is unavailable for the region. It is recommended to use the default setting for the constraint unless your application requires the fail-closed behaviour for this method.
3310
3310
  */
3311
3311
  await gapi.client.compute.regions.get({ project: "project", region: "region", });
3312
3312