@maxim_mazurok/gapi.client.networkconnectivity-v1alpha1 0.2.20260309 → 0.2.20260529

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 +6 -4
  2. package/package.json +1 -1
  3. package/readme.md +17 -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://networkconnectivity.googleapis.com/$discovery/rest?version=v1alpha1
12
- // Revision: 20260309
12
+ // Revision: 20260529
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -102,7 +102,7 @@ declare namespace gapi.client {
102
102
  /** The status code, which should be an enum value of google.rpc.Code. */
103
103
  code?: number;
104
104
  /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
105
- details?: Array<{[P in string]: any}>;
105
+ details?: {[P in string]: any}[];
106
106
  /** A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. */
107
107
  message?: string;
108
108
  }
@@ -160,6 +160,8 @@ declare namespace gapi.client {
160
160
  peering?: 'PEERING_UNSPECIFIED' | 'FOR_SELF' | 'FOR_PEER' | 'NOT_SHARED';
161
161
  /** Optional. An alternative to ip_cidr_range. Can be set when trying to create an IPv4 reservation that automatically finds a free range of the given size. If both ip_cidr_range and prefix_length are set, there is an error if the range sizes do not match. Can also be used during updates to change the range size. NOTE: For IPv6 this field only works if ip_cidr_range is set as well, and both fields must match. In other words, with IPv6 this field only works as a redundant parameter. */
162
162
  prefixLength?: number;
163
+ /** Output only. Status of the Internal Range. */
164
+ rangeStatus?: 'RANGE_STATUS_UNSPECIFIED' | 'ACTIVE' | 'OBSOLETE';
163
165
  /** Optional. Can be set to narrow down or pick a different address space while searching for a free range. If not set, defaults to the ["10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"] address space (for auto-mode networks, the "10.0.0.0/9" range is used instead of "10.0.0.0/8"). This can be used to target the search in other rfc-1918 address spaces like "172.16.0.0/12" and "192.168.0.0/16" or non-rfc-1918 address spaces used in the VPC. */
164
166
  targetCidrRange?: string[];
165
167
  /** Output only. Time when the internal range was updated. */
@@ -1420,7 +1422,7 @@ declare namespace gapi.client {
1420
1422
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1421
1423
  uploadType?: string;
1422
1424
  }): Request<Location>;
1423
- /** Lists information about the supported locations for this service. This method can be called in two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project-visible locations:** Use the path `GET /v1/projects/{project_id}/locations`. This may include public locations as well as private or other locations specifically visible to the project. */
1425
+ /** Lists information about the supported locations for this service. This method lists locations based on the resource scope provided in the ListLocationsRequest.name field: * **Global locations**: If `name` is empty, the method lists the public locations available to all projects. * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project. For gRPC and client library implementations, the resource name is passed as the `name` field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version. */
1424
1426
  list(request?: {
1425
1427
  /** V1 error format. */
1426
1428
  '$.xgafv'?: '1' | '2';
@@ -1430,7 +1432,7 @@ declare namespace gapi.client {
1430
1432
  alt?: 'json' | 'media' | 'proto';
1431
1433
  /** JSONP */
1432
1434
  callback?: string;
1433
- /** Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage. */
1435
+ /** Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage. */
1434
1436
  extraLocationTypes?: string | string[];
1435
1437
  /** Selector specifying which fields to include in a partial response. */
1436
1438
  fields?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.networkconnectivity-v1alpha1",
3
- "version": "0.2.20260309",
3
+ "version": "0.2.20260529",
4
4
  "description": "TypeScript typings for Network Connectivity API v1alpha1",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -11,6 +11,23 @@ Install typings for Network Connectivity API:
11
11
  npm install @types/gapi.client.networkconnectivity-v1alpha1 --save-dev
12
12
  ```
13
13
 
14
+ ## TypeScript 6.0+
15
+
16
+ TypeScript 6.0 changed `types` to default to `[]`. You must now explicitly list type packages in `tsconfig.json`:
17
+
18
+ ```json
19
+ {
20
+ "compilerOptions": {
21
+ "types": [
22
+ "gapi",
23
+ "gapi.auth2",
24
+ "gapi.client",
25
+ "gapi.client.networkconnectivity-v1alpha1"
26
+ ]
27
+ }
28
+ }
29
+ ```
30
+
14
31
  ## Usage
15
32
 
16
33
  You need to initialize Google API client in your code: