@maxim_mazurok/gapi.client.compute-alpha 0.0.20241008 → 0.0.20241015

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 +56 -69
  2. package/package.json +1 -1
  3. package/readme.md +5 -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: 20241008
12
+ // Revision: 20241015
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -1309,8 +1309,6 @@ declare namespace gapi.client {
1309
1309
  prefix?: string;
1310
1310
  }
1311
1311
  interface Binding {
1312
- /** This is deprecated and has no effect. Do not use. */
1313
- bindingId?: string;
1314
1312
  /** The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */
1315
1313
  condition?: Expr;
1316
1314
  /** Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workforce identity pool. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities with a specific attribute value. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`: All identities in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`: All identities in a workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: Deleted single identity in a workforce identity pool. For example, `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`. */
@@ -1561,18 +1559,6 @@ declare namespace gapi.client {
1561
1559
  message?: string;
1562
1560
  };
1563
1561
  }
1564
- interface Condition {
1565
- /** This is deprecated and has no effect. Do not use. */
1566
- iam?: string;
1567
- /** This is deprecated and has no effect. Do not use. */
1568
- op?: string;
1569
- /** This is deprecated and has no effect. Do not use. */
1570
- svc?: string;
1571
- /** This is deprecated and has no effect. Do not use. */
1572
- sys?: string;
1573
- /** This is deprecated and has no effect. Do not use. */
1574
- values?: string[];
1575
- }
1576
1562
  interface ConfidentialInstanceConfig {
1577
1563
  /** Defines the type of technology used by the confidential instance. */
1578
1564
  confidentialInstanceType?: string;
@@ -3942,7 +3928,7 @@ declare namespace gapi.client {
3942
3928
  multiMig?: string;
3943
3929
  /** The name of the managed instance group. The name must be 1-63 characters long, and comply with RFC1035. */
3944
3930
  name?: string;
3945
- /** Named ports configured for the Instance Groups complementary to this Instance Group Manager. */
3931
+ /** [Output Only] Named ports configured on the Instance Groups complementary to this Instance Group Manager. */
3946
3932
  namedPorts?: NamedPort[];
3947
3933
  /** Input only. Additional params passed with the request, but not persisted as part of resource payload. */
3948
3934
  params?: InstanceGroupManagerParams;
@@ -6133,36 +6119,6 @@ declare namespace gapi.client {
6133
6119
  /** Maximum number of items that are allowed to be placed in this zone. The value must be non-negative. */
6134
6120
  maxCount?: number;
6135
6121
  }
6136
- interface LogConfig {
6137
- /** This is deprecated and has no effect. Do not use. */
6138
- cloudAudit?: LogConfigCloudAuditOptions;
6139
- /** This is deprecated and has no effect. Do not use. */
6140
- counter?: LogConfigCounterOptions;
6141
- /** This is deprecated and has no effect. Do not use. */
6142
- dataAccess?: LogConfigDataAccessOptions;
6143
- }
6144
- interface LogConfigCloudAuditOptions {
6145
- /** This is deprecated and has no effect. Do not use. */
6146
- logName?: string;
6147
- }
6148
- interface LogConfigCounterOptions {
6149
- /** This is deprecated and has no effect. Do not use. */
6150
- customFields?: LogConfigCounterOptionsCustomField[];
6151
- /** This is deprecated and has no effect. Do not use. */
6152
- field?: string;
6153
- /** This is deprecated and has no effect. Do not use. */
6154
- metric?: string;
6155
- }
6156
- interface LogConfigCounterOptionsCustomField {
6157
- /** This is deprecated and has no effect. Do not use. */
6158
- name?: string;
6159
- /** This is deprecated and has no effect. Do not use. */
6160
- value?: string;
6161
- }
6162
- interface LogConfigDataAccessOptions {
6163
- /** This is deprecated and has no effect. Do not use. */
6164
- logMode?: string;
6165
- }
6166
6122
  interface MachineImage {
6167
6123
  /** [Output Only] The creation timestamp for this machine image in RFC3339 text format. */
6168
6124
  creationTimestamp?: string;
@@ -7192,10 +7148,6 @@ declare namespace gapi.client {
7192
7148
  allowCloudNat?: string;
7193
7149
  /** Specifies whether cloud router creation is allowed. */
7194
7150
  allowCloudRouter?: string;
7195
- /** Specifies which subnetwork purposes are supported. */
7196
- allowedSubnetPurposes?: string[];
7197
- /** Specifies which subnetwork stack types are supported. */
7198
- allowedSubnetStackTypes?: string[];
7199
7151
  /** Specifies whether VMs are allowed to have external IP access on network interfaces connected to this VPC. */
7200
7152
  allowExternalIpAccess?: string;
7201
7153
  /** Specifies whether Cloud Interconnect creation is allowed. */
@@ -7222,6 +7174,10 @@ declare namespace gapi.client {
7222
7174
  allowVpn?: string;
7223
7175
  /** If set, limits the interface types that the network supports. If empty, all interface types are supported. */
7224
7176
  interfaceTypes?: string[];
7177
+ /** Specifies which subnetwork purposes are supported. */
7178
+ subnetPurposes?: string[];
7179
+ /** Specifies which subnetwork stack types are supported. */
7180
+ subnetStackTypes?: string[];
7225
7181
  /** Specifies which type of unicast is supported. */
7226
7182
  unicast?: string;
7227
7183
  }
@@ -8256,8 +8212,6 @@ declare namespace gapi.client {
8256
8212
  bindings?: Binding[];
8257
8213
  /** `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. */
8258
8214
  etag?: string;
8259
- /** This is deprecated and has no effect. Do not use. */
8260
- rules?: Rule[];
8261
8215
  /** Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */
8262
8216
  version?: number;
8263
8217
  }
@@ -9303,7 +9257,7 @@ declare namespace gapi.client {
9303
9257
  /** [Output Only] The name of this reservation block generated by Google Compute Engine. The name must be 1-63 characters long, and comply with RFC1035 @pattern [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? */
9304
9258
  name?: string;
9305
9259
  /** [Output Only] The physical topology of the reservation block. */
9306
- physicalHostTopology?: ReservationBlockPhysicalTopology;
9260
+ physicalTopology?: ReservationBlockPhysicalTopology;
9307
9261
  /** [Output Only] Maintenance information for this reservation block. */
9308
9262
  reservationMaintenance?: GroupMaintenanceInfo;
9309
9263
  /** [Output Only] Server-defined fully-qualified URL for this resource. */
@@ -9637,6 +9591,8 @@ declare namespace gapi.client {
9637
9591
  lastInstanceTerminationDetails?: ResourceStatusLastInstanceTerminationDetails;
9638
9592
  /** [Output Only] An opaque ID of the host on which the VM is running. */
9639
9593
  physicalHost?: string;
9594
+ /** [Output Only] The physical host topology of the host on which the VM is running. */
9595
+ physicalHostTopology?: ResourceStatusPhysicalHostTopology;
9640
9596
  scheduling?: ResourceStatusScheduling;
9641
9597
  /** [Output Only] Represents the status of the service integration specs defined by the user in instance.serviceIntegrationSpecs. */
9642
9598
  serviceIntegrationStatuses?: {
@@ -9673,6 +9629,12 @@ declare namespace gapi.client {
9673
9629
  /** Reason for termination */
9674
9630
  terminationReason?: string;
9675
9631
  }
9632
+ interface ResourceStatusPhysicalHostTopology {
9633
+ block?: string;
9634
+ cluster?: string;
9635
+ host?: string;
9636
+ subblock?: string;
9637
+ }
9676
9638
  interface ResourceStatusScheduling {
9677
9639
  /** Specifies the availability domain to place the instance in. The value must be a number between 1 and the number of availability domains specified in the spread placement policy attached to the instance. */
9678
9640
  availabilityDomain?: number;
@@ -10321,22 +10283,6 @@ declare namespace gapi.client {
10321
10283
  kind?: string;
10322
10284
  result?: RouterStatus;
10323
10285
  }
10324
- interface Rule {
10325
- /** This is deprecated and has no effect. Do not use. */
10326
- action?: string;
10327
- /** This is deprecated and has no effect. Do not use. */
10328
- conditions?: Condition[];
10329
- /** This is deprecated and has no effect. Do not use. */
10330
- description?: string;
10331
- /** This is deprecated and has no effect. Do not use. */
10332
- ins?: string[];
10333
- /** This is deprecated and has no effect. Do not use. */
10334
- logConfigs?: LogConfig[];
10335
- /** This is deprecated and has no effect. Do not use. */
10336
- notIns?: string[];
10337
- /** This is deprecated and has no effect. Do not use. */
10338
- permissions?: string[];
10339
- }
10340
10286
  interface SavedAttachedDisk {
10341
10287
  /** Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance). */
10342
10288
  autoDelete?: boolean;
@@ -10428,6 +10374,8 @@ declare namespace gapi.client {
10428
10374
  preemptible?: boolean;
10429
10375
  /** Specifies the provisioning model of the instance. */
10430
10376
  provisioningModel?: string;
10377
+ /** Timeout between GCE ACPI G2 Soft Off and ACPI G3 Mechanical Off during shutdown operation of VM. For Standard VMs values between 0s and 120s are allowed. For Spot and Preemptible VMs supported values are between 0s and 30s. If no value is specified for shutdownDuration, default values are 90s for Standard VMs and 30s for Spot/Preemptible VMs. */
10378
+ shutdownTimeout?: Duration;
10431
10379
  /** Specifies the timestamp, when the instance will be terminated, in RFC3339 text format. If specified, the instance termination action will be performed at the termination time. */
10432
10380
  terminationTime?: string;
10433
10381
  /** Represents the Windows Server License Optimization Mode of the VM. If unspecified, the default mode is `OFF`. */
@@ -37328,6 +37276,45 @@ declare namespace gapi.client {
37328
37276
  /** Legacy name for parameter that has been superseded by `quotaUser`. */
37329
37277
  userIp?: string;
37330
37278
  }): Request<OrganizationSecurityPoliciesListAssociationsResponse>;
37279
+ /** Gets the current list of preconfigured Web Application Firewall (WAF) expressions. */
37280
+ listPreconfiguredExpressionSets(request?: {
37281
+ /** V1 error format. */
37282
+ '$.xgafv'?: string;
37283
+ /** OAuth access token. */
37284
+ access_token?: string;
37285
+ /** Data format for response. */
37286
+ alt?: string;
37287
+ /** JSONP */
37288
+ callback?: string;
37289
+ /** Selector specifying which fields to include in a partial response. */
37290
+ fields?: string;
37291
+ /** 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. */
37292
+ filter?: string;
37293
+ /** 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. */
37294
+ key?: string;
37295
+ /** 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`) */
37296
+ maxResults?: number;
37297
+ /** OAuth 2.0 token for the current user. */
37298
+ oauth_token?: string;
37299
+ /** 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. */
37300
+ orderBy?: string;
37301
+ /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. */
37302
+ pageToken?: string;
37303
+ /** Parent ID for this request. */
37304
+ parentId?: string;
37305
+ /** Returns response with indentations and line breaks. */
37306
+ prettyPrint?: boolean;
37307
+ /** 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. */
37308
+ quotaUser?: string;
37309
+ /** 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. */
37310
+ returnPartialSuccess?: boolean;
37311
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
37312
+ upload_protocol?: string;
37313
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
37314
+ uploadType?: string;
37315
+ /** Legacy name for parameter that has been superseded by `quotaUser`. */
37316
+ userIp?: string;
37317
+ }): Request<SecurityPoliciesListPreconfiguredExpressionSetsResponse>;
37331
37318
  /** Moves the specified security policy. */
37332
37319
  move(request?: {
37333
37320
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.compute-alpha",
3
- "version": "0.0.20241008",
3
+ "version": "0.0.20241015",
4
4
  "description": "TypeScript typings for Compute Engine API alpha",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -2505,6 +2505,11 @@ Lists associations of a specified target, i.e., organization or folder.
2505
2505
  */
2506
2506
  await gapi.client.compute.organizationSecurityPolicies.listAssociations({ });
2507
2507
 
2508
+ /*
2509
+ Gets the current list of preconfigured Web Application Firewall (WAF) expressions.
2510
+ */
2511
+ await gapi.client.compute.organizationSecurityPolicies.listPreconfiguredExpressionSets({ });
2512
+
2508
2513
  /*
2509
2514
  Moves the specified security policy.
2510
2515
  */