@maxim_mazurok/gapi.client.spanner-v1 0.0.20250218 → 0.0.20250304

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 (2) hide show
  1. package/index.d.ts +135 -1
  2. package/package.json +1 -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://spanner.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20250218
12
+ // Revision: 20250304
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -24,6 +24,24 @@ declare namespace gapi.client {
24
24
  function load(name: 'spanner', version: 'v1', callback: () => any): void;
25
25
 
26
26
  namespace spanner {
27
+ interface AdapterSession {
28
+ /** Identifier. The name of the session. This is always system-assigned. */
29
+ name?: string;
30
+ }
31
+ interface AdaptMessageRequest {
32
+ /** Optional. Opaque request state passed by the client to the server. */
33
+ attachments?: {[P in string]: string};
34
+ /** Optional. Uninterpreted bytes from the underlying wire protocol. */
35
+ payload?: string;
36
+ /** Required. Identifier for the underlying wire protocol. */
37
+ protocol?: string;
38
+ }
39
+ interface AdaptMessageResponse {
40
+ /** Optional. Uninterpreted bytes from the underlying wire protocol. */
41
+ payload?: string;
42
+ /** Optional. Opaque state updates to be applied by the client. */
43
+ stateUpdates?: {[P in string]: string};
44
+ }
27
45
  interface AddSplitPointsRequest {
28
46
  /** Optional. A user-supplied tag associated with the split points. For example, "initial_data_load", "special_event_1". Defaults to "CloudAddSplitPointsAPI" if not specified. The length of the tag must not exceed 50 characters,else will be trimmed. Only valid UTF8 characters are allowed. */
29
47
  initiator?: string;
@@ -2930,6 +2948,122 @@ declare namespace gapi.client {
2930
2948
  }): Request<ListOperationsResponse>;
2931
2949
  }
2932
2950
  interface SessionsResource {
2951
+ /** Creates a new session to be used for requests made by the adapter. A session identifies a specific incarnation of a database resource and is meant to be reused across many `AdaptMessage` calls. */
2952
+ adapter(request: {
2953
+ /** V1 error format. */
2954
+ '$.xgafv'?: string;
2955
+ /** OAuth access token. */
2956
+ access_token?: string;
2957
+ /** Data format for response. */
2958
+ alt?: string;
2959
+ /** JSONP */
2960
+ callback?: string;
2961
+ /** Selector specifying which fields to include in a partial response. */
2962
+ fields?: string;
2963
+ /** 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. */
2964
+ key?: string;
2965
+ /** OAuth 2.0 token for the current user. */
2966
+ oauth_token?: string;
2967
+ /** Required. The database in which the new session is created. */
2968
+ parent: string;
2969
+ /** Returns response with indentations and line breaks. */
2970
+ prettyPrint?: boolean;
2971
+ /** 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. */
2972
+ quotaUser?: string;
2973
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2974
+ upload_protocol?: string;
2975
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2976
+ uploadType?: string;
2977
+ /** Request body */
2978
+ resource: AdapterSession;
2979
+ }): Request<AdapterSession>;
2980
+ adapter(
2981
+ request: {
2982
+ /** V1 error format. */
2983
+ '$.xgafv'?: string;
2984
+ /** OAuth access token. */
2985
+ access_token?: string;
2986
+ /** Data format for response. */
2987
+ alt?: string;
2988
+ /** JSONP */
2989
+ callback?: string;
2990
+ /** Selector specifying which fields to include in a partial response. */
2991
+ fields?: string;
2992
+ /** 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. */
2993
+ key?: string;
2994
+ /** OAuth 2.0 token for the current user. */
2995
+ oauth_token?: string;
2996
+ /** Required. The database in which the new session is created. */
2997
+ parent: string;
2998
+ /** Returns response with indentations and line breaks. */
2999
+ prettyPrint?: boolean;
3000
+ /** 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. */
3001
+ quotaUser?: string;
3002
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3003
+ upload_protocol?: string;
3004
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3005
+ uploadType?: string;
3006
+ },
3007
+ body: AdapterSession,
3008
+ ): Request<AdapterSession>;
3009
+ /** Handles a single message from the client and returns the result as a stream. The server will interpret the message frame and respond with message frames to the client. */
3010
+ adaptMessage(request: {
3011
+ /** V1 error format. */
3012
+ '$.xgafv'?: string;
3013
+ /** OAuth access token. */
3014
+ access_token?: string;
3015
+ /** Data format for response. */
3016
+ alt?: string;
3017
+ /** JSONP */
3018
+ callback?: string;
3019
+ /** Selector specifying which fields to include in a partial response. */
3020
+ fields?: string;
3021
+ /** 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. */
3022
+ key?: string;
3023
+ /** Required. The database session in which the adapter request is processed. */
3024
+ name: string;
3025
+ /** OAuth 2.0 token for the current user. */
3026
+ oauth_token?: string;
3027
+ /** Returns response with indentations and line breaks. */
3028
+ prettyPrint?: boolean;
3029
+ /** 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. */
3030
+ quotaUser?: string;
3031
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3032
+ upload_protocol?: string;
3033
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3034
+ uploadType?: string;
3035
+ /** Request body */
3036
+ resource: AdaptMessageRequest;
3037
+ }): Request<AdaptMessageResponse>;
3038
+ adaptMessage(
3039
+ request: {
3040
+ /** V1 error format. */
3041
+ '$.xgafv'?: string;
3042
+ /** OAuth access token. */
3043
+ access_token?: string;
3044
+ /** Data format for response. */
3045
+ alt?: string;
3046
+ /** JSONP */
3047
+ callback?: string;
3048
+ /** Selector specifying which fields to include in a partial response. */
3049
+ fields?: string;
3050
+ /** 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. */
3051
+ key?: string;
3052
+ /** Required. The database session in which the adapter request is processed. */
3053
+ name: string;
3054
+ /** OAuth 2.0 token for the current user. */
3055
+ oauth_token?: string;
3056
+ /** Returns response with indentations and line breaks. */
3057
+ prettyPrint?: boolean;
3058
+ /** 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. */
3059
+ quotaUser?: string;
3060
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3061
+ upload_protocol?: string;
3062
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3063
+ uploadType?: string;
3064
+ },
3065
+ body: AdaptMessageRequest,
3066
+ ): Request<AdaptMessageResponse>;
2933
3067
  /** Creates multiple new sessions. This API can be used to initialize a session cache on the clients. See https://goo.gl/TgSFN2 for best practices on session cache management. */
2934
3068
  batchCreate(request: {
2935
3069
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.spanner-v1",
3
- "version": "0.0.20250218",
3
+ "version": "0.0.20250304",
4
4
  "description": "TypeScript typings for Cloud Spanner API v1",
5
5
  "repository": {
6
6
  "type": "git",