@maxim_mazurok/gapi.client.compute-alpha 0.0.20221018 → 0.0.20221101

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 +54 -17
  2. package/package.json +1 -1
  3. package/tests.ts +54 -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: 20221018
12
+ // Revision: 20221101
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -521,9 +521,10 @@ declare namespace gapi.client {
521
521
  diskSizeGb?: string;
522
522
  /**
523
523
  * Specifies the disk type to use to create the instance. If not specified, the default is pd-standard, specified using the full URL. For example:
524
- * https://www.googleapis.com/compute/v1/projects/project/zones/zone /diskTypes/pd-standard For a full list of acceptable values, see Persistent disk types. If you define this field,
525
- * you can provide either the full or partial URL. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /diskTypes/diskType
526
- * - projects/project/zones/zone/diskTypes/diskType - zones/zone/diskTypes/diskType Note that for InstanceTemplate, this is the name of the disk type, not URL.
524
+ * https://www.googleapis.com/compute/v1/projects/project/zones/zone /diskTypes/pd-standard For a full list of acceptable values, see Persistent disk types. If you specify this field
525
+ * when creating a VM, you can provide either the full or partial URL. For example, the following values are valid: - https://www.googleapis.com/compute/v1/projects/project/zones/zone
526
+ * /diskTypes/diskType - projects/project/zones/zone/diskTypes/diskType - zones/zone/diskTypes/diskType If you specify this field when creating or updating an instance template or
527
+ * all-instances configuration, specify the type of the disk, not the URL. For example: pd-standard.
527
528
  */
528
529
  diskType?: string;
529
530
  /**
@@ -569,8 +570,9 @@ declare namespace gapi.client {
569
570
  */
570
571
  sourceImage?: string;
571
572
  /**
572
- * The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key. Instance templates do not store
573
- * customer-supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with your own keys.
573
+ * The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key. InstanceTemplate and
574
+ * InstancePropertiesPatch do not store customer-supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with
575
+ * your own keys.
574
576
  */
575
577
  sourceImageEncryptionKey?: CustomerEncryptionKey;
576
578
  /**
@@ -924,6 +926,22 @@ declare namespace gapi.client {
924
926
  */
925
927
  timeZone?: string;
926
928
  }
929
+ interface AWSV4Signature {
930
+ /**
931
+ * The access key used for s3 bucket authentication. Required for updating or creating a backend that uses AWS v4 signature authentication, but will not be returned as part of the
932
+ * configuration when queried with a REST API GET request. @InputOnly
933
+ */
934
+ accessKey?: string;
935
+ /** The identifier of an access key used for s3 bucket authentication. */
936
+ accessKeyId?: string;
937
+ /** The optional version identifier for the access key. You can use this to keep track of different iterations of your access key. */
938
+ accessKeyVersion?: string;
939
+ /**
940
+ * The name of the cloud region of your origin. This is a free-form field with the name of the region your cloud uses to host your origin. For example, "us-east-1" for AWS or
941
+ * "us-ashburn-1" for OCI.
942
+ */
943
+ originRegion?: string;
944
+ }
927
945
  interface Backend {
928
946
  /**
929
947
  * Specifies how to determine whether the backend of a load balancer can handle additional traffic or is fully loaded. For usage guidelines, see Connection balancing mode. Backends
@@ -3253,8 +3271,8 @@ declare namespace gapi.client {
3253
3271
  * backendService. While creating a forwarding rule, specifying an IPAddress is required under the following circumstances: - When the target is set to targetGrpcProxy and
3254
3272
  * validateForProxyless is set to true, the IPAddress should be set to 0.0.0.0. - When the target is a Private Service Connect Google APIs bundle, you must specify an IPAddress.
3255
3273
  * Otherwise, you can optionally specify an IP address that references an existing static (reserved) IP address resource. When omitted, Google Cloud assigns an ephemeral IP address.
3256
- * Use one of the following formats to specify an IP address while creating a forwarding rule: * IP address number, as in `100.1.2.3` * Full resource URL, as in
3257
- * https://www.googleapis.com/compute/v1/projects/project_id/regions/region /addresses/address-name * Partial URL or by name, as in: -
3274
+ * Use one of the following formats to specify an IP address while creating a forwarding rule: * IP address number, as in `100.1.2.3` * IPv6 address range, as in `2600:1234::/96` *
3275
+ * Full resource URL, as in https://www.googleapis.com/compute/v1/projects/ project_id/regions/region/addresses/address-name * Partial URL or by name, as in: -
3258
3276
  * projects/project_id/regions/region/addresses/address-name - regions/region/addresses/address-name - global/addresses/address-name - address-name The forwarding rule's target or
3259
3277
  * backendService, and in most cases, also the loadBalancingScheme, determine the type of IP address that you can use. For detailed information, see [IP address
3260
3278
  * specifications](https://cloud.google.com/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications). When reading an IPAddress, the API always returns the IP address
@@ -8457,6 +8475,11 @@ declare namespace gapi.client {
8457
8475
  * https://www.googleapis.com/compute/v1/projects/project/global/networks/ network - projects/project/global/networks/network - global/networks/default
8458
8476
  */
8459
8477
  network?: string;
8478
+ /**
8479
+ * The URL of the network attachment that this interface should connect to in the following format:
8480
+ * projects/{project_number}/regions/{region_name}/networkAttachments/{network_attachment_name}.
8481
+ */
8482
+ networkAttachment?: string;
8460
8483
  /** An IPv4 internal IP address to assign to the instance for this network interface. If not specified by the user, an unused internal IP is assigned by the system. */
8461
8484
  networkIP?: string;
8462
8485
  /** The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet. */
@@ -10929,7 +10952,10 @@ declare namespace gapi.client {
10929
10952
  selfLink?: string;
10930
10953
  /** [Output Only] Server-defined URL for this resource with the resource id. */
10931
10954
  selfLinkWithId?: string;
10932
- /** Share-settings for shared-reservation */
10955
+ /**
10956
+ * Specify share-settings to create a shared reservation. This property is optional. For more information about the syntax and options for this field and its subfields, see the guide
10957
+ * for creating a shared reservation.
10958
+ */
10933
10959
  shareSettings?: ShareSettings;
10934
10960
  /** Reservation for instances with specific machine shapes. */
10935
10961
  specificReservation?: AllocationSpecificSKUReservation;
@@ -11179,10 +11205,14 @@ declare namespace gapi.client {
11179
11205
  collocation?: string;
11180
11206
  /** Specifies network locality */
11181
11207
  locality?: string;
11208
+ /** Specifies the number of max logical switches. */
11209
+ maxDistance?: number;
11182
11210
  /** Scope specifies the availability domain to which the VMs should be spread. */
11183
11211
  scope?: string;
11184
11212
  /** Specifies instances to hosts placement relationship */
11185
11213
  style?: string;
11214
+ /** Specifies the shape of the TPU slice */
11215
+ tpuTopology?: string;
11186
11216
  /**
11187
11217
  * Number of VMs in this placement group. Google does not recommend that you use this field unless you use a compact policy and you want your policy to work only if it contains this
11188
11218
  * exact number of VMs.
@@ -12588,13 +12618,13 @@ declare namespace gapi.client {
12588
12618
  conformAction?: string;
12589
12619
  /**
12590
12620
  * Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the
12591
- * default value if this field 'enforce_on_key' is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The
12592
- * value of the HTTP header whose name is configured under "enforce_on_key_name". The key value is truncated to the first 128 bytes of the header value. If no such header is present in
12593
- * the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If
12594
- * no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie
12595
- * whose name is configured under "enforce_on_key_name". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key
12596
- * type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS
12597
- * request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates.
12621
+ * default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the
12622
+ * HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request,
12623
+ * the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such
12624
+ * header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name
12625
+ * is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to
12626
+ * ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key
12627
+ * value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates.
12598
12628
  */
12599
12629
  enforceOnKey?: string;
12600
12630
  /**
@@ -12661,6 +12691,11 @@ declare namespace gapi.client {
12661
12691
  authenticationPolicy?: AuthenticationPolicy;
12662
12692
  /** [Deprecated] Authorization config defines the Role Based Access Control (RBAC) config. Authorization config defines the Role Based Access Control (RBAC) config. */
12663
12693
  authorizationConfig?: AuthorizationConfig;
12694
+ /**
12695
+ * The configuration needed to generate a signature for access to private storage buckets that support AWS's Signature Version 4 for authentication. Allowed only for INTERNET_IP_PORT
12696
+ * and INTERNET_FQDN_PORT NEG backends.
12697
+ */
12698
+ awsV4Authentication?: AWSV4Signature;
12664
12699
  /**
12665
12700
  * Optional. A URL referring to a networksecurity.ClientTlsPolicy resource that describes how clients should authenticate with this service's backends. clientTlsPolicy only applies to
12666
12701
  * a global BackendService with the loadBalancingScheme set to INTERNAL_SELF_MANAGED. If left blank, communications are not encrypted. Note: This field currently has no impact.
@@ -12818,6 +12853,8 @@ declare namespace gapi.client {
12818
12853
  interface ServiceAttachmentConsumerProjectLimit {
12819
12854
  /** The value of the limit to set. */
12820
12855
  connectionLimit?: number;
12856
+ /** The network URL for the network to set the limit for. */
12857
+ networkUrl?: string;
12821
12858
  /** The project id or number for the project to set the limit for. */
12822
12859
  projectIdOrNum?: string;
12823
12860
  }
@@ -13560,7 +13597,7 @@ declare namespace gapi.client {
13560
13597
  * at resource creation time and updated using patch.
13561
13598
  */
13562
13599
  enablePrivateV6Access?: boolean;
13563
- /** [Output Only] The external IPv6 address range that is assigned to this subnetwork. */
13600
+ /** The external IPv6 address range that is owned by this subnetwork. */
13564
13601
  externalIpv6Prefix?: string;
13565
13602
  /**
13566
13603
  * Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a Subnetwork. An
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.compute-alpha",
3
- "version": "0.0.20221018",
3
+ "version": "0.0.20221101",
4
4
  "description": "TypeScript typings for Compute Engine API alpha",
5
5
  "license": "MIT",
6
6
  "author": {
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: 20221018
6
+ // Revision: 20221101
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -1158,6 +1158,12 @@ gapi.load('client', async () => {
1158
1158
  }
1159
1159
  ],
1160
1160
  },
1161
+ awsV4Authentication: {
1162
+ accessKey: "Test string",
1163
+ accessKeyId: "Test string",
1164
+ accessKeyVersion: "Test string",
1165
+ originRegion: "Test string",
1166
+ },
1161
1167
  clientTlsPolicy: "Test string",
1162
1168
  clientTlsSettings: {
1163
1169
  clientTlsContext: {
@@ -1585,6 +1591,12 @@ gapi.load('client', async () => {
1585
1591
  }
1586
1592
  ],
1587
1593
  },
1594
+ awsV4Authentication: {
1595
+ accessKey: "Test string",
1596
+ accessKeyId: "Test string",
1597
+ accessKeyVersion: "Test string",
1598
+ originRegion: "Test string",
1599
+ },
1588
1600
  clientTlsPolicy: "Test string",
1589
1601
  clientTlsSettings: {
1590
1602
  clientTlsContext: {
@@ -2132,6 +2144,12 @@ gapi.load('client', async () => {
2132
2144
  }
2133
2145
  ],
2134
2146
  },
2147
+ awsV4Authentication: {
2148
+ accessKey: "Test string",
2149
+ accessKeyId: "Test string",
2150
+ accessKeyVersion: "Test string",
2151
+ originRegion: "Test string",
2152
+ },
2135
2153
  clientTlsPolicy: "Test string",
2136
2154
  clientTlsSettings: {
2137
2155
  clientTlsContext: {
@@ -6996,6 +7014,7 @@ gapi.load('client', async () => {
6996
7014
  kind: "Test string",
6997
7015
  name: "Test string",
6998
7016
  network: "Test string",
7017
+ networkAttachment: "Test string",
6999
7018
  networkIP: "Test string",
7000
7019
  nicType: "Test string",
7001
7020
  queueCount: 42,
@@ -7330,6 +7349,7 @@ gapi.load('client', async () => {
7330
7349
  kind: "Test string",
7331
7350
  name: "Test string",
7332
7351
  network: "Test string",
7352
+ networkAttachment: "Test string",
7333
7353
  networkIP: "Test string",
7334
7354
  nicType: "Test string",
7335
7355
  queueCount: 42,
@@ -7748,6 +7768,7 @@ gapi.load('client', async () => {
7748
7768
  kind: "Test string",
7749
7769
  name: "Test string",
7750
7770
  network: "Test string",
7771
+ networkAttachment: "Test string",
7751
7772
  networkIP: "Test string",
7752
7773
  nicType: "Test string",
7753
7774
  queueCount: 42,
@@ -8553,6 +8574,7 @@ gapi.load('client', async () => {
8553
8574
  kind: "Test string",
8554
8575
  name: "Test string",
8555
8576
  network: "Test string",
8577
+ networkAttachment: "Test string",
8556
8578
  networkIP: "Test string",
8557
8579
  nicType: "Test string",
8558
8580
  queueCount: 42,
@@ -8781,6 +8803,7 @@ gapi.load('client', async () => {
8781
8803
  kind: "Test string",
8782
8804
  name: "Test string",
8783
8805
  network: "Test string",
8806
+ networkAttachment: "Test string",
8784
8807
  networkIP: "Test string",
8785
8808
  nicType: "Test string",
8786
8809
  queueCount: 42,
@@ -9054,6 +9077,7 @@ gapi.load('client', async () => {
9054
9077
  kind: "Test string",
9055
9078
  name: "Test string",
9056
9079
  network: "Test string",
9080
+ networkAttachment: "Test string",
9057
9081
  networkIP: "Test string",
9058
9082
  nicType: "Test string",
9059
9083
  queueCount: 42,
@@ -10702,6 +10726,7 @@ gapi.load('client', async () => {
10702
10726
  kind: "Test string",
10703
10727
  name: "Test string",
10704
10728
  network: "Test string",
10729
+ networkAttachment: "Test string",
10705
10730
  networkIP: "Test string",
10706
10731
  nicType: "Test string",
10707
10732
  queueCount: 42,
@@ -10933,6 +10958,7 @@ gapi.load('client', async () => {
10933
10958
  kind: "Test string",
10934
10959
  name: "Test string",
10935
10960
  network: "Test string",
10961
+ networkAttachment: "Test string",
10936
10962
  networkIP: "Test string",
10937
10963
  nicType: "Test string",
10938
10964
  queueCount: 42,
@@ -14822,6 +14848,12 @@ gapi.load('client', async () => {
14822
14848
  }
14823
14849
  ],
14824
14850
  },
14851
+ awsV4Authentication: {
14852
+ accessKey: "Test string",
14853
+ accessKeyId: "Test string",
14854
+ accessKeyVersion: "Test string",
14855
+ originRegion: "Test string",
14856
+ },
14825
14857
  clientTlsPolicy: "Test string",
14826
14858
  clientTlsSettings: {
14827
14859
  clientTlsContext: {
@@ -15251,6 +15283,12 @@ gapi.load('client', async () => {
15251
15283
  }
15252
15284
  ],
15253
15285
  },
15286
+ awsV4Authentication: {
15287
+ accessKey: "Test string",
15288
+ accessKeyId: "Test string",
15289
+ accessKeyVersion: "Test string",
15290
+ originRegion: "Test string",
15291
+ },
15254
15292
  clientTlsPolicy: "Test string",
15255
15293
  clientTlsSettings: {
15256
15294
  clientTlsContext: {
@@ -15794,6 +15832,12 @@ gapi.load('client', async () => {
15794
15832
  }
15795
15833
  ],
15796
15834
  },
15835
+ awsV4Authentication: {
15836
+ accessKey: "Test string",
15837
+ accessKeyId: "Test string",
15838
+ accessKeyVersion: "Test string",
15839
+ originRegion: "Test string",
15840
+ },
15797
15841
  clientTlsPolicy: "Test string",
15798
15842
  clientTlsSettings: {
15799
15843
  clientTlsContext: {
@@ -18351,6 +18395,7 @@ gapi.load('client', async () => {
18351
18395
  kind: "Test string",
18352
18396
  name: "Test string",
18353
18397
  network: "Test string",
18398
+ networkAttachment: "Test string",
18354
18399
  networkIP: "Test string",
18355
18400
  nicType: "Test string",
18356
18401
  queueCount: 42,
@@ -18685,6 +18730,7 @@ gapi.load('client', async () => {
18685
18730
  kind: "Test string",
18686
18731
  name: "Test string",
18687
18732
  network: "Test string",
18733
+ networkAttachment: "Test string",
18688
18734
  networkIP: "Test string",
18689
18735
  nicType: "Test string",
18690
18736
  queueCount: 42,
@@ -19022,6 +19068,7 @@ gapi.load('client', async () => {
19022
19068
  kind: "Test string",
19023
19069
  name: "Test string",
19024
19070
  network: "Test string",
19071
+ networkAttachment: "Test string",
19025
19072
  networkIP: "Test string",
19026
19073
  nicType: "Test string",
19027
19074
  queueCount: 42,
@@ -24361,8 +24408,10 @@ gapi.load('client', async () => {
24361
24408
  availabilityDomainCount: 42,
24362
24409
  collocation: "Test string",
24363
24410
  locality: "Test string",
24411
+ maxDistance: 42,
24364
24412
  scope: "Test string",
24365
24413
  style: "Test string",
24414
+ tpuTopology: "Test string",
24366
24415
  vmCount: 42,
24367
24416
  },
24368
24417
  id: "Test string",
@@ -26193,6 +26242,7 @@ gapi.load('client', async () => {
26193
26242
  consumerAcceptLists: [
26194
26243
  {
26195
26244
  connectionLimit: 42,
26245
+ networkUrl: "Test string",
26196
26246
  projectIdOrNum: "Test string",
26197
26247
  }
26198
26248
  ],
@@ -26249,6 +26299,7 @@ gapi.load('client', async () => {
26249
26299
  consumerAcceptLists: [
26250
26300
  {
26251
26301
  connectionLimit: 42,
26302
+ networkUrl: "Test string",
26252
26303
  projectIdOrNum: "Test string",
26253
26304
  }
26254
26305
  ],
@@ -30984,6 +31035,7 @@ gapi.load('client', async () => {
30984
31035
  kind: "Test string",
30985
31036
  name: "Test string",
30986
31037
  network: "Test string",
31038
+ networkAttachment: "Test string",
30987
31039
  networkIP: "Test string",
30988
31040
  nicType: "Test string",
30989
31041
  queueCount: 42,
@@ -31318,6 +31370,7 @@ gapi.load('client', async () => {
31318
31370
  kind: "Test string",
31319
31371
  name: "Test string",
31320
31372
  network: "Test string",
31373
+ networkAttachment: "Test string",
31321
31374
  networkIP: "Test string",
31322
31375
  nicType: "Test string",
31323
31376
  queueCount: 42,