@maxim_mazurok/gapi.client.metastore-v1 0.0.20221208

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 ADDED
@@ -0,0 +1,2106 @@
1
+ /* Type definitions for non-npm package Dataproc Metastore API v1 0.0 */
2
+ // Project: https://cloud.google.com/dataproc-metastore/docs
3
+ // Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok>
4
+ // Nick Amoscato <https://github.com/namoscato>
5
+ // Declan Vong <https://github.com/declanvong>
6
+ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
7
+
8
+ // IMPORTANT
9
+ // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
+ // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
+ // Generated from: https://metastore.googleapis.com/$discovery/rest?version=v1
12
+ // Revision: 20221208
13
+
14
+ /// <reference types="gapi.client" />
15
+
16
+ declare namespace gapi.client {
17
+ /** Load Dataproc Metastore API v1 */
18
+ function load(urlOrObject: "https://metastore.googleapis.com/$discovery/rest?version=v1"): Promise<void>;
19
+ /** @deprecated Please load APIs with discovery documents. */
20
+ function load(name: "metastore", version: "v1"): Promise<void>;
21
+ /** @deprecated Please load APIs with discovery documents. */
22
+ function load(name: "metastore", version: "v1", callback: () => any): void;
23
+
24
+ namespace metastore {
25
+ interface AuditConfig {
26
+ /** The configuration for logging of each type of permission. */
27
+ auditLogConfigs?: AuditLogConfig[];
28
+ /** Specifies a service that will be enabled for audit logging. For example, storage.googleapis.com, cloudsql.googleapis.com. allServices is a special value that covers all services. */
29
+ service?: string;
30
+ }
31
+ interface AuditLogConfig {
32
+ /** Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members. */
33
+ exemptedMembers?: string[];
34
+ /** The log type that this config enables. */
35
+ logType?: string;
36
+ }
37
+ interface BackendMetastore {
38
+ /** The type of the backend metastore. */
39
+ metastoreType?: string;
40
+ /**
41
+ * The relative resource name of the metastore that is being federated. The formats of the relative resource names for the currently supported metastores are listed below: Dataplex
42
+ * projects/{project_id}/locations/{location}/lakes/{lake_id} BigQuery projects/{project_id} Dataproc Metastore projects/{project_id}/locations/{location}/services/{service_id}
43
+ */
44
+ name?: string;
45
+ }
46
+ interface Backup {
47
+ /** Output only. The time when the backup was started. */
48
+ createTime?: string;
49
+ /** The description of the backup. */
50
+ description?: string;
51
+ /** Output only. The time when the backup finished creating. */
52
+ endTime?: string;
53
+ /** Immutable. The relative resource name of the backup, in the following form:projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id} */
54
+ name?: string;
55
+ /** Output only. Services that are restoring from the backup. */
56
+ restoringServices?: string[];
57
+ /** Output only. The revision of the service at the time of backup. */
58
+ serviceRevision?: Service;
59
+ /** Output only. The current state of the backup. */
60
+ state?: string;
61
+ }
62
+ interface Binding {
63
+ /**
64
+ * 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
65
+ * 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
66
+ * resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
67
+ */
68
+ condition?: Expr;
69
+ /**
70
+ * 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
71
+ * 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
72
+ * 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
73
+ * example, alice@example.com . serviceAccount:{emailid}: An email address that represents a Google service account. For example, my-other-app@appspot.gserviceaccount.com.
74
+ * serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]: An identifier for a Kubernetes service account
75
+ * (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
76
+ * address that represents a Google group. For example, admins@example.com. deleted:user:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a user that
77
+ * 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
78
+ * 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.
79
+ * For example, my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901. If the service account is undeleted, this value reverts to serviceAccount:{emailid} and the
80
+ * 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
81
+ * 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
82
+ * the role in the binding. domain:{domain}: The G Suite domain (primary) that represents all the users of that domain. For example, google.com or example.com.
83
+ */
84
+ members?: string[];
85
+ /** Role that is assigned to the list of members, or principals. For example, roles/viewer, roles/editor, or roles/owner. */
86
+ role?: string;
87
+ }
88
+ // tslint:disable-next-line:no-empty-interface
89
+ interface CancelOperationRequest {
90
+ }
91
+ interface Consumer {
92
+ /** Output only. The URI of the endpoint used to access the metastore service. */
93
+ endpointUri?: string;
94
+ /**
95
+ * Immutable. The subnetwork of the customer project from which an IP address is reserved and used as the Dataproc Metastore service's endpoint. It is accessible to hosts in the subnet
96
+ * and to all hosts in a subnet in the same region and same network. There must be at least one IP address available in the subnet's primary range. The subnet is specified in the
97
+ * following form:projects/{project_number}/regions/{region_id}/subnetworks/{subnetwork_id}
98
+ */
99
+ subnetwork?: string;
100
+ }
101
+ interface DatabaseDump {
102
+ /** The type of the database. */
103
+ databaseType?: string;
104
+ /** A Cloud Storage object or folder URI that specifies the source from which to import metadata. It must begin with gs://. */
105
+ gcsUri?: string;
106
+ /** The name of the source database. */
107
+ sourceDatabase?: string;
108
+ /** Optional. The type of the database dump. If unspecified, defaults to MYSQL. */
109
+ type?: string;
110
+ }
111
+ // tslint:disable-next-line:no-empty-interface
112
+ interface Empty {
113
+ }
114
+ interface EncryptionConfig {
115
+ /**
116
+ * The fully qualified customer provided Cloud KMS key name to use for customer data encryption, in the following
117
+ * form:projects/{project_number}/locations/{location_id}/keyRings/{key_ring_id}/cryptoKeys/{crypto_key_id}.
118
+ */
119
+ kmsKey?: string;
120
+ }
121
+ interface ExportMetadataRequest {
122
+ /** Optional. The type of the database dump. If unspecified, defaults to MYSQL. */
123
+ databaseDumpType?: string;
124
+ /** A Cloud Storage URI of a folder, in the format gs:///. A sub-folder containing exported files will be created below it. */
125
+ destinationGcsFolder?: string;
126
+ /**
127
+ * Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a
128
+ * duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the server
129
+ * ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format).
130
+ * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
131
+ */
132
+ requestId?: string;
133
+ }
134
+ interface Expr {
135
+ /** Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. */
136
+ description?: string;
137
+ /** Textual representation of an expression in Common Expression Language syntax. */
138
+ expression?: string;
139
+ /** Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. */
140
+ location?: string;
141
+ /** Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression. */
142
+ title?: string;
143
+ }
144
+ interface Federation {
145
+ /**
146
+ * A map from BackendMetastore rank to BackendMetastores from which the federation service serves metadata at query time. The map key represents the order in which BackendMetastores
147
+ * should be evaluated to resolve database names at query time and should be greater than or equal to zero. A BackendMetastore with a lower number will be evaluated before a
148
+ * BackendMetastore with a higher number.
149
+ */
150
+ backendMetastores?: { [P in string]: BackendMetastore };
151
+ /** Output only. The time when the metastore federation was created. */
152
+ createTime?: string;
153
+ /** Output only. The federation endpoint. */
154
+ endpointUri?: string;
155
+ /** User-defined labels for the metastore federation. */
156
+ labels?: { [P in string]: string };
157
+ /** Immutable. The relative resource name of the federation, of the form: projects/{project_number}/locations/{location_id}/federations/{federation_id}`. */
158
+ name?: string;
159
+ /** Output only. The current state of the federation. */
160
+ state?: string;
161
+ /** Output only. Additional information about the current state of the metastore federation, if available. */
162
+ stateMessage?: string;
163
+ /** Output only. The globally unique resource identifier of the metastore federation. */
164
+ uid?: string;
165
+ /** Output only. The time when the metastore federation was last updated. */
166
+ updateTime?: string;
167
+ /** Immutable. The Apache Hive metastore version of the federation. All backend metastore versions must be compatible with the federation version. */
168
+ version?: string;
169
+ }
170
+ interface HiveMetastoreConfig {
171
+ /**
172
+ * A mapping of Hive metastore configuration key-value pairs to apply to the Hive metastore (configured in hive-site.xml). The mappings override system defaults (some keys cannot be
173
+ * overridden). These overrides are also applied to auxiliary versions and can be further customized in the auxiliary version's AuxiliaryVersionConfig.
174
+ */
175
+ configOverrides?: { [P in string]: string };
176
+ /**
177
+ * Information used to configure the Hive metastore service as a service principal in a Kerberos realm. To disable Kerberos, use the UpdateService method and specify this field's path
178
+ * (hive_metastore_config.kerberos_config) in the request's update_mask while omitting this field from the request's service.
179
+ */
180
+ kerberosConfig?: KerberosConfig;
181
+ /** Immutable. The Hive metastore schema version. */
182
+ version?: string;
183
+ }
184
+ interface HiveMetastoreVersion {
185
+ /** Whether version will be chosen by the server if a metastore service is created with a HiveMetastoreConfig that omits the version. */
186
+ isDefault?: boolean;
187
+ /** The semantic version of the Hive Metastore software. */
188
+ version?: string;
189
+ }
190
+ interface KerberosConfig {
191
+ /** A Kerberos keytab file that can be used to authenticate a service principal with a Kerberos Key Distribution Center (KDC). */
192
+ keytab?: Secret;
193
+ /**
194
+ * A Cloud Storage URI that specifies the path to a krb5.conf file. It is of the form gs://{bucket_name}/path/to/krb5.conf, although the file does not need to be named krb5.conf
195
+ * explicitly.
196
+ */
197
+ krb5ConfigGcsUri?: string;
198
+ /** A Kerberos principal that exists in the both the keytab the KDC to authenticate as. A typical principal is of the form primary/instance@REALM, but there is no exact format. */
199
+ principal?: string;
200
+ }
201
+ interface ListBackupsResponse {
202
+ /** The backups of the specified service. */
203
+ backups?: Backup[];
204
+ /** A token that can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages. */
205
+ nextPageToken?: string;
206
+ /** Locations that could not be reached. */
207
+ unreachable?: string[];
208
+ }
209
+ interface ListFederationsResponse {
210
+ /** The services in the specified location. */
211
+ federations?: Federation[];
212
+ /** A token that can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages. */
213
+ nextPageToken?: string;
214
+ /** Locations that could not be reached. */
215
+ unreachable?: string[];
216
+ }
217
+ interface ListLocationsResponse {
218
+ /** A list of locations that matches the specified filter in the request. */
219
+ locations?: Location[];
220
+ /** The standard List next-page token. */
221
+ nextPageToken?: string;
222
+ }
223
+ interface ListMetadataImportsResponse {
224
+ /** The imports in the specified service. */
225
+ metadataImports?: MetadataImport[];
226
+ /** A token that can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages. */
227
+ nextPageToken?: string;
228
+ /** Locations that could not be reached. */
229
+ unreachable?: string[];
230
+ }
231
+ interface ListOperationsResponse {
232
+ /** The standard List next-page token. */
233
+ nextPageToken?: string;
234
+ /** A list of operations that matches the specified filter in the request. */
235
+ operations?: Operation[];
236
+ }
237
+ interface ListServicesResponse {
238
+ /** A token that can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages. */
239
+ nextPageToken?: string;
240
+ /** The services in the specified location. */
241
+ services?: Service[];
242
+ /** Locations that could not be reached. */
243
+ unreachable?: string[];
244
+ }
245
+ interface Location {
246
+ /** The friendly name for this location, typically a nearby city name. For example, "Tokyo". */
247
+ displayName?: string;
248
+ /** Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"} */
249
+ labels?: { [P in string]: string };
250
+ /** The canonical id for this location. For example: "us-east1". */
251
+ locationId?: string;
252
+ /** Service-specific metadata. For example the available capacity at the given location. */
253
+ metadata?: { [P in string]: any };
254
+ /** Resource name for the location, which may vary between implementations. For example: "projects/example-project/locations/us-east1" */
255
+ name?: string;
256
+ }
257
+ interface LocationMetadata {
258
+ /**
259
+ * The versions of Hive Metastore that can be used when creating a new metastore service in this location. The server guarantees that exactly one HiveMetastoreVersion in the list will
260
+ * set is_default.
261
+ */
262
+ supportedHiveMetastoreVersions?: HiveMetastoreVersion[];
263
+ }
264
+ interface MaintenanceWindow {
265
+ /** The day of week, when the window starts. */
266
+ dayOfWeek?: string;
267
+ /** The hour of day (0-23) when the window starts. */
268
+ hourOfDay?: number;
269
+ }
270
+ interface MetadataExport {
271
+ /** Output only. The type of the database dump. */
272
+ databaseDumpType?: string;
273
+ /** Output only. A Cloud Storage URI of a folder that metadata are exported to, in the form of gs:////, where is automatically generated. */
274
+ destinationGcsUri?: string;
275
+ /** Output only. The time when the export ended. */
276
+ endTime?: string;
277
+ /** Output only. The time when the export started. */
278
+ startTime?: string;
279
+ /** Output only. The current state of the export. */
280
+ state?: string;
281
+ }
282
+ interface MetadataImport {
283
+ /** Output only. The time when the metadata import was started. */
284
+ createTime?: string;
285
+ /** Immutable. A database dump from a pre-existing metastore's database. */
286
+ databaseDump?: DatabaseDump;
287
+ /** The description of the metadata import. */
288
+ description?: string;
289
+ /** Output only. The time when the metadata import finished. */
290
+ endTime?: string;
291
+ /**
292
+ * Immutable. The relative resource name of the metadata import, of the
293
+ * form:projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{metadata_import_id}.
294
+ */
295
+ name?: string;
296
+ /** Output only. The current state of the metadata import. */
297
+ state?: string;
298
+ /** Output only. The time when the metadata import was last updated. */
299
+ updateTime?: string;
300
+ }
301
+ interface MetadataManagementActivity {
302
+ /** Output only. The latest metadata exports of the metastore service. */
303
+ metadataExports?: MetadataExport[];
304
+ /** Output only. The latest restores of the metastore service. */
305
+ restores?: Restore[];
306
+ }
307
+ interface NetworkConfig {
308
+ /** Immutable. The consumer-side network configuration for the Dataproc Metastore instance. */
309
+ consumers?: Consumer[];
310
+ }
311
+ interface Operation {
312
+ /** 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. */
313
+ done?: boolean;
314
+ /** The error result of the operation in case of failure or cancellation. */
315
+ error?: Status;
316
+ /**
317
+ * 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
318
+ * metadata. Any method that returns a long-running operation should document the metadata type, if any.
319
+ */
320
+ metadata?: { [P in string]: any };
321
+ /**
322
+ * 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
323
+ * with operations/{unique_id}.
324
+ */
325
+ name?: string;
326
+ /**
327
+ * 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 original
328
+ * 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.
329
+ * For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.
330
+ */
331
+ response?: { [P in string]: any };
332
+ }
333
+ interface OperationMetadata {
334
+ /** Output only. API version used to start the operation. */
335
+ apiVersion?: string;
336
+ /** Output only. The time the operation was created. */
337
+ createTime?: string;
338
+ /** Output only. The time the operation finished running. */
339
+ endTime?: string;
340
+ /**
341
+ * Output only. Identifies whether the caller has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a
342
+ * google.rpc.Status.code of 1, corresponding to Code.CANCELLED.
343
+ */
344
+ requestedCancellation?: boolean;
345
+ /** Output only. Human-readable status of the operation, if any. */
346
+ statusMessage?: string;
347
+ /** Output only. Server-defined resource path for the target of the operation. */
348
+ target?: string;
349
+ /** Output only. Name of the verb executed by the operation. */
350
+ verb?: string;
351
+ }
352
+ interface Policy {
353
+ /** Specifies cloud audit logging configuration for this policy. */
354
+ auditConfigs?: AuditConfig[];
355
+ /**
356
+ * Associates a list of members, or principals, with a role. Optionally, may specify a condition that determines how and when the bindings are applied. Each of the bindings must
357
+ * contain at least one principal.The bindings in a Policy can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal
358
+ * counts towards these limits. For example, if the bindings grant 50 different roles to user:alice@example.com, and not to any other principal, then you can add another 1,450
359
+ * principals to the bindings in the Policy.
360
+ */
361
+ bindings?: Binding[];
362
+ /**
363
+ * 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
364
+ * 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
365
+ * 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
366
+ * 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
367
+ * version 3 policy are lost.
368
+ */
369
+ etag?: string;
370
+ /**
371
+ * 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
372
+ * 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
373
+ * Changing a conditional role binding in a policy Removing any role binding, with or without a condition, from a policy that includes conditionsImportant: If you use IAM Conditions,
374
+ * 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
375
+ * 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
376
+ * which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
377
+ */
378
+ version?: number;
379
+ }
380
+ interface Restore {
381
+ /**
382
+ * Output only. The relative resource name of the metastore service backup to restore from, in the following
383
+ * form:projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}.
384
+ */
385
+ backup?: string;
386
+ /** Output only. The restore details containing the revision of the service to be restored to, in format of JSON. */
387
+ details?: string;
388
+ /** Output only. The time when the restore ended. */
389
+ endTime?: string;
390
+ /** Output only. The time when the restore started. */
391
+ startTime?: string;
392
+ /** Output only. The current state of the restore. */
393
+ state?: string;
394
+ /** Output only. The type of restore. */
395
+ type?: string;
396
+ }
397
+ interface RestoreServiceRequest {
398
+ /**
399
+ * Required. The relative resource name of the metastore service backup to restore from, in the following
400
+ * form:projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}.
401
+ */
402
+ backup?: string;
403
+ /**
404
+ * Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a
405
+ * duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the server
406
+ * ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format).
407
+ * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
408
+ */
409
+ requestId?: string;
410
+ /** Optional. The type of restore. If unspecified, defaults to METADATA_ONLY. */
411
+ restoreType?: string;
412
+ }
413
+ interface Secret {
414
+ /** The relative resource name of a Secret Manager secret version, in the following form:projects/{project_number}/secrets/{secret_id}/versions/{version_id}. */
415
+ cloudSecret?: string;
416
+ }
417
+ interface Service {
418
+ /** Output only. A Cloud Storage URI (starting with gs://) that specifies where artifacts related to the metastore service are stored. */
419
+ artifactGcsUri?: string;
420
+ /** Output only. The time when the metastore service was created. */
421
+ createTime?: string;
422
+ /** Immutable. The database type that the Metastore service stores its data. */
423
+ databaseType?: string;
424
+ /** Immutable. Information used to configure the Dataproc Metastore service to encrypt customer data at rest. Cannot be updated. */
425
+ encryptionConfig?: EncryptionConfig;
426
+ /** Output only. The URI of the endpoint used to access the metastore service. */
427
+ endpointUri?: string;
428
+ /** Configuration information specific to running Hive metastore software as the metastore service. */
429
+ hiveMetastoreConfig?: HiveMetastoreConfig;
430
+ /** User-defined labels for the metastore service. */
431
+ labels?: { [P in string]: string };
432
+ /**
433
+ * The one hour maintenance window of the metastore service. This specifies when the service can be restarted for maintenance purposes in UTC time. Maintenance window is not needed for
434
+ * services with the SPANNER database type.
435
+ */
436
+ maintenanceWindow?: MaintenanceWindow;
437
+ /** Output only. The metadata management activities of the metastore service. */
438
+ metadataManagementActivity?: MetadataManagementActivity;
439
+ /** Immutable. The relative resource name of the metastore service, in the following format:projects/{project_number}/locations/{location_id}/services/{service_id}. */
440
+ name?: string;
441
+ /**
442
+ * Immutable. The relative resource name of the VPC network on which the instance can be accessed. It is specified in the following
443
+ * form:projects/{project_number}/global/networks/{network_id}.
444
+ */
445
+ network?: string;
446
+ /** The configuration specifying the network settings for the Dataproc Metastore service. */
447
+ networkConfig?: NetworkConfig;
448
+ /** The TCP port at which the metastore service is reached. Default: 9083. */
449
+ port?: number;
450
+ /** Immutable. The release channel of the service. If unspecified, defaults to STABLE. */
451
+ releaseChannel?: string;
452
+ /** Output only. The current state of the metastore service. */
453
+ state?: string;
454
+ /** Output only. Additional information about the current state of the metastore service, if available. */
455
+ stateMessage?: string;
456
+ /** The configuration specifying telemetry settings for the Dataproc Metastore service. If unspecified defaults to JSON. */
457
+ telemetryConfig?: TelemetryConfig;
458
+ /** The tier of the service. */
459
+ tier?: string;
460
+ /** Output only. The globally unique resource identifier of the metastore service. */
461
+ uid?: string;
462
+ /** Output only. The time when the metastore service was last updated. */
463
+ updateTime?: string;
464
+ }
465
+ interface SetIamPolicyRequest {
466
+ /**
467
+ * REQUIRED: The complete policy to be applied to the resource. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud
468
+ * services (such as Projects) might reject them.
469
+ */
470
+ policy?: Policy;
471
+ /**
472
+ * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the mask will be modified. If no mask is provided, the following default mask is
473
+ * used:paths: "bindings, etag"
474
+ */
475
+ updateMask?: string;
476
+ }
477
+ interface Status {
478
+ /** The status code, which should be an enum value of google.rpc.Code. */
479
+ code?: number;
480
+ /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
481
+ details?: Array<{ [P in string]: any }>;
482
+ /**
483
+ * 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
484
+ * client.
485
+ */
486
+ message?: string;
487
+ }
488
+ interface TelemetryConfig {
489
+ /** The output format of the Dataproc Metastore service's logs. */
490
+ logFormat?: string;
491
+ }
492
+ interface TestIamPermissionsRequest {
493
+ /**
494
+ * The set of permissions to check for the resource. Permissions with wildcards (such as * or storage.*) are not allowed. For more information see IAM Overview
495
+ * (https://cloud.google.com/iam/docs/overview#permissions).
496
+ */
497
+ permissions?: string[];
498
+ }
499
+ interface TestIamPermissionsResponse {
500
+ /** A subset of TestPermissionsRequest.permissions that the caller is allowed. */
501
+ permissions?: string[];
502
+ }
503
+ interface OperationsResource {
504
+ /**
505
+ * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support
506
+ * this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation
507
+ * completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a
508
+ * google.rpc.Status.code of 1, corresponding to Code.CANCELLED.
509
+ */
510
+ cancel(request: {
511
+ /** V1 error format. */
512
+ "$.xgafv"?: string;
513
+ /** OAuth access token. */
514
+ access_token?: string;
515
+ /** Data format for response. */
516
+ alt?: string;
517
+ /** JSONP */
518
+ callback?: string;
519
+ /** Selector specifying which fields to include in a partial response. */
520
+ fields?: string;
521
+ /** 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. */
522
+ key?: string;
523
+ /** The name of the operation resource to be cancelled. */
524
+ name: string;
525
+ /** OAuth 2.0 token for the current user. */
526
+ oauth_token?: string;
527
+ /** Returns response with indentations and line breaks. */
528
+ prettyPrint?: boolean;
529
+ /** 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. */
530
+ quotaUser?: string;
531
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
532
+ upload_protocol?: string;
533
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
534
+ uploadType?: string;
535
+ /** Request body */
536
+ resource: CancelOperationRequest;
537
+ }): Request<{}>;
538
+ cancel(request: {
539
+ /** V1 error format. */
540
+ "$.xgafv"?: string;
541
+ /** OAuth access token. */
542
+ access_token?: string;
543
+ /** Data format for response. */
544
+ alt?: string;
545
+ /** JSONP */
546
+ callback?: string;
547
+ /** Selector specifying which fields to include in a partial response. */
548
+ fields?: string;
549
+ /** 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. */
550
+ key?: string;
551
+ /** The name of the operation resource to be cancelled. */
552
+ name: string;
553
+ /** OAuth 2.0 token for the current user. */
554
+ oauth_token?: string;
555
+ /** Returns response with indentations and line breaks. */
556
+ prettyPrint?: boolean;
557
+ /** 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. */
558
+ quotaUser?: string;
559
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
560
+ upload_protocol?: string;
561
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
562
+ uploadType?: string;
563
+ },
564
+ body: CancelOperationRequest): Request<{}>;
565
+ }
566
+ interface FederationsResource {
567
+ /** Creates a metastore federation in a project and location. */
568
+ create(request: {
569
+ /** V1 error format. */
570
+ "$.xgafv"?: string;
571
+ /** OAuth access token. */
572
+ access_token?: string;
573
+ /** Data format for response. */
574
+ alt?: string;
575
+ /** JSONP */
576
+ callback?: string;
577
+ /**
578
+ * Required. The ID of the metastore federation, which is used as the final component of the metastore federation's name.This value must be between 2 and 63 characters long
579
+ * inclusive, begin with a letter, end with a letter or number, and consist of alpha-numeric ASCII characters or hyphens.
580
+ */
581
+ federationId?: string;
582
+ /** Selector specifying which fields to include in a partial response. */
583
+ fields?: string;
584
+ /** 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. */
585
+ key?: string;
586
+ /** OAuth 2.0 token for the current user. */
587
+ oauth_token?: string;
588
+ /** Required. The relative resource name of the location in which to create a federation service, in the following form:projects/{project_number}/locations/{location_id}. */
589
+ parent: string;
590
+ /** Returns response with indentations and line breaks. */
591
+ prettyPrint?: boolean;
592
+ /** 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. */
593
+ quotaUser?: string;
594
+ /**
595
+ * Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a
596
+ * duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the
597
+ * server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID
598
+ * (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
599
+ */
600
+ requestId?: string;
601
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
602
+ upload_protocol?: string;
603
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
604
+ uploadType?: string;
605
+ /** Request body */
606
+ resource: Federation;
607
+ }): Request<Operation>;
608
+ create(request: {
609
+ /** V1 error format. */
610
+ "$.xgafv"?: string;
611
+ /** OAuth access token. */
612
+ access_token?: string;
613
+ /** Data format for response. */
614
+ alt?: string;
615
+ /** JSONP */
616
+ callback?: string;
617
+ /**
618
+ * Required. The ID of the metastore federation, which is used as the final component of the metastore federation's name.This value must be between 2 and 63 characters long
619
+ * inclusive, begin with a letter, end with a letter or number, and consist of alpha-numeric ASCII characters or hyphens.
620
+ */
621
+ federationId?: string;
622
+ /** Selector specifying which fields to include in a partial response. */
623
+ fields?: string;
624
+ /** 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. */
625
+ key?: string;
626
+ /** OAuth 2.0 token for the current user. */
627
+ oauth_token?: string;
628
+ /** Required. The relative resource name of the location in which to create a federation service, in the following form:projects/{project_number}/locations/{location_id}. */
629
+ parent: string;
630
+ /** Returns response with indentations and line breaks. */
631
+ prettyPrint?: boolean;
632
+ /** 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. */
633
+ quotaUser?: string;
634
+ /**
635
+ * Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a
636
+ * duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the
637
+ * server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID
638
+ * (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
639
+ */
640
+ requestId?: string;
641
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
642
+ upload_protocol?: string;
643
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
644
+ uploadType?: string;
645
+ },
646
+ body: Federation): Request<Operation>;
647
+ /** Deletes a single federation. */
648
+ delete(request?: {
649
+ /** V1 error format. */
650
+ "$.xgafv"?: string;
651
+ /** OAuth access token. */
652
+ access_token?: string;
653
+ /** Data format for response. */
654
+ alt?: string;
655
+ /** JSONP */
656
+ callback?: string;
657
+ /** Selector specifying which fields to include in a partial response. */
658
+ fields?: string;
659
+ /** 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. */
660
+ key?: string;
661
+ /** Required. The relative resource name of the metastore federation to delete, in the following form:projects/{project_number}/locations/{location_id}/federations/{federation_id}. */
662
+ name: string;
663
+ /** OAuth 2.0 token for the current user. */
664
+ oauth_token?: string;
665
+ /** Returns response with indentations and line breaks. */
666
+ prettyPrint?: boolean;
667
+ /** 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. */
668
+ quotaUser?: string;
669
+ /**
670
+ * Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a
671
+ * duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the
672
+ * server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID
673
+ * (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
674
+ */
675
+ requestId?: string;
676
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
677
+ upload_protocol?: string;
678
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
679
+ uploadType?: string;
680
+ }): Request<Operation>;
681
+ /** Gets the details of a single federation. */
682
+ get(request?: {
683
+ /** V1 error format. */
684
+ "$.xgafv"?: string;
685
+ /** OAuth access token. */
686
+ access_token?: string;
687
+ /** Data format for response. */
688
+ alt?: string;
689
+ /** JSONP */
690
+ callback?: string;
691
+ /** Selector specifying which fields to include in a partial response. */
692
+ fields?: string;
693
+ /** 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. */
694
+ key?: string;
695
+ /**
696
+ * Required. The relative resource name of the metastore federation to retrieve, in the following
697
+ * form:projects/{project_number}/locations/{location_id}/federations/{federation_id}.
698
+ */
699
+ name: string;
700
+ /** OAuth 2.0 token for the current user. */
701
+ oauth_token?: string;
702
+ /** Returns response with indentations and line breaks. */
703
+ prettyPrint?: boolean;
704
+ /** 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. */
705
+ quotaUser?: string;
706
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
707
+ upload_protocol?: string;
708
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
709
+ uploadType?: string;
710
+ }): Request<Federation>;
711
+ /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
712
+ getIamPolicy(request?: {
713
+ /** V1 error format. */
714
+ "$.xgafv"?: string;
715
+ /** OAuth access token. */
716
+ access_token?: string;
717
+ /** Data format for response. */
718
+ alt?: string;
719
+ /** JSONP */
720
+ callback?: string;
721
+ /** Selector specifying which fields to include in a partial response. */
722
+ fields?: string;
723
+ /** 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. */
724
+ key?: string;
725
+ /** OAuth 2.0 token for the current user. */
726
+ oauth_token?: string;
727
+ /**
728
+ * Optional. The maximum policy version that will be used to format the policy.Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.Requests for
729
+ * policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset.The policy in
730
+ * the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional
731
+ * role bindings, the response uses version 1.To learn which resources support conditions in their IAM policies, see the IAM documentation
732
+ * (https://cloud.google.com/iam/help/conditions/resource-policies).
733
+ */
734
+ "options.requestedPolicyVersion"?: number;
735
+ /** Returns response with indentations and line breaks. */
736
+ prettyPrint?: boolean;
737
+ /** 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. */
738
+ quotaUser?: string;
739
+ /**
740
+ * REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this
741
+ * field.
742
+ */
743
+ resource: string;
744
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
745
+ upload_protocol?: string;
746
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
747
+ uploadType?: string;
748
+ }): Request<Policy>;
749
+ /** Lists federations in a project and location. */
750
+ list(request?: {
751
+ /** V1 error format. */
752
+ "$.xgafv"?: string;
753
+ /** OAuth access token. */
754
+ access_token?: string;
755
+ /** Data format for response. */
756
+ alt?: string;
757
+ /** JSONP */
758
+ callback?: string;
759
+ /** Selector specifying which fields to include in a partial response. */
760
+ fields?: string;
761
+ /** Optional. The filter to apply to list results. */
762
+ filter?: string;
763
+ /** 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. */
764
+ key?: string;
765
+ /** OAuth 2.0 token for the current user. */
766
+ oauth_token?: string;
767
+ /**
768
+ * Optional. Specify the ordering of results as described in Sorting Order (https://cloud.google.com/apis/design/design_patterns#sorting_order). If not specified, the results will
769
+ * be sorted in the default order.
770
+ */
771
+ orderBy?: string;
772
+ /**
773
+ * Optional. The maximum number of federations to return. The response may contain less than the maximum number. If unspecified, no more than 500 services are returned. The maximum
774
+ * value is 1000; values above 1000 are changed to 1000.
775
+ */
776
+ pageSize?: number;
777
+ /**
778
+ * Optional. A page token, received from a previous ListFederationServices call. Provide this token to retrieve the subsequent page.To retrieve the first page, supply an empty page
779
+ * token.When paginating, other parameters provided to ListFederationServices must match the call that provided the page token.
780
+ */
781
+ pageToken?: string;
782
+ /** Required. The relative resource name of the location of metastore federations to list, in the following form: projects/{project_number}/locations/{location_id}. */
783
+ parent: string;
784
+ /** Returns response with indentations and line breaks. */
785
+ prettyPrint?: boolean;
786
+ /** 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. */
787
+ quotaUser?: string;
788
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
789
+ upload_protocol?: string;
790
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
791
+ uploadType?: string;
792
+ }): Request<ListFederationsResponse>;
793
+ /** Updates the fields of a federation. */
794
+ patch(request: {
795
+ /** V1 error format. */
796
+ "$.xgafv"?: string;
797
+ /** OAuth access token. */
798
+ access_token?: string;
799
+ /** Data format for response. */
800
+ alt?: string;
801
+ /** JSONP */
802
+ callback?: string;
803
+ /** Selector specifying which fields to include in a partial response. */
804
+ fields?: string;
805
+ /** 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. */
806
+ key?: string;
807
+ /** Immutable. The relative resource name of the federation, of the form: projects/{project_number}/locations/{location_id}/federations/{federation_id}`. */
808
+ name: string;
809
+ /** OAuth 2.0 token for the current user. */
810
+ oauth_token?: string;
811
+ /** Returns response with indentations and line breaks. */
812
+ prettyPrint?: boolean;
813
+ /** 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. */
814
+ quotaUser?: string;
815
+ /**
816
+ * Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a
817
+ * duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the
818
+ * server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID
819
+ * (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
820
+ */
821
+ requestId?: string;
822
+ /**
823
+ * Required. A field mask used to specify the fields to be overwritten in the metastore federation resource by the update. Fields specified in the update_mask are relative to the
824
+ * resource (not to the full request). A field is overwritten if it is in the mask.
825
+ */
826
+ updateMask?: string;
827
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
828
+ upload_protocol?: string;
829
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
830
+ uploadType?: string;
831
+ /** Request body */
832
+ resource: Federation;
833
+ }): Request<Operation>;
834
+ patch(request: {
835
+ /** V1 error format. */
836
+ "$.xgafv"?: string;
837
+ /** OAuth access token. */
838
+ access_token?: string;
839
+ /** Data format for response. */
840
+ alt?: string;
841
+ /** JSONP */
842
+ callback?: string;
843
+ /** Selector specifying which fields to include in a partial response. */
844
+ fields?: string;
845
+ /** 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. */
846
+ key?: string;
847
+ /** Immutable. The relative resource name of the federation, of the form: projects/{project_number}/locations/{location_id}/federations/{federation_id}`. */
848
+ name: string;
849
+ /** OAuth 2.0 token for the current user. */
850
+ oauth_token?: string;
851
+ /** Returns response with indentations and line breaks. */
852
+ prettyPrint?: boolean;
853
+ /** 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. */
854
+ quotaUser?: string;
855
+ /**
856
+ * Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a
857
+ * duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the
858
+ * server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID
859
+ * (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
860
+ */
861
+ requestId?: string;
862
+ /**
863
+ * Required. A field mask used to specify the fields to be overwritten in the metastore federation resource by the update. Fields specified in the update_mask are relative to the
864
+ * resource (not to the full request). A field is overwritten if it is in the mask.
865
+ */
866
+ updateMask?: string;
867
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
868
+ upload_protocol?: string;
869
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
870
+ uploadType?: string;
871
+ },
872
+ body: Federation): Request<Operation>;
873
+ /** Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors. */
874
+ setIamPolicy(request: {
875
+ /** V1 error format. */
876
+ "$.xgafv"?: string;
877
+ /** OAuth access token. */
878
+ access_token?: string;
879
+ /** Data format for response. */
880
+ alt?: string;
881
+ /** JSONP */
882
+ callback?: string;
883
+ /** Selector specifying which fields to include in a partial response. */
884
+ fields?: string;
885
+ /** 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. */
886
+ key?: string;
887
+ /** OAuth 2.0 token for the current user. */
888
+ oauth_token?: string;
889
+ /** Returns response with indentations and line breaks. */
890
+ prettyPrint?: boolean;
891
+ /** 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. */
892
+ quotaUser?: string;
893
+ /**
894
+ * REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this
895
+ * field.
896
+ */
897
+ resource: string;
898
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
899
+ upload_protocol?: string;
900
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
901
+ uploadType?: string;
902
+ },
903
+ body: SetIamPolicyRequest): Request<Policy>;
904
+ /**
905
+ * Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This
906
+ * operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
907
+ */
908
+ testIamPermissions(request: {
909
+ /** V1 error format. */
910
+ "$.xgafv"?: string;
911
+ /** OAuth access token. */
912
+ access_token?: string;
913
+ /** Data format for response. */
914
+ alt?: string;
915
+ /** JSONP */
916
+ callback?: string;
917
+ /** Selector specifying which fields to include in a partial response. */
918
+ fields?: string;
919
+ /** 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. */
920
+ key?: string;
921
+ /** OAuth 2.0 token for the current user. */
922
+ oauth_token?: string;
923
+ /** Returns response with indentations and line breaks. */
924
+ prettyPrint?: boolean;
925
+ /** 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. */
926
+ quotaUser?: string;
927
+ /**
928
+ * REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for
929
+ * this field.
930
+ */
931
+ resource: string;
932
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
933
+ upload_protocol?: string;
934
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
935
+ uploadType?: string;
936
+ },
937
+ body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
938
+ }
939
+ interface OperationsResource {
940
+ /**
941
+ * Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't
942
+ * support this method, it returns google.rpc.Code.UNIMPLEMENTED.
943
+ */
944
+ delete(request?: {
945
+ /** V1 error format. */
946
+ "$.xgafv"?: string;
947
+ /** OAuth access token. */
948
+ access_token?: string;
949
+ /** Data format for response. */
950
+ alt?: string;
951
+ /** JSONP */
952
+ callback?: string;
953
+ /** Selector specifying which fields to include in a partial response. */
954
+ fields?: string;
955
+ /** 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. */
956
+ key?: string;
957
+ /** The name of the operation resource to be deleted. */
958
+ name: string;
959
+ /** OAuth 2.0 token for the current user. */
960
+ oauth_token?: string;
961
+ /** Returns response with indentations and line breaks. */
962
+ prettyPrint?: boolean;
963
+ /** 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. */
964
+ quotaUser?: string;
965
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
966
+ upload_protocol?: string;
967
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
968
+ uploadType?: string;
969
+ }): Request<{}>;
970
+ /** 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. */
971
+ get(request?: {
972
+ /** V1 error format. */
973
+ "$.xgafv"?: string;
974
+ /** OAuth access token. */
975
+ access_token?: string;
976
+ /** Data format for response. */
977
+ alt?: string;
978
+ /** JSONP */
979
+ callback?: string;
980
+ /** Selector specifying which fields to include in a partial response. */
981
+ fields?: string;
982
+ /** 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. */
983
+ key?: string;
984
+ /** The name of the operation resource. */
985
+ name: string;
986
+ /** OAuth 2.0 token for the current user. */
987
+ oauth_token?: string;
988
+ /** Returns response with indentations and line breaks. */
989
+ prettyPrint?: boolean;
990
+ /** 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. */
991
+ quotaUser?: string;
992
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
993
+ upload_protocol?: string;
994
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
995
+ uploadType?: string;
996
+ }): Request<Operation>;
997
+ /**
998
+ * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding allows API services to
999
+ * override the binding to use different resource name schemes, such as users/*‍/operations. To override the binding, API services can add a binding such as
1000
+ * "/v1/{name=users/*}/operations" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
1001
+ * ensure the name binding is the parent resource, without the operations collection id.
1002
+ */
1003
+ list(request?: {
1004
+ /** V1 error format. */
1005
+ "$.xgafv"?: string;
1006
+ /** OAuth access token. */
1007
+ access_token?: string;
1008
+ /** Data format for response. */
1009
+ alt?: string;
1010
+ /** JSONP */
1011
+ callback?: string;
1012
+ /** Selector specifying which fields to include in a partial response. */
1013
+ fields?: string;
1014
+ /** The standard list filter. */
1015
+ filter?: string;
1016
+ /** 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. */
1017
+ key?: string;
1018
+ /** The name of the operation's parent resource. */
1019
+ name: string;
1020
+ /** OAuth 2.0 token for the current user. */
1021
+ oauth_token?: string;
1022
+ /** The standard list page size. */
1023
+ pageSize?: number;
1024
+ /** The standard list page token. */
1025
+ pageToken?: string;
1026
+ /** Returns response with indentations and line breaks. */
1027
+ prettyPrint?: boolean;
1028
+ /** 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. */
1029
+ quotaUser?: string;
1030
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1031
+ upload_protocol?: string;
1032
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1033
+ uploadType?: string;
1034
+ }): Request<ListOperationsResponse>;
1035
+ }
1036
+ interface BackupsResource {
1037
+ /** Creates a new backup in a given project and location. */
1038
+ create(request: {
1039
+ /** V1 error format. */
1040
+ "$.xgafv"?: string;
1041
+ /** OAuth access token. */
1042
+ access_token?: string;
1043
+ /** Data format for response. */
1044
+ alt?: string;
1045
+ /**
1046
+ * Required. The ID of the backup, which is used as the final component of the backup's name.This value must be between 1 and 64 characters long, begin with a letter, end with a
1047
+ * letter or number, and consist of alpha-numeric ASCII characters or hyphens.
1048
+ */
1049
+ backupId?: string;
1050
+ /** JSONP */
1051
+ callback?: string;
1052
+ /** Selector specifying which fields to include in a partial response. */
1053
+ fields?: string;
1054
+ /** 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. */
1055
+ key?: string;
1056
+ /** OAuth 2.0 token for the current user. */
1057
+ oauth_token?: string;
1058
+ /** Required. The relative resource name of the service in which to create a backup of the following form:projects/{project_number}/locations/{location_id}/services/{service_id}. */
1059
+ parent: string;
1060
+ /** Returns response with indentations and line breaks. */
1061
+ prettyPrint?: boolean;
1062
+ /** 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. */
1063
+ quotaUser?: string;
1064
+ /**
1065
+ * Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a
1066
+ * duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the
1067
+ * server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID
1068
+ * (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
1069
+ */
1070
+ requestId?: string;
1071
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1072
+ upload_protocol?: string;
1073
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1074
+ uploadType?: string;
1075
+ /** Request body */
1076
+ resource: Backup;
1077
+ }): Request<Operation>;
1078
+ create(request: {
1079
+ /** V1 error format. */
1080
+ "$.xgafv"?: string;
1081
+ /** OAuth access token. */
1082
+ access_token?: string;
1083
+ /** Data format for response. */
1084
+ alt?: string;
1085
+ /**
1086
+ * Required. The ID of the backup, which is used as the final component of the backup's name.This value must be between 1 and 64 characters long, begin with a letter, end with a
1087
+ * letter or number, and consist of alpha-numeric ASCII characters or hyphens.
1088
+ */
1089
+ backupId?: string;
1090
+ /** JSONP */
1091
+ callback?: string;
1092
+ /** Selector specifying which fields to include in a partial response. */
1093
+ fields?: string;
1094
+ /** 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. */
1095
+ key?: string;
1096
+ /** OAuth 2.0 token for the current user. */
1097
+ oauth_token?: string;
1098
+ /** Required. The relative resource name of the service in which to create a backup of the following form:projects/{project_number}/locations/{location_id}/services/{service_id}. */
1099
+ parent: string;
1100
+ /** Returns response with indentations and line breaks. */
1101
+ prettyPrint?: boolean;
1102
+ /** 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. */
1103
+ quotaUser?: string;
1104
+ /**
1105
+ * Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a
1106
+ * duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the
1107
+ * server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID
1108
+ * (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
1109
+ */
1110
+ requestId?: string;
1111
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1112
+ upload_protocol?: string;
1113
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1114
+ uploadType?: string;
1115
+ },
1116
+ body: Backup): Request<Operation>;
1117
+ /** Deletes a single backup. */
1118
+ delete(request?: {
1119
+ /** V1 error format. */
1120
+ "$.xgafv"?: string;
1121
+ /** OAuth access token. */
1122
+ access_token?: string;
1123
+ /** Data format for response. */
1124
+ alt?: string;
1125
+ /** JSONP */
1126
+ callback?: string;
1127
+ /** Selector specifying which fields to include in a partial response. */
1128
+ fields?: string;
1129
+ /** 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. */
1130
+ key?: string;
1131
+ /** Required. The relative resource name of the backup to delete, in the following form:projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}. */
1132
+ name: string;
1133
+ /** OAuth 2.0 token for the current user. */
1134
+ oauth_token?: string;
1135
+ /** Returns response with indentations and line breaks. */
1136
+ prettyPrint?: boolean;
1137
+ /** 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. */
1138
+ quotaUser?: string;
1139
+ /**
1140
+ * Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a
1141
+ * duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the
1142
+ * server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID
1143
+ * (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
1144
+ */
1145
+ requestId?: string;
1146
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1147
+ upload_protocol?: string;
1148
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1149
+ uploadType?: string;
1150
+ }): Request<Operation>;
1151
+ /** Gets details of a single backup. */
1152
+ get(request?: {
1153
+ /** V1 error format. */
1154
+ "$.xgafv"?: string;
1155
+ /** OAuth access token. */
1156
+ access_token?: string;
1157
+ /** Data format for response. */
1158
+ alt?: string;
1159
+ /** JSONP */
1160
+ callback?: string;
1161
+ /** Selector specifying which fields to include in a partial response. */
1162
+ fields?: string;
1163
+ /** 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. */
1164
+ key?: string;
1165
+ /**
1166
+ * Required. The relative resource name of the backup to retrieve, in the following
1167
+ * form:projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}.
1168
+ */
1169
+ name: string;
1170
+ /** OAuth 2.0 token for the current user. */
1171
+ oauth_token?: string;
1172
+ /** Returns response with indentations and line breaks. */
1173
+ prettyPrint?: boolean;
1174
+ /** 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. */
1175
+ quotaUser?: string;
1176
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1177
+ upload_protocol?: string;
1178
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1179
+ uploadType?: string;
1180
+ }): Request<Backup>;
1181
+ /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
1182
+ getIamPolicy(request?: {
1183
+ /** V1 error format. */
1184
+ "$.xgafv"?: string;
1185
+ /** OAuth access token. */
1186
+ access_token?: string;
1187
+ /** Data format for response. */
1188
+ alt?: string;
1189
+ /** JSONP */
1190
+ callback?: string;
1191
+ /** Selector specifying which fields to include in a partial response. */
1192
+ fields?: string;
1193
+ /** 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. */
1194
+ key?: string;
1195
+ /** OAuth 2.0 token for the current user. */
1196
+ oauth_token?: string;
1197
+ /**
1198
+ * Optional. The maximum policy version that will be used to format the policy.Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.Requests for
1199
+ * policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset.The policy in
1200
+ * the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional
1201
+ * role bindings, the response uses version 1.To learn which resources support conditions in their IAM policies, see the IAM documentation
1202
+ * (https://cloud.google.com/iam/help/conditions/resource-policies).
1203
+ */
1204
+ "options.requestedPolicyVersion"?: number;
1205
+ /** Returns response with indentations and line breaks. */
1206
+ prettyPrint?: boolean;
1207
+ /** 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. */
1208
+ quotaUser?: string;
1209
+ /**
1210
+ * REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this
1211
+ * field.
1212
+ */
1213
+ resource: string;
1214
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1215
+ upload_protocol?: string;
1216
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1217
+ uploadType?: string;
1218
+ }): Request<Policy>;
1219
+ /** Lists backups in a service. */
1220
+ list(request?: {
1221
+ /** V1 error format. */
1222
+ "$.xgafv"?: string;
1223
+ /** OAuth access token. */
1224
+ access_token?: string;
1225
+ /** Data format for response. */
1226
+ alt?: string;
1227
+ /** JSONP */
1228
+ callback?: string;
1229
+ /** Selector specifying which fields to include in a partial response. */
1230
+ fields?: string;
1231
+ /** Optional. The filter to apply to list results. */
1232
+ filter?: string;
1233
+ /** 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. */
1234
+ key?: string;
1235
+ /** OAuth 2.0 token for the current user. */
1236
+ oauth_token?: string;
1237
+ /**
1238
+ * Optional. Specify the ordering of results as described in Sorting Order (https://cloud.google.com/apis/design/design_patterns#sorting_order). If not specified, the results will
1239
+ * be sorted in the default order.
1240
+ */
1241
+ orderBy?: string;
1242
+ /**
1243
+ * Optional. The maximum number of backups to return. The response may contain less than the maximum number. If unspecified, no more than 500 backups are returned. The maximum
1244
+ * value is 1000; values above 1000 are changed to 1000.
1245
+ */
1246
+ pageSize?: number;
1247
+ /**
1248
+ * Optional. A page token, received from a previous DataprocMetastore.ListBackups call. Provide this token to retrieve the subsequent page.To retrieve the first page, supply an
1249
+ * empty page token.When paginating, other parameters provided to DataprocMetastore.ListBackups must match the call that provided the page token.
1250
+ */
1251
+ pageToken?: string;
1252
+ /** Required. The relative resource name of the service whose backups to list, in the following form:projects/{project_number}/locations/{location_id}/services/{service_id}/backups. */
1253
+ parent: string;
1254
+ /** Returns response with indentations and line breaks. */
1255
+ prettyPrint?: boolean;
1256
+ /** 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. */
1257
+ quotaUser?: string;
1258
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1259
+ upload_protocol?: string;
1260
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1261
+ uploadType?: string;
1262
+ }): Request<ListBackupsResponse>;
1263
+ /** Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors. */
1264
+ setIamPolicy(request: {
1265
+ /** V1 error format. */
1266
+ "$.xgafv"?: string;
1267
+ /** OAuth access token. */
1268
+ access_token?: string;
1269
+ /** Data format for response. */
1270
+ alt?: string;
1271
+ /** JSONP */
1272
+ callback?: string;
1273
+ /** Selector specifying which fields to include in a partial response. */
1274
+ fields?: string;
1275
+ /** 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. */
1276
+ key?: string;
1277
+ /** OAuth 2.0 token for the current user. */
1278
+ oauth_token?: string;
1279
+ /** Returns response with indentations and line breaks. */
1280
+ prettyPrint?: boolean;
1281
+ /** 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. */
1282
+ quotaUser?: string;
1283
+ /**
1284
+ * REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this
1285
+ * field.
1286
+ */
1287
+ resource: string;
1288
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1289
+ upload_protocol?: string;
1290
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1291
+ uploadType?: string;
1292
+ },
1293
+ body: SetIamPolicyRequest): Request<Policy>;
1294
+ }
1295
+ interface MetadataImportsResource {
1296
+ /** Creates a new MetadataImport in a given project and location. */
1297
+ create(request: {
1298
+ /** V1 error format. */
1299
+ "$.xgafv"?: string;
1300
+ /** OAuth access token. */
1301
+ access_token?: string;
1302
+ /** Data format for response. */
1303
+ alt?: string;
1304
+ /** JSONP */
1305
+ callback?: string;
1306
+ /** Selector specifying which fields to include in a partial response. */
1307
+ fields?: string;
1308
+ /** 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. */
1309
+ key?: string;
1310
+ /**
1311
+ * Required. The ID of the metadata import, which is used as the final component of the metadata import's name.This value must be between 1 and 64 characters long, begin with a
1312
+ * letter, end with a letter or number, and consist of alpha-numeric ASCII characters or hyphens.
1313
+ */
1314
+ metadataImportId?: string;
1315
+ /** OAuth 2.0 token for the current user. */
1316
+ oauth_token?: string;
1317
+ /**
1318
+ * Required. The relative resource name of the service in which to create a metastore import, in the following
1319
+ * form:projects/{project_number}/locations/{location_id}/services/{service_id}.
1320
+ */
1321
+ parent: string;
1322
+ /** Returns response with indentations and line breaks. */
1323
+ prettyPrint?: boolean;
1324
+ /** 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. */
1325
+ quotaUser?: string;
1326
+ /**
1327
+ * Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a
1328
+ * duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the
1329
+ * server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID
1330
+ * (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
1331
+ */
1332
+ requestId?: string;
1333
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1334
+ upload_protocol?: string;
1335
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1336
+ uploadType?: string;
1337
+ /** Request body */
1338
+ resource: MetadataImport;
1339
+ }): Request<Operation>;
1340
+ create(request: {
1341
+ /** V1 error format. */
1342
+ "$.xgafv"?: string;
1343
+ /** OAuth access token. */
1344
+ access_token?: string;
1345
+ /** Data format for response. */
1346
+ alt?: string;
1347
+ /** JSONP */
1348
+ callback?: string;
1349
+ /** Selector specifying which fields to include in a partial response. */
1350
+ fields?: string;
1351
+ /** 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. */
1352
+ key?: string;
1353
+ /**
1354
+ * Required. The ID of the metadata import, which is used as the final component of the metadata import's name.This value must be between 1 and 64 characters long, begin with a
1355
+ * letter, end with a letter or number, and consist of alpha-numeric ASCII characters or hyphens.
1356
+ */
1357
+ metadataImportId?: string;
1358
+ /** OAuth 2.0 token for the current user. */
1359
+ oauth_token?: string;
1360
+ /**
1361
+ * Required. The relative resource name of the service in which to create a metastore import, in the following
1362
+ * form:projects/{project_number}/locations/{location_id}/services/{service_id}.
1363
+ */
1364
+ parent: string;
1365
+ /** Returns response with indentations and line breaks. */
1366
+ prettyPrint?: boolean;
1367
+ /** 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. */
1368
+ quotaUser?: string;
1369
+ /**
1370
+ * Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a
1371
+ * duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the
1372
+ * server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID
1373
+ * (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
1374
+ */
1375
+ requestId?: string;
1376
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1377
+ upload_protocol?: string;
1378
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1379
+ uploadType?: string;
1380
+ },
1381
+ body: MetadataImport): Request<Operation>;
1382
+ /** Gets details of a single import. */
1383
+ get(request?: {
1384
+ /** V1 error format. */
1385
+ "$.xgafv"?: string;
1386
+ /** OAuth access token. */
1387
+ access_token?: string;
1388
+ /** Data format for response. */
1389
+ alt?: string;
1390
+ /** JSONP */
1391
+ callback?: string;
1392
+ /** Selector specifying which fields to include in a partial response. */
1393
+ fields?: string;
1394
+ /** 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. */
1395
+ key?: string;
1396
+ /**
1397
+ * Required. The relative resource name of the metadata import to retrieve, in the following
1398
+ * form:projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{import_id}.
1399
+ */
1400
+ name: string;
1401
+ /** OAuth 2.0 token for the current user. */
1402
+ oauth_token?: string;
1403
+ /** Returns response with indentations and line breaks. */
1404
+ prettyPrint?: boolean;
1405
+ /** 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. */
1406
+ quotaUser?: string;
1407
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1408
+ upload_protocol?: string;
1409
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1410
+ uploadType?: string;
1411
+ }): Request<MetadataImport>;
1412
+ /** Lists imports in a service. */
1413
+ list(request?: {
1414
+ /** V1 error format. */
1415
+ "$.xgafv"?: string;
1416
+ /** OAuth access token. */
1417
+ access_token?: string;
1418
+ /** Data format for response. */
1419
+ alt?: string;
1420
+ /** JSONP */
1421
+ callback?: string;
1422
+ /** Selector specifying which fields to include in a partial response. */
1423
+ fields?: string;
1424
+ /** Optional. The filter to apply to list results. */
1425
+ filter?: string;
1426
+ /** 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. */
1427
+ key?: string;
1428
+ /** OAuth 2.0 token for the current user. */
1429
+ oauth_token?: string;
1430
+ /**
1431
+ * Optional. Specify the ordering of results as described in Sorting Order (https://cloud.google.com/apis/design/design_patterns#sorting_order). If not specified, the results will
1432
+ * be sorted in the default order.
1433
+ */
1434
+ orderBy?: string;
1435
+ /**
1436
+ * Optional. The maximum number of imports to return. The response may contain less than the maximum number. If unspecified, no more than 500 imports are returned. The maximum
1437
+ * value is 1000; values above 1000 are changed to 1000.
1438
+ */
1439
+ pageSize?: number;
1440
+ /**
1441
+ * Optional. A page token, received from a previous DataprocMetastore.ListServices call. Provide this token to retrieve the subsequent page.To retrieve the first page, supply an
1442
+ * empty page token.When paginating, other parameters provided to DataprocMetastore.ListServices must match the call that provided the page token.
1443
+ */
1444
+ pageToken?: string;
1445
+ /**
1446
+ * Required. The relative resource name of the service whose metadata imports to list, in the following
1447
+ * form:projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports.
1448
+ */
1449
+ parent: string;
1450
+ /** Returns response with indentations and line breaks. */
1451
+ prettyPrint?: boolean;
1452
+ /** 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. */
1453
+ quotaUser?: string;
1454
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1455
+ upload_protocol?: string;
1456
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1457
+ uploadType?: string;
1458
+ }): Request<ListMetadataImportsResponse>;
1459
+ /** Updates a single import. Only the description field of MetadataImport is supported to be updated. */
1460
+ patch(request: {
1461
+ /** V1 error format. */
1462
+ "$.xgafv"?: string;
1463
+ /** OAuth access token. */
1464
+ access_token?: string;
1465
+ /** Data format for response. */
1466
+ alt?: string;
1467
+ /** JSONP */
1468
+ callback?: string;
1469
+ /** Selector specifying which fields to include in a partial response. */
1470
+ fields?: string;
1471
+ /** 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. */
1472
+ key?: string;
1473
+ /**
1474
+ * Immutable. The relative resource name of the metadata import, of the
1475
+ * form:projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{metadata_import_id}.
1476
+ */
1477
+ name: string;
1478
+ /** OAuth 2.0 token for the current user. */
1479
+ oauth_token?: string;
1480
+ /** Returns response with indentations and line breaks. */
1481
+ prettyPrint?: boolean;
1482
+ /** 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. */
1483
+ quotaUser?: string;
1484
+ /**
1485
+ * Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a
1486
+ * duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the
1487
+ * server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID
1488
+ * (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
1489
+ */
1490
+ requestId?: string;
1491
+ /**
1492
+ * Required. A field mask used to specify the fields to be overwritten in the metadata import resource by the update. Fields specified in the update_mask are relative to the
1493
+ * resource (not to the full request). A field is overwritten if it is in the mask.
1494
+ */
1495
+ updateMask?: string;
1496
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1497
+ upload_protocol?: string;
1498
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1499
+ uploadType?: string;
1500
+ /** Request body */
1501
+ resource: MetadataImport;
1502
+ }): Request<Operation>;
1503
+ patch(request: {
1504
+ /** V1 error format. */
1505
+ "$.xgafv"?: string;
1506
+ /** OAuth access token. */
1507
+ access_token?: string;
1508
+ /** Data format for response. */
1509
+ alt?: string;
1510
+ /** JSONP */
1511
+ callback?: string;
1512
+ /** Selector specifying which fields to include in a partial response. */
1513
+ fields?: string;
1514
+ /** 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. */
1515
+ key?: string;
1516
+ /**
1517
+ * Immutable. The relative resource name of the metadata import, of the
1518
+ * form:projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{metadata_import_id}.
1519
+ */
1520
+ name: string;
1521
+ /** OAuth 2.0 token for the current user. */
1522
+ oauth_token?: string;
1523
+ /** Returns response with indentations and line breaks. */
1524
+ prettyPrint?: boolean;
1525
+ /** 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. */
1526
+ quotaUser?: string;
1527
+ /**
1528
+ * Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a
1529
+ * duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the
1530
+ * server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID
1531
+ * (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
1532
+ */
1533
+ requestId?: string;
1534
+ /**
1535
+ * Required. A field mask used to specify the fields to be overwritten in the metadata import resource by the update. Fields specified in the update_mask are relative to the
1536
+ * resource (not to the full request). A field is overwritten if it is in the mask.
1537
+ */
1538
+ updateMask?: string;
1539
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1540
+ upload_protocol?: string;
1541
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1542
+ uploadType?: string;
1543
+ },
1544
+ body: MetadataImport): Request<Operation>;
1545
+ }
1546
+ interface ServicesResource {
1547
+ /** Creates a metastore service in a project and location. */
1548
+ create(request: {
1549
+ /** V1 error format. */
1550
+ "$.xgafv"?: string;
1551
+ /** OAuth access token. */
1552
+ access_token?: string;
1553
+ /** Data format for response. */
1554
+ alt?: string;
1555
+ /** JSONP */
1556
+ callback?: string;
1557
+ /** Selector specifying which fields to include in a partial response. */
1558
+ fields?: string;
1559
+ /** 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. */
1560
+ key?: string;
1561
+ /** OAuth 2.0 token for the current user. */
1562
+ oauth_token?: string;
1563
+ /** Required. The relative resource name of the location in which to create a metastore service, in the following form:projects/{project_number}/locations/{location_id}. */
1564
+ parent: string;
1565
+ /** Returns response with indentations and line breaks. */
1566
+ prettyPrint?: boolean;
1567
+ /** 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. */
1568
+ quotaUser?: string;
1569
+ /**
1570
+ * Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a
1571
+ * duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the
1572
+ * server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID
1573
+ * (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
1574
+ */
1575
+ requestId?: string;
1576
+ /**
1577
+ * Required. The ID of the metastore service, which is used as the final component of the metastore service's name.This value must be between 2 and 63 characters long inclusive,
1578
+ * begin with a letter, end with a letter or number, and consist of alpha-numeric ASCII characters or hyphens.
1579
+ */
1580
+ serviceId?: string;
1581
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1582
+ upload_protocol?: string;
1583
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1584
+ uploadType?: string;
1585
+ /** Request body */
1586
+ resource: Service;
1587
+ }): Request<Operation>;
1588
+ create(request: {
1589
+ /** V1 error format. */
1590
+ "$.xgafv"?: string;
1591
+ /** OAuth access token. */
1592
+ access_token?: string;
1593
+ /** Data format for response. */
1594
+ alt?: string;
1595
+ /** JSONP */
1596
+ callback?: string;
1597
+ /** Selector specifying which fields to include in a partial response. */
1598
+ fields?: string;
1599
+ /** 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. */
1600
+ key?: string;
1601
+ /** OAuth 2.0 token for the current user. */
1602
+ oauth_token?: string;
1603
+ /** Required. The relative resource name of the location in which to create a metastore service, in the following form:projects/{project_number}/locations/{location_id}. */
1604
+ parent: string;
1605
+ /** Returns response with indentations and line breaks. */
1606
+ prettyPrint?: boolean;
1607
+ /** 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. */
1608
+ quotaUser?: string;
1609
+ /**
1610
+ * Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a
1611
+ * duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the
1612
+ * server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID
1613
+ * (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
1614
+ */
1615
+ requestId?: string;
1616
+ /**
1617
+ * Required. The ID of the metastore service, which is used as the final component of the metastore service's name.This value must be between 2 and 63 characters long inclusive,
1618
+ * begin with a letter, end with a letter or number, and consist of alpha-numeric ASCII characters or hyphens.
1619
+ */
1620
+ serviceId?: string;
1621
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1622
+ upload_protocol?: string;
1623
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1624
+ uploadType?: string;
1625
+ },
1626
+ body: Service): Request<Operation>;
1627
+ /** Deletes a single service. */
1628
+ delete(request?: {
1629
+ /** V1 error format. */
1630
+ "$.xgafv"?: string;
1631
+ /** OAuth access token. */
1632
+ access_token?: string;
1633
+ /** Data format for response. */
1634
+ alt?: string;
1635
+ /** JSONP */
1636
+ callback?: string;
1637
+ /** Selector specifying which fields to include in a partial response. */
1638
+ fields?: string;
1639
+ /** 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. */
1640
+ key?: string;
1641
+ /** Required. The relative resource name of the metastore service to delete, in the following form:projects/{project_number}/locations/{location_id}/services/{service_id}. */
1642
+ name: string;
1643
+ /** OAuth 2.0 token for the current user. */
1644
+ oauth_token?: string;
1645
+ /** Returns response with indentations and line breaks. */
1646
+ prettyPrint?: boolean;
1647
+ /** 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. */
1648
+ quotaUser?: string;
1649
+ /**
1650
+ * Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a
1651
+ * duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the
1652
+ * server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID
1653
+ * (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
1654
+ */
1655
+ requestId?: string;
1656
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1657
+ upload_protocol?: string;
1658
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1659
+ uploadType?: string;
1660
+ }): Request<Operation>;
1661
+ /** Exports metadata from a service. */
1662
+ exportMetadata(request: {
1663
+ /** V1 error format. */
1664
+ "$.xgafv"?: string;
1665
+ /** OAuth access token. */
1666
+ access_token?: string;
1667
+ /** Data format for response. */
1668
+ alt?: string;
1669
+ /** JSONP */
1670
+ callback?: string;
1671
+ /** Selector specifying which fields to include in a partial response. */
1672
+ fields?: string;
1673
+ /** 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. */
1674
+ key?: string;
1675
+ /** OAuth 2.0 token for the current user. */
1676
+ oauth_token?: string;
1677
+ /** Returns response with indentations and line breaks. */
1678
+ prettyPrint?: boolean;
1679
+ /** 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. */
1680
+ quotaUser?: string;
1681
+ /** Required. The relative resource name of the metastore service to run export, in the following form:projects/{project_id}/locations/{location_id}/services/{service_id}. */
1682
+ service: string;
1683
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1684
+ upload_protocol?: string;
1685
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1686
+ uploadType?: string;
1687
+ /** Request body */
1688
+ resource: ExportMetadataRequest;
1689
+ }): Request<Operation>;
1690
+ exportMetadata(request: {
1691
+ /** V1 error format. */
1692
+ "$.xgafv"?: string;
1693
+ /** OAuth access token. */
1694
+ access_token?: string;
1695
+ /** Data format for response. */
1696
+ alt?: string;
1697
+ /** JSONP */
1698
+ callback?: string;
1699
+ /** Selector specifying which fields to include in a partial response. */
1700
+ fields?: string;
1701
+ /** 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. */
1702
+ key?: string;
1703
+ /** OAuth 2.0 token for the current user. */
1704
+ oauth_token?: string;
1705
+ /** Returns response with indentations and line breaks. */
1706
+ prettyPrint?: boolean;
1707
+ /** 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. */
1708
+ quotaUser?: string;
1709
+ /** Required. The relative resource name of the metastore service to run export, in the following form:projects/{project_id}/locations/{location_id}/services/{service_id}. */
1710
+ service: string;
1711
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1712
+ upload_protocol?: string;
1713
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1714
+ uploadType?: string;
1715
+ },
1716
+ body: ExportMetadataRequest): Request<Operation>;
1717
+ /** Gets the details of a single service. */
1718
+ get(request?: {
1719
+ /** V1 error format. */
1720
+ "$.xgafv"?: string;
1721
+ /** OAuth access token. */
1722
+ access_token?: string;
1723
+ /** Data format for response. */
1724
+ alt?: string;
1725
+ /** JSONP */
1726
+ callback?: string;
1727
+ /** Selector specifying which fields to include in a partial response. */
1728
+ fields?: string;
1729
+ /** 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. */
1730
+ key?: string;
1731
+ /** Required. The relative resource name of the metastore service to retrieve, in the following form:projects/{project_number}/locations/{location_id}/services/{service_id}. */
1732
+ name: string;
1733
+ /** OAuth 2.0 token for the current user. */
1734
+ oauth_token?: string;
1735
+ /** Returns response with indentations and line breaks. */
1736
+ prettyPrint?: boolean;
1737
+ /** 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. */
1738
+ quotaUser?: string;
1739
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1740
+ upload_protocol?: string;
1741
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1742
+ uploadType?: string;
1743
+ }): Request<Service>;
1744
+ /** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
1745
+ getIamPolicy(request?: {
1746
+ /** V1 error format. */
1747
+ "$.xgafv"?: string;
1748
+ /** OAuth access token. */
1749
+ access_token?: string;
1750
+ /** Data format for response. */
1751
+ alt?: string;
1752
+ /** JSONP */
1753
+ callback?: string;
1754
+ /** Selector specifying which fields to include in a partial response. */
1755
+ fields?: string;
1756
+ /** 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. */
1757
+ key?: string;
1758
+ /** OAuth 2.0 token for the current user. */
1759
+ oauth_token?: string;
1760
+ /**
1761
+ * Optional. The maximum policy version that will be used to format the policy.Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.Requests for
1762
+ * policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset.The policy in
1763
+ * the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional
1764
+ * role bindings, the response uses version 1.To learn which resources support conditions in their IAM policies, see the IAM documentation
1765
+ * (https://cloud.google.com/iam/help/conditions/resource-policies).
1766
+ */
1767
+ "options.requestedPolicyVersion"?: number;
1768
+ /** Returns response with indentations and line breaks. */
1769
+ prettyPrint?: boolean;
1770
+ /** 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. */
1771
+ quotaUser?: string;
1772
+ /**
1773
+ * REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this
1774
+ * field.
1775
+ */
1776
+ resource: string;
1777
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1778
+ upload_protocol?: string;
1779
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1780
+ uploadType?: string;
1781
+ }): Request<Policy>;
1782
+ /** Lists services in a project and location. */
1783
+ list(request?: {
1784
+ /** V1 error format. */
1785
+ "$.xgafv"?: string;
1786
+ /** OAuth access token. */
1787
+ access_token?: string;
1788
+ /** Data format for response. */
1789
+ alt?: string;
1790
+ /** JSONP */
1791
+ callback?: string;
1792
+ /** Selector specifying which fields to include in a partial response. */
1793
+ fields?: string;
1794
+ /** Optional. The filter to apply to list results. */
1795
+ filter?: string;
1796
+ /** 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. */
1797
+ key?: string;
1798
+ /** OAuth 2.0 token for the current user. */
1799
+ oauth_token?: string;
1800
+ /**
1801
+ * Optional. Specify the ordering of results as described in Sorting Order (https://cloud.google.com/apis/design/design_patterns#sorting_order). If not specified, the results will
1802
+ * be sorted in the default order.
1803
+ */
1804
+ orderBy?: string;
1805
+ /**
1806
+ * Optional. The maximum number of services to return. The response may contain less than the maximum number. If unspecified, no more than 500 services are returned. The maximum
1807
+ * value is 1000; values above 1000 are changed to 1000.
1808
+ */
1809
+ pageSize?: number;
1810
+ /**
1811
+ * Optional. A page token, received from a previous DataprocMetastore.ListServices call. Provide this token to retrieve the subsequent page.To retrieve the first page, supply an
1812
+ * empty page token.When paginating, other parameters provided to DataprocMetastore.ListServices must match the call that provided the page token.
1813
+ */
1814
+ pageToken?: string;
1815
+ /** Required. The relative resource name of the location of metastore services to list, in the following form:projects/{project_number}/locations/{location_id}. */
1816
+ parent: string;
1817
+ /** Returns response with indentations and line breaks. */
1818
+ prettyPrint?: boolean;
1819
+ /** 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. */
1820
+ quotaUser?: string;
1821
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1822
+ upload_protocol?: string;
1823
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1824
+ uploadType?: string;
1825
+ }): Request<ListServicesResponse>;
1826
+ /** Updates the parameters of a single service. */
1827
+ patch(request: {
1828
+ /** V1 error format. */
1829
+ "$.xgafv"?: string;
1830
+ /** OAuth access token. */
1831
+ access_token?: string;
1832
+ /** Data format for response. */
1833
+ alt?: string;
1834
+ /** JSONP */
1835
+ callback?: string;
1836
+ /** Selector specifying which fields to include in a partial response. */
1837
+ fields?: string;
1838
+ /** 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. */
1839
+ key?: string;
1840
+ /** Immutable. The relative resource name of the metastore service, in the following format:projects/{project_number}/locations/{location_id}/services/{service_id}. */
1841
+ name: string;
1842
+ /** OAuth 2.0 token for the current user. */
1843
+ oauth_token?: string;
1844
+ /** Returns response with indentations and line breaks. */
1845
+ prettyPrint?: boolean;
1846
+ /** 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. */
1847
+ quotaUser?: string;
1848
+ /**
1849
+ * Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a
1850
+ * duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the
1851
+ * server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID
1852
+ * (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
1853
+ */
1854
+ requestId?: string;
1855
+ /**
1856
+ * Required. A field mask used to specify the fields to be overwritten in the metastore service resource by the update. Fields specified in the update_mask are relative to the
1857
+ * resource (not to the full request). A field is overwritten if it is in the mask.
1858
+ */
1859
+ updateMask?: string;
1860
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1861
+ upload_protocol?: string;
1862
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1863
+ uploadType?: string;
1864
+ /** Request body */
1865
+ resource: Service;
1866
+ }): Request<Operation>;
1867
+ patch(request: {
1868
+ /** V1 error format. */
1869
+ "$.xgafv"?: string;
1870
+ /** OAuth access token. */
1871
+ access_token?: string;
1872
+ /** Data format for response. */
1873
+ alt?: string;
1874
+ /** JSONP */
1875
+ callback?: string;
1876
+ /** Selector specifying which fields to include in a partial response. */
1877
+ fields?: string;
1878
+ /** 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. */
1879
+ key?: string;
1880
+ /** Immutable. The relative resource name of the metastore service, in the following format:projects/{project_number}/locations/{location_id}/services/{service_id}. */
1881
+ name: string;
1882
+ /** OAuth 2.0 token for the current user. */
1883
+ oauth_token?: string;
1884
+ /** Returns response with indentations and line breaks. */
1885
+ prettyPrint?: boolean;
1886
+ /** 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. */
1887
+ quotaUser?: string;
1888
+ /**
1889
+ * Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a
1890
+ * duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the
1891
+ * server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID
1892
+ * (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
1893
+ */
1894
+ requestId?: string;
1895
+ /**
1896
+ * Required. A field mask used to specify the fields to be overwritten in the metastore service resource by the update. Fields specified in the update_mask are relative to the
1897
+ * resource (not to the full request). A field is overwritten if it is in the mask.
1898
+ */
1899
+ updateMask?: string;
1900
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1901
+ upload_protocol?: string;
1902
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1903
+ uploadType?: string;
1904
+ },
1905
+ body: Service): Request<Operation>;
1906
+ /** Restores a service from a backup. */
1907
+ restore(request: {
1908
+ /** V1 error format. */
1909
+ "$.xgafv"?: string;
1910
+ /** OAuth access token. */
1911
+ access_token?: string;
1912
+ /** Data format for response. */
1913
+ alt?: string;
1914
+ /** JSONP */
1915
+ callback?: string;
1916
+ /** Selector specifying which fields to include in a partial response. */
1917
+ fields?: string;
1918
+ /** 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. */
1919
+ key?: string;
1920
+ /** OAuth 2.0 token for the current user. */
1921
+ oauth_token?: string;
1922
+ /** Returns response with indentations and line breaks. */
1923
+ prettyPrint?: boolean;
1924
+ /** 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. */
1925
+ quotaUser?: string;
1926
+ /** Required. The relative resource name of the metastore service to run restore, in the following form:projects/{project_id}/locations/{location_id}/services/{service_id}. */
1927
+ service: string;
1928
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1929
+ upload_protocol?: string;
1930
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1931
+ uploadType?: string;
1932
+ /** Request body */
1933
+ resource: RestoreServiceRequest;
1934
+ }): Request<Operation>;
1935
+ restore(request: {
1936
+ /** V1 error format. */
1937
+ "$.xgafv"?: string;
1938
+ /** OAuth access token. */
1939
+ access_token?: string;
1940
+ /** Data format for response. */
1941
+ alt?: string;
1942
+ /** JSONP */
1943
+ callback?: string;
1944
+ /** Selector specifying which fields to include in a partial response. */
1945
+ fields?: string;
1946
+ /** 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. */
1947
+ key?: string;
1948
+ /** OAuth 2.0 token for the current user. */
1949
+ oauth_token?: string;
1950
+ /** Returns response with indentations and line breaks. */
1951
+ prettyPrint?: boolean;
1952
+ /** 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. */
1953
+ quotaUser?: string;
1954
+ /** Required. The relative resource name of the metastore service to run restore, in the following form:projects/{project_id}/locations/{location_id}/services/{service_id}. */
1955
+ service: string;
1956
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1957
+ upload_protocol?: string;
1958
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1959
+ uploadType?: string;
1960
+ },
1961
+ body: RestoreServiceRequest): Request<Operation>;
1962
+ /** Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors. */
1963
+ setIamPolicy(request: {
1964
+ /** V1 error format. */
1965
+ "$.xgafv"?: string;
1966
+ /** OAuth access token. */
1967
+ access_token?: string;
1968
+ /** Data format for response. */
1969
+ alt?: string;
1970
+ /** JSONP */
1971
+ callback?: string;
1972
+ /** Selector specifying which fields to include in a partial response. */
1973
+ fields?: string;
1974
+ /** 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. */
1975
+ key?: string;
1976
+ /** OAuth 2.0 token for the current user. */
1977
+ oauth_token?: string;
1978
+ /** Returns response with indentations and line breaks. */
1979
+ prettyPrint?: boolean;
1980
+ /** 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. */
1981
+ quotaUser?: string;
1982
+ /**
1983
+ * REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this
1984
+ * field.
1985
+ */
1986
+ resource: string;
1987
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1988
+ upload_protocol?: string;
1989
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1990
+ uploadType?: string;
1991
+ },
1992
+ body: SetIamPolicyRequest): Request<Policy>;
1993
+ /**
1994
+ * Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This
1995
+ * operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
1996
+ */
1997
+ testIamPermissions(request: {
1998
+ /** V1 error format. */
1999
+ "$.xgafv"?: string;
2000
+ /** OAuth access token. */
2001
+ access_token?: string;
2002
+ /** Data format for response. */
2003
+ alt?: string;
2004
+ /** JSONP */
2005
+ callback?: string;
2006
+ /** Selector specifying which fields to include in a partial response. */
2007
+ fields?: string;
2008
+ /** 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. */
2009
+ key?: string;
2010
+ /** OAuth 2.0 token for the current user. */
2011
+ oauth_token?: string;
2012
+ /** Returns response with indentations and line breaks. */
2013
+ prettyPrint?: boolean;
2014
+ /** 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. */
2015
+ quotaUser?: string;
2016
+ /**
2017
+ * REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for
2018
+ * this field.
2019
+ */
2020
+ resource: string;
2021
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2022
+ upload_protocol?: string;
2023
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2024
+ uploadType?: string;
2025
+ },
2026
+ body: TestIamPermissionsRequest): Request<TestIamPermissionsResponse>;
2027
+ backups: BackupsResource;
2028
+ metadataImports: MetadataImportsResource;
2029
+ }
2030
+ interface LocationsResource {
2031
+ /** Gets information about a location. */
2032
+ get(request?: {
2033
+ /** V1 error format. */
2034
+ "$.xgafv"?: string;
2035
+ /** OAuth access token. */
2036
+ access_token?: string;
2037
+ /** Data format for response. */
2038
+ alt?: string;
2039
+ /** JSONP */
2040
+ callback?: string;
2041
+ /** Selector specifying which fields to include in a partial response. */
2042
+ fields?: string;
2043
+ /** 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. */
2044
+ key?: string;
2045
+ /** Resource name for the location. */
2046
+ name: string;
2047
+ /** OAuth 2.0 token for the current user. */
2048
+ oauth_token?: string;
2049
+ /** Returns response with indentations and line breaks. */
2050
+ prettyPrint?: boolean;
2051
+ /** 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. */
2052
+ quotaUser?: string;
2053
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2054
+ upload_protocol?: string;
2055
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2056
+ uploadType?: string;
2057
+ }): Request<Location>;
2058
+ /** Lists information about the supported locations for this service. */
2059
+ list(request?: {
2060
+ /** V1 error format. */
2061
+ "$.xgafv"?: string;
2062
+ /** OAuth access token. */
2063
+ access_token?: string;
2064
+ /** Data format for response. */
2065
+ alt?: string;
2066
+ /** JSONP */
2067
+ callback?: string;
2068
+ /** Selector specifying which fields to include in a partial response. */
2069
+ fields?: string;
2070
+ /**
2071
+ * 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 AIP-160
2072
+ * (https://google.aip.dev/160).
2073
+ */
2074
+ filter?: string;
2075
+ /** 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. */
2076
+ key?: string;
2077
+ /** The resource that owns the locations collection, if applicable. */
2078
+ name: string;
2079
+ /** OAuth 2.0 token for the current user. */
2080
+ oauth_token?: string;
2081
+ /** The maximum number of results to return. If not set, the service selects a default. */
2082
+ pageSize?: number;
2083
+ /** A page token received from the next_page_token field in the response. Send that page token to receive the subsequent page. */
2084
+ pageToken?: string;
2085
+ /** Returns response with indentations and line breaks. */
2086
+ prettyPrint?: boolean;
2087
+ /** 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. */
2088
+ quotaUser?: string;
2089
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2090
+ upload_protocol?: string;
2091
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2092
+ uploadType?: string;
2093
+ }): Request<ListLocationsResponse>;
2094
+ federations: FederationsResource;
2095
+ operations: OperationsResource;
2096
+ services: ServicesResource;
2097
+ }
2098
+ interface ProjectsResource {
2099
+ locations: LocationsResource;
2100
+ }
2101
+
2102
+ const operations: OperationsResource;
2103
+
2104
+ const projects: ProjectsResource;
2105
+ }
2106
+ }