@maxim_mazurok/gapi.client.dns-v1beta2 0.2.20260310 → 0.2.20260526

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 +24 -4
  2. package/package.json +1 -1
  3. package/readme.md +12 -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://dns.googleapis.com/$discovery/rest?version=v1beta2
12
- // Revision: 20260310
12
+ // Revision: 20260526
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -169,6 +169,18 @@ declare namespace gapi.client {
169
169
  /** A subset of `TestPermissionsRequest.permissions` that the caller is allowed. */
170
170
  permissions?: string[];
171
171
  }
172
+ interface GoogleLongrunningOperation {
173
+ /** If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. */
174
+ done?: boolean;
175
+ /** The error result of the operation in case of failure or cancellation. */
176
+ error?: Status;
177
+ /** Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. */
178
+ metadata?: {[P in string]: any};
179
+ /** The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. */
180
+ name?: string;
181
+ /** The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. */
182
+ response?: {[P in string]: any};
183
+ }
172
184
  interface ManagedZone {
173
185
  cloudLoggingConfig?: ManagedZoneCloudLoggingConfig;
174
186
  /** The time that this resource was created on the server. This is in RFC3339 text format. Output only. */
@@ -609,6 +621,14 @@ declare namespace gapi.client {
609
621
  /** The weight corresponding to this `WrrPolicyItem` object. When multiple `WrrPolicyItem` objects are configured, the probability of returning an `WrrPolicyItem` object's data is proportional to its weight relative to the sum of weights configured for all items. This weight must be non-negative. */
610
622
  weight?: number;
611
623
  }
624
+ interface Status {
625
+ /** The status code, which should be an enum value of google.rpc.Code. */
626
+ code?: number;
627
+ /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
628
+ details?: {[P in string]: any}[];
629
+ /** 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. */
630
+ message?: string;
631
+ }
612
632
  interface ChangesResource {
613
633
  /** Atomically updates the ResourceRecordSet collection. */
614
634
  create(request: {
@@ -1739,7 +1759,7 @@ declare namespace gapi.client {
1739
1759
  callback?: string;
1740
1760
  /** Selector specifying which fields to include in a partial response. */
1741
1761
  fields?: string;
1742
- /** Specify a filter expression to view records that exactly match the specified domain. Both the name and type parameters are not supported when you use filter and must be omitted. Your filter expression must conform to AIP-160 and you must specify a domain in the name field. Optionally, you can include the type field to filter records by type. You can also include the has_suffix function to view records that match by domain suffix. Examples: - name="example.com." - name="example.com." AND type="A" - name=has_suffix("example.com.") - name=has_suffix("example.com.") AND type="A" */
1762
+ /** Specify a filter expression to view records that exactly match the specified domain. Both the `name` and `type` parameters are not supported and must be omitted when you use `filter`. Your `filter` expression must conform to AIP-160 and you must specify a domain in the `name` field. Optionally, you can include the `type` field to filter records by type. You can also include the `has_suffix` function to view records that match by domain suffix. Examples: * `name`="example.com." * `name`="example.com." AND type="A" * `name`=`has_suffix`("example.com.") * `name`=`has_suffix`("example.com.") AND type="A" */
1743
1763
  filter?: string;
1744
1764
  /** 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. */
1745
1765
  key?: string;
@@ -1747,7 +1767,7 @@ declare namespace gapi.client {
1747
1767
  managedZone: string;
1748
1768
  /** Optional. Maximum number of results to be returned. If unspecified, the server decides how many results to return. */
1749
1769
  maxResults?: number;
1750
- /** Specify a fully qualified domain name to view only those records. The name parameter is not supported and must be omitted when you use filter. */
1770
+ /** Specify a fully qualified domain name to view only those records. The `name` parameter is not supported and must be omitted when you use `filter`. */
1751
1771
  name?: string;
1752
1772
  /** OAuth 2.0 token for the current user. */
1753
1773
  oauth_token?: string;
@@ -1759,7 +1779,7 @@ declare namespace gapi.client {
1759
1779
  project: string;
1760
1780
  /** 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. */
1761
1781
  quotaUser?: string;
1762
- /** Specify a record type to view only those records. You must also specify the name parameter. The type parameter is not supported and must be omitted when you use filter. */
1782
+ /** Specify a record type to view only those records. You must also specify the `name` parameter. The `type` parameter is not supported and must be omitted when you use `filter`. */
1763
1783
  type?: string;
1764
1784
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1765
1785
  upload_protocol?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.dns-v1beta2",
3
- "version": "0.2.20260310",
3
+ "version": "0.2.20260526",
4
4
  "description": "TypeScript typings for Cloud DNS API v1beta2",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -10,6 +10,18 @@ Install typings for Cloud DNS API:
10
10
  npm install @types/gapi.client.dns-v1beta2 --save-dev
11
11
  ```
12
12
 
13
+ ## TypeScript 6.0+
14
+
15
+ TypeScript 6.0 changed `types` to default to `[]`. You must now explicitly list type packages in `tsconfig.json`:
16
+
17
+ ```json
18
+ {
19
+ "compilerOptions": {
20
+ "types": ["gapi", "gapi.auth2", "gapi.client", "gapi.client.dns-v1beta2"]
21
+ }
22
+ }
23
+ ```
24
+
13
25
  ## Usage
14
26
 
15
27
  You need to initialize Google API client in your code: