@maxim_mazurok/gapi.client.compute-alpha 0.0.20240528 → 0.0.20240604

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 +179 -2
  2. package/package.json +1 -1
  3. package/readme.md +10 -0
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: 20240528
12
+ // Revision: 20240604
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -279,6 +279,8 @@ declare namespace gapi.client {
279
279
  performanceMonitoringUnit?: string;
280
280
  /** The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed. */
281
281
  threadsPerCore?: number;
282
+ /** Turbo mode to use for the instance. Supported modes include: * ALL_CORE_MAX Using empty string or not setting this field will use the default turbo mode. */
283
+ turboMode?: string;
282
284
  /** The number of physical cores to expose to an instance. Multiply by the number of threads per core to compute the total number of virtual CPUs to expose to the instance. If unset, the number of cores is inferred from the instance's nominal CPU count and the underlying platform's SMT width. */
283
285
  visibleCoreCount?: number;
284
286
  }
@@ -709,6 +711,8 @@ declare namespace gapi.client {
709
711
  id?: string;
710
712
  /** Type of the resource. */
711
713
  kind?: string;
714
+ /** The value can only be INTERNAL_MANAGED for cross-region internal layer 7 load balancer. If loadBalancingScheme is not specified, the backend bucket can be used by classic global external load balancers, or global application external load balancers, or both. */
715
+ loadBalancingScheme?: string;
712
716
  /** Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 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. */
713
717
  name?: string;
714
718
  /** [Output Only] Server-defined URL for the resource. */
@@ -5815,6 +5819,8 @@ declare namespace gapi.client {
5815
5819
  preservedStateFromPolicy?: PreservedState;
5816
5820
  /** [Output Only] Instance properties selected for this instance resulting from InstanceFlexibilityPolicy. */
5817
5821
  propertiesFromFlexibilityPolicy?: ManagedInstancePropertiesFromFlexibilityPolicy;
5822
+ /** [Output only] The size of the VM represented by this Managed Instance. This is how much this Managed Instance contributes to the size of the group. */
5823
+ sizeInUnit?: number;
5818
5824
  /** [Output Only] Tag describing the version. */
5819
5825
  tag?: string;
5820
5826
  /** [Output Only] The eventual status of the instance. The instance group manager will not be identified as stable till each managed instance reaches its targetStatus. */
@@ -6614,6 +6620,103 @@ declare namespace gapi.client {
6614
6620
  message?: string;
6615
6621
  };
6616
6622
  }
6623
+ interface NetworkProfile {
6624
+ /** [Output Only] Creation timestamp in RFC3339 text format. */
6625
+ creationTimestamp?: string;
6626
+ /** [Output Only] An optional description of this resource. */
6627
+ description?: string;
6628
+ /** [Output Only] Features supported by the network. */
6629
+ features?: NetworkProfileNetworkFeatures;
6630
+ /** [Output Only] The unique identifier for the resource. This identifier is defined by the server. */
6631
+ id?: string;
6632
+ /** [Output Only] Type of the resource. Always compute#networkProfile for network profiles. */
6633
+ kind?: string;
6634
+ /** [Output Only] Name of the resource. */
6635
+ name?: string;
6636
+ /** [Output Only] Server-defined URL for the resource. */
6637
+ selfLink?: string;
6638
+ /** [Output Only] Server-defined URL for this resource with the resource id. */
6639
+ selfLinkWithId?: string;
6640
+ /** [Output Only] Zone to which the network is restricted. */
6641
+ zone?: string;
6642
+ }
6643
+ interface NetworkProfileNetworkFeatures {
6644
+ /** Specifies what address purposes are supported. If empty, all address purposes are supported. */
6645
+ addressPurposes?: string[];
6646
+ /** Specifies whether alias IP ranges (and secondary address ranges) are allowed. */
6647
+ allowAliasIpRanges?: string;
6648
+ /** Specifies whether auto mode subnet creation is allowed. */
6649
+ allowAutoModeSubnet?: string;
6650
+ /** Specifies whether firewalls for Class D address ranges are supported. */
6651
+ allowClassDFirewalls?: string;
6652
+ /** Specifies whether cloud NAT creation is allowed. */
6653
+ allowCloudNat?: string;
6654
+ /** Specifies whether cloud router creation is allowed. */
6655
+ allowCloudRouter?: string;
6656
+ /** Specifies which subnetwork purposes are supported. */
6657
+ allowedSubnetPurposes?: string[];
6658
+ /** Specifies which subnetwork stack types are supported. */
6659
+ allowedSubnetStackTypes?: string[];
6660
+ /** Specifies whether VMs are allowed to have external IP access on network interfaces connected to this VPC. */
6661
+ allowExternalIpAccess?: string;
6662
+ /** Specifies whether Cloud Interconnect creation is allowed. */
6663
+ allowInterconnect?: string;
6664
+ /** Specifies whether cloud load balancing is allowed. */
6665
+ allowLoadBalancing?: string;
6666
+ /** Specifies whether multi-nic in the same network is allowed. */
6667
+ allowMultiNicInSameNetwork?: string;
6668
+ /** Specifies whether Packet Mirroring 1.0 is supported. */
6669
+ allowPacketMirroring?: string;
6670
+ /** Specifies whether private Google access is allowed. */
6671
+ allowPrivateGoogleAccess?: string;
6672
+ /** Specifies whether PSC creation is allowed. */
6673
+ allowPsc?: string;
6674
+ /** Specifies whether unicast within the same network is allowed. */
6675
+ allowSameNetworkUnicast?: string;
6676
+ /** Specifies whether static route creation is allowed. */
6677
+ allowStaticRoutes?: string;
6678
+ /** Specifies whether sub interfaces are allowed. */
6679
+ allowSubInterfaces?: string;
6680
+ /** Specifies whether VPC peering is allowed. */
6681
+ allowVpcPeering?: string;
6682
+ /** Specifies whether VPN creation is allowed. */
6683
+ allowVpn?: string;
6684
+ /** If set, limits the interface types that the network supports. If empty, all interface types are supported. */
6685
+ interfaceTypes?: string[];
6686
+ /** Specifies which type of multicast is supported. */
6687
+ multicast?: string;
6688
+ /** Specifies which type of unicast is supported. */
6689
+ unicast?: string;
6690
+ }
6691
+ interface NetworkProfilesListResponse {
6692
+ etag?: string;
6693
+ /** [Output Only] Unique identifier for the resource; defined by the server. */
6694
+ id?: string;
6695
+ /** A list of NetworkProfile resources. */
6696
+ items?: NetworkProfile[];
6697
+ /** [Output Only] Type of resource. Always compute#networkProfileList for network profiles. */
6698
+ kind?: string;
6699
+ /** [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. */
6700
+ nextPageToken?: string;
6701
+ /** [Output Only] Server-defined URL for this resource. */
6702
+ selfLink?: string;
6703
+ /** [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder */
6704
+ unreachables?: string[];
6705
+ /** [Output Only] Informational warning message. */
6706
+ warning?: {
6707
+ /** [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. */
6708
+ code?: string;
6709
+ /** [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } */
6710
+ data?: Array<{
6711
+ /** [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). */
6712
+ key?: string;
6713
+ /** [Output Only] A warning data value corresponding to the key. */
6714
+ value?: string;
6715
+ }>;
6716
+ /** [Output Only] A human-readable description of the warning code. */
6717
+ message?: string;
6718
+ };
6719
+ }
6617
6720
  interface NetworkRoutingConfig {
6618
6721
  /** Enable comparison of Multi-Exit Discriminators (MED) across routes with different neighbor ASNs when using the STANDARD BGP best path selection algorithm. */
6619
6722
  bgpAlwaysCompareMed?: boolean;
@@ -12835,7 +12938,7 @@ declare namespace gapi.client {
12835
12938
  backendService?: string;
12836
12939
  /** Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. */
12837
12940
  headerAction?: HttpHeaderAction;
12838
- /** Specifies the fraction of traffic sent to a backend service, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user's request has been directed to a backend service, subsequent requests are sent to the same backend service as determined by the backend service's session affinity policy. The value must be from 0 to 1000. */
12941
+ /** Specifies the fraction of traffic sent to a backend service, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user's request has been directed to a backend service, subsequent requests are sent to the same backend service as determined by the backend service's session affinity policy. Don't configure session affinity if you're using weighted traffic splitting. If you do, the weighted traffic splitting configuration takes precedence. The value must be from 0 to 1000. */
12839
12942
  weight?: number;
12840
12943
  }
12841
12944
  interface XpnHostList {
@@ -32576,6 +32679,78 @@ declare namespace gapi.client {
32576
32679
  userIp?: string;
32577
32680
  }): Request<NetworkPlacementsListResponse>;
32578
32681
  }
32682
+ interface NetworkProfilesResource {
32683
+ /** Returns the specified network profile. */
32684
+ get(request?: {
32685
+ /** V1 error format. */
32686
+ '$.xgafv'?: string;
32687
+ /** OAuth access token. */
32688
+ access_token?: string;
32689
+ /** Data format for response. */
32690
+ alt?: string;
32691
+ /** JSONP */
32692
+ callback?: string;
32693
+ /** Selector specifying which fields to include in a partial response. */
32694
+ fields?: string;
32695
+ /** 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. */
32696
+ key?: string;
32697
+ /** Name of the network profile to return. */
32698
+ networkProfile: string;
32699
+ /** OAuth 2.0 token for the current user. */
32700
+ oauth_token?: string;
32701
+ /** Returns response with indentations and line breaks. */
32702
+ prettyPrint?: boolean;
32703
+ /** Project ID for this request. */
32704
+ project: string;
32705
+ /** 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. */
32706
+ quotaUser?: string;
32707
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
32708
+ upload_protocol?: string;
32709
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
32710
+ uploadType?: string;
32711
+ /** Legacy name for parameter that has been superseded by `quotaUser`. */
32712
+ userIp?: string;
32713
+ }): Request<NetworkProfile>;
32714
+ /** Retrieves a list of network profiles available to the specified project. */
32715
+ list(request?: {
32716
+ /** V1 error format. */
32717
+ '$.xgafv'?: string;
32718
+ /** OAuth access token. */
32719
+ access_token?: string;
32720
+ /** Data format for response. */
32721
+ alt?: string;
32722
+ /** JSONP */
32723
+ callback?: string;
32724
+ /** Selector specifying which fields to include in a partial response. */
32725
+ fields?: string;
32726
+ /** A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. */
32727
+ filter?: string;
32728
+ /** 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. */
32729
+ key?: string;
32730
+ /** The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) */
32731
+ maxResults?: number;
32732
+ /** OAuth 2.0 token for the current user. */
32733
+ oauth_token?: string;
32734
+ /** Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. */
32735
+ orderBy?: string;
32736
+ /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. */
32737
+ pageToken?: string;
32738
+ /** Returns response with indentations and line breaks. */
32739
+ prettyPrint?: boolean;
32740
+ /** Project ID for this request. */
32741
+ project: string;
32742
+ /** 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. */
32743
+ quotaUser?: string;
32744
+ /** Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code. */
32745
+ returnPartialSuccess?: boolean;
32746
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
32747
+ upload_protocol?: string;
32748
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
32749
+ uploadType?: string;
32750
+ /** Legacy name for parameter that has been superseded by `quotaUser`. */
32751
+ userIp?: string;
32752
+ }): Request<NetworkProfilesListResponse>;
32753
+ }
32579
32754
  interface NetworksResource {
32580
32755
  /** Adds a peering to the specified network. */
32581
32756
  addPeering(request: {
@@ -58614,6 +58789,8 @@ declare namespace gapi.client {
58614
58789
 
58615
58790
  const networkPlacements: NetworkPlacementsResource;
58616
58791
 
58792
+ const networkProfiles: NetworkProfilesResource;
58793
+
58617
58794
  const networks: NetworksResource;
58618
58795
 
58619
58796
  const nodeGroups: NodeGroupsResource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.compute-alpha",
3
- "version": "0.0.20240528",
3
+ "version": "0.0.20240604",
4
4
  "description": "TypeScript typings for Compute Engine API alpha",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -2095,6 +2095,16 @@ Retrieves a list of network placements available to the specified project.
2095
2095
  */
2096
2096
  await gapi.client.compute.networkPlacements.list({ project: "project", });
2097
2097
 
2098
+ /*
2099
+ Returns the specified network profile.
2100
+ */
2101
+ await gapi.client.compute.networkProfiles.get({ networkProfile: "networkProfile", project: "project", });
2102
+
2103
+ /*
2104
+ Retrieves a list of network profiles available to the specified project.
2105
+ */
2106
+ await gapi.client.compute.networkProfiles.list({ project: "project", });
2107
+
2098
2108
  /*
2099
2109
  Adds a peering to the specified network.
2100
2110
  */