Types for Google Cloud Bigquery Logging v1 API¶
- class google.cloud.bigquery_logging_v1.types.AuditData(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
BigQuery request and response messages for audit log. Note:
Table.schema
has been deprecated in favor ofTable.schemaJson
.Table.schema
may continue to be present in your logs during this transition.This message has oneof fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.
- job_get_query_results_request¶
Job get query results request.
This field is a member of oneof
request
.
- set_iam_policy_request¶
Iam policy request.
This field is a member of oneof
request
.- Type
google.iam.v1.iam_policy_pb2.SetIamPolicyRequest
- job_get_query_results_response¶
Job get query results response.
This field is a member of oneof
response
.
- job_query_done_response¶
Deprecated: Job query-done response. Use this information for usage analysis.
This field is a member of oneof
response
.
- policy_response¶
Iam Policy.
This field is a member of oneof
response
.- Type
google.iam.v1.policy_pb2.Policy
- job_completed_event¶
A job completion event.
- table_data_read_events¶
Information about the table access events.
- Type
MutableSequence[google.cloud.bigquery_logging_v1.types.TableDataReadEvent]
- class google.cloud.bigquery_logging_v1.types.BigQueryAcl(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
An access control list.
- entries¶
Access control entry list.
- Type
MutableSequence[google.cloud.bigquery_logging_v1.types.BigQueryAcl.Entry]
- class Entry(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Access control entry.
- special_group¶
Grants access to special groups. Valid groups are
PROJECT_OWNERS
,PROJECT_READERS
,PROJECT_WRITERS
andALL_AUTHENTICATED_USERS
.- Type
- view_name¶
Grants access to a BigQuery View.
- class google.cloud.bigquery_logging_v1.types.Dataset(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
BigQuery dataset information. See the Dataset API resource for more details on individual fields.
- dataset_name¶
The name of the dataset.
- info¶
User-provided metadata for the dataset.
- create_time¶
The time the dataset was created.
- update_time¶
The time the dataset was last modified.
- acl¶
The access control list for the dataset.
- default_table_expire_duration¶
If this field is present, each table that does not specify an expiration time is assigned an expiration time by adding this duration to the table’s
createTime
. If this field is empty, there is no default table expiration time.
- class google.cloud.bigquery_logging_v1.types.DatasetInfo(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
User-provided metadata for a dataset.
- description¶
A long description, perhaps several paragraphs, describing the dataset contents in detail.
- Type
- class LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)¶
Bases:
proto.message.Message
- class google.cloud.bigquery_logging_v1.types.DatasetInsertRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Dataset insert request.
- resource¶
The dataset to be inserted.
- class google.cloud.bigquery_logging_v1.types.DatasetInsertResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Dataset insert response.
- resource¶
Final state of the inserted dataset.
- class google.cloud.bigquery_logging_v1.types.DatasetListRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Dataset list request.
- class google.cloud.bigquery_logging_v1.types.DatasetName(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
The fully-qualified name for a dataset.
- class google.cloud.bigquery_logging_v1.types.DatasetUpdateRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Dataset update request.
- resource¶
The dataset to be updated.
- class google.cloud.bigquery_logging_v1.types.DatasetUpdateResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Dataset update response.
- resource¶
Final state of the updated dataset.
- class google.cloud.bigquery_logging_v1.types.EncryptionInfo(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Describes encryption properties for a table or a job
- class google.cloud.bigquery_logging_v1.types.Job(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Describes a job.
- job_name¶
Job name.
- job_configuration¶
Job configuration.
- job_status¶
Job status.
- job_statistics¶
Job statistics.
- class google.cloud.bigquery_logging_v1.types.JobCompletedEvent(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Query job completed event.
- job¶
Job information.
- class google.cloud.bigquery_logging_v1.types.JobConfiguration(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Job configuration information. See the Jobs API resource for more details on individual fields.
This message has oneof fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.
- class Extract(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Describes an extract job, which exports data to an external source via the export pipeline.
- destination_uris¶
Google Cloud Storage URIs where extracted data should be written.
- Type
MutableSequence[str]
- source_table¶
The source table.
- class LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)¶
Bases:
proto.message.Message
- class Load(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Describes a load job, which loads data from an external source via the import pipeline.
- source_uris¶
URIs for the data to be imported. Only Google Cloud Storage URIs are supported.
- Type
MutableSequence[str]
- destination_table¶
The table where the imported data is written.
- create_disposition¶
Describes when a job is allowed to create a table:
CREATE_IF_NEEDED
,CREATE_NEVER
.- Type
- write_disposition¶
Describes how writes affect existing tables:
WRITE_TRUNCATE
,WRITE_APPEND
,WRITE_EMPTY
.- Type
- destination_table_encryption¶
Result table encryption information. Set when non-default encryption is used.
- class Query(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Describes a query job, which executes a SQL-like query.
- destination_table¶
The table where results are written.
- create_disposition¶
Describes when a job is allowed to create a table:
CREATE_IF_NEEDED
,CREATE_NEVER
.- Type
- write_disposition¶
Describes how writes affect existing tables:
WRITE_TRUNCATE
,WRITE_APPEND
,WRITE_EMPTY
.- Type
- default_dataset¶
If a table name is specified without a dataset in a query, this dataset will be added to table name.
- table_definitions¶
Describes data sources outside BigQuery, if needed.
- Type
MutableSequence[google.cloud.bigquery_logging_v1.types.TableDefinition]
- query_priority¶
Describes the priority given to the query:
QUERY_INTERACTIVE
orQUERY_BATCH
.- Type
- destination_table_encryption¶
Result table encryption information. Set when non-default encryption is used.
- class TableCopy(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Describes a copy job, which copies an existing table to another table.
- source_tables¶
Source tables.
- Type
MutableSequence[google.cloud.bigquery_logging_v1.types.TableName]
- destination_table¶
Destination table.
- create_disposition¶
Describes when a job is allowed to create a table:
CREATE_IF_NEEDED
,CREATE_NEVER
.- Type
- write_disposition¶
Describes how writes affect existing tables:
WRITE_TRUNCATE
,WRITE_APPEND
,WRITE_EMPTY
.- Type
- destination_table_encryption¶
Result table encryption information. Set when non-default encryption is used.
- class google.cloud.bigquery_logging_v1.types.JobGetQueryResultsRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Job getQueryResults request.
- class google.cloud.bigquery_logging_v1.types.JobGetQueryResultsResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Job getQueryResults response.
- job¶
The job that was created to run the query. It completed if
job.status.state
isDONE
. It failed ifjob.status.errorResult
is also present.
- class google.cloud.bigquery_logging_v1.types.JobInsertRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Job insert request.
- resource¶
Job insert request.
- class google.cloud.bigquery_logging_v1.types.JobInsertResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Job insert response.
- resource¶
Job insert response.
- class google.cloud.bigquery_logging_v1.types.JobName(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
The fully-qualified name for a job.
- class google.cloud.bigquery_logging_v1.types.JobQueryDoneResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Job getQueryDone response.
- job¶
The job and status information. The job completed if
job.status.state
isDONE
.
- class google.cloud.bigquery_logging_v1.types.JobQueryRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Job query request.
- default_dataset¶
The default dataset for tables that do not have a dataset specified.
- class google.cloud.bigquery_logging_v1.types.JobQueryResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Job query response.
- job¶
Information about the queried job.
- class google.cloud.bigquery_logging_v1.types.JobStatistics(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Job statistics that may change after a job starts.
- create_time¶
Time when the job was created.
- start_time¶
Time when the job started.
- end_time¶
Time when the job ended.
- reservation_usage¶
Reservation usage. This field reported misleading information and will no longer be populated. Aggregate usage of all jobs submitted to a reservation should provide a more reliable indicator of reservation imbalance.
- Type
MutableSequence[google.cloud.bigquery_logging_v1.types.JobStatistics.ReservationResourceUsage]
- referenced_tables¶
The first N tables accessed by the query job. Older queries that reference a large number of tables may not have all of their tables in this list. You can use the total_tables_processed count to know how many total tables were read in the query. For new queries, there is currently no limit.
- Type
MutableSequence[google.cloud.bigquery_logging_v1.types.TableName]
- referenced_views¶
The first N views accessed by the query job. Older queries that reference a large number of views may not have all of their views in this list. You can use the total_tables_processed count to know how many total tables were read in the query. For new queries, there is currently no limit.
- Type
MutableSequence[google.cloud.bigquery_logging_v1.types.TableName]
- class ReservationResourceUsage(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Job resource usage breakdown by reservation.
- class google.cloud.bigquery_logging_v1.types.JobStatus(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Running state of a job.
- error¶
If the job did not complete successfully, this field describes why.
- Type
google.rpc.status_pb2.Status
- additional_errors¶
Errors encountered during the running of the job. Do not necessarily mean that the job has completed or was unsuccessful.
- Type
MutableSequence[google.rpc.status_pb2.Status]
- class google.cloud.bigquery_logging_v1.types.Table(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Describes a BigQuery table. See the Table API resource for more details on individual fields. Note:
Table.schema
has been deprecated in favor ofTable.schemaJson
.Table.schema
may continue to be present in your logs during this transition.- table_name¶
The name of the table.
- info¶
User-provided metadata for the table.
- view¶
If present, this is a virtual table defined by a SQL query.
- expire_time¶
The expiration date for the table, after which the table is deleted and the storage reclaimed. If not present, the table persists indefinitely.
- create_time¶
The time the table was created.
- truncate_time¶
The time the table was last truncated by an operation with a
writeDisposition
ofWRITE_TRUNCATE
.
- update_time¶
The time the table was last modified.
- encryption¶
The table encryption information. Set when non-default encryption is used.
- class google.cloud.bigquery_logging_v1.types.TableDataListRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Table data-list request.
- class google.cloud.bigquery_logging_v1.types.TableDataReadEvent(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Table data read event. Only present for tables, not views, and is only included in the log record for the project that owns the table.
- table_name¶
Name of the accessed table.
- class google.cloud.bigquery_logging_v1.types.TableDefinition(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Describes an external data source used in a query.
- class google.cloud.bigquery_logging_v1.types.TableInfo(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
User-provided metadata for a table.
- description¶
A long description, perhaps several paragraphs, describing the table contents in detail.
- Type
- class LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)¶
Bases:
proto.message.Message
- class google.cloud.bigquery_logging_v1.types.TableInsertRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Table insert request.
- resource¶
The new table.
- class google.cloud.bigquery_logging_v1.types.TableInsertResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Table insert response.
- resource¶
Final state of the inserted table.
- class google.cloud.bigquery_logging_v1.types.TableName(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
The fully-qualified name for a table.
- class google.cloud.bigquery_logging_v1.types.TableUpdateRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Table update request.
- resource¶
The table to be updated.
- class google.cloud.bigquery_logging_v1.types.TableUpdateResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Table update response.
- resource¶
Final state of the updated table.
- class google.cloud.bigquery_logging_v1.types.TableViewDefinition(mapping=None, *, ignore_unknown_fields=False, **kwargs)[source]¶
Bases:
proto.message.Message
Describes a virtual table defined by a SQL query.