Documentation ¶
Index ¶
- Constants
- func InitRequest(context *endly.Context, rawRequest map[string]interface{}) error
- func New() endly.Service
- func NewTableReference(table string) (*bigquery.TableReference, error)
- type CopyRequest
- type CtxClient
- type JobWaitRequest
- type LoadRequest
- type PatchRequest
- type PatchResponse
- type QueryRequest
- type TableRequest
- type TableResponse
Constants ¶
View Source
const (
//ServiceID Google BigQuery Service ID.
ServiceID = "gcp/bigquery"
)
Variables ¶
This section is empty.
Functions ¶
func InitRequest ¶
func NewTableReference ¶
NewTableReference creates a table reference for table in the following syntax [project:]dataset.table
Types ¶
type CopyRequest ¶
type CopyRequest struct { bigquery.JobConfigurationTableCopy Project string Job *bigquery.JobReference Async bool `description:"if set true, function does not wait for job completion"` }
CopyRequest represents copy request
func (*CopyRequest) Validate ¶
func (r *CopyRequest) Validate() error
Validate checks if request is valid
type CtxClient ¶
type CtxClient struct { *gcp.AbstractClient // contains filtered or unexported fields }
CtxClient represents context client
func (*CtxClient) SetService ¶
type JobWaitRequest ¶
type JobWaitRequest struct {
Job *bigquery.JobReference
}
func (*JobWaitRequest) Validate ¶
func (r *JobWaitRequest) Validate() error
Validate checks if request is valid
type LoadRequest ¶
type LoadRequest struct { bigquery.JobConfigurationLoad Job *bigquery.JobReference Project string Async bool `description:"if set true, function does not wait for job completion"` }
LoadRequest represents load request
func (*LoadRequest) Validate ¶
func (r *LoadRequest) Validate() error
Validate checks if request is valid
type PatchRequest ¶
type PatchRequest struct { *bigquery.TableReference Table string TemplateRef *bigquery.TableReference Template string Schema *bigquery.TableSchema }
PatchRequest represents a patch request
func (*PatchRequest) Validate ¶
func (r *PatchRequest) Validate() (err error)
Validate checks if request is valid
type PatchResponse ¶
type PatchResponse struct {
*bigquery.Table
}
type QueryRequest ¶
type QueryRequest struct { bigquery.JobConfigurationQuery Job *bigquery.JobReference Project string Async bool `description:"if set true, function does not wait for job completion"` }
QueryRequest represents query request
func (*QueryRequest) Validate ¶
func (r *QueryRequest) Validate() error
Validate checks if request is valid
type TableRequest ¶
TableRequest table request
func (*TableRequest) Init ¶
func (r *TableRequest) Init() (err error)
func (*TableRequest) Validate ¶
func (r *TableRequest) Validate() (err error)
type TableResponse ¶
type TableResponse struct {
Table *bigquery.Table
}
TableResponse table response
Click to show internal directories.
Click to hide internal directories.