@maxim_mazurok/gapi.client.compute-alpha 0.0.20230923 → 0.0.20231003

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 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: 20230923
12
+ // Revision: 20231003
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -7317,6 +7317,9 @@ declare namespace gapi.client {
7317
7317
  /** Named instance selections configuring properties that the group will use when creating new VMs. */
7318
7318
  instanceSelectionLists?:
7319
7319
  { [P in string]: InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection };
7320
+ /** Named instance selections configuring properties that the group will use when creating new VMs. */
7321
+ instanceSelections?:
7322
+ { [P in string]: InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection };
7320
7323
  }
7321
7324
  interface InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection {
7322
7325
  /** Full machine-type names, e.g. "n1-standard-16". */
@@ -7424,6 +7427,9 @@ declare namespace gapi.client {
7424
7427
  /** When set, defines queing parameters for the requested deferred capacity. When unset, the request starts provisioning immediately, or fails if immediate provisioning is not possible. */
7425
7428
  queuingPolicy?:
7426
7429
  QueuingPolicy;
7430
+ /** Requested run duration for instances that will be created by this request. If specified, the instance termination action will be performed at the end of the run duration. */
7431
+ requestedRunDuration?:
7432
+ Duration;
7427
7433
  /** The number of instances to be created by this resize request. The group's target size will be increased by this number. */
7428
7434
  resizeBy?:
7429
7435
  number;
@@ -10562,7 +10568,7 @@ declare namespace gapi.client {
10562
10568
  /** [Output Only] Information about the last attempt to create or delete the instance. */
10563
10569
  lastAttempt?:
10564
10570
  ManagedInstanceLastAttempt;
10565
- /** [Output Only] The name of the instance. The name will always exist even if the instance has not yet been created. */
10571
+ /** [Output Only] The name of the instance. The name always exists even if the instance has not yet been created. */
10566
10572
  name?:
10567
10573
  string;
10568
10574
  /** [Output Only] Preserved state applied from per-instance config for this instance. */
@@ -10969,6 +10975,9 @@ declare namespace gapi.client {
10969
10975
  /** The subnetwork used to assign the IP to the producer instance network interface. */
10970
10976
  subnetwork?:
10971
10977
  string;
10978
+ /** [Output Only] The CIDR range of the subnet from which the IPv4 internal IP was allocated from. */
10979
+ subnetworkCidrRange?:
10980
+ string;
10972
10981
  }
10973
10982
  interface NetworkAttachmentList {
10974
10983
  /** [Output Only] Unique identifier for the resource; defined by the server. */
@@ -13738,6 +13747,9 @@ declare namespace gapi.client {
13738
13747
  string;
13739
13748
  }
13740
13749
  interface PublicAdvertisedPrefix {
13750
+ /** [Output Only] The version of BYOIP API. */
13751
+ byoipApiVersion?:
13752
+ string;
13741
13753
  /** [Output Only] Creation timestamp in RFC3339 text format. */
13742
13754
  creationTimestamp?:
13743
13755
  string;
@@ -13868,6 +13880,9 @@ declare namespace gapi.client {
13868
13880
  */
13869
13881
  allocatablePrefixLength?:
13870
13882
  number;
13883
+ /** [Output Only] The version of BYOIP API. */
13884
+ byoipApiVersion?:
13885
+ string;
13871
13886
  /** [Output Only] Creation timestamp in RFC3339 text format. */
13872
13887
  creationTimestamp?:
13873
13888
  string;
@@ -18243,6 +18258,55 @@ declare namespace gapi.client {
18243
18258
  userLicenses?:
18244
18259
  string[];
18245
18260
  }
18261
+ interface SnapshotAggregatedList {
18262
+ etag?:
18263
+ string;
18264
+ /** [Output Only] Unique identifier for the resource; defined by the server. */
18265
+ id?:
18266
+ string;
18267
+ /** A list of SnapshotsScopedList resources. */
18268
+ items?:
18269
+ { [P in string]: SnapshotsScopedList };
18270
+ /** [Output Only] Type of resource. Always compute#snapshotAggregatedList for aggregated lists of snapshots. */
18271
+ kind?:
18272
+ string;
18273
+ /**
18274
+ * [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
18275
+ * query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
18276
+ */
18277
+ nextPageToken?:
18278
+ string;
18279
+ /** [Output Only] Server-defined URL for this resource. */
18280
+ selfLink?:
18281
+ string;
18282
+ /** [Output Only] Unreachable resources. */
18283
+ unreachables?:
18284
+ string[];
18285
+ /** [Output Only] Informational warning message. */
18286
+ warning?:
18287
+ {
18288
+ /** [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. */
18289
+ code?:
18290
+ string;
18291
+ /** [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } */
18292
+ data?:
18293
+ Array<{
18294
+ /**
18295
+ * [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
18296
+ * 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,
18297
+ * or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
18298
+ */
18299
+ key?:
18300
+ string;
18301
+ /** [Output Only] A warning data value corresponding to the key. */
18302
+ value?:
18303
+ string;
18304
+ }>;
18305
+ /** [Output Only] A human-readable description of the warning code. */
18306
+ message?:
18307
+ string;
18308
+ };
18309
+ }
18246
18310
  interface SnapshotList {
18247
18311
  /** [Output Only] Unique identifier for the resource; defined by the server. */
18248
18312
  id?:
@@ -18305,6 +18369,35 @@ declare namespace gapi.client {
18305
18369
  name?:
18306
18370
  string;
18307
18371
  }
18372
+ interface SnapshotsScopedList {
18373
+ /** [Output Only] A list of snapshots contained in this scope. */
18374
+ snapshots?:
18375
+ Snapshot[];
18376
+ /** [Output Only] Informational warning which replaces the list of snapshots when the list is empty. */
18377
+ warning?:
18378
+ {
18379
+ /** [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. */
18380
+ code?:
18381
+ string;
18382
+ /** [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } */
18383
+ data?:
18384
+ Array<{
18385
+ /**
18386
+ * [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
18387
+ * 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,
18388
+ * or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
18389
+ */
18390
+ key?:
18391
+ string;
18392
+ /** [Output Only] A warning data value corresponding to the key. */
18393
+ value?:
18394
+ string;
18395
+ }>;
18396
+ /** [Output Only] A human-readable description of the warning code. */
18397
+ message?:
18398
+ string;
18399
+ };
18400
+ }
18308
18401
  interface SourceDiskEncryptionKey {
18309
18402
  /** The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key. */
18310
18403
  diskEncryptionKey?:
@@ -81858,6 +81951,93 @@ declare namespace gapi.client {
81858
81951
  body: TestPermissionsRequest): Request<TestPermissionsResponse>;
81859
81952
  }
81860
81953
  interface SnapshotsResource {
81954
+ /** Retrieves an aggregated list of all of the snapshots in your project across all regions and global scope. */
81955
+ aggregatedList(request?: {
81956
+ /** V1 error format. */
81957
+ "$.xgafv"?:
81958
+ string;
81959
+ /** OAuth access token. */
81960
+ access_token?:
81961
+ string;
81962
+ /** Data format for response. */
81963
+ alt?:
81964
+ string;
81965
+ /** JSONP */
81966
+ callback?:
81967
+ string;
81968
+ /** Selector specifying which fields to include in a partial response. */
81969
+ fields?:
81970
+ string;
81971
+ /**
81972
+ * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions
81973
+ * 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
81974
+ * 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 `=`,
81975
+ * `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name !=
81976
+ * 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
81977
+ * 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.
81978
+ * 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:
81979
+ * ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR`
81980
+ * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a
81981
+ * 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
81982
+ * expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne
81983
+ * "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
81984
+ * instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
81985
+ */
81986
+ filter?:
81987
+ string;
81988
+ /**
81989
+ * 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
81990
+ * 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
81991
+ * false, only scopes of the scope types where the resource type is expected to be found will be included.
81992
+ */
81993
+ includeAllScopes?:
81994
+ boolean;
81995
+ /** 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. */
81996
+ key?:
81997
+ string;
81998
+ /**
81999
+ * 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
82000
+ * be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
82001
+ */
82002
+ maxResults?:
82003
+ number;
82004
+ /** OAuth 2.0 token for the current user. */
82005
+ oauth_token?:
82006
+ string;
82007
+ /**
82008
+ * 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
82009
+ * on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result
82010
+ * 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.
82011
+ */
82012
+ orderBy?:
82013
+ string;
82014
+ /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. */
82015
+ pageToken?:
82016
+ string;
82017
+ /** Returns response with indentations and line breaks. */
82018
+ prettyPrint?:
82019
+ boolean;
82020
+ /** Project ID for this request. */
82021
+ project:
82022
+ string;
82023
+ /** 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. */
82024
+ quotaUser?:
82025
+ string;
82026
+ /** Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. */
82027
+ returnPartialSuccess?:
82028
+ boolean;
82029
+ serviceProjectNumber?:
82030
+ string;
82031
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
82032
+ upload_protocol?:
82033
+ string;
82034
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
82035
+ uploadType?:
82036
+ string;
82037
+ /** Legacy name for parameter that has been superseded by `quotaUser`. */
82038
+ userIp?:
82039
+ string;
82040
+ }): Request<SnapshotAggregatedList>;
81861
82041
  /**
81862
82042
  * Deletes the specified Snapshot resource. Keep in mind that deleting a single snapshot might not necessarily delete all the data on that snapshot. If any data on the snapshot that is
81863
82043
  * marked for deletion is needed for subsequent snapshots, the data will be moved to the next corresponding snapshot. For more information, see Deleting snapshots.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.compute-alpha",
3
- "version": "0.0.20230923",
3
+ "version": "0.0.20231003",
4
4
  "description": "TypeScript typings for Compute Engine API alpha",
5
5
  "license": "MIT",
6
6
  "author": {
package/readme.md CHANGED
@@ -3831,6 +3831,11 @@ Returns permissions that a caller has on the specified resource.
3831
3831
  */
3832
3832
  await gapi.client.compute.serviceAttachments.testIamPermissions({ project: "project", region: "region", resource: "resource", });
3833
3833
 
3834
+ /*
3835
+ Retrieves an aggregated list of all of the snapshots in your project across all regions and global scope.
3836
+ */
3837
+ await gapi.client.compute.snapshots.aggregatedList({ project: "project", });
3838
+
3834
3839
  /*
3835
3840
  Deletes the specified Snapshot resource. Keep in mind that deleting a single snapshot might not necessarily delete all the data on that snapshot. If any data on the snapshot that is marked for deletion is needed for subsequent snapshots, the data will be moved to the next corresponding snapshot. For more information, see Deleting snapshots.
3836
3841
  */
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: 20230923
6
+ // Revision: 20231003
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -4706,6 +4706,7 @@ gapi.load('client', async () => {
4706
4706
  requestId: "Test string",
4707
4707
  }, {
4708
4708
  allocatablePrefixLength: 42,
4709
+ byoipApiVersion: "Test string",
4709
4710
  creationTimestamp: "Test string",
4710
4711
  description: "Test string",
4711
4712
  fingerprint: "Test string",
@@ -4753,6 +4754,7 @@ gapi.load('client', async () => {
4753
4754
  requestId: "Test string",
4754
4755
  }, {
4755
4756
  allocatablePrefixLength: 42,
4757
+ byoipApiVersion: "Test string",
4756
4758
  creationTimestamp: "Test string",
4757
4759
  description: "Test string",
4758
4760
  fingerprint: "Test string",
@@ -5747,6 +5749,10 @@ gapi.load('client', async () => {
5747
5749
  },
5748
5750
  validUntilTime: "Test string",
5749
5751
  },
5752
+ requestedRunDuration: {
5753
+ nanos: 42,
5754
+ seconds: "Test string",
5755
+ },
5750
5756
  resizeBy: 42,
5751
5757
  selfLink: "Test string",
5752
5758
  selfLinkWithId: "Test string",
@@ -6028,6 +6034,14 @@ gapi.load('client', async () => {
6028
6034
  rank: 42,
6029
6035
  }
6030
6036
  },
6037
+ instanceSelections: {
6038
+ A: {
6039
+ machineTypes: [
6040
+ "Test string"
6041
+ ],
6042
+ rank: 42,
6043
+ }
6044
+ },
6031
6045
  },
6032
6046
  instanceGroup: "Test string",
6033
6047
  instanceLifecyclePolicy: {
@@ -6255,6 +6269,14 @@ gapi.load('client', async () => {
6255
6269
  rank: 42,
6256
6270
  }
6257
6271
  },
6272
+ instanceSelections: {
6273
+ A: {
6274
+ machineTypes: [
6275
+ "Test string"
6276
+ ],
6277
+ rank: 42,
6278
+ }
6279
+ },
6258
6280
  },
6259
6281
  instanceGroup: "Test string",
6260
6282
  instanceLifecyclePolicy: {
@@ -6662,6 +6684,14 @@ gapi.load('client', async () => {
6662
6684
  rank: 42,
6663
6685
  }
6664
6686
  },
6687
+ instanceSelections: {
6688
+ A: {
6689
+ machineTypes: [
6690
+ "Test string"
6691
+ ],
6692
+ rank: 42,
6693
+ }
6694
+ },
6665
6695
  },
6666
6696
  instanceGroup: "Test string",
6667
6697
  instanceLifecyclePolicy: {
@@ -11430,6 +11460,7 @@ gapi.load('client', async () => {
11430
11460
  ],
11431
11461
  status: "Test string",
11432
11462
  subnetwork: "Test string",
11463
+ subnetworkCidrRange: "Test string",
11433
11464
  }
11434
11465
  ],
11435
11466
  connectionPreference: "Test string",
@@ -11480,6 +11511,7 @@ gapi.load('client', async () => {
11480
11511
  ],
11481
11512
  status: "Test string",
11482
11513
  subnetwork: "Test string",
11514
+ subnetworkCidrRange: "Test string",
11483
11515
  }
11484
11516
  ],
11485
11517
  connectionPreference: "Test string",
@@ -14434,6 +14466,7 @@ gapi.load('client', async () => {
14434
14466
  project: "Test string",
14435
14467
  requestId: "Test string",
14436
14468
  }, {
14469
+ byoipApiVersion: "Test string",
14437
14470
  creationTimestamp: "Test string",
14438
14471
  description: "Test string",
14439
14472
  dnsVerificationIp: "Test string",
@@ -14472,6 +14505,7 @@ gapi.load('client', async () => {
14472
14505
  publicAdvertisedPrefix: "Test string",
14473
14506
  requestId: "Test string",
14474
14507
  }, {
14508
+ byoipApiVersion: "Test string",
14475
14509
  creationTimestamp: "Test string",
14476
14510
  description: "Test string",
14477
14511
  dnsVerificationIp: "Test string",
@@ -14539,6 +14573,7 @@ gapi.load('client', async () => {
14539
14573
  requestId: "Test string",
14540
14574
  }, {
14541
14575
  allocatablePrefixLength: 42,
14576
+ byoipApiVersion: "Test string",
14542
14577
  creationTimestamp: "Test string",
14543
14578
  description: "Test string",
14544
14579
  fingerprint: "Test string",
@@ -14585,6 +14620,7 @@ gapi.load('client', async () => {
14585
14620
  requestId: "Test string",
14586
14621
  }, {
14587
14622
  allocatablePrefixLength: 42,
14623
+ byoipApiVersion: "Test string",
14588
14624
  creationTimestamp: "Test string",
14589
14625
  description: "Test string",
14590
14626
  fingerprint: "Test string",
@@ -18022,6 +18058,14 @@ gapi.load('client', async () => {
18022
18058
  rank: 42,
18023
18059
  }
18024
18060
  },
18061
+ instanceSelections: {
18062
+ A: {
18063
+ machineTypes: [
18064
+ "Test string"
18065
+ ],
18066
+ rank: 42,
18067
+ }
18068
+ },
18025
18069
  },
18026
18070
  instanceGroup: "Test string",
18027
18071
  instanceLifecyclePolicy: {
@@ -18248,6 +18292,14 @@ gapi.load('client', async () => {
18248
18292
  rank: 42,
18249
18293
  }
18250
18294
  },
18295
+ instanceSelections: {
18296
+ A: {
18297
+ machineTypes: [
18298
+ "Test string"
18299
+ ],
18300
+ rank: 42,
18301
+ }
18302
+ },
18251
18303
  },
18252
18304
  instanceGroup: "Test string",
18253
18305
  instanceLifecyclePolicy: {
@@ -18646,6 +18698,14 @@ gapi.load('client', async () => {
18646
18698
  rank: 42,
18647
18699
  }
18648
18700
  },
18701
+ instanceSelections: {
18702
+ A: {
18703
+ machineTypes: [
18704
+ "Test string"
18705
+ ],
18706
+ rank: 42,
18707
+ }
18708
+ },
18649
18709
  },
18650
18710
  instanceGroup: "Test string",
18651
18711
  instanceLifecyclePolicy: {
@@ -27650,6 +27710,17 @@ gapi.load('client', async () => {
27650
27710
  "Test string"
27651
27711
  ],
27652
27712
  });
27713
+ /** Retrieves an aggregated list of all of the snapshots in your project across all regions and global scope. */
27714
+ await gapi.client.compute.snapshots.aggregatedList({
27715
+ filter: "Test string",
27716
+ includeAllScopes: true,
27717
+ maxResults: 42,
27718
+ orderBy: "Test string",
27719
+ pageToken: "Test string",
27720
+ project: "Test string",
27721
+ returnPartialSuccess: true,
27722
+ serviceProjectNumber: "Test string",
27723
+ });
27653
27724
  /**
27654
27725
  * Deletes the specified Snapshot resource. Keep in mind that deleting a single snapshot might not necessarily delete all the data on that snapshot. If any data on the snapshot that is
27655
27726
  * marked for deletion is needed for subsequent snapshots, the data will be moved to the next corresponding snapshot. For more information, see Deleting snapshots.