@maxim_mazurok/gapi.client.gkehub-v2alpha 0.0.20230414 → 0.0.20230424
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.
- package/index.d.ts +197 -99
- package/package.json +1 -1
- package/tests.ts +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://gkehub.googleapis.com/$discovery/rest?version=v2alpha
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230424
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -30,60 +30,77 @@ declare namespace gapi.client {
|
|
|
30
30
|
}
|
|
31
31
|
interface GoogleRpcStatus {
|
|
32
32
|
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
33
|
-
code?:
|
|
33
|
+
code?:
|
|
34
|
+
number;
|
|
34
35
|
/** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
|
|
35
|
-
details?:
|
|
36
|
+
details?:
|
|
37
|
+
Array<{ [P in string]: any }>;
|
|
36
38
|
/**
|
|
37
39
|
* 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
|
|
38
40
|
* client.
|
|
39
41
|
*/
|
|
40
|
-
message?:
|
|
42
|
+
message?:
|
|
43
|
+
string;
|
|
41
44
|
}
|
|
42
45
|
interface ListLocationsResponse {
|
|
43
46
|
/** A list of locations that matches the specified filter in the request. */
|
|
44
|
-
locations?:
|
|
47
|
+
locations?:
|
|
48
|
+
Location[];
|
|
45
49
|
/** The standard List next-page token. */
|
|
46
|
-
nextPageToken?:
|
|
50
|
+
nextPageToken?:
|
|
51
|
+
string;
|
|
47
52
|
}
|
|
48
53
|
interface ListOperationsResponse {
|
|
49
54
|
/** The standard List next-page token. */
|
|
50
|
-
nextPageToken?:
|
|
55
|
+
nextPageToken?:
|
|
56
|
+
string;
|
|
51
57
|
/** A list of operations that matches the specified filter in the request. */
|
|
52
|
-
operations?:
|
|
58
|
+
operations?:
|
|
59
|
+
Operation[];
|
|
53
60
|
}
|
|
54
61
|
interface Location {
|
|
55
62
|
/** The friendly name for this location, typically a nearby city name. For example, "Tokyo". */
|
|
56
|
-
displayName?:
|
|
63
|
+
displayName?:
|
|
64
|
+
string;
|
|
57
65
|
/** Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"} */
|
|
58
|
-
labels?:
|
|
66
|
+
labels?:
|
|
67
|
+
{ [P in string]: string };
|
|
59
68
|
/** The canonical id for this location. For example: `"us-east1"`. */
|
|
60
|
-
locationId?:
|
|
69
|
+
locationId?:
|
|
70
|
+
string;
|
|
61
71
|
/** Service-specific metadata. For example the available capacity at the given location. */
|
|
62
|
-
metadata?:
|
|
72
|
+
metadata?:
|
|
73
|
+
{ [P in string]: any };
|
|
63
74
|
/** Resource name for the location, which may vary between implementations. For example: `"projects/example-project/locations/us-east1"` */
|
|
64
|
-
name?:
|
|
75
|
+
name?:
|
|
76
|
+
string;
|
|
65
77
|
}
|
|
66
78
|
interface Operation {
|
|
67
79
|
/** 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. */
|
|
68
|
-
done?:
|
|
80
|
+
done?:
|
|
81
|
+
boolean;
|
|
69
82
|
/** The error result of the operation in case of failure or cancellation. */
|
|
70
|
-
error?:
|
|
83
|
+
error?:
|
|
84
|
+
GoogleRpcStatus;
|
|
71
85
|
/**
|
|
72
86
|
* 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
|
|
73
87
|
* metadata. Any method that returns a long-running operation should document the metadata type, if any.
|
|
74
88
|
*/
|
|
75
|
-
metadata?:
|
|
89
|
+
metadata?:
|
|
90
|
+
{ [P in string]: any };
|
|
76
91
|
/**
|
|
77
92
|
* 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
|
|
78
93
|
* with `operations/{unique_id}`.
|
|
79
94
|
*/
|
|
80
|
-
name?:
|
|
95
|
+
name?:
|
|
96
|
+
string;
|
|
81
97
|
/**
|
|
82
98
|
* The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the
|
|
83
99
|
* 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
|
|
84
100
|
* original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
|
|
85
101
|
*/
|
|
86
|
-
response?:
|
|
102
|
+
response?:
|
|
103
|
+
{ [P in string]: any };
|
|
87
104
|
}
|
|
88
105
|
interface OperationsResource {
|
|
89
106
|
/**
|
|
@@ -94,188 +111,269 @@ declare namespace gapi.client {
|
|
|
94
111
|
*/
|
|
95
112
|
cancel(request: {
|
|
96
113
|
/** V1 error format. */
|
|
97
|
-
"$.xgafv"?:
|
|
114
|
+
"$.xgafv"?:
|
|
115
|
+
string;
|
|
98
116
|
/** OAuth access token. */
|
|
99
|
-
access_token?:
|
|
117
|
+
access_token?:
|
|
118
|
+
string;
|
|
100
119
|
/** Data format for response. */
|
|
101
|
-
alt?:
|
|
120
|
+
alt?:
|
|
121
|
+
string;
|
|
102
122
|
/** JSONP */
|
|
103
|
-
callback?:
|
|
123
|
+
callback?:
|
|
124
|
+
string;
|
|
104
125
|
/** Selector specifying which fields to include in a partial response. */
|
|
105
|
-
fields?:
|
|
126
|
+
fields?:
|
|
127
|
+
string;
|
|
106
128
|
/** 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. */
|
|
107
|
-
key?:
|
|
129
|
+
key?:
|
|
130
|
+
string;
|
|
108
131
|
/** The name of the operation resource to be cancelled. */
|
|
109
|
-
name:
|
|
132
|
+
name:
|
|
133
|
+
string;
|
|
110
134
|
/** OAuth 2.0 token for the current user. */
|
|
111
|
-
oauth_token?:
|
|
135
|
+
oauth_token?:
|
|
136
|
+
string;
|
|
112
137
|
/** Returns response with indentations and line breaks. */
|
|
113
|
-
prettyPrint?:
|
|
138
|
+
prettyPrint?:
|
|
139
|
+
boolean;
|
|
114
140
|
/** 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. */
|
|
115
|
-
quotaUser?:
|
|
141
|
+
quotaUser?:
|
|
142
|
+
string;
|
|
116
143
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
117
|
-
upload_protocol?:
|
|
144
|
+
upload_protocol?:
|
|
145
|
+
string;
|
|
118
146
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
119
|
-
uploadType?:
|
|
147
|
+
uploadType?:
|
|
148
|
+
string;
|
|
120
149
|
/** Request body */
|
|
121
|
-
resource:
|
|
150
|
+
resource:
|
|
151
|
+
CancelOperationRequest;
|
|
122
152
|
}): Request<{}>;
|
|
123
153
|
cancel(request: {
|
|
124
154
|
/** V1 error format. */
|
|
125
|
-
"$.xgafv"?:
|
|
155
|
+
"$.xgafv"?:
|
|
156
|
+
string;
|
|
126
157
|
/** OAuth access token. */
|
|
127
|
-
access_token?:
|
|
158
|
+
access_token?:
|
|
159
|
+
string;
|
|
128
160
|
/** Data format for response. */
|
|
129
|
-
alt?:
|
|
161
|
+
alt?:
|
|
162
|
+
string;
|
|
130
163
|
/** JSONP */
|
|
131
|
-
callback?:
|
|
164
|
+
callback?:
|
|
165
|
+
string;
|
|
132
166
|
/** Selector specifying which fields to include in a partial response. */
|
|
133
|
-
fields?:
|
|
167
|
+
fields?:
|
|
168
|
+
string;
|
|
134
169
|
/** 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. */
|
|
135
|
-
key?:
|
|
170
|
+
key?:
|
|
171
|
+
string;
|
|
136
172
|
/** The name of the operation resource to be cancelled. */
|
|
137
|
-
name:
|
|
173
|
+
name:
|
|
174
|
+
string;
|
|
138
175
|
/** OAuth 2.0 token for the current user. */
|
|
139
|
-
oauth_token?:
|
|
176
|
+
oauth_token?:
|
|
177
|
+
string;
|
|
140
178
|
/** Returns response with indentations and line breaks. */
|
|
141
|
-
prettyPrint?:
|
|
179
|
+
prettyPrint?:
|
|
180
|
+
boolean;
|
|
142
181
|
/** 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. */
|
|
143
|
-
quotaUser?:
|
|
182
|
+
quotaUser?:
|
|
183
|
+
string;
|
|
144
184
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
145
|
-
upload_protocol?:
|
|
185
|
+
upload_protocol?:
|
|
186
|
+
string;
|
|
146
187
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
147
|
-
uploadType?:
|
|
188
|
+
uploadType?:
|
|
189
|
+
string;
|
|
148
190
|
},
|
|
149
191
|
body: CancelOperationRequest): Request<{}>;
|
|
150
192
|
/** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
|
|
151
193
|
get(request?: {
|
|
152
194
|
/** V1 error format. */
|
|
153
|
-
"$.xgafv"?:
|
|
195
|
+
"$.xgafv"?:
|
|
196
|
+
string;
|
|
154
197
|
/** OAuth access token. */
|
|
155
|
-
access_token?:
|
|
198
|
+
access_token?:
|
|
199
|
+
string;
|
|
156
200
|
/** Data format for response. */
|
|
157
|
-
alt?:
|
|
201
|
+
alt?:
|
|
202
|
+
string;
|
|
158
203
|
/** JSONP */
|
|
159
|
-
callback?:
|
|
204
|
+
callback?:
|
|
205
|
+
string;
|
|
160
206
|
/** Selector specifying which fields to include in a partial response. */
|
|
161
|
-
fields?:
|
|
207
|
+
fields?:
|
|
208
|
+
string;
|
|
162
209
|
/** 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. */
|
|
163
|
-
key?:
|
|
210
|
+
key?:
|
|
211
|
+
string;
|
|
164
212
|
/** The name of the operation resource. */
|
|
165
|
-
name:
|
|
213
|
+
name:
|
|
214
|
+
string;
|
|
166
215
|
/** OAuth 2.0 token for the current user. */
|
|
167
|
-
oauth_token?:
|
|
216
|
+
oauth_token?:
|
|
217
|
+
string;
|
|
168
218
|
/** Returns response with indentations and line breaks. */
|
|
169
|
-
prettyPrint?:
|
|
219
|
+
prettyPrint?:
|
|
220
|
+
boolean;
|
|
170
221
|
/** 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. */
|
|
171
|
-
quotaUser?:
|
|
222
|
+
quotaUser?:
|
|
223
|
+
string;
|
|
172
224
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
173
|
-
upload_protocol?:
|
|
225
|
+
upload_protocol?:
|
|
226
|
+
string;
|
|
174
227
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
175
|
-
uploadType?:
|
|
228
|
+
uploadType?:
|
|
229
|
+
string;
|
|
176
230
|
}): Request<Operation>;
|
|
177
231
|
/** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
|
|
178
232
|
list(request?: {
|
|
179
233
|
/** V1 error format. */
|
|
180
|
-
"$.xgafv"?:
|
|
234
|
+
"$.xgafv"?:
|
|
235
|
+
string;
|
|
181
236
|
/** OAuth access token. */
|
|
182
|
-
access_token?:
|
|
237
|
+
access_token?:
|
|
238
|
+
string;
|
|
183
239
|
/** Data format for response. */
|
|
184
|
-
alt?:
|
|
240
|
+
alt?:
|
|
241
|
+
string;
|
|
185
242
|
/** JSONP */
|
|
186
|
-
callback?:
|
|
243
|
+
callback?:
|
|
244
|
+
string;
|
|
187
245
|
/** Selector specifying which fields to include in a partial response. */
|
|
188
|
-
fields?:
|
|
246
|
+
fields?:
|
|
247
|
+
string;
|
|
189
248
|
/** The standard list filter. */
|
|
190
|
-
filter?:
|
|
249
|
+
filter?:
|
|
250
|
+
string;
|
|
191
251
|
/** 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. */
|
|
192
|
-
key?:
|
|
252
|
+
key?:
|
|
253
|
+
string;
|
|
193
254
|
/** The name of the operation's parent resource. */
|
|
194
|
-
name:
|
|
255
|
+
name:
|
|
256
|
+
string;
|
|
195
257
|
/** OAuth 2.0 token for the current user. */
|
|
196
|
-
oauth_token?:
|
|
258
|
+
oauth_token?:
|
|
259
|
+
string;
|
|
197
260
|
/** The standard list page size. */
|
|
198
|
-
pageSize?:
|
|
261
|
+
pageSize?:
|
|
262
|
+
number;
|
|
199
263
|
/** The standard list page token. */
|
|
200
|
-
pageToken?:
|
|
264
|
+
pageToken?:
|
|
265
|
+
string;
|
|
201
266
|
/** Returns response with indentations and line breaks. */
|
|
202
|
-
prettyPrint?:
|
|
267
|
+
prettyPrint?:
|
|
268
|
+
boolean;
|
|
203
269
|
/** 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. */
|
|
204
|
-
quotaUser?:
|
|
270
|
+
quotaUser?:
|
|
271
|
+
string;
|
|
205
272
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
206
|
-
upload_protocol?:
|
|
273
|
+
upload_protocol?:
|
|
274
|
+
string;
|
|
207
275
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
208
|
-
uploadType?:
|
|
276
|
+
uploadType?:
|
|
277
|
+
string;
|
|
209
278
|
}): Request<ListOperationsResponse>;
|
|
210
279
|
}
|
|
211
280
|
interface LocationsResource {
|
|
212
281
|
/** Gets information about a location. */
|
|
213
282
|
get(request?: {
|
|
214
283
|
/** V1 error format. */
|
|
215
|
-
"$.xgafv"?:
|
|
284
|
+
"$.xgafv"?:
|
|
285
|
+
string;
|
|
216
286
|
/** OAuth access token. */
|
|
217
|
-
access_token?:
|
|
287
|
+
access_token?:
|
|
288
|
+
string;
|
|
218
289
|
/** Data format for response. */
|
|
219
|
-
alt?:
|
|
290
|
+
alt?:
|
|
291
|
+
string;
|
|
220
292
|
/** JSONP */
|
|
221
|
-
callback?:
|
|
293
|
+
callback?:
|
|
294
|
+
string;
|
|
222
295
|
/** Selector specifying which fields to include in a partial response. */
|
|
223
|
-
fields?:
|
|
296
|
+
fields?:
|
|
297
|
+
string;
|
|
224
298
|
/** 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. */
|
|
225
|
-
key?:
|
|
299
|
+
key?:
|
|
300
|
+
string;
|
|
226
301
|
/** Resource name for the location. */
|
|
227
|
-
name:
|
|
302
|
+
name:
|
|
303
|
+
string;
|
|
228
304
|
/** OAuth 2.0 token for the current user. */
|
|
229
|
-
oauth_token?:
|
|
305
|
+
oauth_token?:
|
|
306
|
+
string;
|
|
230
307
|
/** Returns response with indentations and line breaks. */
|
|
231
|
-
prettyPrint?:
|
|
308
|
+
prettyPrint?:
|
|
309
|
+
boolean;
|
|
232
310
|
/** 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. */
|
|
233
|
-
quotaUser?:
|
|
311
|
+
quotaUser?:
|
|
312
|
+
string;
|
|
234
313
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
235
|
-
upload_protocol?:
|
|
314
|
+
upload_protocol?:
|
|
315
|
+
string;
|
|
236
316
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
237
|
-
uploadType?:
|
|
317
|
+
uploadType?:
|
|
318
|
+
string;
|
|
238
319
|
}): Request<Location>;
|
|
239
320
|
/** Lists information about the supported locations for this service. */
|
|
240
321
|
list(request?: {
|
|
241
322
|
/** V1 error format. */
|
|
242
|
-
"$.xgafv"?:
|
|
323
|
+
"$.xgafv"?:
|
|
324
|
+
string;
|
|
243
325
|
/** OAuth access token. */
|
|
244
|
-
access_token?:
|
|
326
|
+
access_token?:
|
|
327
|
+
string;
|
|
245
328
|
/** Data format for response. */
|
|
246
|
-
alt?:
|
|
329
|
+
alt?:
|
|
330
|
+
string;
|
|
247
331
|
/** JSONP */
|
|
248
|
-
callback?:
|
|
332
|
+
callback?:
|
|
333
|
+
string;
|
|
249
334
|
/** Selector specifying which fields to include in a partial response. */
|
|
250
|
-
fields?:
|
|
335
|
+
fields?:
|
|
336
|
+
string;
|
|
251
337
|
/**
|
|
252
338
|
* A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in
|
|
253
339
|
* [AIP-160](https://google.aip.dev/160).
|
|
254
340
|
*/
|
|
255
|
-
filter?:
|
|
341
|
+
filter?:
|
|
342
|
+
string;
|
|
256
343
|
/** 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. */
|
|
257
|
-
key?:
|
|
344
|
+
key?:
|
|
345
|
+
string;
|
|
258
346
|
/** The resource that owns the locations collection, if applicable. */
|
|
259
|
-
name:
|
|
347
|
+
name:
|
|
348
|
+
string;
|
|
260
349
|
/** OAuth 2.0 token for the current user. */
|
|
261
|
-
oauth_token?:
|
|
350
|
+
oauth_token?:
|
|
351
|
+
string;
|
|
262
352
|
/** The maximum number of results to return. If not set, the service selects a default. */
|
|
263
|
-
pageSize?:
|
|
353
|
+
pageSize?:
|
|
354
|
+
number;
|
|
264
355
|
/** A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page. */
|
|
265
|
-
pageToken?:
|
|
356
|
+
pageToken?:
|
|
357
|
+
string;
|
|
266
358
|
/** Returns response with indentations and line breaks. */
|
|
267
|
-
prettyPrint?:
|
|
359
|
+
prettyPrint?:
|
|
360
|
+
boolean;
|
|
268
361
|
/** 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. */
|
|
269
|
-
quotaUser?:
|
|
362
|
+
quotaUser?:
|
|
363
|
+
string;
|
|
270
364
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
271
|
-
upload_protocol?:
|
|
365
|
+
upload_protocol?:
|
|
366
|
+
string;
|
|
272
367
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
273
|
-
uploadType?:
|
|
368
|
+
uploadType?:
|
|
369
|
+
string;
|
|
274
370
|
}): Request<ListLocationsResponse>;
|
|
275
|
-
operations:
|
|
371
|
+
operations:
|
|
372
|
+
OperationsResource;
|
|
276
373
|
}
|
|
277
374
|
interface ProjectsResource {
|
|
278
|
-
locations:
|
|
375
|
+
locations:
|
|
376
|
+
LocationsResource;
|
|
279
377
|
}
|
|
280
378
|
|
|
281
379
|
const projects: ProjectsResource;
|
package/package.json
CHANGED
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:
|
|
6
|
+
// Revision: 20230424
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|