1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 | import * as common from '@google-cloud/common';
|
17 | import { BigQuery, Job, Dataset, ResourceCallback, RequestCallback, JobRequest } from '.';
|
18 | import { JobMetadata } from './job';
|
19 | import bigquery from './types';
|
20 | export interface File {
|
21 | bucket: any;
|
22 | kmsKeyName?: string;
|
23 | userProject?: string;
|
24 | name: string;
|
25 | generation?: number;
|
26 | }
|
27 | export declare type JobMetadataCallback = RequestCallback<JobMetadata>;
|
28 | export declare type JobMetadataResponse = [JobMetadata];
|
29 | export declare type JobResponse = [Job, bigquery.IJob];
|
30 | export declare type JobCallback = ResourceCallback<Job, bigquery.IJob>;
|
31 | export declare type CreateExtractJobOptions = JobRequest<bigquery.IJobConfigurationExtract> & {
|
32 | format?: 'ML_TF_SAVED_MODEL' | 'ML_XGBOOST_BOOSTER';
|
33 | };
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 |
|
46 |
|
47 |
|
48 |
|
49 | declare class Model extends common.ServiceObject {
|
50 | dataset: Dataset;
|
51 | bigQuery: BigQuery;
|
52 | constructor(dataset: Dataset, id: string);
|
53 | createExtractJob(destination: string | File, options?: CreateExtractJobOptions): Promise<JobResponse>;
|
54 | createExtractJob(destination: string | File, options: CreateExtractJobOptions, callback: JobCallback): void;
|
55 | createExtractJob(destination: string | File, callback: JobCallback): void;
|
56 | extract(destination: string | File, options?: CreateExtractJobOptions): Promise<JobMetadataResponse>;
|
57 | extract(destination: string | File, options: CreateExtractJobOptions, callback?: JobMetadataCallback): void;
|
58 | extract(destination: string | File, callback?: JobMetadataCallback): void;
|
59 | }
|
60 | /**
|
61 | * Reference to the {@link Model} class.
|
62 | * @name module:@google-cloud/bigquery.Model
|
63 | * @see Model
|
64 | */
|
65 | export { Model };
|