Routine objects are returned by methods such as , , and .
Package
@google-cloud/bigqueryExample
const
{
BigQuery
}
=
require
(
' @google-cloud/bigquery
'
);
const
bigquery
=
new
BigQuery
();
const
dataset
=
bigquery
.
dataset
(
'my-dataset'
);
const
routine
=
dataset
.
routine
(
'my_routine'
);
Constructors
(constructor)(dataset, id)
constructor
(
dataset
:
Dataset
,
id
:
string
);
Constructs a new instance of the Routine
class
Methods
setMetadata(metadata)
setMetadata
(
metadata
:
RoutineMetadata
)
:
Promise<SetMetadataResponse>
;
Returns
Type
Description
Promise
< SetMetadataResponse
>
setMetadata(metadata, callback)
setMetadata
(
metadata
:
RoutineMetadata
,
callback
:
ResponseCallback
)
:
void
;
Returns
Type
Description
void