@maxim_mazurok/gapi.client.compute-alpha 0.0.20221206 → 0.0.20221224
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 +183 -4
- package/package.json +1 -1
- package/readme.md +5 -0
- package/tests.ts +242 -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:
|
|
12
|
+
// Revision: 20221224
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -382,6 +382,24 @@ declare namespace gapi.client {
|
|
|
382
382
|
/** The name of a subnetwork secondary IP range from which to allocate an IP alias range. If not specified, the primary range of the subnetwork is used. */
|
|
383
383
|
subnetworkRangeName?: string;
|
|
384
384
|
}
|
|
385
|
+
interface AllocationAggregateReservation {
|
|
386
|
+
/** [Output only] List of resources currently in use. */
|
|
387
|
+
inUseResources?: AllocationAggregateReservationReservedResourceInfo[];
|
|
388
|
+
/** List of reserved resources (CPUs, memory, accelerators). */
|
|
389
|
+
reservedResources?: AllocationAggregateReservationReservedResourceInfo[];
|
|
390
|
+
/** The VM family that all instances scheduled against this reservation must belong to. */
|
|
391
|
+
vmFamily?: string;
|
|
392
|
+
}
|
|
393
|
+
interface AllocationAggregateReservationReservedResourceInfo {
|
|
394
|
+
/** Properties of accelerator resources in this reservation. */
|
|
395
|
+
accelerator?: AllocationAggregateReservationReservedResourceInfoAccelerator;
|
|
396
|
+
}
|
|
397
|
+
interface AllocationAggregateReservationReservedResourceInfoAccelerator {
|
|
398
|
+
/** Number of accelerators of specified type. */
|
|
399
|
+
acceleratorCount?: number;
|
|
400
|
+
/** Full or partial URL to accelerator type. e.g. "projects/{PROJECT}/zones/{ZONE}/acceleratorTypes/ct4l" */
|
|
401
|
+
acceleratorType?: string;
|
|
402
|
+
}
|
|
385
403
|
interface AllocationResourceStatus {
|
|
386
404
|
/** Allocation Properties of this reservation. */
|
|
387
405
|
specificSkuAllocation?: AllocationResourceStatusSpecificSKUAllocation;
|
|
@@ -427,7 +445,11 @@ declare namespace gapi.client {
|
|
|
427
445
|
instanceProperties?: AllocationSpecificSKUAllocationReservedInstanceProperties;
|
|
428
446
|
/** [Output Only] Indicates how many instances are in use. */
|
|
429
447
|
inUseCount?: string;
|
|
430
|
-
/**
|
|
448
|
+
/**
|
|
449
|
+
* Specifies the instance template to create the reservation. If you use this field, you must exclude the instanceProperties field. This field is optional, and it can be a full or
|
|
450
|
+
* partial URL. For example, the following are all valid URLs to an instance template: - https://www.googleapis.com/compute/v1/projects/project
|
|
451
|
+
* /global/instanceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate - global/instanceTemplates/instanceTemplate
|
|
452
|
+
*/
|
|
431
453
|
sourceInstanceTemplate?: string;
|
|
432
454
|
}
|
|
433
455
|
interface AttachedDisk {
|
|
@@ -3126,7 +3148,7 @@ declare namespace gapi.client {
|
|
|
3126
3148
|
};
|
|
3127
3149
|
}
|
|
3128
3150
|
interface FirewallPolicyRule {
|
|
3129
|
-
/** The Action to perform when the client connection triggers the rule.
|
|
3151
|
+
/** The Action to perform when the client connection triggers the rule. Valid actions are "allow", "deny" and "goto_next". */
|
|
3130
3152
|
action?: string;
|
|
3131
3153
|
/** An optional description for this resource. */
|
|
3132
3154
|
description?: string;
|
|
@@ -3823,6 +3845,13 @@ declare namespace gapi.client {
|
|
|
3823
3845
|
selfLink?: string;
|
|
3824
3846
|
/** [Output Only] Server-defined URL for this resource with the resource id. */
|
|
3825
3847
|
selfLinkWithId?: string;
|
|
3848
|
+
/**
|
|
3849
|
+
* The list of cloud regions from which health checks are performed. If any regions are specified, then exactly 3 regions should be specified. The region names must be valid names of
|
|
3850
|
+
* GCP regions. This can only be set for global health check. If this list is non-empty, then there are restrictions on what other health check fields are supported and what other
|
|
3851
|
+
* resources can use this health check: - SSL, HTTP2, and GRPC protocols are not supported. - The TCP request field is not supported. - The proxyHeader field for HTTP, HTTPS, and TCP
|
|
3852
|
+
* is not supported. - The checkIntervalSec field must be at least 30. - The health check cannot be used with BackendService nor with managed instance group auto-healing.
|
|
3853
|
+
*/
|
|
3854
|
+
sourceRegions?: string[];
|
|
3826
3855
|
sslHealthCheck?: SSLHealthCheck;
|
|
3827
3856
|
tcpHealthCheck?: TCPHealthCheck;
|
|
3828
3857
|
/** How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is invalid for timeoutSec to have greater value than checkIntervalSec. */
|
|
@@ -5007,6 +5036,8 @@ declare namespace gapi.client {
|
|
|
5007
5036
|
* that can be accessed through the metadata server and used to authenticate applications on the instance. See Service Accounts for more information.
|
|
5008
5037
|
*/
|
|
5009
5038
|
serviceAccounts?: ServiceAccount[];
|
|
5039
|
+
/** Mapping of user-defined keys to specifications for service integrations. Currently only a single key-value pair is supported. */
|
|
5040
|
+
serviceIntegrationSpecs?: { [P in string]: ServiceIntegrationSpec };
|
|
5010
5041
|
shieldedInstanceConfig?: ShieldedInstanceConfig;
|
|
5011
5042
|
shieldedInstanceIntegrityPolicy?: ShieldedInstanceIntegrityPolicy;
|
|
5012
5043
|
/** Deprecating, please use shielded_instance_config. */
|
|
@@ -6102,6 +6133,8 @@ declare namespace gapi.client {
|
|
|
6102
6133
|
* queries to obtain the access tokens for these instances.
|
|
6103
6134
|
*/
|
|
6104
6135
|
serviceAccounts?: ServiceAccount[];
|
|
6136
|
+
/** Mapping of user defined keys to ServiceIntegrationSpec. */
|
|
6137
|
+
serviceIntegrationSpecs?: { [P in string]: ServiceIntegrationSpec };
|
|
6105
6138
|
/** Note that for MachineImage, this is not supported yet. */
|
|
6106
6139
|
shieldedInstanceConfig?: ShieldedInstanceConfig;
|
|
6107
6140
|
/** Specifies the Shielded VM options for the instances that are created from these properties. */
|
|
@@ -6262,6 +6295,39 @@ declare namespace gapi.client {
|
|
|
6262
6295
|
/** The source instance params to use to create this instance template. */
|
|
6263
6296
|
sourceInstanceParams?: SourceInstanceParams;
|
|
6264
6297
|
}
|
|
6298
|
+
interface InstanceTemplateAggregatedList {
|
|
6299
|
+
/** [Output Only] Unique identifier for the resource; defined by the server. */
|
|
6300
|
+
id?: string;
|
|
6301
|
+
/** A list of InstanceTemplatesScopedList resources. */
|
|
6302
|
+
items?: { [P in string]: InstanceTemplatesScopedList };
|
|
6303
|
+
/** Type of resource. */
|
|
6304
|
+
kind?: string;
|
|
6305
|
+
/**
|
|
6306
|
+
* [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
|
|
6307
|
+
* query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
|
|
6308
|
+
*/
|
|
6309
|
+
nextPageToken?: string;
|
|
6310
|
+
/** [Output Only] Server-defined URL for this resource. */
|
|
6311
|
+
selfLink?: string;
|
|
6312
|
+
/** [Output Only] Informational warning message. */
|
|
6313
|
+
warning?: {
|
|
6314
|
+
/** [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. */
|
|
6315
|
+
code?: string;
|
|
6316
|
+
/** [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } */
|
|
6317
|
+
data?: Array<{
|
|
6318
|
+
/**
|
|
6319
|
+
* [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,
|
|
6320
|
+
* 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
|
|
6321
|
+
* about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
|
|
6322
|
+
*/
|
|
6323
|
+
key?: string;
|
|
6324
|
+
/** [Output Only] A warning data value corresponding to the key. */
|
|
6325
|
+
value?: string;
|
|
6326
|
+
}>;
|
|
6327
|
+
/** [Output Only] A human-readable description of the warning code. */
|
|
6328
|
+
message?: string;
|
|
6329
|
+
};
|
|
6330
|
+
}
|
|
6265
6331
|
interface InstanceTemplateList {
|
|
6266
6332
|
/** [Output Only] Unique identifier for the resource; defined by the server. */
|
|
6267
6333
|
id?: string;
|
|
@@ -6295,6 +6361,28 @@ declare namespace gapi.client {
|
|
|
6295
6361
|
message?: string;
|
|
6296
6362
|
};
|
|
6297
6363
|
}
|
|
6364
|
+
interface InstanceTemplatesScopedList {
|
|
6365
|
+
/** [Output Only] A list of instance templates that are contained within the specified project and zone. */
|
|
6366
|
+
instanceTemplates?: InstanceTemplate[];
|
|
6367
|
+
/** [Output Only] An informational warning that replaces the list of instance templates when the list is empty. */
|
|
6368
|
+
warning?: {
|
|
6369
|
+
/** [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. */
|
|
6370
|
+
code?: string;
|
|
6371
|
+
/** [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } */
|
|
6372
|
+
data?: Array<{
|
|
6373
|
+
/**
|
|
6374
|
+
* [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,
|
|
6375
|
+
* 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
|
|
6376
|
+
* about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
|
|
6377
|
+
*/
|
|
6378
|
+
key?: string;
|
|
6379
|
+
/** [Output Only] A warning data value corresponding to the key. */
|
|
6380
|
+
value?: string;
|
|
6381
|
+
}>;
|
|
6382
|
+
/** [Output Only] A human-readable description of the warning code. */
|
|
6383
|
+
message?: string;
|
|
6384
|
+
};
|
|
6385
|
+
}
|
|
6298
6386
|
interface InstanceWithNamedPorts {
|
|
6299
6387
|
/** [Output Only] The URL of the instance. */
|
|
6300
6388
|
instance?: string;
|
|
@@ -10998,6 +11086,8 @@ declare namespace gapi.client {
|
|
|
10998
11086
|
backendService?: string;
|
|
10999
11087
|
}
|
|
11000
11088
|
interface Reservation {
|
|
11089
|
+
/** Reservation for aggregated resources, providing shape flexibility. */
|
|
11090
|
+
aggregateReservation?: AllocationAggregateReservation;
|
|
11001
11091
|
/** [Output Only] Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment. */
|
|
11002
11092
|
commitment?: string;
|
|
11003
11093
|
/** [Output Only] Creation timestamp in RFC3339 text format. */
|
|
@@ -11422,6 +11512,8 @@ declare namespace gapi.client {
|
|
|
11422
11512
|
/** [Output Only] An opaque ID of the host on which the VM is running. */
|
|
11423
11513
|
physicalHost?: string;
|
|
11424
11514
|
scheduling?: ResourceStatusScheduling;
|
|
11515
|
+
/** [Output Only] Represents the status of the service integration specs defined by the user in instance.serviceIntegrationSpecs. */
|
|
11516
|
+
serviceIntegrationStatuses?: { [P in string]: ResourceStatusServiceIntegrationStatus };
|
|
11425
11517
|
upcomingMaintenance?: ResourceStatusUpcomingMaintenance;
|
|
11426
11518
|
}
|
|
11427
11519
|
interface ResourceStatusScheduling {
|
|
@@ -11433,6 +11525,15 @@ declare namespace gapi.client {
|
|
|
11433
11525
|
/** Time in future when the instance will be terminated in RFC3339 text format. */
|
|
11434
11526
|
terminationTimestamp?: string;
|
|
11435
11527
|
}
|
|
11528
|
+
interface ResourceStatusServiceIntegrationStatus {
|
|
11529
|
+
backupDr?: ResourceStatusServiceIntegrationStatusBackupDRStatus;
|
|
11530
|
+
}
|
|
11531
|
+
interface ResourceStatusServiceIntegrationStatusBackupDRStatus {
|
|
11532
|
+
/** The PlanReference object created by Backup and DR to maintain the actual status of backups. May still be present if removing the backup plan fails. */
|
|
11533
|
+
integrationDetails?: string;
|
|
11534
|
+
/** Enum representing the registration state of a Backup and DR backup plan for the instance. */
|
|
11535
|
+
state?: string;
|
|
11536
|
+
}
|
|
11436
11537
|
interface ResourceStatusUpcomingMaintenance {
|
|
11437
11538
|
/** Indicates if the maintenance can be customer triggered. See go/sf-ctm-design for more details */
|
|
11438
11539
|
canReschedule?: boolean;
|
|
@@ -12541,7 +12642,7 @@ declare namespace gapi.client {
|
|
|
12541
12642
|
redirectOptions?: SecurityPolicyRuleRedirectOptions;
|
|
12542
12643
|
/** This must be specified for redirect actions. Cannot be specified for any other actions. */
|
|
12543
12644
|
redirectTarget?: string;
|
|
12544
|
-
/** [Output Only] The minimum managed protection tier required for this rule. */
|
|
12645
|
+
/** [Output Only] The minimum managed protection tier required for this rule. [Deprecated] Use requiredManagedProtectionTiers instead. */
|
|
12545
12646
|
ruleManagedProtectionTier?: string;
|
|
12546
12647
|
/**
|
|
12547
12648
|
* Identifier for the rule. This is only unique within the given security policy. This can only be set during rule creation, if rule number is not specified it will be generated by the
|
|
@@ -13008,6 +13109,16 @@ declare namespace gapi.client {
|
|
|
13008
13109
|
message?: string;
|
|
13009
13110
|
};
|
|
13010
13111
|
}
|
|
13112
|
+
interface ServiceIntegrationSpec {
|
|
13113
|
+
backupDr?: ServiceIntegrationSpecBackupDRSpec;
|
|
13114
|
+
}
|
|
13115
|
+
interface ServiceIntegrationSpecBackupDRSpec {
|
|
13116
|
+
/**
|
|
13117
|
+
* The BackupPlan resource to attach to the instance. Specified as a resource reference in instances, and regional instance templates, and as just the plan name in global instance
|
|
13118
|
+
* templates
|
|
13119
|
+
*/
|
|
13120
|
+
plan?: string;
|
|
13121
|
+
}
|
|
13011
13122
|
interface ShareSettings {
|
|
13012
13123
|
/**
|
|
13013
13124
|
* A map of folder id and folder config to specify consumer projects for this shared-reservation. This is only valid when share_type's value is DIRECT_PROJECTS_UNDER_SPECIFIC_FOLDERS.
|
|
@@ -32297,6 +32408,72 @@ declare namespace gapi.client {
|
|
|
32297
32408
|
body: ShieldedVmConfig): Request<Operation>;
|
|
32298
32409
|
}
|
|
32299
32410
|
interface InstanceTemplatesResource {
|
|
32411
|
+
/** Retrieves the list of all InstanceTemplates resources, regional and global, available to the specified project. */
|
|
32412
|
+
aggregatedList(request?: {
|
|
32413
|
+
/** V1 error format. */
|
|
32414
|
+
"$.xgafv"?: string;
|
|
32415
|
+
/** OAuth access token. */
|
|
32416
|
+
access_token?: string;
|
|
32417
|
+
/** Data format for response. */
|
|
32418
|
+
alt?: string;
|
|
32419
|
+
/** JSONP */
|
|
32420
|
+
callback?: string;
|
|
32421
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
32422
|
+
fields?: string;
|
|
32423
|
+
/**
|
|
32424
|
+
* A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions
|
|
32425
|
+
* and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want
|
|
32426
|
+
* 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
|
|
32427
|
+
* Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match
|
|
32428
|
+
* substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects
|
|
32429
|
+
* with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only
|
|
32430
|
+
* 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
|
|
32431
|
+
* separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
|
|
32432
|
+
* expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND
|
|
32433
|
+
* (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
|
|
32434
|
+
* with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double
|
|
32435
|
+
* 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
|
|
32436
|
+
* must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`.
|
|
32437
|
+
*/
|
|
32438
|
+
filter?: string;
|
|
32439
|
+
/**
|
|
32440
|
+
* Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has
|
|
32441
|
+
* no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or
|
|
32442
|
+
* false, only scopes of the scope types where the resource type is expected to be found will be included.
|
|
32443
|
+
*/
|
|
32444
|
+
includeAllScopes?: boolean;
|
|
32445
|
+
/** 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. */
|
|
32446
|
+
key?: string;
|
|
32447
|
+
/**
|
|
32448
|
+
* 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
|
|
32449
|
+
* be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
|
32450
|
+
*/
|
|
32451
|
+
maxResults?: number;
|
|
32452
|
+
/** OAuth 2.0 token for the current user. */
|
|
32453
|
+
oauth_token?: string;
|
|
32454
|
+
/**
|
|
32455
|
+
* 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
|
|
32456
|
+
* on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result
|
|
32457
|
+
* 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.
|
|
32458
|
+
*/
|
|
32459
|
+
orderBy?: string;
|
|
32460
|
+
/** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. */
|
|
32461
|
+
pageToken?: string;
|
|
32462
|
+
/** Returns response with indentations and line breaks. */
|
|
32463
|
+
prettyPrint?: boolean;
|
|
32464
|
+
/** Name of the project scoping this request. */
|
|
32465
|
+
project: string;
|
|
32466
|
+
/** 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. */
|
|
32467
|
+
quotaUser?: string;
|
|
32468
|
+
/** Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. */
|
|
32469
|
+
returnPartialSuccess?: boolean;
|
|
32470
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
32471
|
+
upload_protocol?: string;
|
|
32472
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
32473
|
+
uploadType?: string;
|
|
32474
|
+
/** Legacy name for parameter that has been superseded by `quotaUser`. */
|
|
32475
|
+
userIp?: string;
|
|
32476
|
+
}): Request<InstanceTemplateAggregatedList>;
|
|
32300
32477
|
/**
|
|
32301
32478
|
* Deletes the specified instance template. Deleting an instance template is permanent and cannot be undone. It is not possible to delete templates that are already in use by a managed
|
|
32302
32479
|
* instance group.
|
|
@@ -54484,6 +54661,7 @@ declare namespace gapi.client {
|
|
|
54484
54661
|
key?: string;
|
|
54485
54662
|
/** OAuth 2.0 token for the current user. */
|
|
54486
54663
|
oauth_token?: string;
|
|
54664
|
+
paths?: string | string[];
|
|
54487
54665
|
/** Returns response with indentations and line breaks. */
|
|
54488
54666
|
prettyPrint?: boolean;
|
|
54489
54667
|
/** Project ID for this request. */
|
|
@@ -54527,6 +54705,7 @@ declare namespace gapi.client {
|
|
|
54527
54705
|
key?: string;
|
|
54528
54706
|
/** OAuth 2.0 token for the current user. */
|
|
54529
54707
|
oauth_token?: string;
|
|
54708
|
+
paths?: string | string[];
|
|
54530
54709
|
/** Returns response with indentations and line breaks. */
|
|
54531
54710
|
prettyPrint?: boolean;
|
|
54532
54711
|
/** Project ID for this request. */
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -1461,6 +1461,11 @@ Updates the Shielded VM config for a VM instance. You can only use this method o
|
|
|
1461
1461
|
*/
|
|
1462
1462
|
await gapi.client.compute.instances.updateShieldedVmConfig({ instance: "instance", project: "project", zone: "zone", });
|
|
1463
1463
|
|
|
1464
|
+
/*
|
|
1465
|
+
Retrieves the list of all InstanceTemplates resources, regional and global, available to the specified project.
|
|
1466
|
+
*/
|
|
1467
|
+
await gapi.client.compute.instanceTemplates.aggregatedList({ project: "project", });
|
|
1468
|
+
|
|
1464
1469
|
/*
|
|
1465
1470
|
Deletes the specified instance template. Deleting an instance template is permanent and cannot be undone. It is not possible to delete templates that are already in use by a managed instance group.
|
|
1466
1471
|
*/
|
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20221224
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -4608,6 +4608,9 @@ gapi.load('client', async () => {
|
|
|
4608
4608
|
region: "Test string",
|
|
4609
4609
|
selfLink: "Test string",
|
|
4610
4610
|
selfLinkWithId: "Test string",
|
|
4611
|
+
sourceRegions: [
|
|
4612
|
+
"Test string"
|
|
4613
|
+
],
|
|
4611
4614
|
sslHealthCheck: {
|
|
4612
4615
|
port: 42,
|
|
4613
4616
|
portName: "Test string",
|
|
@@ -4701,6 +4704,9 @@ gapi.load('client', async () => {
|
|
|
4701
4704
|
region: "Test string",
|
|
4702
4705
|
selfLink: "Test string",
|
|
4703
4706
|
selfLinkWithId: "Test string",
|
|
4707
|
+
sourceRegions: [
|
|
4708
|
+
"Test string"
|
|
4709
|
+
],
|
|
4704
4710
|
sslHealthCheck: {
|
|
4705
4711
|
port: 42,
|
|
4706
4712
|
portName: "Test string",
|
|
@@ -4791,6 +4797,9 @@ gapi.load('client', async () => {
|
|
|
4791
4797
|
region: "Test string",
|
|
4792
4798
|
selfLink: "Test string",
|
|
4793
4799
|
selfLinkWithId: "Test string",
|
|
4800
|
+
sourceRegions: [
|
|
4801
|
+
"Test string"
|
|
4802
|
+
],
|
|
4794
4803
|
sslHealthCheck: {
|
|
4795
4804
|
port: 42,
|
|
4796
4805
|
portName: "Test string",
|
|
@@ -7069,6 +7078,14 @@ gapi.load('client', async () => {
|
|
|
7069
7078
|
availabilityDomain: 42,
|
|
7070
7079
|
terminationTimestamp: "Test string",
|
|
7071
7080
|
},
|
|
7081
|
+
serviceIntegrationStatuses: {
|
|
7082
|
+
A: {
|
|
7083
|
+
backupDr: {
|
|
7084
|
+
integrationDetails: "Test string",
|
|
7085
|
+
state: "Test string",
|
|
7086
|
+
},
|
|
7087
|
+
}
|
|
7088
|
+
},
|
|
7072
7089
|
upcomingMaintenance: {
|
|
7073
7090
|
canReschedule: true,
|
|
7074
7091
|
},
|
|
@@ -7117,6 +7134,13 @@ gapi.load('client', async () => {
|
|
|
7117
7134
|
],
|
|
7118
7135
|
}
|
|
7119
7136
|
],
|
|
7137
|
+
serviceIntegrationSpecs: {
|
|
7138
|
+
A: {
|
|
7139
|
+
backupDr: {
|
|
7140
|
+
plan: "Test string",
|
|
7141
|
+
},
|
|
7142
|
+
}
|
|
7143
|
+
},
|
|
7120
7144
|
shieldedInstanceConfig: {
|
|
7121
7145
|
enableIntegrityMonitoring: true,
|
|
7122
7146
|
enableSecureBoot: true,
|
|
@@ -7437,6 +7461,13 @@ gapi.load('client', async () => {
|
|
|
7437
7461
|
],
|
|
7438
7462
|
}
|
|
7439
7463
|
],
|
|
7464
|
+
serviceIntegrationSpecs: {
|
|
7465
|
+
A: {
|
|
7466
|
+
backupDr: {
|
|
7467
|
+
plan: "Test string",
|
|
7468
|
+
},
|
|
7469
|
+
}
|
|
7470
|
+
},
|
|
7440
7471
|
shieldedInstanceConfig: {
|
|
7441
7472
|
enableIntegrityMonitoring: true,
|
|
7442
7473
|
enableSecureBoot: true,
|
|
@@ -7825,6 +7856,14 @@ gapi.load('client', async () => {
|
|
|
7825
7856
|
availabilityDomain: 42,
|
|
7826
7857
|
terminationTimestamp: "Test string",
|
|
7827
7858
|
},
|
|
7859
|
+
serviceIntegrationStatuses: {
|
|
7860
|
+
A: {
|
|
7861
|
+
backupDr: {
|
|
7862
|
+
integrationDetails: "Test string",
|
|
7863
|
+
state: "Test string",
|
|
7864
|
+
},
|
|
7865
|
+
}
|
|
7866
|
+
},
|
|
7828
7867
|
upcomingMaintenance: {
|
|
7829
7868
|
canReschedule: true,
|
|
7830
7869
|
},
|
|
@@ -7873,6 +7912,13 @@ gapi.load('client', async () => {
|
|
|
7873
7912
|
],
|
|
7874
7913
|
}
|
|
7875
7914
|
],
|
|
7915
|
+
serviceIntegrationSpecs: {
|
|
7916
|
+
A: {
|
|
7917
|
+
backupDr: {
|
|
7918
|
+
plan: "Test string",
|
|
7919
|
+
},
|
|
7920
|
+
}
|
|
7921
|
+
},
|
|
7876
7922
|
shieldedInstanceConfig: {
|
|
7877
7923
|
enableIntegrityMonitoring: true,
|
|
7878
7924
|
enableSecureBoot: true,
|
|
@@ -8633,6 +8679,14 @@ gapi.load('client', async () => {
|
|
|
8633
8679
|
availabilityDomain: 42,
|
|
8634
8680
|
terminationTimestamp: "Test string",
|
|
8635
8681
|
},
|
|
8682
|
+
serviceIntegrationStatuses: {
|
|
8683
|
+
A: {
|
|
8684
|
+
backupDr: {
|
|
8685
|
+
integrationDetails: "Test string",
|
|
8686
|
+
state: "Test string",
|
|
8687
|
+
},
|
|
8688
|
+
}
|
|
8689
|
+
},
|
|
8636
8690
|
upcomingMaintenance: {
|
|
8637
8691
|
canReschedule: true,
|
|
8638
8692
|
},
|
|
@@ -8681,6 +8735,13 @@ gapi.load('client', async () => {
|
|
|
8681
8735
|
],
|
|
8682
8736
|
}
|
|
8683
8737
|
],
|
|
8738
|
+
serviceIntegrationSpecs: {
|
|
8739
|
+
A: {
|
|
8740
|
+
backupDr: {
|
|
8741
|
+
plan: "Test string",
|
|
8742
|
+
},
|
|
8743
|
+
}
|
|
8744
|
+
},
|
|
8684
8745
|
shieldedInstanceConfig: {
|
|
8685
8746
|
enableIntegrityMonitoring: true,
|
|
8686
8747
|
enableSecureBoot: true,
|
|
@@ -8861,6 +8922,16 @@ gapi.load('client', async () => {
|
|
|
8861
8922
|
enableSecureBoot: true,
|
|
8862
8923
|
enableVtpm: true,
|
|
8863
8924
|
});
|
|
8925
|
+
/** Retrieves the list of all InstanceTemplates resources, regional and global, available to the specified project. */
|
|
8926
|
+
await gapi.client.compute.instanceTemplates.aggregatedList({
|
|
8927
|
+
filter: "Test string",
|
|
8928
|
+
includeAllScopes: true,
|
|
8929
|
+
maxResults: 42,
|
|
8930
|
+
orderBy: "Test string",
|
|
8931
|
+
pageToken: "Test string",
|
|
8932
|
+
project: "Test string",
|
|
8933
|
+
returnPartialSuccess: true,
|
|
8934
|
+
});
|
|
8864
8935
|
/**
|
|
8865
8936
|
* Deletes the specified instance template. Deleting an instance template is permanent and cannot be undone. It is not possible to delete templates that are already in use by a managed
|
|
8866
8937
|
* instance group.
|
|
@@ -9169,6 +9240,13 @@ gapi.load('client', async () => {
|
|
|
9169
9240
|
],
|
|
9170
9241
|
}
|
|
9171
9242
|
],
|
|
9243
|
+
serviceIntegrationSpecs: {
|
|
9244
|
+
A: {
|
|
9245
|
+
backupDr: {
|
|
9246
|
+
plan: "Test string",
|
|
9247
|
+
},
|
|
9248
|
+
}
|
|
9249
|
+
},
|
|
9172
9250
|
shieldedInstanceConfig: {
|
|
9173
9251
|
enableIntegrityMonitoring: true,
|
|
9174
9252
|
enableSecureBoot: true,
|
|
@@ -10817,6 +10895,13 @@ gapi.load('client', async () => {
|
|
|
10817
10895
|
],
|
|
10818
10896
|
}
|
|
10819
10897
|
],
|
|
10898
|
+
serviceIntegrationSpecs: {
|
|
10899
|
+
A: {
|
|
10900
|
+
backupDr: {
|
|
10901
|
+
plan: "Test string",
|
|
10902
|
+
},
|
|
10903
|
+
}
|
|
10904
|
+
},
|
|
10820
10905
|
shieldedInstanceConfig: {
|
|
10821
10906
|
enableIntegrityMonitoring: true,
|
|
10822
10907
|
enableSecureBoot: true,
|
|
@@ -15999,6 +16084,25 @@ gapi.load('client', async () => {
|
|
|
15999
16084
|
region: "Test string",
|
|
16000
16085
|
reservations: [
|
|
16001
16086
|
{
|
|
16087
|
+
aggregateReservation: {
|
|
16088
|
+
inUseResources: [
|
|
16089
|
+
{
|
|
16090
|
+
accelerator: {
|
|
16091
|
+
acceleratorCount: 42,
|
|
16092
|
+
acceleratorType: "Test string",
|
|
16093
|
+
},
|
|
16094
|
+
}
|
|
16095
|
+
],
|
|
16096
|
+
reservedResources: [
|
|
16097
|
+
{
|
|
16098
|
+
accelerator: {
|
|
16099
|
+
acceleratorCount: 42,
|
|
16100
|
+
acceleratorType: "Test string",
|
|
16101
|
+
},
|
|
16102
|
+
}
|
|
16103
|
+
],
|
|
16104
|
+
vmFamily: "Test string",
|
|
16105
|
+
},
|
|
16002
16106
|
commitment: "Test string",
|
|
16003
16107
|
creationTimestamp: "Test string",
|
|
16004
16108
|
description: "Test string",
|
|
@@ -16129,6 +16233,25 @@ gapi.load('client', async () => {
|
|
|
16129
16233
|
region: "Test string",
|
|
16130
16234
|
reservations: [
|
|
16131
16235
|
{
|
|
16236
|
+
aggregateReservation: {
|
|
16237
|
+
inUseResources: [
|
|
16238
|
+
{
|
|
16239
|
+
accelerator: {
|
|
16240
|
+
acceleratorCount: 42,
|
|
16241
|
+
acceleratorType: "Test string",
|
|
16242
|
+
},
|
|
16243
|
+
}
|
|
16244
|
+
],
|
|
16245
|
+
reservedResources: [
|
|
16246
|
+
{
|
|
16247
|
+
accelerator: {
|
|
16248
|
+
acceleratorCount: 42,
|
|
16249
|
+
acceleratorType: "Test string",
|
|
16250
|
+
},
|
|
16251
|
+
}
|
|
16252
|
+
],
|
|
16253
|
+
vmFamily: "Test string",
|
|
16254
|
+
},
|
|
16132
16255
|
commitment: "Test string",
|
|
16133
16256
|
creationTimestamp: "Test string",
|
|
16134
16257
|
description: "Test string",
|
|
@@ -16216,6 +16339,25 @@ gapi.load('client', async () => {
|
|
|
16216
16339
|
}, {
|
|
16217
16340
|
reservations: [
|
|
16218
16341
|
{
|
|
16342
|
+
aggregateReservation: {
|
|
16343
|
+
inUseResources: [
|
|
16344
|
+
{
|
|
16345
|
+
accelerator: {
|
|
16346
|
+
acceleratorCount: 42,
|
|
16347
|
+
acceleratorType: "Test string",
|
|
16348
|
+
},
|
|
16349
|
+
}
|
|
16350
|
+
],
|
|
16351
|
+
reservedResources: [
|
|
16352
|
+
{
|
|
16353
|
+
accelerator: {
|
|
16354
|
+
acceleratorCount: 42,
|
|
16355
|
+
acceleratorType: "Test string",
|
|
16356
|
+
},
|
|
16357
|
+
}
|
|
16358
|
+
],
|
|
16359
|
+
vmFamily: "Test string",
|
|
16360
|
+
},
|
|
16219
16361
|
commitment: "Test string",
|
|
16220
16362
|
creationTimestamp: "Test string",
|
|
16221
16363
|
description: "Test string",
|
|
@@ -16911,6 +17053,9 @@ gapi.load('client', async () => {
|
|
|
16911
17053
|
region: "Test string",
|
|
16912
17054
|
selfLink: "Test string",
|
|
16913
17055
|
selfLinkWithId: "Test string",
|
|
17056
|
+
sourceRegions: [
|
|
17057
|
+
"Test string"
|
|
17058
|
+
],
|
|
16914
17059
|
sslHealthCheck: {
|
|
16915
17060
|
port: 42,
|
|
16916
17061
|
portName: "Test string",
|
|
@@ -17006,6 +17151,9 @@ gapi.load('client', async () => {
|
|
|
17006
17151
|
region: "Test string",
|
|
17007
17152
|
selfLink: "Test string",
|
|
17008
17153
|
selfLinkWithId: "Test string",
|
|
17154
|
+
sourceRegions: [
|
|
17155
|
+
"Test string"
|
|
17156
|
+
],
|
|
17009
17157
|
sslHealthCheck: {
|
|
17010
17158
|
port: 42,
|
|
17011
17159
|
portName: "Test string",
|
|
@@ -17098,6 +17246,9 @@ gapi.load('client', async () => {
|
|
|
17098
17246
|
region: "Test string",
|
|
17099
17247
|
selfLink: "Test string",
|
|
17100
17248
|
selfLinkWithId: "Test string",
|
|
17249
|
+
sourceRegions: [
|
|
17250
|
+
"Test string"
|
|
17251
|
+
],
|
|
17101
17252
|
sslHealthCheck: {
|
|
17102
17253
|
port: 42,
|
|
17103
17254
|
portName: "Test string",
|
|
@@ -18485,6 +18636,14 @@ gapi.load('client', async () => {
|
|
|
18485
18636
|
availabilityDomain: 42,
|
|
18486
18637
|
terminationTimestamp: "Test string",
|
|
18487
18638
|
},
|
|
18639
|
+
serviceIntegrationStatuses: {
|
|
18640
|
+
A: {
|
|
18641
|
+
backupDr: {
|
|
18642
|
+
integrationDetails: "Test string",
|
|
18643
|
+
state: "Test string",
|
|
18644
|
+
},
|
|
18645
|
+
}
|
|
18646
|
+
},
|
|
18488
18647
|
upcomingMaintenance: {
|
|
18489
18648
|
canReschedule: true,
|
|
18490
18649
|
},
|
|
@@ -18533,6 +18692,13 @@ gapi.load('client', async () => {
|
|
|
18533
18692
|
],
|
|
18534
18693
|
}
|
|
18535
18694
|
],
|
|
18695
|
+
serviceIntegrationSpecs: {
|
|
18696
|
+
A: {
|
|
18697
|
+
backupDr: {
|
|
18698
|
+
plan: "Test string",
|
|
18699
|
+
},
|
|
18700
|
+
}
|
|
18701
|
+
},
|
|
18536
18702
|
shieldedInstanceConfig: {
|
|
18537
18703
|
enableIntegrityMonitoring: true,
|
|
18538
18704
|
enableSecureBoot: true,
|
|
@@ -18853,6 +19019,13 @@ gapi.load('client', async () => {
|
|
|
18853
19019
|
],
|
|
18854
19020
|
}
|
|
18855
19021
|
],
|
|
19022
|
+
serviceIntegrationSpecs: {
|
|
19023
|
+
A: {
|
|
19024
|
+
backupDr: {
|
|
19025
|
+
plan: "Test string",
|
|
19026
|
+
},
|
|
19027
|
+
}
|
|
19028
|
+
},
|
|
18856
19029
|
shieldedInstanceConfig: {
|
|
18857
19030
|
enableIntegrityMonitoring: true,
|
|
18858
19031
|
enableSecureBoot: true,
|
|
@@ -19192,6 +19365,13 @@ gapi.load('client', async () => {
|
|
|
19192
19365
|
],
|
|
19193
19366
|
}
|
|
19194
19367
|
],
|
|
19368
|
+
serviceIntegrationSpecs: {
|
|
19369
|
+
A: {
|
|
19370
|
+
backupDr: {
|
|
19371
|
+
plan: "Test string",
|
|
19372
|
+
},
|
|
19373
|
+
}
|
|
19374
|
+
},
|
|
19195
19375
|
shieldedInstanceConfig: {
|
|
19196
19376
|
enableIntegrityMonitoring: true,
|
|
19197
19377
|
enableSecureBoot: true,
|
|
@@ -24166,6 +24346,25 @@ gapi.load('client', async () => {
|
|
|
24166
24346
|
requestId: "Test string",
|
|
24167
24347
|
zone: "Test string",
|
|
24168
24348
|
}, {
|
|
24349
|
+
aggregateReservation: {
|
|
24350
|
+
inUseResources: [
|
|
24351
|
+
{
|
|
24352
|
+
accelerator: {
|
|
24353
|
+
acceleratorCount: 42,
|
|
24354
|
+
acceleratorType: "Test string",
|
|
24355
|
+
},
|
|
24356
|
+
}
|
|
24357
|
+
],
|
|
24358
|
+
reservedResources: [
|
|
24359
|
+
{
|
|
24360
|
+
accelerator: {
|
|
24361
|
+
acceleratorCount: 42,
|
|
24362
|
+
acceleratorType: "Test string",
|
|
24363
|
+
},
|
|
24364
|
+
}
|
|
24365
|
+
],
|
|
24366
|
+
vmFamily: "Test string",
|
|
24367
|
+
},
|
|
24169
24368
|
commitment: "Test string",
|
|
24170
24369
|
creationTimestamp: "Test string",
|
|
24171
24370
|
description: "Test string",
|
|
@@ -24374,6 +24573,25 @@ gapi.load('client', async () => {
|
|
|
24374
24573
|
updateMask: "Test string",
|
|
24375
24574
|
zone: "Test string",
|
|
24376
24575
|
}, {
|
|
24576
|
+
aggregateReservation: {
|
|
24577
|
+
inUseResources: [
|
|
24578
|
+
{
|
|
24579
|
+
accelerator: {
|
|
24580
|
+
acceleratorCount: 42,
|
|
24581
|
+
acceleratorType: "Test string",
|
|
24582
|
+
},
|
|
24583
|
+
}
|
|
24584
|
+
],
|
|
24585
|
+
reservedResources: [
|
|
24586
|
+
{
|
|
24587
|
+
accelerator: {
|
|
24588
|
+
acceleratorCount: 42,
|
|
24589
|
+
acceleratorType: "Test string",
|
|
24590
|
+
},
|
|
24591
|
+
}
|
|
24592
|
+
],
|
|
24593
|
+
vmFamily: "Test string",
|
|
24594
|
+
},
|
|
24377
24595
|
commitment: "Test string",
|
|
24378
24596
|
creationTimestamp: "Test string",
|
|
24379
24597
|
description: "Test string",
|
|
@@ -24573,6 +24791,7 @@ gapi.load('client', async () => {
|
|
|
24573
24791
|
});
|
|
24574
24792
|
/** Modify the specified resource policy. */
|
|
24575
24793
|
await gapi.client.compute.resourcePolicies.patch({
|
|
24794
|
+
paths: "Test string",
|
|
24576
24795
|
project: "Test string",
|
|
24577
24796
|
region: "Test string",
|
|
24578
24797
|
requestId: "Test string",
|
|
@@ -31283,6 +31502,14 @@ gapi.load('client', async () => {
|
|
|
31283
31502
|
availabilityDomain: 42,
|
|
31284
31503
|
terminationTimestamp: "Test string",
|
|
31285
31504
|
},
|
|
31505
|
+
serviceIntegrationStatuses: {
|
|
31506
|
+
A: {
|
|
31507
|
+
backupDr: {
|
|
31508
|
+
integrationDetails: "Test string",
|
|
31509
|
+
state: "Test string",
|
|
31510
|
+
},
|
|
31511
|
+
}
|
|
31512
|
+
},
|
|
31286
31513
|
upcomingMaintenance: {
|
|
31287
31514
|
canReschedule: true,
|
|
31288
31515
|
},
|
|
@@ -31331,6 +31558,13 @@ gapi.load('client', async () => {
|
|
|
31331
31558
|
],
|
|
31332
31559
|
}
|
|
31333
31560
|
],
|
|
31561
|
+
serviceIntegrationSpecs: {
|
|
31562
|
+
A: {
|
|
31563
|
+
backupDr: {
|
|
31564
|
+
plan: "Test string",
|
|
31565
|
+
},
|
|
31566
|
+
}
|
|
31567
|
+
},
|
|
31334
31568
|
shieldedInstanceConfig: {
|
|
31335
31569
|
enableIntegrityMonitoring: true,
|
|
31336
31570
|
enableSecureBoot: true,
|
|
@@ -31651,6 +31885,13 @@ gapi.load('client', async () => {
|
|
|
31651
31885
|
],
|
|
31652
31886
|
}
|
|
31653
31887
|
],
|
|
31888
|
+
serviceIntegrationSpecs: {
|
|
31889
|
+
A: {
|
|
31890
|
+
backupDr: {
|
|
31891
|
+
plan: "Test string",
|
|
31892
|
+
},
|
|
31893
|
+
}
|
|
31894
|
+
},
|
|
31654
31895
|
shieldedInstanceConfig: {
|
|
31655
31896
|
enableIntegrityMonitoring: true,
|
|
31656
31897
|
enableSecureBoot: true,
|