@maxim_mazurok/gapi.client.compute-alpha 0.0.20240305 → 0.0.20240312
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 +164 -5
- package/package.json +1 -1
- 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:
|
|
12
|
+
// Revision: 20240312
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -3899,7 +3899,7 @@ declare namespace gapi.client {
|
|
|
3899
3899
|
};
|
|
3900
3900
|
}
|
|
3901
3901
|
interface InstanceGroupManagerParams {
|
|
3902
|
-
/** Resource manager tags to
|
|
3902
|
+
/** Resource manager tags to bind to the managed instance group. The tags are key-value pairs. Keys must be in the format tagKeys/123 and values in the format tagValues/456. For more information, see Manage tags for resources. */
|
|
3903
3903
|
resourceManagerTags?: {[P in string]: string};
|
|
3904
3904
|
}
|
|
3905
3905
|
interface InstanceGroupManagerResizeRequest {
|
|
@@ -4460,7 +4460,7 @@ declare namespace gapi.client {
|
|
|
4460
4460
|
rules?: FirewallPolicyRule[];
|
|
4461
4461
|
/** [Output Only] The short name of the firewall policy. */
|
|
4462
4462
|
shortName?: string;
|
|
4463
|
-
/** [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, NETWORK_REGIONAL. */
|
|
4463
|
+
/** [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, NETWORK_REGIONAL, SYSTEM_GLOBAL, SYSTEM_REGIONAL. */
|
|
4464
4464
|
type?: string;
|
|
4465
4465
|
}
|
|
4466
4466
|
interface InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy {
|
|
@@ -6464,6 +6464,93 @@ declare namespace gapi.client {
|
|
|
6464
6464
|
externalIpEgressBandwidthTier?: string;
|
|
6465
6465
|
totalEgressBandwidthTier?: string;
|
|
6466
6466
|
}
|
|
6467
|
+
interface NetworkPlacement {
|
|
6468
|
+
/** [Output Only] Creation timestamp in RFC3339 text format. */
|
|
6469
|
+
creationTimestamp?: string;
|
|
6470
|
+
/** [Output Only] An optional description of this resource. */
|
|
6471
|
+
description?: string;
|
|
6472
|
+
/** [Output Only] Features supported by the network. */
|
|
6473
|
+
features?: NetworkPlacementNetworkFeatures;
|
|
6474
|
+
/** [Output Only] The unique identifier for the resource. This identifier is defined by the server. */
|
|
6475
|
+
id?: string;
|
|
6476
|
+
/** [Output Only] Type of the resource. Always compute#networkPlacement for network placements. */
|
|
6477
|
+
kind?: string;
|
|
6478
|
+
/** [Output Only] Name of the resource. */
|
|
6479
|
+
name?: string;
|
|
6480
|
+
/** [Output Only] Server-defined URL for the resource. */
|
|
6481
|
+
selfLink?: string;
|
|
6482
|
+
/** [Output Only] Server-defined URL for this resource with the resource id. */
|
|
6483
|
+
selfLinkWithId?: string;
|
|
6484
|
+
/** [Output Only] Zone to which the network is restricted. */
|
|
6485
|
+
zone?: string;
|
|
6486
|
+
}
|
|
6487
|
+
interface NetworkPlacementNetworkFeatures {
|
|
6488
|
+
/** Specifies whether auto mode subnet creation is allowed. */
|
|
6489
|
+
allowAutoModeSubnet?: string;
|
|
6490
|
+
/** Specifies whether cloud NAT creation is allowed. */
|
|
6491
|
+
allowCloudNat?: string;
|
|
6492
|
+
/** Specifies whether cloud router creation is allowed. */
|
|
6493
|
+
allowCloudRouter?: string;
|
|
6494
|
+
/** Specifies which subnetwork purposes are supported. */
|
|
6495
|
+
allowedSubnetPurposes?: string[];
|
|
6496
|
+
/** Specifies which subnetwork stack types are supported. */
|
|
6497
|
+
allowedSubnetStackTypes?: string[];
|
|
6498
|
+
/** Specifies whether Cloud Interconnect creation is allowed. */
|
|
6499
|
+
allowInterconnect?: string;
|
|
6500
|
+
/** Specifies whether cloud load balancing is allowed. */
|
|
6501
|
+
allowLoadBalancing?: string;
|
|
6502
|
+
/** Specifies whether multi-nic in the same network is allowed. */
|
|
6503
|
+
allowMultiNicInSameNetwork?: string;
|
|
6504
|
+
/** Specifies whether Packet Mirroring 1.0 is supported. */
|
|
6505
|
+
allowPacketMirroring?: string;
|
|
6506
|
+
/** Specifies whether private Google access is allowed. */
|
|
6507
|
+
allowPrivateGoogleAccess?: string;
|
|
6508
|
+
/** Specifies whether PSC creation is allowed. */
|
|
6509
|
+
allowPsc?: string;
|
|
6510
|
+
/** Specifies whether unicast within the same network is allowed. */
|
|
6511
|
+
allowSameNetworkUnicast?: string;
|
|
6512
|
+
/** Specifies whether static route creation is allowed. */
|
|
6513
|
+
allowStaticRoutes?: string;
|
|
6514
|
+
/** Specifies whether VPC peering is allowed. */
|
|
6515
|
+
allowVpcPeering?: string;
|
|
6516
|
+
/** Specifies whether VPN creation is allowed. */
|
|
6517
|
+
allowVpn?: string;
|
|
6518
|
+
/** If set, limits the interface types that the network supports. If empty, all interface types are supported. */
|
|
6519
|
+
interfaceTypes?: string[];
|
|
6520
|
+
/** Specifies which type of multicast is supported. */
|
|
6521
|
+
multicast?: string;
|
|
6522
|
+
/** Specifies which type of unicast is supported. */
|
|
6523
|
+
unicast?: string;
|
|
6524
|
+
}
|
|
6525
|
+
interface NetworkPlacementsListResponse {
|
|
6526
|
+
etag?: string;
|
|
6527
|
+
/** [Output Only] Unique identifier for the resource; defined by the server. */
|
|
6528
|
+
id?: string;
|
|
6529
|
+
/** A list of NetworkPlacement resources. */
|
|
6530
|
+
items?: NetworkPlacement[];
|
|
6531
|
+
/** [Output Only] Type of resource. Always compute#networkPlacementList for network placements. */
|
|
6532
|
+
kind?: string;
|
|
6533
|
+
/** [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. */
|
|
6534
|
+
nextPageToken?: string;
|
|
6535
|
+
/** [Output Only] Server-defined URL for this resource. */
|
|
6536
|
+
selfLink?: string;
|
|
6537
|
+
/** [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder */
|
|
6538
|
+
unreachables?: string[];
|
|
6539
|
+
/** [Output Only] Informational warning message. */
|
|
6540
|
+
warning?: {
|
|
6541
|
+
/** [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. */
|
|
6542
|
+
code?: string;
|
|
6543
|
+
/** [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } */
|
|
6544
|
+
data?: Array<{
|
|
6545
|
+
/** [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). */
|
|
6546
|
+
key?: string;
|
|
6547
|
+
/** [Output Only] A warning data value corresponding to the key. */
|
|
6548
|
+
value?: string;
|
|
6549
|
+
}>;
|
|
6550
|
+
/** [Output Only] A human-readable description of the warning code. */
|
|
6551
|
+
message?: string;
|
|
6552
|
+
};
|
|
6553
|
+
}
|
|
6467
6554
|
interface NetworkRoutingConfig {
|
|
6468
6555
|
/** Enable comparison of Multi-Exit Discriminators (MED) across routes with different neighbor ASNs when using the STANDARD BGP best path selection algorithm. */
|
|
6469
6556
|
bgpAlwaysCompareMed?: boolean;
|
|
@@ -8173,8 +8260,6 @@ declare namespace gapi.client {
|
|
|
8173
8260
|
interface RegionInstanceGroupManagersDeleteInstancesRequest {
|
|
8174
8261
|
/** The URLs of one or more instances to delete. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. */
|
|
8175
8262
|
instances?: string[];
|
|
8176
|
-
/** Skip instances which cannot be deleted (instances not belonging to this managed group, already being deleted or being abandoned). If `false`, fail whole flow, if such instance is passed. DEPRECATED: Use skip_instances_on_validation_error instead. */
|
|
8177
|
-
skipInapplicableInstances?: boolean;
|
|
8178
8263
|
/** Specifies whether the request should proceed despite the inclusion of instances that are not members of the group or that are already in the process of being deleted or abandoned. If this field is set to `false` and such an instance is specified in the request, the operation fails. The operation always fails if the request contains a malformed instance URL or a reference to an instance that exists in a zone or region other than the group's zone or region. */
|
|
8179
8264
|
skipInstancesOnValidationError?: boolean;
|
|
8180
8265
|
}
|
|
@@ -31930,6 +32015,78 @@ declare namespace gapi.client {
|
|
|
31930
32015
|
body: TestPermissionsRequest
|
|
31931
32016
|
): Request<TestPermissionsResponse>;
|
|
31932
32017
|
}
|
|
32018
|
+
interface NetworkPlacementsResource {
|
|
32019
|
+
/** Returns the specified network placement. */
|
|
32020
|
+
get(request?: {
|
|
32021
|
+
/** V1 error format. */
|
|
32022
|
+
'$.xgafv'?: string;
|
|
32023
|
+
/** OAuth access token. */
|
|
32024
|
+
access_token?: string;
|
|
32025
|
+
/** Data format for response. */
|
|
32026
|
+
alt?: string;
|
|
32027
|
+
/** JSONP */
|
|
32028
|
+
callback?: string;
|
|
32029
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
32030
|
+
fields?: string;
|
|
32031
|
+
/** 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. */
|
|
32032
|
+
key?: string;
|
|
32033
|
+
/** Name of the network placement to return. */
|
|
32034
|
+
networkPlacement: string;
|
|
32035
|
+
/** OAuth 2.0 token for the current user. */
|
|
32036
|
+
oauth_token?: string;
|
|
32037
|
+
/** Returns response with indentations and line breaks. */
|
|
32038
|
+
prettyPrint?: boolean;
|
|
32039
|
+
/** Project ID for this request. */
|
|
32040
|
+
project: string;
|
|
32041
|
+
/** 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. */
|
|
32042
|
+
quotaUser?: string;
|
|
32043
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
32044
|
+
upload_protocol?: string;
|
|
32045
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
32046
|
+
uploadType?: string;
|
|
32047
|
+
/** Legacy name for parameter that has been superseded by `quotaUser`. */
|
|
32048
|
+
userIp?: string;
|
|
32049
|
+
}): Request<NetworkPlacement>;
|
|
32050
|
+
/** Retrieves a list of network placements available to the specified project. */
|
|
32051
|
+
list(request?: {
|
|
32052
|
+
/** V1 error format. */
|
|
32053
|
+
'$.xgafv'?: string;
|
|
32054
|
+
/** OAuth access token. */
|
|
32055
|
+
access_token?: string;
|
|
32056
|
+
/** Data format for response. */
|
|
32057
|
+
alt?: string;
|
|
32058
|
+
/** JSONP */
|
|
32059
|
+
callback?: string;
|
|
32060
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
32061
|
+
fields?: string;
|
|
32062
|
+
/** 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. */
|
|
32063
|
+
filter?: string;
|
|
32064
|
+
/** 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. */
|
|
32065
|
+
key?: string;
|
|
32066
|
+
/** 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`) */
|
|
32067
|
+
maxResults?: number;
|
|
32068
|
+
/** OAuth 2.0 token for the current user. */
|
|
32069
|
+
oauth_token?: string;
|
|
32070
|
+
/** 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. */
|
|
32071
|
+
orderBy?: string;
|
|
32072
|
+
/** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. */
|
|
32073
|
+
pageToken?: string;
|
|
32074
|
+
/** Returns response with indentations and line breaks. */
|
|
32075
|
+
prettyPrint?: boolean;
|
|
32076
|
+
/** Project ID for this request. */
|
|
32077
|
+
project: string;
|
|
32078
|
+
/** 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. */
|
|
32079
|
+
quotaUser?: string;
|
|
32080
|
+
/** 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. */
|
|
32081
|
+
returnPartialSuccess?: boolean;
|
|
32082
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
32083
|
+
upload_protocol?: string;
|
|
32084
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
32085
|
+
uploadType?: string;
|
|
32086
|
+
/** Legacy name for parameter that has been superseded by `quotaUser`. */
|
|
32087
|
+
userIp?: string;
|
|
32088
|
+
}): Request<NetworkPlacementsListResponse>;
|
|
32089
|
+
}
|
|
31933
32090
|
interface NetworksResource {
|
|
31934
32091
|
/** Adds a peering to the specified network. */
|
|
31935
32092
|
addPeering(request: {
|
|
@@ -57818,6 +57975,8 @@ declare namespace gapi.client {
|
|
|
57818
57975
|
|
|
57819
57976
|
const networkFirewallPolicies: NetworkFirewallPoliciesResource;
|
|
57820
57977
|
|
|
57978
|
+
const networkPlacements: NetworkPlacementsResource;
|
|
57979
|
+
|
|
57821
57980
|
const networks: NetworksResource;
|
|
57822
57981
|
|
|
57823
57982
|
const nodeGroups: NodeGroupsResource;
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -2045,6 +2045,16 @@ Returns permissions that a caller has on the specified resource.
|
|
|
2045
2045
|
*/
|
|
2046
2046
|
await gapi.client.compute.networkFirewallPolicies.testIamPermissions({ project: "project", resource: "resource", });
|
|
2047
2047
|
|
|
2048
|
+
/*
|
|
2049
|
+
Returns the specified network placement.
|
|
2050
|
+
*/
|
|
2051
|
+
await gapi.client.compute.networkPlacements.get({ networkPlacement: "networkPlacement", project: "project", });
|
|
2052
|
+
|
|
2053
|
+
/*
|
|
2054
|
+
Retrieves a list of network placements available to the specified project.
|
|
2055
|
+
*/
|
|
2056
|
+
await gapi.client.compute.networkPlacements.list({ project: "project", });
|
|
2057
|
+
|
|
2048
2058
|
/*
|
|
2049
2059
|
Adds a peering to the specified network.
|
|
2050
2060
|
*/
|