blob: f93a0c76f2e8cc2d9de2799a1b5f97ce4c547152 [file] [log] [blame]
John Asmuth614db982014-04-24 15:46:26 -04001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="bigquery_v2.html">BigQuery API</a> . <a href="bigquery_v2.tables.html">tables</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#delete">delete(projectId, datasetId, tableId)</a></code></p>
79<p class="firstline">Deletes the table specified by tableId from the dataset. If the table contains data, all the data will be deleted.</p>
80<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070081 <code><a href="#get">get(projectId, datasetId, tableId, selectedFields=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040082<p class="firstline">Gets the specified table resource by table ID. This method does not return the data in the table, it only returns the table resource, which describes the structure of this table.</p>
83<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070084 <code><a href="#getIamPolicy">getIamPolicy(resource, body=None)</a></code></p>
85<p class="firstline">Gets the access control policy for a resource.</p>
86<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070087 <code><a href="#insert">insert(projectId, datasetId, body=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040088<p class="firstline">Creates a new, empty table in the dataset.</p>
89<p class="toc_element">
90 <code><a href="#list">list(projectId, datasetId, pageToken=None, maxResults=None)</a></code></p>
Nathaniel Manista4f877e52015-06-15 16:44:50 +000091<p class="firstline">Lists all tables in the specified dataset. Requires the READER dataset role.</p>
John Asmuth614db982014-04-24 15:46:26 -040092<p class="toc_element">
93 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
94<p class="firstline">Retrieves the next page of results.</p>
95<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070096 <code><a href="#patch">patch(projectId, datasetId, tableId, body=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040097<p class="firstline">Updates information in an existing table. The update method replaces the entire table resource, whereas the patch method only replaces fields that are provided in the submitted table resource. This method supports patch semantics.</p>
98<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070099 <code><a href="#setIamPolicy">setIamPolicy(resource, body=None)</a></code></p>
100<p class="firstline">Sets the access control policy on the specified resource. Replaces any</p>
101<p class="toc_element">
102 <code><a href="#testIamPermissions">testIamPermissions(resource, body=None)</a></code></p>
103<p class="firstline">Returns permissions that a caller has on the specified resource.</p>
104<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700105 <code><a href="#update">update(projectId, datasetId, tableId, body=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -0400106<p class="firstline">Updates information in an existing table. The update method replaces the entire table resource, whereas the patch method only replaces fields that are provided in the submitted table resource.</p>
107<h3>Method Details</h3>
108<div class="method">
109 <code class="details" id="delete">delete(projectId, datasetId, tableId)</code>
110 <pre>Deletes the table specified by tableId from the dataset. If the table contains data, all the data will be deleted.
111
112Args:
113 projectId: string, Project ID of the table to delete (required)
114 datasetId: string, Dataset ID of the table to delete (required)
115 tableId: string, Table ID of the table to delete (required)
116</pre>
117</div>
118
119<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700120 <code class="details" id="get">get(projectId, datasetId, tableId, selectedFields=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400121 <pre>Gets the specified table resource by table ID. This method does not return the data in the table, it only returns the table resource, which describes the structure of this table.
122
123Args:
124 projectId: string, Project ID of the requested table (required)
125 datasetId: string, Dataset ID of the requested table (required)
126 tableId: string, Table ID of the requested table (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700127 selectedFields: string, List of fields to return (comma-separated). If unspecified, all fields are returned
John Asmuth614db982014-04-24 15:46:26 -0400128
129Returns:
130 An object of the form:
131
132 {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700133 &quot;view&quot;: { # [Optional] The view definition.
134 &quot;useLegacySql&quot;: True or False, # Specifies whether to use BigQuery&#x27;s legacy SQL for this view. The default value is true. If set to false, the view will use BigQuery&#x27;s standard SQL: https://cloud.google.com/bigquery/sql-reference/ Queries and views that reference this view must use the same flag value.
135 &quot;query&quot;: &quot;A String&quot;, # [Required] A query that BigQuery executes when the view is referenced.
136 &quot;userDefinedFunctionResources&quot;: [ # Describes user-defined function resources used in the query.
137 { # This is used for defining User Defined Function (UDF) resources only when using legacy SQL. Users of Standard SQL should leverage either DDL (e.g. CREATE [TEMPORARY] FUNCTION ... ) or the Routines API to define UDF resources. For additional information on migrating, see: https://cloud.google.com/bigquery/docs/reference/standard-sql/migrating-from-legacy-sql#differences_in_user-defined_javascript_functions
138 &quot;inlineCode&quot;: &quot;A String&quot;, # [Pick one] An inline resource that contains code for a user-defined function (UDF). Providing a inline code resource is equivalent to providing a URI for a file containing the same code.
139 &quot;resourceUri&quot;: &quot;A String&quot;, # [Pick one] A code resource to load from a Google Cloud Storage URI (gs://bucket/path).
140 },
141 ],
142 },
143 &quot;numLongTermBytes&quot;: &quot;A String&quot;, # [Output-only] The number of bytes in the table that are considered &quot;long-term storage&quot;.
144 &quot;etag&quot;: &quot;A String&quot;, # [Output-only] A hash of the table metadata. Used to ensure there were no concurrent modifications to the resource when attempting an update. Not guaranteed to change when the table contents or the fields numRows, numBytes, numLongTermBytes or lastModifiedTime change.
145 &quot;encryptionConfiguration&quot;: { # Custom encryption configuration (e.g., Cloud KMS keys).
146 &quot;kmsKeyName&quot;: &quot;A String&quot;, # [Optional] Describes the Cloud KMS encryption key that will be used to protect destination BigQuery table. The BigQuery Service Account associated with your project requires access to this encryption key.
147 },
148 &quot;streamingBuffer&quot;: { # [Output-only] Contains information regarding this table&#x27;s streaming buffer, if one is present. This field will be absent if the table is not being streamed to or if there is no data in the streaming buffer.
149 &quot;estimatedBytes&quot;: &quot;A String&quot;, # [Output-only] A lower-bound estimate of the number of bytes currently in the streaming buffer.
150 &quot;estimatedRows&quot;: &quot;A String&quot;, # [Output-only] A lower-bound estimate of the number of rows currently in the streaming buffer.
151 &quot;oldestEntryTime&quot;: &quot;A String&quot;, # [Output-only] Contains the timestamp of the oldest entry in the streaming buffer, in milliseconds since the epoch, if the streaming buffer is available.
152 },
153 &quot;numBytes&quot;: &quot;A String&quot;, # [Output-only] The size of this table in bytes, excluding any data in the streaming buffer.
154 &quot;location&quot;: &quot;A String&quot;, # [Output-only] The geographic location where the table resides. This value is inherited from the dataset.
155 &quot;timePartitioning&quot;: { # Time-based partitioning specification for this table. Only one of timePartitioning and rangePartitioning should be specified.
156 &quot;requirePartitionFilter&quot;: True or False,
157 &quot;field&quot;: &quot;A String&quot;, # [Beta] [Optional] If not set, the table is partitioned by pseudo column, referenced via either &#x27;_PARTITIONTIME&#x27; as TIMESTAMP type, or &#x27;_PARTITIONDATE&#x27; as DATE type. If field is specified, the table is instead partitioned by this field. The field must be a top-level TIMESTAMP or DATE field. Its mode must be NULLABLE or REQUIRED.
158 &quot;expirationMs&quot;: &quot;A String&quot;, # [Optional] Number of milliseconds for which to keep the storage for partitions in the table. The storage in a partition will have an expiration time of its partition time plus this value.
159 &quot;type&quot;: &quot;A String&quot;, # [Required] The only type supported is DAY, which will generate one partition per day.
160 },
161 &quot;friendlyName&quot;: &quot;A String&quot;, # [Optional] A descriptive name for this table.
162 &quot;labels&quot;: { # The labels associated with this table. You can use these to organize and group your tables. Label keys and values can be no longer than 63 characters, can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter and each label in the list must have a different key.
163 &quot;a_key&quot;: &quot;A String&quot;,
164 },
165 &quot;numPhysicalBytes&quot;: &quot;A String&quot;, # [Output-only] [TrustedTester] The physical size of this table in bytes, excluding any data in the streaming buffer. This includes compression and storage used for time travel.
Bu Sun Kim65020912020-05-20 12:08:20 -0700166 &quot;externalDataConfiguration&quot;: { # [Optional] Describes the data format, location, and other properties of a table stored outside of BigQuery. By defining these properties, the data source can then be queried as if it were a standard BigQuery table.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700167 &quot;compression&quot;: &quot;A String&quot;, # [Optional] The compression type of the data source. Possible values include GZIP and NONE. The default value is NONE. This setting is ignored for Google Cloud Bigtable, Google Cloud Datastore backups and Avro formats.
168 &quot;maxBadRecords&quot;: 42, # [Optional] The maximum number of bad records that BigQuery can ignore when reading data. If the number of bad records exceeds this value, an invalid error is returned in the job result. This is only valid for CSV, JSON, and Google Sheets. The default value is 0, which requires that all records are valid. This setting is ignored for Google Cloud Bigtable, Google Cloud Datastore backups and Avro formats.
169 &quot;sourceUris&quot;: [ # [Required] The fully-qualified URIs that point to your data in Google Cloud. For Google Cloud Storage URIs: Each URI can contain one &#x27;*&#x27; wildcard character and it must come after the &#x27;bucket&#x27; name. Size limits related to load jobs apply to external data sources. For Google Cloud Bigtable URIs: Exactly one URI can be specified and it has be a fully specified and valid HTTPS URL for a Google Cloud Bigtable table. For Google Cloud Datastore backups, exactly one URI can be specified. Also, the &#x27;*&#x27; wildcard character is not allowed.
170 &quot;A String&quot;,
171 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700172 &quot;csvOptions&quot;: { # Additional properties to set if sourceFormat is set to CSV.
Bu Sun Kim65020912020-05-20 12:08:20 -0700173 &quot;quote&quot;: &quot;&quot;&quot;, # [Optional] The value that is used to quote data sections in a CSV file. BigQuery converts the string to ISO-8859-1 encoding, and then uses the first byte of the encoded string to split the data in its raw, binary state. The default value is a double-quote (&#x27;&quot;&#x27;). If your data does not contain quoted sections, set the property value to an empty string. If your data contains quoted newline characters, you must also set the allowQuotedNewlines property to true.
174 &quot;skipLeadingRows&quot;: &quot;A String&quot;, # [Optional] The number of rows at the top of a CSV file that BigQuery will skip when reading the data. The default value is 0. This property is useful if you have header rows in the file that should be skipped. When autodetect is on, the behavior is the following: * skipLeadingRows unspecified - Autodetect tries to detect headers in the first row. If they are not detected, the row is read as data. Otherwise data is read starting from the second row. * skipLeadingRows is 0 - Instructs autodetect that there are no headers and data should be read starting from the first row. * skipLeadingRows = N &gt; 0 - Autodetect skips N-1 rows and tries to detect headers in row N. If headers are not detected, row N is just skipped. Otherwise row N is used to extract column names for the detected schema.
175 &quot;allowJaggedRows&quot;: True or False, # [Optional] Indicates if BigQuery should accept rows that are missing trailing optional columns. If true, BigQuery treats missing trailing columns as null values. If false, records with missing trailing columns are treated as bad records, and if there are too many bad records, an invalid error is returned in the job result. The default value is false.
176 &quot;fieldDelimiter&quot;: &quot;A String&quot;, # [Optional] The separator for fields in a CSV file. BigQuery converts the string to ISO-8859-1 encoding, and then uses the first byte of the encoded string to split the data in its raw, binary state. BigQuery also supports the escape sequence &quot;\t&quot; to specify a tab separator. The default value is a comma (&#x27;,&#x27;).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700177 &quot;encoding&quot;: &quot;A String&quot;, # [Optional] The character encoding of the data. The supported values are UTF-8 or ISO-8859-1. The default value is UTF-8. BigQuery decodes the data after the raw, binary data has been split using the values of the quote and fieldDelimiter properties.
178 &quot;allowQuotedNewlines&quot;: True or False, # [Optional] Indicates if BigQuery should allow quoted data sections that contain newline characters in a CSV file. The default value is false.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700179 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700180 &quot;bigtableOptions&quot;: { # [Optional] Additional options if sourceFormat is set to BIGTABLE.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700181 &quot;readRowkeyAsString&quot;: True or False, # [Optional] If field is true, then the rowkey column families will be read and converted to string. Otherwise they are read with BYTES type values and users need to manually cast them with CAST if necessary. The default value is false.
Bu Sun Kim65020912020-05-20 12:08:20 -0700182 &quot;columnFamilies&quot;: [ # [Optional] List of column families to expose in the table schema along with their types. This list restricts the column families that can be referenced in queries and specifies their value types. You can use this list to do type conversions - see the &#x27;type&#x27; field for more details. If you leave this list empty, all column families are present in the table schema and their values are read as BYTES. During a query only the column families referenced in that query are read from Bigtable.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700183 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700184 &quot;onlyReadLatest&quot;: True or False, # [Optional] If this is set only the latest version of value are exposed for all columns in this column family. This can be overridden for a specific column by listing that column in &#x27;columns&#x27; and specifying a different setting for that column.
185 &quot;encoding&quot;: &quot;A String&quot;, # [Optional] The encoding of the values when the type is not STRING. Acceptable encoding values are: TEXT - indicates values are alphanumeric text strings. BINARY - indicates values are encoded using HBase Bytes.toBytes family of functions. This can be overridden for a specific column by listing that column in &#x27;columns&#x27; and specifying an encoding for it.
186 &quot;columns&quot;: [ # [Optional] Lists of columns that should be exposed as individual fields as opposed to a list of (column name, value) pairs. All columns whose qualifier matches a qualifier in this list can be accessed as .. Other columns can be accessed as a list through .Column field.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700187 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700188 &quot;fieldName&quot;: &quot;A String&quot;, # [Optional] If the qualifier is not a valid BigQuery field identifier i.e. does not match [a-zA-Z][a-zA-Z0-9_]*, a valid identifier must be provided as the column field name and is used as field name in queries.
189 &quot;qualifierString&quot;: &quot;A String&quot;,
190 &quot;encoding&quot;: &quot;A String&quot;, # [Optional] The encoding of the values when the type is not STRING. Acceptable encoding values are: TEXT - indicates values are alphanumeric text strings. BINARY - indicates values are encoded using HBase Bytes.toBytes family of functions. &#x27;encoding&#x27; can also be set at the column family level. However, the setting at this level takes precedence if &#x27;encoding&#x27; is set at both levels.
191 &quot;type&quot;: &quot;A String&quot;, # [Optional] The type to convert the value in cells of this column. The values are expected to be encoded using HBase Bytes.toBytes function when using the BINARY encoding value. Following BigQuery types are allowed (case-sensitive) - BYTES STRING INTEGER FLOAT BOOLEAN Default type is BYTES. &#x27;type&#x27; can also be set at the column family level. However, the setting at this level takes precedence if &#x27;type&#x27; is set at both levels.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700192 &quot;qualifierEncoded&quot;: &quot;A String&quot;, # [Required] Qualifier of the column. Columns in the parent column family that has this exact qualifier are exposed as . field. If the qualifier is valid UTF-8 string, it can be specified in the qualifier_string field. Otherwise, a base-64 encoded value must be set to qualifier_encoded. The column field name is the same as the column qualifier. However, if the qualifier is not a valid BigQuery field identifier i.e. does not match [a-zA-Z][a-zA-Z0-9_]*, a valid identifier must be provided as field_name.
193 &quot;onlyReadLatest&quot;: True or False, # [Optional] If this is set, only the latest version of value in this column are exposed. &#x27;onlyReadLatest&#x27; can also be set at the column family level. However, the setting at this level takes precedence if &#x27;onlyReadLatest&#x27; is set at both levels.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700194 },
195 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700196 &quot;type&quot;: &quot;A String&quot;, # [Optional] The type to convert the value in cells of this column family. The values are expected to be encoded using HBase Bytes.toBytes function when using the BINARY encoding value. Following BigQuery types are allowed (case-sensitive) - BYTES STRING INTEGER FLOAT BOOLEAN Default type is BYTES. This can be overridden for a specific column by listing that column in &#x27;columns&#x27; and specifying a type for it.
197 &quot;familyId&quot;: &quot;A String&quot;, # Identifier of the column family.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700198 },
199 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700200 &quot;ignoreUnspecifiedColumnFamilies&quot;: True or False, # [Optional] If field is true, then the column families that are not specified in columnFamilies list are not exposed in the table schema. Otherwise, they are read with BYTES type values. The default value is false.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700201 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700202 &quot;schema&quot;: { # [Optional] The schema for the data. Schema is required for CSV and JSON formats. Schema is disallowed for Google Cloud Bigtable, Cloud Datastore backups, and Avro formats.
203 &quot;fields&quot;: [ # Describes the fields in a table.
Takashi Matsuo06694102015-09-11 13:55:40 -0700204 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700205 &quot;name&quot;: &quot;A String&quot;, # [Required] The field name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 128 characters.
206 &quot;type&quot;: &quot;A String&quot;, # [Required] The field data type. Possible values include STRING, BYTES, INTEGER, INT64 (same as INTEGER), FLOAT, FLOAT64 (same as FLOAT), BOOLEAN, BOOL (same as BOOLEAN), TIMESTAMP, DATE, TIME, DATETIME, RECORD (where RECORD indicates that the field contains a nested schema) or STRUCT (same as RECORD).
207 &quot;categories&quot;: { # [Optional] The categories attached to this field, used for field-level access control.
208 &quot;names&quot;: [ # A list of category resource names. For example, &quot;projects/1/taxonomies/2/categories/3&quot;. At most 5 categories are allowed.
209 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700210 ],
211 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700212 &quot;mode&quot;: &quot;A String&quot;, # [Optional] The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.
213 &quot;description&quot;: &quot;A String&quot;, # [Optional] The field description. The maximum length is 1,024 characters.
214 &quot;policyTags&quot;: {
215 &quot;names&quot;: [ # A list of category resource names. For example, &quot;projects/1/location/eu/taxonomies/2/policyTags/3&quot;. At most 1 policy tag is allowed.
216 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700217 ],
218 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700219 &quot;fields&quot;: [ # [Optional] Describes the nested schema fields if the type property is set to RECORD.
220 # Object with schema name: TableFieldSchema
221 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700222 },
223 ],
224 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700225 &quot;connectionId&quot;: &quot;A String&quot;, # [Optional, Trusted Tester] Connection for external data source.
Bu Sun Kim65020912020-05-20 12:08:20 -0700226 &quot;hivePartitioningOptions&quot;: { # [Optional, Trusted Tester] Options to configure hive partitioning support.
227 &quot;sourceUriPrefix&quot;: &quot;A String&quot;, # [Optional, Trusted Tester] When hive partition detection is requested, a common prefix for all source uris should be supplied. The prefix must end immediately before the partition key encoding begins. For example, consider files following this data layout. gs://bucket/path_to_table/dt=2019-01-01/country=BR/id=7/file.avro gs://bucket/path_to_table/dt=2018-12-31/country=CA/id=3/file.avro When hive partitioning is requested with either AUTO or STRINGS detection, the common prefix can be either of gs://bucket/path_to_table or gs://bucket/path_to_table/ (trailing slash does not matter).
228 &quot;mode&quot;: &quot;A String&quot;, # [Optional, Trusted Tester] When set, what mode of hive partitioning to use when reading data. Two modes are supported. (1) AUTO: automatically infer partition key name(s) and type(s). (2) STRINGS: automatically infer partition key name(s). All types are interpreted as strings. Not all storage formats support hive partitioning. Requesting hive partitioning on an unsupported format will lead to an error. Currently supported types include: AVRO, CSV, JSON, ORC and Parquet.
229 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700230 &quot;autodetect&quot;: True or False, # Try to detect schema and format options automatically. Any option specified explicitly will be honored.
231 &quot;googleSheetsOptions&quot;: { # [Optional] Additional options if sourceFormat is set to GOOGLE_SHEETS.
232 &quot;range&quot;: &quot;A String&quot;, # [Optional] Range of a sheet to query from. Only used when non-empty. Typical format: sheet_name!top_left_cell_id:bottom_right_cell_id For example: sheet1!A1:B20
233 &quot;skipLeadingRows&quot;: &quot;A String&quot;, # [Optional] The number of rows at the top of a sheet that BigQuery will skip when reading the data. The default value is 0. This property is useful if you have header rows that should be skipped. When autodetect is on, behavior is the following: * skipLeadingRows unspecified - Autodetect tries to detect headers in the first row. If they are not detected, the row is read as data. Otherwise data is read starting from the second row. * skipLeadingRows is 0 - Instructs autodetect that there are no headers and data should be read starting from the first row. * skipLeadingRows = N &gt; 0 - Autodetect skips N-1 rows and tries to detect headers in row N. If headers are not detected, row N is just skipped. Otherwise row N is used to extract column names for the detected schema.
234 },
235 &quot;ignoreUnknownValues&quot;: True or False, # [Optional] Indicates if BigQuery should allow extra values that are not represented in the table schema. If true, the extra values are ignored. If false, records with extra columns are treated as bad records, and if there are too many bad records, an invalid error is returned in the job result. The default value is false. The sourceFormat property determines what BigQuery treats as an extra value: CSV: Trailing columns JSON: Named values that don&#x27;t match any column names Google Cloud Bigtable: This setting is ignored. Google Cloud Datastore backups: This setting is ignored. Avro: This setting is ignored.
236 &quot;sourceFormat&quot;: &quot;A String&quot;, # [Required] The data format. For CSV files, specify &quot;CSV&quot;. For Google sheets, specify &quot;GOOGLE_SHEETS&quot;. For newline-delimited JSON, specify &quot;NEWLINE_DELIMITED_JSON&quot;. For Avro files, specify &quot;AVRO&quot;. For Google Cloud Datastore backups, specify &quot;DATASTORE_BACKUP&quot;. [Beta] For Google Cloud Bigtable, specify &quot;BIGTABLE&quot;.
Takashi Matsuo06694102015-09-11 13:55:40 -0700237 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700238 &quot;model&quot;: { # [Output-only, Beta] Present iff this table represents a ML model. Describes the training information for the model, and it is required to run &#x27;PREDICT&#x27; queries.
239 &quot;modelOptions&quot;: { # [Output-only, Beta] Model options used for the first training run. These options are immutable for subsequent training runs. Default values are used for any options not specified in the input query.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700240 &quot;lossType&quot;: &quot;A String&quot;,
241 &quot;modelType&quot;: &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -0700242 &quot;labels&quot;: [
243 &quot;A String&quot;,
244 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700245 },
246 &quot;trainingRuns&quot;: [ # [Output-only, Beta] Information about ml training runs, each training run comprises of multiple iterations and there may be multiple training runs for the model if warm start is used or if a user decides to continue a previously cancelled query.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800247 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700248 &quot;iterationResults&quot;: [ # [Output-only, Beta] List of each iteration results.
249 {
250 &quot;durationMs&quot;: &quot;A String&quot;, # [Output-only, Beta] Time taken to run the training iteration in milliseconds.
251 &quot;trainingLoss&quot;: 3.14, # [Output-only, Beta] Training loss computed on the training data at the end of the iteration. The training loss function is defined by model type.
252 &quot;evalLoss&quot;: 3.14, # [Output-only, Beta] Eval loss computed on the eval data at the end of the iteration. The eval loss is used for early stopping to avoid overfitting. No eval loss if eval_split_method option is specified as no_split or auto_split with input data size less than 500 rows.
253 &quot;index&quot;: 42, # [Output-only, Beta] Index of the ML training iteration, starting from zero for each training run.
254 &quot;learnRate&quot;: 3.14, # [Output-only, Beta] Learning rate used for this iteration, it varies for different training iterations if learn_rate_strategy option is not constant.
255 },
256 ],
257 &quot;startTime&quot;: &quot;A String&quot;, # [Output-only, Beta] Training run start time in milliseconds since the epoch.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700258 &quot;trainingOptions&quot;: { # [Output-only, Beta] Training options used by this training run. These options are mutable for subsequent training runs. Default values are explicitly stored for options not specified in the input query of the first training run. For subsequent training runs, any option not explicitly specified in the input query will be copied from the previous training run.
259 &quot;l1Reg&quot;: 3.14,
260 &quot;maxIteration&quot;: &quot;A String&quot;,
261 &quot;learnRate&quot;: 3.14,
262 &quot;minRelProgress&quot;: 3.14,
263 &quot;l2Reg&quot;: 3.14,
264 &quot;warmStart&quot;: True or False,
265 &quot;learnRateStrategy&quot;: &quot;A String&quot;,
266 &quot;lineSearchInitLearnRate&quot;: 3.14,
267 &quot;earlyStop&quot;: True or False,
268 },
269 &quot;state&quot;: &quot;A String&quot;, # [Output-only, Beta] Different state applicable for a training run. IN PROGRESS: Training run is in progress. FAILED: Training run ended due to a non-retryable failure. SUCCEEDED: Training run successfully completed. CANCELLED: Training run cancelled by the user.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800270 },
271 ],
272 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700273 &quot;selfLink&quot;: &quot;A String&quot;, # [Output-only] A URL that can be used to access this resource again.
274 &quot;expirationTime&quot;: &quot;A String&quot;, # [Optional] The time when this table expires, in milliseconds since the epoch. If not present, the table will persist indefinitely. Expired tables will be deleted and their storage reclaimed. The defaultTableExpirationMs property of the encapsulating dataset can be used to set a default expirationTime on newly created tables.
275 &quot;kind&quot;: &quot;bigquery#table&quot;, # [Output-only] The type of the resource.
276 &quot;description&quot;: &quot;A String&quot;, # [Optional] A user-friendly description of this table.
277 &quot;creationTime&quot;: &quot;A String&quot;, # [Output-only] The time when this table was created, in milliseconds since the epoch.
278 &quot;rangePartitioning&quot;: { # [TrustedTester] Range partitioning specification for this table. Only one of timePartitioning and rangePartitioning should be specified.
279 &quot;range&quot;: { # [TrustedTester] [Required] Defines the ranges for range partitioning.
280 &quot;interval&quot;: &quot;A String&quot;, # [TrustedTester] [Required] The width of each interval.
281 &quot;start&quot;: &quot;A String&quot;, # [TrustedTester] [Required] The start of range partitioning, inclusive.
282 &quot;end&quot;: &quot;A String&quot;, # [TrustedTester] [Required] The end of range partitioning, exclusive.
283 },
284 &quot;field&quot;: &quot;A String&quot;, # [TrustedTester] [Required] The table is partitioned by this field. The field must be a top-level NULLABLE/REQUIRED field. The only supported type is INTEGER/INT64.
285 },
286 &quot;schema&quot;: { # [Optional] Describes the schema of this table.
287 &quot;fields&quot;: [ # Describes the fields in a table.
288 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700289 &quot;name&quot;: &quot;A String&quot;, # [Required] The field name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 128 characters.
290 &quot;type&quot;: &quot;A String&quot;, # [Required] The field data type. Possible values include STRING, BYTES, INTEGER, INT64 (same as INTEGER), FLOAT, FLOAT64 (same as FLOAT), BOOLEAN, BOOL (same as BOOLEAN), TIMESTAMP, DATE, TIME, DATETIME, RECORD (where RECORD indicates that the field contains a nested schema) or STRUCT (same as RECORD).
291 &quot;categories&quot;: { # [Optional] The categories attached to this field, used for field-level access control.
292 &quot;names&quot;: [ # A list of category resource names. For example, &quot;projects/1/taxonomies/2/categories/3&quot;. At most 5 categories are allowed.
293 &quot;A String&quot;,
294 ],
295 },
296 &quot;mode&quot;: &quot;A String&quot;, # [Optional] The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.
297 &quot;description&quot;: &quot;A String&quot;, # [Optional] The field description. The maximum length is 1,024 characters.
298 &quot;policyTags&quot;: {
299 &quot;names&quot;: [ # A list of category resource names. For example, &quot;projects/1/location/eu/taxonomies/2/policyTags/3&quot;. At most 1 policy tag is allowed.
300 &quot;A String&quot;,
301 ],
302 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700303 &quot;fields&quot;: [ # [Optional] Describes the nested schema fields if the type property is set to RECORD.
304 # Object with schema name: TableFieldSchema
305 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700306 },
307 ],
308 },
309 &quot;id&quot;: &quot;A String&quot;, # [Output-only] An opaque ID uniquely identifying the table.
310 &quot;requirePartitionFilter&quot;: false, # [Optional] If set to true, queries over this table require a partition filter that can be used for partition elimination to be specified.
311 &quot;materializedView&quot;: { # [Optional] Materialized view definition.
312 &quot;query&quot;: &quot;A String&quot;, # [Required] A query whose result is persisted.
313 &quot;enableRefresh&quot;: True or False, # [Optional] [TrustedTester] Enable automatic refresh of the materialized view when the base table is updated. The default value is &quot;true&quot;.
314 &quot;refreshIntervalMs&quot;: &quot;A String&quot;, # [Optional] [TrustedTester] The maximum frequency at which this materialized view will be refreshed. The default value is &quot;1800000&quot; (30 minutes).
315 &quot;lastRefreshTime&quot;: &quot;A String&quot;, # [Output-only] [TrustedTester] The time when this materialized view was last modified, in milliseconds since the epoch.
316 },
317 &quot;tableReference&quot;: { # [Required] Reference describing the ID of this table.
Bu Sun Kim65020912020-05-20 12:08:20 -0700318 &quot;projectId&quot;: &quot;A String&quot;, # [Required] The ID of the project containing this table.
319 &quot;datasetId&quot;: &quot;A String&quot;, # [Required] The ID of the dataset containing this table.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700320 &quot;tableId&quot;: &quot;A String&quot;, # [Required] The ID of the table. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700321 },
322 &quot;lastModifiedTime&quot;: &quot;A String&quot;, # [Output-only] The time when this table was last modified, in milliseconds since the epoch.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700323 &quot;type&quot;: &quot;A String&quot;, # [Output-only] Describes the table type. The following values are supported: TABLE: A normal BigQuery table. VIEW: A virtual table defined by a SQL query. [TrustedTester] MATERIALIZED_VIEW: SQL query whose result is persisted. EXTERNAL: A table that references data stored in an external storage system, such as Google Cloud Storage. The default value is TABLE.
Bu Sun Kim65020912020-05-20 12:08:20 -0700324 &quot;clustering&quot;: { # [Beta] Clustering specification for the table. Must be specified with partitioning, data in the table will be first partitioned and subsequently clustered.
325 &quot;fields&quot;: [ # [Repeated] One or more fields on which data should be clustered. Only top-level, non-repeated, simple-type fields are supported. When you cluster a table using multiple columns, the order of columns you specify is important. The order of the specified columns determines the sort order of the data.
326 &quot;A String&quot;,
327 ],
328 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700329 &quot;numRows&quot;: &quot;A String&quot;, # [Output-only] The number of rows of data in this table, excluding any data in the streaming buffer.
John Asmuth614db982014-04-24 15:46:26 -0400330 }</pre>
331</div>
332
333<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700334 <code class="details" id="getIamPolicy">getIamPolicy(resource, body=None)</code>
335 <pre>Gets the access control policy for a resource.
336Returns an empty policy if the resource exists and does not have a policy
337set.
338
339Args:
340 resource: string, REQUIRED: The resource for which the policy is being requested.
341See the operation documentation for the appropriate value for this field. (required)
342 body: object, The request body.
343 The object takes the form of:
344
345{ # Request message for `GetIamPolicy` method.
346 &quot;options&quot;: { # Encapsulates settings provided to GetIamPolicy. # OPTIONAL: A `GetPolicyOptions` object for specifying options to
347 # `GetIamPolicy`.
348 &quot;requestedPolicyVersion&quot;: 42, # Optional. The policy format version to be returned.
349 #
350 # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
351 # rejected.
352 #
353 # Requests for policies with any conditional bindings must specify version 3.
354 # Policies without any conditional bindings may specify any valid value or
355 # leave the field unset.
356 #
357 # To learn which resources support conditions in their IAM policies, see the
358 # [IAM
359 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
360 },
361 }
362
363
364Returns:
365 An object of the form:
366
367 { # An Identity and Access Management (IAM) policy, which specifies access
368 # controls for Google Cloud resources.
369 #
370 #
371 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
372 # `members` to a single `role`. Members can be user accounts, service accounts,
373 # Google groups, and domains (such as G Suite). A `role` is a named list of
374 # permissions; each `role` can be an IAM predefined role or a user-created
375 # custom role.
376 #
377 # For some types of Google Cloud resources, a `binding` can also specify a
378 # `condition`, which is a logical expression that allows access to a resource
379 # only if the expression evaluates to `true`. A condition can add constraints
380 # based on attributes of the request, the resource, or both. To learn which
381 # resources support conditions in their IAM policies, see the
382 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
383 #
384 # **JSON example:**
385 #
386 # {
387 # &quot;bindings&quot;: [
388 # {
389 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
390 # &quot;members&quot;: [
391 # &quot;user:mike@example.com&quot;,
392 # &quot;group:admins@example.com&quot;,
393 # &quot;domain:google.com&quot;,
394 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
395 # ]
396 # },
397 # {
398 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
399 # &quot;members&quot;: [
400 # &quot;user:eve@example.com&quot;
401 # ],
402 # &quot;condition&quot;: {
403 # &quot;title&quot;: &quot;expirable access&quot;,
404 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
405 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
406 # }
407 # }
408 # ],
409 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
410 # &quot;version&quot;: 3
411 # }
412 #
413 # **YAML example:**
414 #
415 # bindings:
416 # - members:
417 # - user:mike@example.com
418 # - group:admins@example.com
419 # - domain:google.com
420 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
421 # role: roles/resourcemanager.organizationAdmin
422 # - members:
423 # - user:eve@example.com
424 # role: roles/resourcemanager.organizationViewer
425 # condition:
426 # title: expirable access
427 # description: Does not grant access after Sep 2020
428 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
429 # - etag: BwWWja0YfJA=
430 # - version: 3
431 #
432 # For a description of IAM and its features, see the
433 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kim65020912020-05-20 12:08:20 -0700434 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
435 # prevent simultaneous updates of a policy from overwriting each other.
436 # It is strongly suggested that systems make use of the `etag` in the
437 # read-modify-write cycle to perform policy updates in order to avoid race
438 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
439 # systems are expected to put that etag in the request to `setIamPolicy` to
440 # ensure that their change will be applied to the same version of the policy.
441 #
442 # **Important:** If you use IAM Conditions, you must include the `etag` field
443 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
444 # you to overwrite a version `3` policy with a version `1` policy, and all of
445 # the conditions in the version `3` policy are lost.
446 &quot;version&quot;: 42, # Specifies the format of the policy.
447 #
448 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
449 # are rejected.
450 #
451 # Any operation that affects conditional role bindings must specify version
452 # `3`. This requirement applies to the following operations:
453 #
454 # * Getting a policy that includes a conditional role binding
455 # * Adding a conditional role binding to a policy
456 # * Changing a conditional role binding in a policy
457 # * Removing any role binding, with or without a condition, from a policy
458 # that includes conditions
459 #
460 # **Important:** If you use IAM Conditions, you must include the `etag` field
461 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
462 # you to overwrite a version `3` policy with a version `1` policy, and all of
463 # the conditions in the version `3` policy are lost.
464 #
465 # If a policy does not include any conditions, operations on that policy may
466 # specify any valid version or leave the field unset.
467 #
468 # To learn which resources support conditions in their IAM policies, see the
469 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
470 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
471 { # Specifies the audit configuration for a service.
472 # The configuration determines which permission types are logged, and what
473 # identities, if any, are exempted from logging.
474 # An AuditConfig must have one or more AuditLogConfigs.
475 #
476 # If there are AuditConfigs for both `allServices` and a specific service,
477 # the union of the two AuditConfigs is used for that service: the log_types
478 # specified in each AuditConfig are enabled, and the exempted_members in each
479 # AuditLogConfig are exempted.
480 #
481 # Example Policy with multiple AuditConfigs:
482 #
483 # {
484 # &quot;audit_configs&quot;: [
485 # {
486 # &quot;service&quot;: &quot;allServices&quot;
487 # &quot;audit_log_configs&quot;: [
488 # {
489 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
490 # &quot;exempted_members&quot;: [
491 # &quot;user:jose@example.com&quot;
492 # ]
493 # },
494 # {
495 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
496 # },
497 # {
498 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;,
499 # }
500 # ]
501 # },
502 # {
503 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;
504 # &quot;audit_log_configs&quot;: [
505 # {
506 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
507 # },
508 # {
509 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
510 # &quot;exempted_members&quot;: [
511 # &quot;user:aliya@example.com&quot;
512 # ]
513 # }
514 # ]
515 # }
516 # ]
517 # }
518 #
519 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
520 # logging. It also exempts jose@example.com from DATA_READ logging, and
521 # aliya@example.com from DATA_WRITE logging.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700522 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
523 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
524 # `allServices` is a special value that covers all services.
Bu Sun Kim65020912020-05-20 12:08:20 -0700525 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
526 { # Provides the configuration for logging a type of permissions.
527 # Example:
528 #
529 # {
530 # &quot;audit_log_configs&quot;: [
531 # {
532 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
533 # &quot;exempted_members&quot;: [
534 # &quot;user:jose@example.com&quot;
535 # ]
536 # },
537 # {
538 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
539 # }
540 # ]
541 # }
542 #
543 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
544 # jose@example.com from DATA_READ logging.
545 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
546 # permission.
547 # Follows the same format of Binding.members.
548 &quot;A String&quot;,
549 ],
550 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
551 },
552 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700553 },
554 ],
555 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
556 # `condition` that determines how and when the `bindings` are applied. Each
557 # of the `bindings` must contain at least one member.
558 { # Associates `members` with a `role`.
559 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
560 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
561 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
562 #
563 # If the condition evaluates to `true`, then this binding applies to the
564 # current request.
565 #
566 # If the condition evaluates to `false`, then this binding does not apply to
567 # the current request. However, a different role binding might grant the same
568 # role to one or more of the members in this binding.
569 #
570 # To learn which resources support conditions in their IAM policies, see the
571 # [IAM
572 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
573 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
574 # are documented at https://github.com/google/cel-spec.
575 #
576 # Example (Comparison):
577 #
578 # title: &quot;Summary size limit&quot;
579 # description: &quot;Determines if a summary is less than 100 chars&quot;
580 # expression: &quot;document.summary.size() &lt; 100&quot;
581 #
582 # Example (Equality):
583 #
584 # title: &quot;Requestor is owner&quot;
585 # description: &quot;Determines if requestor is the document owner&quot;
586 # expression: &quot;document.owner == request.auth.claims.email&quot;
587 #
588 # Example (Logic):
589 #
590 # title: &quot;Public documents&quot;
591 # description: &quot;Determine whether the document should be publicly visible&quot;
592 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
593 #
594 # Example (Data Manipulation):
595 #
596 # title: &quot;Notification string&quot;
597 # description: &quot;Create a notification string with a timestamp.&quot;
598 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
599 #
600 # The exact variables and functions that may be referenced within an expression
601 # are determined by the service that evaluates it. See the service
602 # documentation for additional information.
603 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
604 # describes the expression, e.g. when hovered over it in a UI.
605 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
606 # syntax.
607 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
608 # its purpose. This can be used e.g. in UIs which allow to enter the
609 # expression.
610 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
611 # reporting, e.g. a file name and a position in the file.
612 },
613 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
614 # `members` can have the following values:
615 #
616 # * `allUsers`: A special identifier that represents anyone who is
617 # on the internet; with or without a Google account.
618 #
619 # * `allAuthenticatedUsers`: A special identifier that represents anyone
620 # who is authenticated with a Google account or a service account.
621 #
622 # * `user:{emailid}`: An email address that represents a specific Google
623 # account. For example, `alice@example.com` .
624 #
625 #
626 # * `serviceAccount:{emailid}`: An email address that represents a service
627 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
628 #
629 # * `group:{emailid}`: An email address that represents a Google group.
630 # For example, `admins@example.com`.
631 #
632 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
633 # identifier) representing a user that has been recently deleted. For
634 # example, `alice@example.com?uid=123456789012345678901`. If the user is
635 # recovered, this value reverts to `user:{emailid}` and the recovered user
636 # retains the role in the binding.
637 #
638 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
639 # unique identifier) representing a service account that has been recently
640 # deleted. For example,
641 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
642 # If the service account is undeleted, this value reverts to
643 # `serviceAccount:{emailid}` and the undeleted service account retains the
644 # role in the binding.
645 #
646 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
647 # identifier) representing a Google group that has been recently
648 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
649 # the group is recovered, this value reverts to `group:{emailid}` and the
650 # recovered group retains the role in the binding.
651 #
652 #
653 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
654 # users of that domain. For example, `google.com` or `example.com`.
655 #
656 &quot;A String&quot;,
657 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700658 },
659 ],
660 }</pre>
661</div>
662
663<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700664 <code class="details" id="insert">insert(projectId, datasetId, body=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400665 <pre>Creates a new, empty table in the dataset.
666
667Args:
668 projectId: string, Project ID of the new table (required)
669 datasetId: string, Dataset ID of the new table (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700670 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400671 The object takes the form of:
672
673{
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700674 &quot;view&quot;: { # [Optional] The view definition.
675 &quot;useLegacySql&quot;: True or False, # Specifies whether to use BigQuery&#x27;s legacy SQL for this view. The default value is true. If set to false, the view will use BigQuery&#x27;s standard SQL: https://cloud.google.com/bigquery/sql-reference/ Queries and views that reference this view must use the same flag value.
676 &quot;query&quot;: &quot;A String&quot;, # [Required] A query that BigQuery executes when the view is referenced.
677 &quot;userDefinedFunctionResources&quot;: [ # Describes user-defined function resources used in the query.
678 { # This is used for defining User Defined Function (UDF) resources only when using legacy SQL. Users of Standard SQL should leverage either DDL (e.g. CREATE [TEMPORARY] FUNCTION ... ) or the Routines API to define UDF resources. For additional information on migrating, see: https://cloud.google.com/bigquery/docs/reference/standard-sql/migrating-from-legacy-sql#differences_in_user-defined_javascript_functions
679 &quot;inlineCode&quot;: &quot;A String&quot;, # [Pick one] An inline resource that contains code for a user-defined function (UDF). Providing a inline code resource is equivalent to providing a URI for a file containing the same code.
680 &quot;resourceUri&quot;: &quot;A String&quot;, # [Pick one] A code resource to load from a Google Cloud Storage URI (gs://bucket/path).
681 },
682 ],
683 },
684 &quot;numLongTermBytes&quot;: &quot;A String&quot;, # [Output-only] The number of bytes in the table that are considered &quot;long-term storage&quot;.
685 &quot;etag&quot;: &quot;A String&quot;, # [Output-only] A hash of the table metadata. Used to ensure there were no concurrent modifications to the resource when attempting an update. Not guaranteed to change when the table contents or the fields numRows, numBytes, numLongTermBytes or lastModifiedTime change.
686 &quot;encryptionConfiguration&quot;: { # Custom encryption configuration (e.g., Cloud KMS keys).
687 &quot;kmsKeyName&quot;: &quot;A String&quot;, # [Optional] Describes the Cloud KMS encryption key that will be used to protect destination BigQuery table. The BigQuery Service Account associated with your project requires access to this encryption key.
688 },
689 &quot;streamingBuffer&quot;: { # [Output-only] Contains information regarding this table&#x27;s streaming buffer, if one is present. This field will be absent if the table is not being streamed to or if there is no data in the streaming buffer.
690 &quot;estimatedBytes&quot;: &quot;A String&quot;, # [Output-only] A lower-bound estimate of the number of bytes currently in the streaming buffer.
691 &quot;estimatedRows&quot;: &quot;A String&quot;, # [Output-only] A lower-bound estimate of the number of rows currently in the streaming buffer.
692 &quot;oldestEntryTime&quot;: &quot;A String&quot;, # [Output-only] Contains the timestamp of the oldest entry in the streaming buffer, in milliseconds since the epoch, if the streaming buffer is available.
693 },
694 &quot;numBytes&quot;: &quot;A String&quot;, # [Output-only] The size of this table in bytes, excluding any data in the streaming buffer.
695 &quot;location&quot;: &quot;A String&quot;, # [Output-only] The geographic location where the table resides. This value is inherited from the dataset.
696 &quot;timePartitioning&quot;: { # Time-based partitioning specification for this table. Only one of timePartitioning and rangePartitioning should be specified.
697 &quot;requirePartitionFilter&quot;: True or False,
698 &quot;field&quot;: &quot;A String&quot;, # [Beta] [Optional] If not set, the table is partitioned by pseudo column, referenced via either &#x27;_PARTITIONTIME&#x27; as TIMESTAMP type, or &#x27;_PARTITIONDATE&#x27; as DATE type. If field is specified, the table is instead partitioned by this field. The field must be a top-level TIMESTAMP or DATE field. Its mode must be NULLABLE or REQUIRED.
699 &quot;expirationMs&quot;: &quot;A String&quot;, # [Optional] Number of milliseconds for which to keep the storage for partitions in the table. The storage in a partition will have an expiration time of its partition time plus this value.
700 &quot;type&quot;: &quot;A String&quot;, # [Required] The only type supported is DAY, which will generate one partition per day.
701 },
702 &quot;friendlyName&quot;: &quot;A String&quot;, # [Optional] A descriptive name for this table.
703 &quot;labels&quot;: { # The labels associated with this table. You can use these to organize and group your tables. Label keys and values can be no longer than 63 characters, can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter and each label in the list must have a different key.
704 &quot;a_key&quot;: &quot;A String&quot;,
705 },
706 &quot;numPhysicalBytes&quot;: &quot;A String&quot;, # [Output-only] [TrustedTester] The physical size of this table in bytes, excluding any data in the streaming buffer. This includes compression and storage used for time travel.
Bu Sun Kim65020912020-05-20 12:08:20 -0700707 &quot;externalDataConfiguration&quot;: { # [Optional] Describes the data format, location, and other properties of a table stored outside of BigQuery. By defining these properties, the data source can then be queried as if it were a standard BigQuery table.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700708 &quot;compression&quot;: &quot;A String&quot;, # [Optional] The compression type of the data source. Possible values include GZIP and NONE. The default value is NONE. This setting is ignored for Google Cloud Bigtable, Google Cloud Datastore backups and Avro formats.
709 &quot;maxBadRecords&quot;: 42, # [Optional] The maximum number of bad records that BigQuery can ignore when reading data. If the number of bad records exceeds this value, an invalid error is returned in the job result. This is only valid for CSV, JSON, and Google Sheets. The default value is 0, which requires that all records are valid. This setting is ignored for Google Cloud Bigtable, Google Cloud Datastore backups and Avro formats.
710 &quot;sourceUris&quot;: [ # [Required] The fully-qualified URIs that point to your data in Google Cloud. For Google Cloud Storage URIs: Each URI can contain one &#x27;*&#x27; wildcard character and it must come after the &#x27;bucket&#x27; name. Size limits related to load jobs apply to external data sources. For Google Cloud Bigtable URIs: Exactly one URI can be specified and it has be a fully specified and valid HTTPS URL for a Google Cloud Bigtable table. For Google Cloud Datastore backups, exactly one URI can be specified. Also, the &#x27;*&#x27; wildcard character is not allowed.
711 &quot;A String&quot;,
712 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700713 &quot;csvOptions&quot;: { # Additional properties to set if sourceFormat is set to CSV.
Bu Sun Kim65020912020-05-20 12:08:20 -0700714 &quot;quote&quot;: &quot;&quot;&quot;, # [Optional] The value that is used to quote data sections in a CSV file. BigQuery converts the string to ISO-8859-1 encoding, and then uses the first byte of the encoded string to split the data in its raw, binary state. The default value is a double-quote (&#x27;&quot;&#x27;). If your data does not contain quoted sections, set the property value to an empty string. If your data contains quoted newline characters, you must also set the allowQuotedNewlines property to true.
715 &quot;skipLeadingRows&quot;: &quot;A String&quot;, # [Optional] The number of rows at the top of a CSV file that BigQuery will skip when reading the data. The default value is 0. This property is useful if you have header rows in the file that should be skipped. When autodetect is on, the behavior is the following: * skipLeadingRows unspecified - Autodetect tries to detect headers in the first row. If they are not detected, the row is read as data. Otherwise data is read starting from the second row. * skipLeadingRows is 0 - Instructs autodetect that there are no headers and data should be read starting from the first row. * skipLeadingRows = N &gt; 0 - Autodetect skips N-1 rows and tries to detect headers in row N. If headers are not detected, row N is just skipped. Otherwise row N is used to extract column names for the detected schema.
716 &quot;allowJaggedRows&quot;: True or False, # [Optional] Indicates if BigQuery should accept rows that are missing trailing optional columns. If true, BigQuery treats missing trailing columns as null values. If false, records with missing trailing columns are treated as bad records, and if there are too many bad records, an invalid error is returned in the job result. The default value is false.
717 &quot;fieldDelimiter&quot;: &quot;A String&quot;, # [Optional] The separator for fields in a CSV file. BigQuery converts the string to ISO-8859-1 encoding, and then uses the first byte of the encoded string to split the data in its raw, binary state. BigQuery also supports the escape sequence &quot;\t&quot; to specify a tab separator. The default value is a comma (&#x27;,&#x27;).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700718 &quot;encoding&quot;: &quot;A String&quot;, # [Optional] The character encoding of the data. The supported values are UTF-8 or ISO-8859-1. The default value is UTF-8. BigQuery decodes the data after the raw, binary data has been split using the values of the quote and fieldDelimiter properties.
719 &quot;allowQuotedNewlines&quot;: True or False, # [Optional] Indicates if BigQuery should allow quoted data sections that contain newline characters in a CSV file. The default value is false.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700720 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700721 &quot;bigtableOptions&quot;: { # [Optional] Additional options if sourceFormat is set to BIGTABLE.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700722 &quot;readRowkeyAsString&quot;: True or False, # [Optional] If field is true, then the rowkey column families will be read and converted to string. Otherwise they are read with BYTES type values and users need to manually cast them with CAST if necessary. The default value is false.
Bu Sun Kim65020912020-05-20 12:08:20 -0700723 &quot;columnFamilies&quot;: [ # [Optional] List of column families to expose in the table schema along with their types. This list restricts the column families that can be referenced in queries and specifies their value types. You can use this list to do type conversions - see the &#x27;type&#x27; field for more details. If you leave this list empty, all column families are present in the table schema and their values are read as BYTES. During a query only the column families referenced in that query are read from Bigtable.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700724 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700725 &quot;onlyReadLatest&quot;: True or False, # [Optional] If this is set only the latest version of value are exposed for all columns in this column family. This can be overridden for a specific column by listing that column in &#x27;columns&#x27; and specifying a different setting for that column.
726 &quot;encoding&quot;: &quot;A String&quot;, # [Optional] The encoding of the values when the type is not STRING. Acceptable encoding values are: TEXT - indicates values are alphanumeric text strings. BINARY - indicates values are encoded using HBase Bytes.toBytes family of functions. This can be overridden for a specific column by listing that column in &#x27;columns&#x27; and specifying an encoding for it.
727 &quot;columns&quot;: [ # [Optional] Lists of columns that should be exposed as individual fields as opposed to a list of (column name, value) pairs. All columns whose qualifier matches a qualifier in this list can be accessed as .. Other columns can be accessed as a list through .Column field.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700728 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700729 &quot;fieldName&quot;: &quot;A String&quot;, # [Optional] If the qualifier is not a valid BigQuery field identifier i.e. does not match [a-zA-Z][a-zA-Z0-9_]*, a valid identifier must be provided as the column field name and is used as field name in queries.
730 &quot;qualifierString&quot;: &quot;A String&quot;,
731 &quot;encoding&quot;: &quot;A String&quot;, # [Optional] The encoding of the values when the type is not STRING. Acceptable encoding values are: TEXT - indicates values are alphanumeric text strings. BINARY - indicates values are encoded using HBase Bytes.toBytes family of functions. &#x27;encoding&#x27; can also be set at the column family level. However, the setting at this level takes precedence if &#x27;encoding&#x27; is set at both levels.
732 &quot;type&quot;: &quot;A String&quot;, # [Optional] The type to convert the value in cells of this column. The values are expected to be encoded using HBase Bytes.toBytes function when using the BINARY encoding value. Following BigQuery types are allowed (case-sensitive) - BYTES STRING INTEGER FLOAT BOOLEAN Default type is BYTES. &#x27;type&#x27; can also be set at the column family level. However, the setting at this level takes precedence if &#x27;type&#x27; is set at both levels.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700733 &quot;qualifierEncoded&quot;: &quot;A String&quot;, # [Required] Qualifier of the column. Columns in the parent column family that has this exact qualifier are exposed as . field. If the qualifier is valid UTF-8 string, it can be specified in the qualifier_string field. Otherwise, a base-64 encoded value must be set to qualifier_encoded. The column field name is the same as the column qualifier. However, if the qualifier is not a valid BigQuery field identifier i.e. does not match [a-zA-Z][a-zA-Z0-9_]*, a valid identifier must be provided as field_name.
734 &quot;onlyReadLatest&quot;: True or False, # [Optional] If this is set, only the latest version of value in this column are exposed. &#x27;onlyReadLatest&#x27; can also be set at the column family level. However, the setting at this level takes precedence if &#x27;onlyReadLatest&#x27; is set at both levels.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700735 },
736 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700737 &quot;type&quot;: &quot;A String&quot;, # [Optional] The type to convert the value in cells of this column family. The values are expected to be encoded using HBase Bytes.toBytes function when using the BINARY encoding value. Following BigQuery types are allowed (case-sensitive) - BYTES STRING INTEGER FLOAT BOOLEAN Default type is BYTES. This can be overridden for a specific column by listing that column in &#x27;columns&#x27; and specifying a type for it.
738 &quot;familyId&quot;: &quot;A String&quot;, # Identifier of the column family.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700739 },
740 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700741 &quot;ignoreUnspecifiedColumnFamilies&quot;: True or False, # [Optional] If field is true, then the column families that are not specified in columnFamilies list are not exposed in the table schema. Otherwise, they are read with BYTES type values. The default value is false.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700742 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700743 &quot;schema&quot;: { # [Optional] The schema for the data. Schema is required for CSV and JSON formats. Schema is disallowed for Google Cloud Bigtable, Cloud Datastore backups, and Avro formats.
744 &quot;fields&quot;: [ # Describes the fields in a table.
Takashi Matsuo06694102015-09-11 13:55:40 -0700745 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700746 &quot;name&quot;: &quot;A String&quot;, # [Required] The field name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 128 characters.
747 &quot;type&quot;: &quot;A String&quot;, # [Required] The field data type. Possible values include STRING, BYTES, INTEGER, INT64 (same as INTEGER), FLOAT, FLOAT64 (same as FLOAT), BOOLEAN, BOOL (same as BOOLEAN), TIMESTAMP, DATE, TIME, DATETIME, RECORD (where RECORD indicates that the field contains a nested schema) or STRUCT (same as RECORD).
748 &quot;categories&quot;: { # [Optional] The categories attached to this field, used for field-level access control.
749 &quot;names&quot;: [ # A list of category resource names. For example, &quot;projects/1/taxonomies/2/categories/3&quot;. At most 5 categories are allowed.
750 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700751 ],
752 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700753 &quot;mode&quot;: &quot;A String&quot;, # [Optional] The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.
754 &quot;description&quot;: &quot;A String&quot;, # [Optional] The field description. The maximum length is 1,024 characters.
755 &quot;policyTags&quot;: {
756 &quot;names&quot;: [ # A list of category resource names. For example, &quot;projects/1/location/eu/taxonomies/2/policyTags/3&quot;. At most 1 policy tag is allowed.
757 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700758 ],
759 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700760 &quot;fields&quot;: [ # [Optional] Describes the nested schema fields if the type property is set to RECORD.
761 # Object with schema name: TableFieldSchema
762 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700763 },
764 ],
765 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700766 &quot;connectionId&quot;: &quot;A String&quot;, # [Optional, Trusted Tester] Connection for external data source.
Bu Sun Kim65020912020-05-20 12:08:20 -0700767 &quot;hivePartitioningOptions&quot;: { # [Optional, Trusted Tester] Options to configure hive partitioning support.
768 &quot;sourceUriPrefix&quot;: &quot;A String&quot;, # [Optional, Trusted Tester] When hive partition detection is requested, a common prefix for all source uris should be supplied. The prefix must end immediately before the partition key encoding begins. For example, consider files following this data layout. gs://bucket/path_to_table/dt=2019-01-01/country=BR/id=7/file.avro gs://bucket/path_to_table/dt=2018-12-31/country=CA/id=3/file.avro When hive partitioning is requested with either AUTO or STRINGS detection, the common prefix can be either of gs://bucket/path_to_table or gs://bucket/path_to_table/ (trailing slash does not matter).
769 &quot;mode&quot;: &quot;A String&quot;, # [Optional, Trusted Tester] When set, what mode of hive partitioning to use when reading data. Two modes are supported. (1) AUTO: automatically infer partition key name(s) and type(s). (2) STRINGS: automatically infer partition key name(s). All types are interpreted as strings. Not all storage formats support hive partitioning. Requesting hive partitioning on an unsupported format will lead to an error. Currently supported types include: AVRO, CSV, JSON, ORC and Parquet.
770 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700771 &quot;autodetect&quot;: True or False, # Try to detect schema and format options automatically. Any option specified explicitly will be honored.
772 &quot;googleSheetsOptions&quot;: { # [Optional] Additional options if sourceFormat is set to GOOGLE_SHEETS.
773 &quot;range&quot;: &quot;A String&quot;, # [Optional] Range of a sheet to query from. Only used when non-empty. Typical format: sheet_name!top_left_cell_id:bottom_right_cell_id For example: sheet1!A1:B20
774 &quot;skipLeadingRows&quot;: &quot;A String&quot;, # [Optional] The number of rows at the top of a sheet that BigQuery will skip when reading the data. The default value is 0. This property is useful if you have header rows that should be skipped. When autodetect is on, behavior is the following: * skipLeadingRows unspecified - Autodetect tries to detect headers in the first row. If they are not detected, the row is read as data. Otherwise data is read starting from the second row. * skipLeadingRows is 0 - Instructs autodetect that there are no headers and data should be read starting from the first row. * skipLeadingRows = N &gt; 0 - Autodetect skips N-1 rows and tries to detect headers in row N. If headers are not detected, row N is just skipped. Otherwise row N is used to extract column names for the detected schema.
775 },
776 &quot;ignoreUnknownValues&quot;: True or False, # [Optional] Indicates if BigQuery should allow extra values that are not represented in the table schema. If true, the extra values are ignored. If false, records with extra columns are treated as bad records, and if there are too many bad records, an invalid error is returned in the job result. The default value is false. The sourceFormat property determines what BigQuery treats as an extra value: CSV: Trailing columns JSON: Named values that don&#x27;t match any column names Google Cloud Bigtable: This setting is ignored. Google Cloud Datastore backups: This setting is ignored. Avro: This setting is ignored.
777 &quot;sourceFormat&quot;: &quot;A String&quot;, # [Required] The data format. For CSV files, specify &quot;CSV&quot;. For Google sheets, specify &quot;GOOGLE_SHEETS&quot;. For newline-delimited JSON, specify &quot;NEWLINE_DELIMITED_JSON&quot;. For Avro files, specify &quot;AVRO&quot;. For Google Cloud Datastore backups, specify &quot;DATASTORE_BACKUP&quot;. [Beta] For Google Cloud Bigtable, specify &quot;BIGTABLE&quot;.
Takashi Matsuo06694102015-09-11 13:55:40 -0700778 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700779 &quot;model&quot;: { # [Output-only, Beta] Present iff this table represents a ML model. Describes the training information for the model, and it is required to run &#x27;PREDICT&#x27; queries.
780 &quot;modelOptions&quot;: { # [Output-only, Beta] Model options used for the first training run. These options are immutable for subsequent training runs. Default values are used for any options not specified in the input query.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700781 &quot;lossType&quot;: &quot;A String&quot;,
782 &quot;modelType&quot;: &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -0700783 &quot;labels&quot;: [
784 &quot;A String&quot;,
785 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700786 },
787 &quot;trainingRuns&quot;: [ # [Output-only, Beta] Information about ml training runs, each training run comprises of multiple iterations and there may be multiple training runs for the model if warm start is used or if a user decides to continue a previously cancelled query.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800788 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700789 &quot;iterationResults&quot;: [ # [Output-only, Beta] List of each iteration results.
790 {
791 &quot;durationMs&quot;: &quot;A String&quot;, # [Output-only, Beta] Time taken to run the training iteration in milliseconds.
792 &quot;trainingLoss&quot;: 3.14, # [Output-only, Beta] Training loss computed on the training data at the end of the iteration. The training loss function is defined by model type.
793 &quot;evalLoss&quot;: 3.14, # [Output-only, Beta] Eval loss computed on the eval data at the end of the iteration. The eval loss is used for early stopping to avoid overfitting. No eval loss if eval_split_method option is specified as no_split or auto_split with input data size less than 500 rows.
794 &quot;index&quot;: 42, # [Output-only, Beta] Index of the ML training iteration, starting from zero for each training run.
795 &quot;learnRate&quot;: 3.14, # [Output-only, Beta] Learning rate used for this iteration, it varies for different training iterations if learn_rate_strategy option is not constant.
796 },
797 ],
798 &quot;startTime&quot;: &quot;A String&quot;, # [Output-only, Beta] Training run start time in milliseconds since the epoch.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700799 &quot;trainingOptions&quot;: { # [Output-only, Beta] Training options used by this training run. These options are mutable for subsequent training runs. Default values are explicitly stored for options not specified in the input query of the first training run. For subsequent training runs, any option not explicitly specified in the input query will be copied from the previous training run.
800 &quot;l1Reg&quot;: 3.14,
801 &quot;maxIteration&quot;: &quot;A String&quot;,
802 &quot;learnRate&quot;: 3.14,
803 &quot;minRelProgress&quot;: 3.14,
804 &quot;l2Reg&quot;: 3.14,
805 &quot;warmStart&quot;: True or False,
806 &quot;learnRateStrategy&quot;: &quot;A String&quot;,
807 &quot;lineSearchInitLearnRate&quot;: 3.14,
808 &quot;earlyStop&quot;: True or False,
809 },
810 &quot;state&quot;: &quot;A String&quot;, # [Output-only, Beta] Different state applicable for a training run. IN PROGRESS: Training run is in progress. FAILED: Training run ended due to a non-retryable failure. SUCCEEDED: Training run successfully completed. CANCELLED: Training run cancelled by the user.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800811 },
812 ],
813 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700814 &quot;selfLink&quot;: &quot;A String&quot;, # [Output-only] A URL that can be used to access this resource again.
815 &quot;expirationTime&quot;: &quot;A String&quot;, # [Optional] The time when this table expires, in milliseconds since the epoch. If not present, the table will persist indefinitely. Expired tables will be deleted and their storage reclaimed. The defaultTableExpirationMs property of the encapsulating dataset can be used to set a default expirationTime on newly created tables.
816 &quot;kind&quot;: &quot;bigquery#table&quot;, # [Output-only] The type of the resource.
817 &quot;description&quot;: &quot;A String&quot;, # [Optional] A user-friendly description of this table.
818 &quot;creationTime&quot;: &quot;A String&quot;, # [Output-only] The time when this table was created, in milliseconds since the epoch.
819 &quot;rangePartitioning&quot;: { # [TrustedTester] Range partitioning specification for this table. Only one of timePartitioning and rangePartitioning should be specified.
820 &quot;range&quot;: { # [TrustedTester] [Required] Defines the ranges for range partitioning.
821 &quot;interval&quot;: &quot;A String&quot;, # [TrustedTester] [Required] The width of each interval.
822 &quot;start&quot;: &quot;A String&quot;, # [TrustedTester] [Required] The start of range partitioning, inclusive.
823 &quot;end&quot;: &quot;A String&quot;, # [TrustedTester] [Required] The end of range partitioning, exclusive.
824 },
825 &quot;field&quot;: &quot;A String&quot;, # [TrustedTester] [Required] The table is partitioned by this field. The field must be a top-level NULLABLE/REQUIRED field. The only supported type is INTEGER/INT64.
826 },
827 &quot;schema&quot;: { # [Optional] Describes the schema of this table.
828 &quot;fields&quot;: [ # Describes the fields in a table.
829 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700830 &quot;name&quot;: &quot;A String&quot;, # [Required] The field name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 128 characters.
831 &quot;type&quot;: &quot;A String&quot;, # [Required] The field data type. Possible values include STRING, BYTES, INTEGER, INT64 (same as INTEGER), FLOAT, FLOAT64 (same as FLOAT), BOOLEAN, BOOL (same as BOOLEAN), TIMESTAMP, DATE, TIME, DATETIME, RECORD (where RECORD indicates that the field contains a nested schema) or STRUCT (same as RECORD).
832 &quot;categories&quot;: { # [Optional] The categories attached to this field, used for field-level access control.
833 &quot;names&quot;: [ # A list of category resource names. For example, &quot;projects/1/taxonomies/2/categories/3&quot;. At most 5 categories are allowed.
834 &quot;A String&quot;,
835 ],
836 },
837 &quot;mode&quot;: &quot;A String&quot;, # [Optional] The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.
838 &quot;description&quot;: &quot;A String&quot;, # [Optional] The field description. The maximum length is 1,024 characters.
839 &quot;policyTags&quot;: {
840 &quot;names&quot;: [ # A list of category resource names. For example, &quot;projects/1/location/eu/taxonomies/2/policyTags/3&quot;. At most 1 policy tag is allowed.
841 &quot;A String&quot;,
842 ],
843 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700844 &quot;fields&quot;: [ # [Optional] Describes the nested schema fields if the type property is set to RECORD.
845 # Object with schema name: TableFieldSchema
846 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700847 },
848 ],
849 },
850 &quot;id&quot;: &quot;A String&quot;, # [Output-only] An opaque ID uniquely identifying the table.
851 &quot;requirePartitionFilter&quot;: false, # [Optional] If set to true, queries over this table require a partition filter that can be used for partition elimination to be specified.
852 &quot;materializedView&quot;: { # [Optional] Materialized view definition.
853 &quot;query&quot;: &quot;A String&quot;, # [Required] A query whose result is persisted.
854 &quot;enableRefresh&quot;: True or False, # [Optional] [TrustedTester] Enable automatic refresh of the materialized view when the base table is updated. The default value is &quot;true&quot;.
855 &quot;refreshIntervalMs&quot;: &quot;A String&quot;, # [Optional] [TrustedTester] The maximum frequency at which this materialized view will be refreshed. The default value is &quot;1800000&quot; (30 minutes).
856 &quot;lastRefreshTime&quot;: &quot;A String&quot;, # [Output-only] [TrustedTester] The time when this materialized view was last modified, in milliseconds since the epoch.
857 },
858 &quot;tableReference&quot;: { # [Required] Reference describing the ID of this table.
Bu Sun Kim65020912020-05-20 12:08:20 -0700859 &quot;projectId&quot;: &quot;A String&quot;, # [Required] The ID of the project containing this table.
860 &quot;datasetId&quot;: &quot;A String&quot;, # [Required] The ID of the dataset containing this table.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700861 &quot;tableId&quot;: &quot;A String&quot;, # [Required] The ID of the table. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700862 },
863 &quot;lastModifiedTime&quot;: &quot;A String&quot;, # [Output-only] The time when this table was last modified, in milliseconds since the epoch.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700864 &quot;type&quot;: &quot;A String&quot;, # [Output-only] Describes the table type. The following values are supported: TABLE: A normal BigQuery table. VIEW: A virtual table defined by a SQL query. [TrustedTester] MATERIALIZED_VIEW: SQL query whose result is persisted. EXTERNAL: A table that references data stored in an external storage system, such as Google Cloud Storage. The default value is TABLE.
Bu Sun Kim65020912020-05-20 12:08:20 -0700865 &quot;clustering&quot;: { # [Beta] Clustering specification for the table. Must be specified with partitioning, data in the table will be first partitioned and subsequently clustered.
866 &quot;fields&quot;: [ # [Repeated] One or more fields on which data should be clustered. Only top-level, non-repeated, simple-type fields are supported. When you cluster a table using multiple columns, the order of columns you specify is important. The order of the specified columns determines the sort order of the data.
867 &quot;A String&quot;,
868 ],
869 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700870 &quot;numRows&quot;: &quot;A String&quot;, # [Output-only] The number of rows of data in this table, excluding any data in the streaming buffer.
John Asmuth614db982014-04-24 15:46:26 -0400871 }
872
873
874Returns:
875 An object of the form:
876
877 {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700878 &quot;view&quot;: { # [Optional] The view definition.
879 &quot;useLegacySql&quot;: True or False, # Specifies whether to use BigQuery&#x27;s legacy SQL for this view. The default value is true. If set to false, the view will use BigQuery&#x27;s standard SQL: https://cloud.google.com/bigquery/sql-reference/ Queries and views that reference this view must use the same flag value.
880 &quot;query&quot;: &quot;A String&quot;, # [Required] A query that BigQuery executes when the view is referenced.
881 &quot;userDefinedFunctionResources&quot;: [ # Describes user-defined function resources used in the query.
882 { # This is used for defining User Defined Function (UDF) resources only when using legacy SQL. Users of Standard SQL should leverage either DDL (e.g. CREATE [TEMPORARY] FUNCTION ... ) or the Routines API to define UDF resources. For additional information on migrating, see: https://cloud.google.com/bigquery/docs/reference/standard-sql/migrating-from-legacy-sql#differences_in_user-defined_javascript_functions
883 &quot;inlineCode&quot;: &quot;A String&quot;, # [Pick one] An inline resource that contains code for a user-defined function (UDF). Providing a inline code resource is equivalent to providing a URI for a file containing the same code.
884 &quot;resourceUri&quot;: &quot;A String&quot;, # [Pick one] A code resource to load from a Google Cloud Storage URI (gs://bucket/path).
885 },
886 ],
887 },
888 &quot;numLongTermBytes&quot;: &quot;A String&quot;, # [Output-only] The number of bytes in the table that are considered &quot;long-term storage&quot;.
889 &quot;etag&quot;: &quot;A String&quot;, # [Output-only] A hash of the table metadata. Used to ensure there were no concurrent modifications to the resource when attempting an update. Not guaranteed to change when the table contents or the fields numRows, numBytes, numLongTermBytes or lastModifiedTime change.
890 &quot;encryptionConfiguration&quot;: { # Custom encryption configuration (e.g., Cloud KMS keys).
891 &quot;kmsKeyName&quot;: &quot;A String&quot;, # [Optional] Describes the Cloud KMS encryption key that will be used to protect destination BigQuery table. The BigQuery Service Account associated with your project requires access to this encryption key.
892 },
893 &quot;streamingBuffer&quot;: { # [Output-only] Contains information regarding this table&#x27;s streaming buffer, if one is present. This field will be absent if the table is not being streamed to or if there is no data in the streaming buffer.
894 &quot;estimatedBytes&quot;: &quot;A String&quot;, # [Output-only] A lower-bound estimate of the number of bytes currently in the streaming buffer.
895 &quot;estimatedRows&quot;: &quot;A String&quot;, # [Output-only] A lower-bound estimate of the number of rows currently in the streaming buffer.
896 &quot;oldestEntryTime&quot;: &quot;A String&quot;, # [Output-only] Contains the timestamp of the oldest entry in the streaming buffer, in milliseconds since the epoch, if the streaming buffer is available.
897 },
898 &quot;numBytes&quot;: &quot;A String&quot;, # [Output-only] The size of this table in bytes, excluding any data in the streaming buffer.
899 &quot;location&quot;: &quot;A String&quot;, # [Output-only] The geographic location where the table resides. This value is inherited from the dataset.
900 &quot;timePartitioning&quot;: { # Time-based partitioning specification for this table. Only one of timePartitioning and rangePartitioning should be specified.
901 &quot;requirePartitionFilter&quot;: True or False,
902 &quot;field&quot;: &quot;A String&quot;, # [Beta] [Optional] If not set, the table is partitioned by pseudo column, referenced via either &#x27;_PARTITIONTIME&#x27; as TIMESTAMP type, or &#x27;_PARTITIONDATE&#x27; as DATE type. If field is specified, the table is instead partitioned by this field. The field must be a top-level TIMESTAMP or DATE field. Its mode must be NULLABLE or REQUIRED.
903 &quot;expirationMs&quot;: &quot;A String&quot;, # [Optional] Number of milliseconds for which to keep the storage for partitions in the table. The storage in a partition will have an expiration time of its partition time plus this value.
904 &quot;type&quot;: &quot;A String&quot;, # [Required] The only type supported is DAY, which will generate one partition per day.
905 },
906 &quot;friendlyName&quot;: &quot;A String&quot;, # [Optional] A descriptive name for this table.
907 &quot;labels&quot;: { # The labels associated with this table. You can use these to organize and group your tables. Label keys and values can be no longer than 63 characters, can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter and each label in the list must have a different key.
908 &quot;a_key&quot;: &quot;A String&quot;,
909 },
910 &quot;numPhysicalBytes&quot;: &quot;A String&quot;, # [Output-only] [TrustedTester] The physical size of this table in bytes, excluding any data in the streaming buffer. This includes compression and storage used for time travel.
Bu Sun Kim65020912020-05-20 12:08:20 -0700911 &quot;externalDataConfiguration&quot;: { # [Optional] Describes the data format, location, and other properties of a table stored outside of BigQuery. By defining these properties, the data source can then be queried as if it were a standard BigQuery table.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700912 &quot;compression&quot;: &quot;A String&quot;, # [Optional] The compression type of the data source. Possible values include GZIP and NONE. The default value is NONE. This setting is ignored for Google Cloud Bigtable, Google Cloud Datastore backups and Avro formats.
913 &quot;maxBadRecords&quot;: 42, # [Optional] The maximum number of bad records that BigQuery can ignore when reading data. If the number of bad records exceeds this value, an invalid error is returned in the job result. This is only valid for CSV, JSON, and Google Sheets. The default value is 0, which requires that all records are valid. This setting is ignored for Google Cloud Bigtable, Google Cloud Datastore backups and Avro formats.
914 &quot;sourceUris&quot;: [ # [Required] The fully-qualified URIs that point to your data in Google Cloud. For Google Cloud Storage URIs: Each URI can contain one &#x27;*&#x27; wildcard character and it must come after the &#x27;bucket&#x27; name. Size limits related to load jobs apply to external data sources. For Google Cloud Bigtable URIs: Exactly one URI can be specified and it has be a fully specified and valid HTTPS URL for a Google Cloud Bigtable table. For Google Cloud Datastore backups, exactly one URI can be specified. Also, the &#x27;*&#x27; wildcard character is not allowed.
915 &quot;A String&quot;,
916 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700917 &quot;csvOptions&quot;: { # Additional properties to set if sourceFormat is set to CSV.
Bu Sun Kim65020912020-05-20 12:08:20 -0700918 &quot;quote&quot;: &quot;&quot;&quot;, # [Optional] The value that is used to quote data sections in a CSV file. BigQuery converts the string to ISO-8859-1 encoding, and then uses the first byte of the encoded string to split the data in its raw, binary state. The default value is a double-quote (&#x27;&quot;&#x27;). If your data does not contain quoted sections, set the property value to an empty string. If your data contains quoted newline characters, you must also set the allowQuotedNewlines property to true.
919 &quot;skipLeadingRows&quot;: &quot;A String&quot;, # [Optional] The number of rows at the top of a CSV file that BigQuery will skip when reading the data. The default value is 0. This property is useful if you have header rows in the file that should be skipped. When autodetect is on, the behavior is the following: * skipLeadingRows unspecified - Autodetect tries to detect headers in the first row. If they are not detected, the row is read as data. Otherwise data is read starting from the second row. * skipLeadingRows is 0 - Instructs autodetect that there are no headers and data should be read starting from the first row. * skipLeadingRows = N &gt; 0 - Autodetect skips N-1 rows and tries to detect headers in row N. If headers are not detected, row N is just skipped. Otherwise row N is used to extract column names for the detected schema.
920 &quot;allowJaggedRows&quot;: True or False, # [Optional] Indicates if BigQuery should accept rows that are missing trailing optional columns. If true, BigQuery treats missing trailing columns as null values. If false, records with missing trailing columns are treated as bad records, and if there are too many bad records, an invalid error is returned in the job result. The default value is false.
921 &quot;fieldDelimiter&quot;: &quot;A String&quot;, # [Optional] The separator for fields in a CSV file. BigQuery converts the string to ISO-8859-1 encoding, and then uses the first byte of the encoded string to split the data in its raw, binary state. BigQuery also supports the escape sequence &quot;\t&quot; to specify a tab separator. The default value is a comma (&#x27;,&#x27;).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700922 &quot;encoding&quot;: &quot;A String&quot;, # [Optional] The character encoding of the data. The supported values are UTF-8 or ISO-8859-1. The default value is UTF-8. BigQuery decodes the data after the raw, binary data has been split using the values of the quote and fieldDelimiter properties.
923 &quot;allowQuotedNewlines&quot;: True or False, # [Optional] Indicates if BigQuery should allow quoted data sections that contain newline characters in a CSV file. The default value is false.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700924 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700925 &quot;bigtableOptions&quot;: { # [Optional] Additional options if sourceFormat is set to BIGTABLE.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700926 &quot;readRowkeyAsString&quot;: True or False, # [Optional] If field is true, then the rowkey column families will be read and converted to string. Otherwise they are read with BYTES type values and users need to manually cast them with CAST if necessary. The default value is false.
Bu Sun Kim65020912020-05-20 12:08:20 -0700927 &quot;columnFamilies&quot;: [ # [Optional] List of column families to expose in the table schema along with their types. This list restricts the column families that can be referenced in queries and specifies their value types. You can use this list to do type conversions - see the &#x27;type&#x27; field for more details. If you leave this list empty, all column families are present in the table schema and their values are read as BYTES. During a query only the column families referenced in that query are read from Bigtable.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700928 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700929 &quot;onlyReadLatest&quot;: True or False, # [Optional] If this is set only the latest version of value are exposed for all columns in this column family. This can be overridden for a specific column by listing that column in &#x27;columns&#x27; and specifying a different setting for that column.
930 &quot;encoding&quot;: &quot;A String&quot;, # [Optional] The encoding of the values when the type is not STRING. Acceptable encoding values are: TEXT - indicates values are alphanumeric text strings. BINARY - indicates values are encoded using HBase Bytes.toBytes family of functions. This can be overridden for a specific column by listing that column in &#x27;columns&#x27; and specifying an encoding for it.
931 &quot;columns&quot;: [ # [Optional] Lists of columns that should be exposed as individual fields as opposed to a list of (column name, value) pairs. All columns whose qualifier matches a qualifier in this list can be accessed as .. Other columns can be accessed as a list through .Column field.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700932 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700933 &quot;fieldName&quot;: &quot;A String&quot;, # [Optional] If the qualifier is not a valid BigQuery field identifier i.e. does not match [a-zA-Z][a-zA-Z0-9_]*, a valid identifier must be provided as the column field name and is used as field name in queries.
934 &quot;qualifierString&quot;: &quot;A String&quot;,
935 &quot;encoding&quot;: &quot;A String&quot;, # [Optional] The encoding of the values when the type is not STRING. Acceptable encoding values are: TEXT - indicates values are alphanumeric text strings. BINARY - indicates values are encoded using HBase Bytes.toBytes family of functions. &#x27;encoding&#x27; can also be set at the column family level. However, the setting at this level takes precedence if &#x27;encoding&#x27; is set at both levels.
936 &quot;type&quot;: &quot;A String&quot;, # [Optional] The type to convert the value in cells of this column. The values are expected to be encoded using HBase Bytes.toBytes function when using the BINARY encoding value. Following BigQuery types are allowed (case-sensitive) - BYTES STRING INTEGER FLOAT BOOLEAN Default type is BYTES. &#x27;type&#x27; can also be set at the column family level. However, the setting at this level takes precedence if &#x27;type&#x27; is set at both levels.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700937 &quot;qualifierEncoded&quot;: &quot;A String&quot;, # [Required] Qualifier of the column. Columns in the parent column family that has this exact qualifier are exposed as . field. If the qualifier is valid UTF-8 string, it can be specified in the qualifier_string field. Otherwise, a base-64 encoded value must be set to qualifier_encoded. The column field name is the same as the column qualifier. However, if the qualifier is not a valid BigQuery field identifier i.e. does not match [a-zA-Z][a-zA-Z0-9_]*, a valid identifier must be provided as field_name.
938 &quot;onlyReadLatest&quot;: True or False, # [Optional] If this is set, only the latest version of value in this column are exposed. &#x27;onlyReadLatest&#x27; can also be set at the column family level. However, the setting at this level takes precedence if &#x27;onlyReadLatest&#x27; is set at both levels.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700939 },
940 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700941 &quot;type&quot;: &quot;A String&quot;, # [Optional] The type to convert the value in cells of this column family. The values are expected to be encoded using HBase Bytes.toBytes function when using the BINARY encoding value. Following BigQuery types are allowed (case-sensitive) - BYTES STRING INTEGER FLOAT BOOLEAN Default type is BYTES. This can be overridden for a specific column by listing that column in &#x27;columns&#x27; and specifying a type for it.
942 &quot;familyId&quot;: &quot;A String&quot;, # Identifier of the column family.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700943 },
944 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700945 &quot;ignoreUnspecifiedColumnFamilies&quot;: True or False, # [Optional] If field is true, then the column families that are not specified in columnFamilies list are not exposed in the table schema. Otherwise, they are read with BYTES type values. The default value is false.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700946 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700947 &quot;schema&quot;: { # [Optional] The schema for the data. Schema is required for CSV and JSON formats. Schema is disallowed for Google Cloud Bigtable, Cloud Datastore backups, and Avro formats.
948 &quot;fields&quot;: [ # Describes the fields in a table.
Takashi Matsuo06694102015-09-11 13:55:40 -0700949 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700950 &quot;name&quot;: &quot;A String&quot;, # [Required] The field name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 128 characters.
951 &quot;type&quot;: &quot;A String&quot;, # [Required] The field data type. Possible values include STRING, BYTES, INTEGER, INT64 (same as INTEGER), FLOAT, FLOAT64 (same as FLOAT), BOOLEAN, BOOL (same as BOOLEAN), TIMESTAMP, DATE, TIME, DATETIME, RECORD (where RECORD indicates that the field contains a nested schema) or STRUCT (same as RECORD).
952 &quot;categories&quot;: { # [Optional] The categories attached to this field, used for field-level access control.
953 &quot;names&quot;: [ # A list of category resource names. For example, &quot;projects/1/taxonomies/2/categories/3&quot;. At most 5 categories are allowed.
954 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700955 ],
956 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700957 &quot;mode&quot;: &quot;A String&quot;, # [Optional] The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.
958 &quot;description&quot;: &quot;A String&quot;, # [Optional] The field description. The maximum length is 1,024 characters.
959 &quot;policyTags&quot;: {
960 &quot;names&quot;: [ # A list of category resource names. For example, &quot;projects/1/location/eu/taxonomies/2/policyTags/3&quot;. At most 1 policy tag is allowed.
961 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700962 ],
963 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700964 &quot;fields&quot;: [ # [Optional] Describes the nested schema fields if the type property is set to RECORD.
965 # Object with schema name: TableFieldSchema
966 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700967 },
968 ],
969 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700970 &quot;connectionId&quot;: &quot;A String&quot;, # [Optional, Trusted Tester] Connection for external data source.
Bu Sun Kim65020912020-05-20 12:08:20 -0700971 &quot;hivePartitioningOptions&quot;: { # [Optional, Trusted Tester] Options to configure hive partitioning support.
972 &quot;sourceUriPrefix&quot;: &quot;A String&quot;, # [Optional, Trusted Tester] When hive partition detection is requested, a common prefix for all source uris should be supplied. The prefix must end immediately before the partition key encoding begins. For example, consider files following this data layout. gs://bucket/path_to_table/dt=2019-01-01/country=BR/id=7/file.avro gs://bucket/path_to_table/dt=2018-12-31/country=CA/id=3/file.avro When hive partitioning is requested with either AUTO or STRINGS detection, the common prefix can be either of gs://bucket/path_to_table or gs://bucket/path_to_table/ (trailing slash does not matter).
973 &quot;mode&quot;: &quot;A String&quot;, # [Optional, Trusted Tester] When set, what mode of hive partitioning to use when reading data. Two modes are supported. (1) AUTO: automatically infer partition key name(s) and type(s). (2) STRINGS: automatically infer partition key name(s). All types are interpreted as strings. Not all storage formats support hive partitioning. Requesting hive partitioning on an unsupported format will lead to an error. Currently supported types include: AVRO, CSV, JSON, ORC and Parquet.
974 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700975 &quot;autodetect&quot;: True or False, # Try to detect schema and format options automatically. Any option specified explicitly will be honored.
976 &quot;googleSheetsOptions&quot;: { # [Optional] Additional options if sourceFormat is set to GOOGLE_SHEETS.
977 &quot;range&quot;: &quot;A String&quot;, # [Optional] Range of a sheet to query from. Only used when non-empty. Typical format: sheet_name!top_left_cell_id:bottom_right_cell_id For example: sheet1!A1:B20
978 &quot;skipLeadingRows&quot;: &quot;A String&quot;, # [Optional] The number of rows at the top of a sheet that BigQuery will skip when reading the data. The default value is 0. This property is useful if you have header rows that should be skipped. When autodetect is on, behavior is the following: * skipLeadingRows unspecified - Autodetect tries to detect headers in the first row. If they are not detected, the row is read as data. Otherwise data is read starting from the second row. * skipLeadingRows is 0 - Instructs autodetect that there are no headers and data should be read starting from the first row. * skipLeadingRows = N &gt; 0 - Autodetect skips N-1 rows and tries to detect headers in row N. If headers are not detected, row N is just skipped. Otherwise row N is used to extract column names for the detected schema.
979 },
980 &quot;ignoreUnknownValues&quot;: True or False, # [Optional] Indicates if BigQuery should allow extra values that are not represented in the table schema. If true, the extra values are ignored. If false, records with extra columns are treated as bad records, and if there are too many bad records, an invalid error is returned in the job result. The default value is false. The sourceFormat property determines what BigQuery treats as an extra value: CSV: Trailing columns JSON: Named values that don&#x27;t match any column names Google Cloud Bigtable: This setting is ignored. Google Cloud Datastore backups: This setting is ignored. Avro: This setting is ignored.
981 &quot;sourceFormat&quot;: &quot;A String&quot;, # [Required] The data format. For CSV files, specify &quot;CSV&quot;. For Google sheets, specify &quot;GOOGLE_SHEETS&quot;. For newline-delimited JSON, specify &quot;NEWLINE_DELIMITED_JSON&quot;. For Avro files, specify &quot;AVRO&quot;. For Google Cloud Datastore backups, specify &quot;DATASTORE_BACKUP&quot;. [Beta] For Google Cloud Bigtable, specify &quot;BIGTABLE&quot;.
Takashi Matsuo06694102015-09-11 13:55:40 -0700982 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700983 &quot;model&quot;: { # [Output-only, Beta] Present iff this table represents a ML model. Describes the training information for the model, and it is required to run &#x27;PREDICT&#x27; queries.
984 &quot;modelOptions&quot;: { # [Output-only, Beta] Model options used for the first training run. These options are immutable for subsequent training runs. Default values are used for any options not specified in the input query.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700985 &quot;lossType&quot;: &quot;A String&quot;,
986 &quot;modelType&quot;: &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -0700987 &quot;labels&quot;: [
988 &quot;A String&quot;,
989 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700990 },
991 &quot;trainingRuns&quot;: [ # [Output-only, Beta] Information about ml training runs, each training run comprises of multiple iterations and there may be multiple training runs for the model if warm start is used or if a user decides to continue a previously cancelled query.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800992 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700993 &quot;iterationResults&quot;: [ # [Output-only, Beta] List of each iteration results.
994 {
995 &quot;durationMs&quot;: &quot;A String&quot;, # [Output-only, Beta] Time taken to run the training iteration in milliseconds.
996 &quot;trainingLoss&quot;: 3.14, # [Output-only, Beta] Training loss computed on the training data at the end of the iteration. The training loss function is defined by model type.
997 &quot;evalLoss&quot;: 3.14, # [Output-only, Beta] Eval loss computed on the eval data at the end of the iteration. The eval loss is used for early stopping to avoid overfitting. No eval loss if eval_split_method option is specified as no_split or auto_split with input data size less than 500 rows.
998 &quot;index&quot;: 42, # [Output-only, Beta] Index of the ML training iteration, starting from zero for each training run.
999 &quot;learnRate&quot;: 3.14, # [Output-only, Beta] Learning rate used for this iteration, it varies for different training iterations if learn_rate_strategy option is not constant.
1000 },
1001 ],
1002 &quot;startTime&quot;: &quot;A String&quot;, # [Output-only, Beta] Training run start time in milliseconds since the epoch.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001003 &quot;trainingOptions&quot;: { # [Output-only, Beta] Training options used by this training run. These options are mutable for subsequent training runs. Default values are explicitly stored for options not specified in the input query of the first training run. For subsequent training runs, any option not explicitly specified in the input query will be copied from the previous training run.
1004 &quot;l1Reg&quot;: 3.14,
1005 &quot;maxIteration&quot;: &quot;A String&quot;,
1006 &quot;learnRate&quot;: 3.14,
1007 &quot;minRelProgress&quot;: 3.14,
1008 &quot;l2Reg&quot;: 3.14,
1009 &quot;warmStart&quot;: True or False,
1010 &quot;learnRateStrategy&quot;: &quot;A String&quot;,
1011 &quot;lineSearchInitLearnRate&quot;: 3.14,
1012 &quot;earlyStop&quot;: True or False,
1013 },
1014 &quot;state&quot;: &quot;A String&quot;, # [Output-only, Beta] Different state applicable for a training run. IN PROGRESS: Training run is in progress. FAILED: Training run ended due to a non-retryable failure. SUCCEEDED: Training run successfully completed. CANCELLED: Training run cancelled by the user.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001015 },
1016 ],
1017 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001018 &quot;selfLink&quot;: &quot;A String&quot;, # [Output-only] A URL that can be used to access this resource again.
1019 &quot;expirationTime&quot;: &quot;A String&quot;, # [Optional] The time when this table expires, in milliseconds since the epoch. If not present, the table will persist indefinitely. Expired tables will be deleted and their storage reclaimed. The defaultTableExpirationMs property of the encapsulating dataset can be used to set a default expirationTime on newly created tables.
1020 &quot;kind&quot;: &quot;bigquery#table&quot;, # [Output-only] The type of the resource.
1021 &quot;description&quot;: &quot;A String&quot;, # [Optional] A user-friendly description of this table.
1022 &quot;creationTime&quot;: &quot;A String&quot;, # [Output-only] The time when this table was created, in milliseconds since the epoch.
1023 &quot;rangePartitioning&quot;: { # [TrustedTester] Range partitioning specification for this table. Only one of timePartitioning and rangePartitioning should be specified.
1024 &quot;range&quot;: { # [TrustedTester] [Required] Defines the ranges for range partitioning.
1025 &quot;interval&quot;: &quot;A String&quot;, # [TrustedTester] [Required] The width of each interval.
1026 &quot;start&quot;: &quot;A String&quot;, # [TrustedTester] [Required] The start of range partitioning, inclusive.
1027 &quot;end&quot;: &quot;A String&quot;, # [TrustedTester] [Required] The end of range partitioning, exclusive.
1028 },
1029 &quot;field&quot;: &quot;A String&quot;, # [TrustedTester] [Required] The table is partitioned by this field. The field must be a top-level NULLABLE/REQUIRED field. The only supported type is INTEGER/INT64.
1030 },
1031 &quot;schema&quot;: { # [Optional] Describes the schema of this table.
1032 &quot;fields&quot;: [ # Describes the fields in a table.
1033 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001034 &quot;name&quot;: &quot;A String&quot;, # [Required] The field name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 128 characters.
1035 &quot;type&quot;: &quot;A String&quot;, # [Required] The field data type. Possible values include STRING, BYTES, INTEGER, INT64 (same as INTEGER), FLOAT, FLOAT64 (same as FLOAT), BOOLEAN, BOOL (same as BOOLEAN), TIMESTAMP, DATE, TIME, DATETIME, RECORD (where RECORD indicates that the field contains a nested schema) or STRUCT (same as RECORD).
1036 &quot;categories&quot;: { # [Optional] The categories attached to this field, used for field-level access control.
1037 &quot;names&quot;: [ # A list of category resource names. For example, &quot;projects/1/taxonomies/2/categories/3&quot;. At most 5 categories are allowed.
1038 &quot;A String&quot;,
1039 ],
1040 },
1041 &quot;mode&quot;: &quot;A String&quot;, # [Optional] The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.
1042 &quot;description&quot;: &quot;A String&quot;, # [Optional] The field description. The maximum length is 1,024 characters.
1043 &quot;policyTags&quot;: {
1044 &quot;names&quot;: [ # A list of category resource names. For example, &quot;projects/1/location/eu/taxonomies/2/policyTags/3&quot;. At most 1 policy tag is allowed.
1045 &quot;A String&quot;,
1046 ],
1047 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001048 &quot;fields&quot;: [ # [Optional] Describes the nested schema fields if the type property is set to RECORD.
1049 # Object with schema name: TableFieldSchema
1050 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001051 },
1052 ],
1053 },
1054 &quot;id&quot;: &quot;A String&quot;, # [Output-only] An opaque ID uniquely identifying the table.
1055 &quot;requirePartitionFilter&quot;: false, # [Optional] If set to true, queries over this table require a partition filter that can be used for partition elimination to be specified.
1056 &quot;materializedView&quot;: { # [Optional] Materialized view definition.
1057 &quot;query&quot;: &quot;A String&quot;, # [Required] A query whose result is persisted.
1058 &quot;enableRefresh&quot;: True or False, # [Optional] [TrustedTester] Enable automatic refresh of the materialized view when the base table is updated. The default value is &quot;true&quot;.
1059 &quot;refreshIntervalMs&quot;: &quot;A String&quot;, # [Optional] [TrustedTester] The maximum frequency at which this materialized view will be refreshed. The default value is &quot;1800000&quot; (30 minutes).
1060 &quot;lastRefreshTime&quot;: &quot;A String&quot;, # [Output-only] [TrustedTester] The time when this materialized view was last modified, in milliseconds since the epoch.
1061 },
1062 &quot;tableReference&quot;: { # [Required] Reference describing the ID of this table.
Bu Sun Kim65020912020-05-20 12:08:20 -07001063 &quot;projectId&quot;: &quot;A String&quot;, # [Required] The ID of the project containing this table.
1064 &quot;datasetId&quot;: &quot;A String&quot;, # [Required] The ID of the dataset containing this table.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001065 &quot;tableId&quot;: &quot;A String&quot;, # [Required] The ID of the table. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -07001066 },
1067 &quot;lastModifiedTime&quot;: &quot;A String&quot;, # [Output-only] The time when this table was last modified, in milliseconds since the epoch.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001068 &quot;type&quot;: &quot;A String&quot;, # [Output-only] Describes the table type. The following values are supported: TABLE: A normal BigQuery table. VIEW: A virtual table defined by a SQL query. [TrustedTester] MATERIALIZED_VIEW: SQL query whose result is persisted. EXTERNAL: A table that references data stored in an external storage system, such as Google Cloud Storage. The default value is TABLE.
Bu Sun Kim65020912020-05-20 12:08:20 -07001069 &quot;clustering&quot;: { # [Beta] Clustering specification for the table. Must be specified with partitioning, data in the table will be first partitioned and subsequently clustered.
1070 &quot;fields&quot;: [ # [Repeated] One or more fields on which data should be clustered. Only top-level, non-repeated, simple-type fields are supported. When you cluster a table using multiple columns, the order of columns you specify is important. The order of the specified columns determines the sort order of the data.
1071 &quot;A String&quot;,
1072 ],
1073 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001074 &quot;numRows&quot;: &quot;A String&quot;, # [Output-only] The number of rows of data in this table, excluding any data in the streaming buffer.
John Asmuth614db982014-04-24 15:46:26 -04001075 }</pre>
1076</div>
1077
1078<div class="method">
1079 <code class="details" id="list">list(projectId, datasetId, pageToken=None, maxResults=None)</code>
Nathaniel Manista4f877e52015-06-15 16:44:50 +00001080 <pre>Lists all tables in the specified dataset. Requires the READER dataset role.
John Asmuth614db982014-04-24 15:46:26 -04001081
1082Args:
1083 projectId: string, Project ID of the tables to list (required)
1084 datasetId: string, Dataset ID of the tables to list (required)
1085 pageToken: string, Page token, returned by a previous call, to request the next page of results
1086 maxResults: integer, Maximum number of results to return
1087
1088Returns:
1089 An object of the form:
1090
1091 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001092 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token to request the next page of results.
1093 &quot;totalItems&quot;: 42, # The total number of tables in the dataset.
1094 &quot;kind&quot;: &quot;bigquery#tableList&quot;, # The type of list.
1095 &quot;tables&quot;: [ # Tables in the requested dataset.
John Asmuth614db982014-04-24 15:46:26 -04001096 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001097 &quot;kind&quot;: &quot;bigquery#table&quot;, # The resource type.
1098 &quot;view&quot;: { # Additional details for a view.
1099 &quot;useLegacySql&quot;: True or False, # True if view is defined in legacy SQL dialect, false if in standard SQL.
1100 },
1101 &quot;creationTime&quot;: &quot;A String&quot;, # The time when this table was created, in milliseconds since the epoch.
1102 &quot;rangePartitioning&quot;: { # The range partitioning specification for this table, if configured.
1103 &quot;range&quot;: { # [TrustedTester] [Required] Defines the ranges for range partitioning.
1104 &quot;interval&quot;: &quot;A String&quot;, # [TrustedTester] [Required] The width of each interval.
1105 &quot;start&quot;: &quot;A String&quot;, # [TrustedTester] [Required] The start of range partitioning, inclusive.
1106 &quot;end&quot;: &quot;A String&quot;, # [TrustedTester] [Required] The end of range partitioning, exclusive.
Dan O'Mearadd494642020-05-01 07:42:23 -07001107 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001108 &quot;field&quot;: &quot;A String&quot;, # [TrustedTester] [Required] The table is partitioned by this field. The field must be a top-level NULLABLE/REQUIRED field. The only supported type is INTEGER/INT64.
Dan O'Mearadd494642020-05-01 07:42:23 -07001109 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001110 &quot;id&quot;: &quot;A String&quot;, # An opaque ID of the table
1111 &quot;tableReference&quot;: { # A reference uniquely identifying the table.
Bu Sun Kim65020912020-05-20 12:08:20 -07001112 &quot;projectId&quot;: &quot;A String&quot;, # [Required] The ID of the project containing this table.
1113 &quot;datasetId&quot;: &quot;A String&quot;, # [Required] The ID of the dataset containing this table.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001114 &quot;tableId&quot;: &quot;A String&quot;, # [Required] The ID of the table. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001115 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001116 &quot;timePartitioning&quot;: { # The time-based partitioning specification for this table, if configured.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001117 &quot;requirePartitionFilter&quot;: True or False,
Bu Sun Kim65020912020-05-20 12:08:20 -07001118 &quot;field&quot;: &quot;A String&quot;, # [Beta] [Optional] If not set, the table is partitioned by pseudo column, referenced via either &#x27;_PARTITIONTIME&#x27; as TIMESTAMP type, or &#x27;_PARTITIONDATE&#x27; as DATE type. If field is specified, the table is instead partitioned by this field. The field must be a top-level TIMESTAMP or DATE field. Its mode must be NULLABLE or REQUIRED.
1119 &quot;expirationMs&quot;: &quot;A String&quot;, # [Optional] Number of milliseconds for which to keep the storage for partitions in the table. The storage in a partition will have an expiration time of its partition time plus this value.
1120 &quot;type&quot;: &quot;A String&quot;, # [Required] The only type supported is DAY, which will generate one partition per day.
John Asmuth614db982014-04-24 15:46:26 -04001121 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001122 &quot;friendlyName&quot;: &quot;A String&quot;, # The user-friendly name for this table.
Bu Sun Kim65020912020-05-20 12:08:20 -07001123 &quot;labels&quot;: { # The labels associated with this table. You can use these to organize and group your tables.
1124 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001125 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001126 &quot;type&quot;: &quot;A String&quot;, # The type of table. Possible values are: TABLE, VIEW.
1127 &quot;clustering&quot;: { # [Beta] Clustering specification for this table, if configured.
1128 &quot;fields&quot;: [ # [Repeated] One or more fields on which data should be clustered. Only top-level, non-repeated, simple-type fields are supported. When you cluster a table using multiple columns, the order of columns you specify is important. The order of the specified columns determines the sort order of the data.
1129 &quot;A String&quot;,
1130 ],
1131 },
1132 &quot;expirationTime&quot;: &quot;A String&quot;, # [Optional] The time when this table expires, in milliseconds since the epoch. If not present, the table will persist indefinitely. Expired tables will be deleted and their storage reclaimed.
John Asmuth614db982014-04-24 15:46:26 -04001133 },
1134 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001135 &quot;etag&quot;: &quot;A String&quot;, # A hash of this page of results.
John Asmuth614db982014-04-24 15:46:26 -04001136 }</pre>
1137</div>
1138
1139<div class="method">
1140 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1141 <pre>Retrieves the next page of results.
1142
1143Args:
1144 previous_request: The request for the previous page. (required)
1145 previous_response: The response from the request for the previous page. (required)
1146
1147Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07001148 A request object that you can call &#x27;execute()&#x27; on to request the next
John Asmuth614db982014-04-24 15:46:26 -04001149 page. Returns None if there are no more items in the collection.
1150 </pre>
1151</div>
1152
1153<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001154 <code class="details" id="patch">patch(projectId, datasetId, tableId, body=None)</code>
John Asmuth614db982014-04-24 15:46:26 -04001155 <pre>Updates information in an existing table. The update method replaces the entire table resource, whereas the patch method only replaces fields that are provided in the submitted table resource. This method supports patch semantics.
1156
1157Args:
1158 projectId: string, Project ID of the table to update (required)
1159 datasetId: string, Dataset ID of the table to update (required)
1160 tableId: string, Table ID of the table to update (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001161 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -04001162 The object takes the form of:
1163
1164{
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001165 &quot;view&quot;: { # [Optional] The view definition.
1166 &quot;useLegacySql&quot;: True or False, # Specifies whether to use BigQuery&#x27;s legacy SQL for this view. The default value is true. If set to false, the view will use BigQuery&#x27;s standard SQL: https://cloud.google.com/bigquery/sql-reference/ Queries and views that reference this view must use the same flag value.
1167 &quot;query&quot;: &quot;A String&quot;, # [Required] A query that BigQuery executes when the view is referenced.
1168 &quot;userDefinedFunctionResources&quot;: [ # Describes user-defined function resources used in the query.
1169 { # This is used for defining User Defined Function (UDF) resources only when using legacy SQL. Users of Standard SQL should leverage either DDL (e.g. CREATE [TEMPORARY] FUNCTION ... ) or the Routines API to define UDF resources. For additional information on migrating, see: https://cloud.google.com/bigquery/docs/reference/standard-sql/migrating-from-legacy-sql#differences_in_user-defined_javascript_functions
1170 &quot;inlineCode&quot;: &quot;A String&quot;, # [Pick one] An inline resource that contains code for a user-defined function (UDF). Providing a inline code resource is equivalent to providing a URI for a file containing the same code.
1171 &quot;resourceUri&quot;: &quot;A String&quot;, # [Pick one] A code resource to load from a Google Cloud Storage URI (gs://bucket/path).
1172 },
1173 ],
1174 },
1175 &quot;numLongTermBytes&quot;: &quot;A String&quot;, # [Output-only] The number of bytes in the table that are considered &quot;long-term storage&quot;.
1176 &quot;etag&quot;: &quot;A String&quot;, # [Output-only] A hash of the table metadata. Used to ensure there were no concurrent modifications to the resource when attempting an update. Not guaranteed to change when the table contents or the fields numRows, numBytes, numLongTermBytes or lastModifiedTime change.
1177 &quot;encryptionConfiguration&quot;: { # Custom encryption configuration (e.g., Cloud KMS keys).
1178 &quot;kmsKeyName&quot;: &quot;A String&quot;, # [Optional] Describes the Cloud KMS encryption key that will be used to protect destination BigQuery table. The BigQuery Service Account associated with your project requires access to this encryption key.
1179 },
1180 &quot;streamingBuffer&quot;: { # [Output-only] Contains information regarding this table&#x27;s streaming buffer, if one is present. This field will be absent if the table is not being streamed to or if there is no data in the streaming buffer.
1181 &quot;estimatedBytes&quot;: &quot;A String&quot;, # [Output-only] A lower-bound estimate of the number of bytes currently in the streaming buffer.
1182 &quot;estimatedRows&quot;: &quot;A String&quot;, # [Output-only] A lower-bound estimate of the number of rows currently in the streaming buffer.
1183 &quot;oldestEntryTime&quot;: &quot;A String&quot;, # [Output-only] Contains the timestamp of the oldest entry in the streaming buffer, in milliseconds since the epoch, if the streaming buffer is available.
1184 },
1185 &quot;numBytes&quot;: &quot;A String&quot;, # [Output-only] The size of this table in bytes, excluding any data in the streaming buffer.
1186 &quot;location&quot;: &quot;A String&quot;, # [Output-only] The geographic location where the table resides. This value is inherited from the dataset.
1187 &quot;timePartitioning&quot;: { # Time-based partitioning specification for this table. Only one of timePartitioning and rangePartitioning should be specified.
1188 &quot;requirePartitionFilter&quot;: True or False,
1189 &quot;field&quot;: &quot;A String&quot;, # [Beta] [Optional] If not set, the table is partitioned by pseudo column, referenced via either &#x27;_PARTITIONTIME&#x27; as TIMESTAMP type, or &#x27;_PARTITIONDATE&#x27; as DATE type. If field is specified, the table is instead partitioned by this field. The field must be a top-level TIMESTAMP or DATE field. Its mode must be NULLABLE or REQUIRED.
1190 &quot;expirationMs&quot;: &quot;A String&quot;, # [Optional] Number of milliseconds for which to keep the storage for partitions in the table. The storage in a partition will have an expiration time of its partition time plus this value.
1191 &quot;type&quot;: &quot;A String&quot;, # [Required] The only type supported is DAY, which will generate one partition per day.
1192 },
1193 &quot;friendlyName&quot;: &quot;A String&quot;, # [Optional] A descriptive name for this table.
1194 &quot;labels&quot;: { # The labels associated with this table. You can use these to organize and group your tables. Label keys and values can be no longer than 63 characters, can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter and each label in the list must have a different key.
1195 &quot;a_key&quot;: &quot;A String&quot;,
1196 },
1197 &quot;numPhysicalBytes&quot;: &quot;A String&quot;, # [Output-only] [TrustedTester] The physical size of this table in bytes, excluding any data in the streaming buffer. This includes compression and storage used for time travel.
Bu Sun Kim65020912020-05-20 12:08:20 -07001198 &quot;externalDataConfiguration&quot;: { # [Optional] Describes the data format, location, and other properties of a table stored outside of BigQuery. By defining these properties, the data source can then be queried as if it were a standard BigQuery table.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001199 &quot;compression&quot;: &quot;A String&quot;, # [Optional] The compression type of the data source. Possible values include GZIP and NONE. The default value is NONE. This setting is ignored for Google Cloud Bigtable, Google Cloud Datastore backups and Avro formats.
1200 &quot;maxBadRecords&quot;: 42, # [Optional] The maximum number of bad records that BigQuery can ignore when reading data. If the number of bad records exceeds this value, an invalid error is returned in the job result. This is only valid for CSV, JSON, and Google Sheets. The default value is 0, which requires that all records are valid. This setting is ignored for Google Cloud Bigtable, Google Cloud Datastore backups and Avro formats.
1201 &quot;sourceUris&quot;: [ # [Required] The fully-qualified URIs that point to your data in Google Cloud. For Google Cloud Storage URIs: Each URI can contain one &#x27;*&#x27; wildcard character and it must come after the &#x27;bucket&#x27; name. Size limits related to load jobs apply to external data sources. For Google Cloud Bigtable URIs: Exactly one URI can be specified and it has be a fully specified and valid HTTPS URL for a Google Cloud Bigtable table. For Google Cloud Datastore backups, exactly one URI can be specified. Also, the &#x27;*&#x27; wildcard character is not allowed.
1202 &quot;A String&quot;,
1203 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001204 &quot;csvOptions&quot;: { # Additional properties to set if sourceFormat is set to CSV.
Bu Sun Kim65020912020-05-20 12:08:20 -07001205 &quot;quote&quot;: &quot;&quot;&quot;, # [Optional] The value that is used to quote data sections in a CSV file. BigQuery converts the string to ISO-8859-1 encoding, and then uses the first byte of the encoded string to split the data in its raw, binary state. The default value is a double-quote (&#x27;&quot;&#x27;). If your data does not contain quoted sections, set the property value to an empty string. If your data contains quoted newline characters, you must also set the allowQuotedNewlines property to true.
1206 &quot;skipLeadingRows&quot;: &quot;A String&quot;, # [Optional] The number of rows at the top of a CSV file that BigQuery will skip when reading the data. The default value is 0. This property is useful if you have header rows in the file that should be skipped. When autodetect is on, the behavior is the following: * skipLeadingRows unspecified - Autodetect tries to detect headers in the first row. If they are not detected, the row is read as data. Otherwise data is read starting from the second row. * skipLeadingRows is 0 - Instructs autodetect that there are no headers and data should be read starting from the first row. * skipLeadingRows = N &gt; 0 - Autodetect skips N-1 rows and tries to detect headers in row N. If headers are not detected, row N is just skipped. Otherwise row N is used to extract column names for the detected schema.
1207 &quot;allowJaggedRows&quot;: True or False, # [Optional] Indicates if BigQuery should accept rows that are missing trailing optional columns. If true, BigQuery treats missing trailing columns as null values. If false, records with missing trailing columns are treated as bad records, and if there are too many bad records, an invalid error is returned in the job result. The default value is false.
1208 &quot;fieldDelimiter&quot;: &quot;A String&quot;, # [Optional] The separator for fields in a CSV file. BigQuery converts the string to ISO-8859-1 encoding, and then uses the first byte of the encoded string to split the data in its raw, binary state. BigQuery also supports the escape sequence &quot;\t&quot; to specify a tab separator. The default value is a comma (&#x27;,&#x27;).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001209 &quot;encoding&quot;: &quot;A String&quot;, # [Optional] The character encoding of the data. The supported values are UTF-8 or ISO-8859-1. The default value is UTF-8. BigQuery decodes the data after the raw, binary data has been split using the values of the quote and fieldDelimiter properties.
1210 &quot;allowQuotedNewlines&quot;: True or False, # [Optional] Indicates if BigQuery should allow quoted data sections that contain newline characters in a CSV file. The default value is false.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001211 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001212 &quot;bigtableOptions&quot;: { # [Optional] Additional options if sourceFormat is set to BIGTABLE.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001213 &quot;readRowkeyAsString&quot;: True or False, # [Optional] If field is true, then the rowkey column families will be read and converted to string. Otherwise they are read with BYTES type values and users need to manually cast them with CAST if necessary. The default value is false.
Bu Sun Kim65020912020-05-20 12:08:20 -07001214 &quot;columnFamilies&quot;: [ # [Optional] List of column families to expose in the table schema along with their types. This list restricts the column families that can be referenced in queries and specifies their value types. You can use this list to do type conversions - see the &#x27;type&#x27; field for more details. If you leave this list empty, all column families are present in the table schema and their values are read as BYTES. During a query only the column families referenced in that query are read from Bigtable.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001215 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001216 &quot;onlyReadLatest&quot;: True or False, # [Optional] If this is set only the latest version of value are exposed for all columns in this column family. This can be overridden for a specific column by listing that column in &#x27;columns&#x27; and specifying a different setting for that column.
1217 &quot;encoding&quot;: &quot;A String&quot;, # [Optional] The encoding of the values when the type is not STRING. Acceptable encoding values are: TEXT - indicates values are alphanumeric text strings. BINARY - indicates values are encoded using HBase Bytes.toBytes family of functions. This can be overridden for a specific column by listing that column in &#x27;columns&#x27; and specifying an encoding for it.
1218 &quot;columns&quot;: [ # [Optional] Lists of columns that should be exposed as individual fields as opposed to a list of (column name, value) pairs. All columns whose qualifier matches a qualifier in this list can be accessed as .. Other columns can be accessed as a list through .Column field.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001219 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001220 &quot;fieldName&quot;: &quot;A String&quot;, # [Optional] If the qualifier is not a valid BigQuery field identifier i.e. does not match [a-zA-Z][a-zA-Z0-9_]*, a valid identifier must be provided as the column field name and is used as field name in queries.
1221 &quot;qualifierString&quot;: &quot;A String&quot;,
1222 &quot;encoding&quot;: &quot;A String&quot;, # [Optional] The encoding of the values when the type is not STRING. Acceptable encoding values are: TEXT - indicates values are alphanumeric text strings. BINARY - indicates values are encoded using HBase Bytes.toBytes family of functions. &#x27;encoding&#x27; can also be set at the column family level. However, the setting at this level takes precedence if &#x27;encoding&#x27; is set at both levels.
1223 &quot;type&quot;: &quot;A String&quot;, # [Optional] The type to convert the value in cells of this column. The values are expected to be encoded using HBase Bytes.toBytes function when using the BINARY encoding value. Following BigQuery types are allowed (case-sensitive) - BYTES STRING INTEGER FLOAT BOOLEAN Default type is BYTES. &#x27;type&#x27; can also be set at the column family level. However, the setting at this level takes precedence if &#x27;type&#x27; is set at both levels.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001224 &quot;qualifierEncoded&quot;: &quot;A String&quot;, # [Required] Qualifier of the column. Columns in the parent column family that has this exact qualifier are exposed as . field. If the qualifier is valid UTF-8 string, it can be specified in the qualifier_string field. Otherwise, a base-64 encoded value must be set to qualifier_encoded. The column field name is the same as the column qualifier. However, if the qualifier is not a valid BigQuery field identifier i.e. does not match [a-zA-Z][a-zA-Z0-9_]*, a valid identifier must be provided as field_name.
1225 &quot;onlyReadLatest&quot;: True or False, # [Optional] If this is set, only the latest version of value in this column are exposed. &#x27;onlyReadLatest&#x27; can also be set at the column family level. However, the setting at this level takes precedence if &#x27;onlyReadLatest&#x27; is set at both levels.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001226 },
1227 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001228 &quot;type&quot;: &quot;A String&quot;, # [Optional] The type to convert the value in cells of this column family. The values are expected to be encoded using HBase Bytes.toBytes function when using the BINARY encoding value. Following BigQuery types are allowed (case-sensitive) - BYTES STRING INTEGER FLOAT BOOLEAN Default type is BYTES. This can be overridden for a specific column by listing that column in &#x27;columns&#x27; and specifying a type for it.
1229 &quot;familyId&quot;: &quot;A String&quot;, # Identifier of the column family.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001230 },
1231 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001232 &quot;ignoreUnspecifiedColumnFamilies&quot;: True or False, # [Optional] If field is true, then the column families that are not specified in columnFamilies list are not exposed in the table schema. Otherwise, they are read with BYTES type values. The default value is false.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001233 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001234 &quot;schema&quot;: { # [Optional] The schema for the data. Schema is required for CSV and JSON formats. Schema is disallowed for Google Cloud Bigtable, Cloud Datastore backups, and Avro formats.
1235 &quot;fields&quot;: [ # Describes the fields in a table.
Takashi Matsuo06694102015-09-11 13:55:40 -07001236 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001237 &quot;name&quot;: &quot;A String&quot;, # [Required] The field name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 128 characters.
1238 &quot;type&quot;: &quot;A String&quot;, # [Required] The field data type. Possible values include STRING, BYTES, INTEGER, INT64 (same as INTEGER), FLOAT, FLOAT64 (same as FLOAT), BOOLEAN, BOOL (same as BOOLEAN), TIMESTAMP, DATE, TIME, DATETIME, RECORD (where RECORD indicates that the field contains a nested schema) or STRUCT (same as RECORD).
1239 &quot;categories&quot;: { # [Optional] The categories attached to this field, used for field-level access control.
1240 &quot;names&quot;: [ # A list of category resource names. For example, &quot;projects/1/taxonomies/2/categories/3&quot;. At most 5 categories are allowed.
1241 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001242 ],
1243 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001244 &quot;mode&quot;: &quot;A String&quot;, # [Optional] The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.
1245 &quot;description&quot;: &quot;A String&quot;, # [Optional] The field description. The maximum length is 1,024 characters.
1246 &quot;policyTags&quot;: {
1247 &quot;names&quot;: [ # A list of category resource names. For example, &quot;projects/1/location/eu/taxonomies/2/policyTags/3&quot;. At most 1 policy tag is allowed.
1248 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001249 ],
1250 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001251 &quot;fields&quot;: [ # [Optional] Describes the nested schema fields if the type property is set to RECORD.
1252 # Object with schema name: TableFieldSchema
1253 ],
Takashi Matsuo06694102015-09-11 13:55:40 -07001254 },
1255 ],
1256 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001257 &quot;connectionId&quot;: &quot;A String&quot;, # [Optional, Trusted Tester] Connection for external data source.
Bu Sun Kim65020912020-05-20 12:08:20 -07001258 &quot;hivePartitioningOptions&quot;: { # [Optional, Trusted Tester] Options to configure hive partitioning support.
1259 &quot;sourceUriPrefix&quot;: &quot;A String&quot;, # [Optional, Trusted Tester] When hive partition detection is requested, a common prefix for all source uris should be supplied. The prefix must end immediately before the partition key encoding begins. For example, consider files following this data layout. gs://bucket/path_to_table/dt=2019-01-01/country=BR/id=7/file.avro gs://bucket/path_to_table/dt=2018-12-31/country=CA/id=3/file.avro When hive partitioning is requested with either AUTO or STRINGS detection, the common prefix can be either of gs://bucket/path_to_table or gs://bucket/path_to_table/ (trailing slash does not matter).
1260 &quot;mode&quot;: &quot;A String&quot;, # [Optional, Trusted Tester] When set, what mode of hive partitioning to use when reading data. Two modes are supported. (1) AUTO: automatically infer partition key name(s) and type(s). (2) STRINGS: automatically infer partition key name(s). All types are interpreted as strings. Not all storage formats support hive partitioning. Requesting hive partitioning on an unsupported format will lead to an error. Currently supported types include: AVRO, CSV, JSON, ORC and Parquet.
1261 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001262 &quot;autodetect&quot;: True or False, # Try to detect schema and format options automatically. Any option specified explicitly will be honored.
1263 &quot;googleSheetsOptions&quot;: { # [Optional] Additional options if sourceFormat is set to GOOGLE_SHEETS.
1264 &quot;range&quot;: &quot;A String&quot;, # [Optional] Range of a sheet to query from. Only used when non-empty. Typical format: sheet_name!top_left_cell_id:bottom_right_cell_id For example: sheet1!A1:B20
1265 &quot;skipLeadingRows&quot;: &quot;A String&quot;, # [Optional] The number of rows at the top of a sheet that BigQuery will skip when reading the data. The default value is 0. This property is useful if you have header rows that should be skipped. When autodetect is on, behavior is the following: * skipLeadingRows unspecified - Autodetect tries to detect headers in the first row. If they are not detected, the row is read as data. Otherwise data is read starting from the second row. * skipLeadingRows is 0 - Instructs autodetect that there are no headers and data should be read starting from the first row. * skipLeadingRows = N &gt; 0 - Autodetect skips N-1 rows and tries to detect headers in row N. If headers are not detected, row N is just skipped. Otherwise row N is used to extract column names for the detected schema.
1266 },
1267 &quot;ignoreUnknownValues&quot;: True or False, # [Optional] Indicates if BigQuery should allow extra values that are not represented in the table schema. If true, the extra values are ignored. If false, records with extra columns are treated as bad records, and if there are too many bad records, an invalid error is returned in the job result. The default value is false. The sourceFormat property determines what BigQuery treats as an extra value: CSV: Trailing columns JSON: Named values that don&#x27;t match any column names Google Cloud Bigtable: This setting is ignored. Google Cloud Datastore backups: This setting is ignored. Avro: This setting is ignored.
1268 &quot;sourceFormat&quot;: &quot;A String&quot;, # [Required] The data format. For CSV files, specify &quot;CSV&quot;. For Google sheets, specify &quot;GOOGLE_SHEETS&quot;. For newline-delimited JSON, specify &quot;NEWLINE_DELIMITED_JSON&quot;. For Avro files, specify &quot;AVRO&quot;. For Google Cloud Datastore backups, specify &quot;DATASTORE_BACKUP&quot;. [Beta] For Google Cloud Bigtable, specify &quot;BIGTABLE&quot;.
Takashi Matsuo06694102015-09-11 13:55:40 -07001269 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001270 &quot;model&quot;: { # [Output-only, Beta] Present iff this table represents a ML model. Describes the training information for the model, and it is required to run &#x27;PREDICT&#x27; queries.
1271 &quot;modelOptions&quot;: { # [Output-only, Beta] Model options used for the first training run. These options are immutable for subsequent training runs. Default values are used for any options not specified in the input query.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001272 &quot;lossType&quot;: &quot;A String&quot;,
1273 &quot;modelType&quot;: &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -07001274 &quot;labels&quot;: [
1275 &quot;A String&quot;,
1276 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001277 },
1278 &quot;trainingRuns&quot;: [ # [Output-only, Beta] Information about ml training runs, each training run comprises of multiple iterations and there may be multiple training runs for the model if warm start is used or if a user decides to continue a previously cancelled query.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001279 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001280 &quot;iterationResults&quot;: [ # [Output-only, Beta] List of each iteration results.
1281 {
1282 &quot;durationMs&quot;: &quot;A String&quot;, # [Output-only, Beta] Time taken to run the training iteration in milliseconds.
1283 &quot;trainingLoss&quot;: 3.14, # [Output-only, Beta] Training loss computed on the training data at the end of the iteration. The training loss function is defined by model type.
1284 &quot;evalLoss&quot;: 3.14, # [Output-only, Beta] Eval loss computed on the eval data at the end of the iteration. The eval loss is used for early stopping to avoid overfitting. No eval loss if eval_split_method option is specified as no_split or auto_split with input data size less than 500 rows.
1285 &quot;index&quot;: 42, # [Output-only, Beta] Index of the ML training iteration, starting from zero for each training run.
1286 &quot;learnRate&quot;: 3.14, # [Output-only, Beta] Learning rate used for this iteration, it varies for different training iterations if learn_rate_strategy option is not constant.
1287 },
1288 ],
1289 &quot;startTime&quot;: &quot;A String&quot;, # [Output-only, Beta] Training run start time in milliseconds since the epoch.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001290 &quot;trainingOptions&quot;: { # [Output-only, Beta] Training options used by this training run. These options are mutable for subsequent training runs. Default values are explicitly stored for options not specified in the input query of the first training run. For subsequent training runs, any option not explicitly specified in the input query will be copied from the previous training run.
1291 &quot;l1Reg&quot;: 3.14,
1292 &quot;maxIteration&quot;: &quot;A String&quot;,
1293 &quot;learnRate&quot;: 3.14,
1294 &quot;minRelProgress&quot;: 3.14,
1295 &quot;l2Reg&quot;: 3.14,
1296 &quot;warmStart&quot;: True or False,
1297 &quot;learnRateStrategy&quot;: &quot;A String&quot;,
1298 &quot;lineSearchInitLearnRate&quot;: 3.14,
1299 &quot;earlyStop&quot;: True or False,
1300 },
1301 &quot;state&quot;: &quot;A String&quot;, # [Output-only, Beta] Different state applicable for a training run. IN PROGRESS: Training run is in progress. FAILED: Training run ended due to a non-retryable failure. SUCCEEDED: Training run successfully completed. CANCELLED: Training run cancelled by the user.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001302 },
1303 ],
1304 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001305 &quot;selfLink&quot;: &quot;A String&quot;, # [Output-only] A URL that can be used to access this resource again.
1306 &quot;expirationTime&quot;: &quot;A String&quot;, # [Optional] The time when this table expires, in milliseconds since the epoch. If not present, the table will persist indefinitely. Expired tables will be deleted and their storage reclaimed. The defaultTableExpirationMs property of the encapsulating dataset can be used to set a default expirationTime on newly created tables.
1307 &quot;kind&quot;: &quot;bigquery#table&quot;, # [Output-only] The type of the resource.
1308 &quot;description&quot;: &quot;A String&quot;, # [Optional] A user-friendly description of this table.
1309 &quot;creationTime&quot;: &quot;A String&quot;, # [Output-only] The time when this table was created, in milliseconds since the epoch.
1310 &quot;rangePartitioning&quot;: { # [TrustedTester] Range partitioning specification for this table. Only one of timePartitioning and rangePartitioning should be specified.
1311 &quot;range&quot;: { # [TrustedTester] [Required] Defines the ranges for range partitioning.
1312 &quot;interval&quot;: &quot;A String&quot;, # [TrustedTester] [Required] The width of each interval.
1313 &quot;start&quot;: &quot;A String&quot;, # [TrustedTester] [Required] The start of range partitioning, inclusive.
1314 &quot;end&quot;: &quot;A String&quot;, # [TrustedTester] [Required] The end of range partitioning, exclusive.
1315 },
1316 &quot;field&quot;: &quot;A String&quot;, # [TrustedTester] [Required] The table is partitioned by this field. The field must be a top-level NULLABLE/REQUIRED field. The only supported type is INTEGER/INT64.
1317 },
1318 &quot;schema&quot;: { # [Optional] Describes the schema of this table.
1319 &quot;fields&quot;: [ # Describes the fields in a table.
1320 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001321 &quot;name&quot;: &quot;A String&quot;, # [Required] The field name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 128 characters.
1322 &quot;type&quot;: &quot;A String&quot;, # [Required] The field data type. Possible values include STRING, BYTES, INTEGER, INT64 (same as INTEGER), FLOAT, FLOAT64 (same as FLOAT), BOOLEAN, BOOL (same as BOOLEAN), TIMESTAMP, DATE, TIME, DATETIME, RECORD (where RECORD indicates that the field contains a nested schema) or STRUCT (same as RECORD).
1323 &quot;categories&quot;: { # [Optional] The categories attached to this field, used for field-level access control.
1324 &quot;names&quot;: [ # A list of category resource names. For example, &quot;projects/1/taxonomies/2/categories/3&quot;. At most 5 categories are allowed.
1325 &quot;A String&quot;,
1326 ],
1327 },
1328 &quot;mode&quot;: &quot;A String&quot;, # [Optional] The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.
1329 &quot;description&quot;: &quot;A String&quot;, # [Optional] The field description. The maximum length is 1,024 characters.
1330 &quot;policyTags&quot;: {
1331 &quot;names&quot;: [ # A list of category resource names. For example, &quot;projects/1/location/eu/taxonomies/2/policyTags/3&quot;. At most 1 policy tag is allowed.
1332 &quot;A String&quot;,
1333 ],
1334 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001335 &quot;fields&quot;: [ # [Optional] Describes the nested schema fields if the type property is set to RECORD.
1336 # Object with schema name: TableFieldSchema
1337 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001338 },
1339 ],
1340 },
1341 &quot;id&quot;: &quot;A String&quot;, # [Output-only] An opaque ID uniquely identifying the table.
1342 &quot;requirePartitionFilter&quot;: false, # [Optional] If set to true, queries over this table require a partition filter that can be used for partition elimination to be specified.
1343 &quot;materializedView&quot;: { # [Optional] Materialized view definition.
1344 &quot;query&quot;: &quot;A String&quot;, # [Required] A query whose result is persisted.
1345 &quot;enableRefresh&quot;: True or False, # [Optional] [TrustedTester] Enable automatic refresh of the materialized view when the base table is updated. The default value is &quot;true&quot;.
1346 &quot;refreshIntervalMs&quot;: &quot;A String&quot;, # [Optional] [TrustedTester] The maximum frequency at which this materialized view will be refreshed. The default value is &quot;1800000&quot; (30 minutes).
1347 &quot;lastRefreshTime&quot;: &quot;A String&quot;, # [Output-only] [TrustedTester] The time when this materialized view was last modified, in milliseconds since the epoch.
1348 },
1349 &quot;tableReference&quot;: { # [Required] Reference describing the ID of this table.
Bu Sun Kim65020912020-05-20 12:08:20 -07001350 &quot;projectId&quot;: &quot;A String&quot;, # [Required] The ID of the project containing this table.
1351 &quot;datasetId&quot;: &quot;A String&quot;, # [Required] The ID of the dataset containing this table.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001352 &quot;tableId&quot;: &quot;A String&quot;, # [Required] The ID of the table. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -07001353 },
1354 &quot;lastModifiedTime&quot;: &quot;A String&quot;, # [Output-only] The time when this table was last modified, in milliseconds since the epoch.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001355 &quot;type&quot;: &quot;A String&quot;, # [Output-only] Describes the table type. The following values are supported: TABLE: A normal BigQuery table. VIEW: A virtual table defined by a SQL query. [TrustedTester] MATERIALIZED_VIEW: SQL query whose result is persisted. EXTERNAL: A table that references data stored in an external storage system, such as Google Cloud Storage. The default value is TABLE.
Bu Sun Kim65020912020-05-20 12:08:20 -07001356 &quot;clustering&quot;: { # [Beta] Clustering specification for the table. Must be specified with partitioning, data in the table will be first partitioned and subsequently clustered.
1357 &quot;fields&quot;: [ # [Repeated] One or more fields on which data should be clustered. Only top-level, non-repeated, simple-type fields are supported. When you cluster a table using multiple columns, the order of columns you specify is important. The order of the specified columns determines the sort order of the data.
1358 &quot;A String&quot;,
1359 ],
1360 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001361 &quot;numRows&quot;: &quot;A String&quot;, # [Output-only] The number of rows of data in this table, excluding any data in the streaming buffer.
John Asmuth614db982014-04-24 15:46:26 -04001362 }
1363
1364
1365Returns:
1366 An object of the form:
1367
1368 {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001369 &quot;view&quot;: { # [Optional] The view definition.
1370 &quot;useLegacySql&quot;: True or False, # Specifies whether to use BigQuery&#x27;s legacy SQL for this view. The default value is true. If set to false, the view will use BigQuery&#x27;s standard SQL: https://cloud.google.com/bigquery/sql-reference/ Queries and views that reference this view must use the same flag value.
1371 &quot;query&quot;: &quot;A String&quot;, # [Required] A query that BigQuery executes when the view is referenced.
1372 &quot;userDefinedFunctionResources&quot;: [ # Describes user-defined function resources used in the query.
1373 { # This is used for defining User Defined Function (UDF) resources only when using legacy SQL. Users of Standard SQL should leverage either DDL (e.g. CREATE [TEMPORARY] FUNCTION ... ) or the Routines API to define UDF resources. For additional information on migrating, see: https://cloud.google.com/bigquery/docs/reference/standard-sql/migrating-from-legacy-sql#differences_in_user-defined_javascript_functions
1374 &quot;inlineCode&quot;: &quot;A String&quot;, # [Pick one] An inline resource that contains code for a user-defined function (UDF). Providing a inline code resource is equivalent to providing a URI for a file containing the same code.
1375 &quot;resourceUri&quot;: &quot;A String&quot;, # [Pick one] A code resource to load from a Google Cloud Storage URI (gs://bucket/path).
1376 },
1377 ],
1378 },
1379 &quot;numLongTermBytes&quot;: &quot;A String&quot;, # [Output-only] The number of bytes in the table that are considered &quot;long-term storage&quot;.
1380 &quot;etag&quot;: &quot;A String&quot;, # [Output-only] A hash of the table metadata. Used to ensure there were no concurrent modifications to the resource when attempting an update. Not guaranteed to change when the table contents or the fields numRows, numBytes, numLongTermBytes or lastModifiedTime change.
1381 &quot;encryptionConfiguration&quot;: { # Custom encryption configuration (e.g., Cloud KMS keys).
1382 &quot;kmsKeyName&quot;: &quot;A String&quot;, # [Optional] Describes the Cloud KMS encryption key that will be used to protect destination BigQuery table. The BigQuery Service Account associated with your project requires access to this encryption key.
1383 },
1384 &quot;streamingBuffer&quot;: { # [Output-only] Contains information regarding this table&#x27;s streaming buffer, if one is present. This field will be absent if the table is not being streamed to or if there is no data in the streaming buffer.
1385 &quot;estimatedBytes&quot;: &quot;A String&quot;, # [Output-only] A lower-bound estimate of the number of bytes currently in the streaming buffer.
1386 &quot;estimatedRows&quot;: &quot;A String&quot;, # [Output-only] A lower-bound estimate of the number of rows currently in the streaming buffer.
1387 &quot;oldestEntryTime&quot;: &quot;A String&quot;, # [Output-only] Contains the timestamp of the oldest entry in the streaming buffer, in milliseconds since the epoch, if the streaming buffer is available.
1388 },
1389 &quot;numBytes&quot;: &quot;A String&quot;, # [Output-only] The size of this table in bytes, excluding any data in the streaming buffer.
1390 &quot;location&quot;: &quot;A String&quot;, # [Output-only] The geographic location where the table resides. This value is inherited from the dataset.
1391 &quot;timePartitioning&quot;: { # Time-based partitioning specification for this table. Only one of timePartitioning and rangePartitioning should be specified.
1392 &quot;requirePartitionFilter&quot;: True or False,
1393 &quot;field&quot;: &quot;A String&quot;, # [Beta] [Optional] If not set, the table is partitioned by pseudo column, referenced via either &#x27;_PARTITIONTIME&#x27; as TIMESTAMP type, or &#x27;_PARTITIONDATE&#x27; as DATE type. If field is specified, the table is instead partitioned by this field. The field must be a top-level TIMESTAMP or DATE field. Its mode must be NULLABLE or REQUIRED.
1394 &quot;expirationMs&quot;: &quot;A String&quot;, # [Optional] Number of milliseconds for which to keep the storage for partitions in the table. The storage in a partition will have an expiration time of its partition time plus this value.
1395 &quot;type&quot;: &quot;A String&quot;, # [Required] The only type supported is DAY, which will generate one partition per day.
1396 },
1397 &quot;friendlyName&quot;: &quot;A String&quot;, # [Optional] A descriptive name for this table.
1398 &quot;labels&quot;: { # The labels associated with this table. You can use these to organize and group your tables. Label keys and values can be no longer than 63 characters, can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter and each label in the list must have a different key.
1399 &quot;a_key&quot;: &quot;A String&quot;,
1400 },
1401 &quot;numPhysicalBytes&quot;: &quot;A String&quot;, # [Output-only] [TrustedTester] The physical size of this table in bytes, excluding any data in the streaming buffer. This includes compression and storage used for time travel.
Bu Sun Kim65020912020-05-20 12:08:20 -07001402 &quot;externalDataConfiguration&quot;: { # [Optional] Describes the data format, location, and other properties of a table stored outside of BigQuery. By defining these properties, the data source can then be queried as if it were a standard BigQuery table.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001403 &quot;compression&quot;: &quot;A String&quot;, # [Optional] The compression type of the data source. Possible values include GZIP and NONE. The default value is NONE. This setting is ignored for Google Cloud Bigtable, Google Cloud Datastore backups and Avro formats.
1404 &quot;maxBadRecords&quot;: 42, # [Optional] The maximum number of bad records that BigQuery can ignore when reading data. If the number of bad records exceeds this value, an invalid error is returned in the job result. This is only valid for CSV, JSON, and Google Sheets. The default value is 0, which requires that all records are valid. This setting is ignored for Google Cloud Bigtable, Google Cloud Datastore backups and Avro formats.
1405 &quot;sourceUris&quot;: [ # [Required] The fully-qualified URIs that point to your data in Google Cloud. For Google Cloud Storage URIs: Each URI can contain one &#x27;*&#x27; wildcard character and it must come after the &#x27;bucket&#x27; name. Size limits related to load jobs apply to external data sources. For Google Cloud Bigtable URIs: Exactly one URI can be specified and it has be a fully specified and valid HTTPS URL for a Google Cloud Bigtable table. For Google Cloud Datastore backups, exactly one URI can be specified. Also, the &#x27;*&#x27; wildcard character is not allowed.
1406 &quot;A String&quot;,
1407 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001408 &quot;csvOptions&quot;: { # Additional properties to set if sourceFormat is set to CSV.
Bu Sun Kim65020912020-05-20 12:08:20 -07001409 &quot;quote&quot;: &quot;&quot;&quot;, # [Optional] The value that is used to quote data sections in a CSV file. BigQuery converts the string to ISO-8859-1 encoding, and then uses the first byte of the encoded string to split the data in its raw, binary state. The default value is a double-quote (&#x27;&quot;&#x27;). If your data does not contain quoted sections, set the property value to an empty string. If your data contains quoted newline characters, you must also set the allowQuotedNewlines property to true.
1410 &quot;skipLeadingRows&quot;: &quot;A String&quot;, # [Optional] The number of rows at the top of a CSV file that BigQuery will skip when reading the data. The default value is 0. This property is useful if you have header rows in the file that should be skipped. When autodetect is on, the behavior is the following: * skipLeadingRows unspecified - Autodetect tries to detect headers in the first row. If they are not detected, the row is read as data. Otherwise data is read starting from the second row. * skipLeadingRows is 0 - Instructs autodetect that there are no headers and data should be read starting from the first row. * skipLeadingRows = N &gt; 0 - Autodetect skips N-1 rows and tries to detect headers in row N. If headers are not detected, row N is just skipped. Otherwise row N is used to extract column names for the detected schema.
1411 &quot;allowJaggedRows&quot;: True or False, # [Optional] Indicates if BigQuery should accept rows that are missing trailing optional columns. If true, BigQuery treats missing trailing columns as null values. If false, records with missing trailing columns are treated as bad records, and if there are too many bad records, an invalid error is returned in the job result. The default value is false.
1412 &quot;fieldDelimiter&quot;: &quot;A String&quot;, # [Optional] The separator for fields in a CSV file. BigQuery converts the string to ISO-8859-1 encoding, and then uses the first byte of the encoded string to split the data in its raw, binary state. BigQuery also supports the escape sequence &quot;\t&quot; to specify a tab separator. The default value is a comma (&#x27;,&#x27;).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001413 &quot;encoding&quot;: &quot;A String&quot;, # [Optional] The character encoding of the data. The supported values are UTF-8 or ISO-8859-1. The default value is UTF-8. BigQuery decodes the data after the raw, binary data has been split using the values of the quote and fieldDelimiter properties.
1414 &quot;allowQuotedNewlines&quot;: True or False, # [Optional] Indicates if BigQuery should allow quoted data sections that contain newline characters in a CSV file. The default value is false.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001415 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001416 &quot;bigtableOptions&quot;: { # [Optional] Additional options if sourceFormat is set to BIGTABLE.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001417 &quot;readRowkeyAsString&quot;: True or False, # [Optional] If field is true, then the rowkey column families will be read and converted to string. Otherwise they are read with BYTES type values and users need to manually cast them with CAST if necessary. The default value is false.
Bu Sun Kim65020912020-05-20 12:08:20 -07001418 &quot;columnFamilies&quot;: [ # [Optional] List of column families to expose in the table schema along with their types. This list restricts the column families that can be referenced in queries and specifies their value types. You can use this list to do type conversions - see the &#x27;type&#x27; field for more details. If you leave this list empty, all column families are present in the table schema and their values are read as BYTES. During a query only the column families referenced in that query are read from Bigtable.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001419 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001420 &quot;onlyReadLatest&quot;: True or False, # [Optional] If this is set only the latest version of value are exposed for all columns in this column family. This can be overridden for a specific column by listing that column in &#x27;columns&#x27; and specifying a different setting for that column.
1421 &quot;encoding&quot;: &quot;A String&quot;, # [Optional] The encoding of the values when the type is not STRING. Acceptable encoding values are: TEXT - indicates values are alphanumeric text strings. BINARY - indicates values are encoded using HBase Bytes.toBytes family of functions. This can be overridden for a specific column by listing that column in &#x27;columns&#x27; and specifying an encoding for it.
1422 &quot;columns&quot;: [ # [Optional] Lists of columns that should be exposed as individual fields as opposed to a list of (column name, value) pairs. All columns whose qualifier matches a qualifier in this list can be accessed as .. Other columns can be accessed as a list through .Column field.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001423 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001424 &quot;fieldName&quot;: &quot;A String&quot;, # [Optional] If the qualifier is not a valid BigQuery field identifier i.e. does not match [a-zA-Z][a-zA-Z0-9_]*, a valid identifier must be provided as the column field name and is used as field name in queries.
1425 &quot;qualifierString&quot;: &quot;A String&quot;,
1426 &quot;encoding&quot;: &quot;A String&quot;, # [Optional] The encoding of the values when the type is not STRING. Acceptable encoding values are: TEXT - indicates values are alphanumeric text strings. BINARY - indicates values are encoded using HBase Bytes.toBytes family of functions. &#x27;encoding&#x27; can also be set at the column family level. However, the setting at this level takes precedence if &#x27;encoding&#x27; is set at both levels.
1427 &quot;type&quot;: &quot;A String&quot;, # [Optional] The type to convert the value in cells of this column. The values are expected to be encoded using HBase Bytes.toBytes function when using the BINARY encoding value. Following BigQuery types are allowed (case-sensitive) - BYTES STRING INTEGER FLOAT BOOLEAN Default type is BYTES. &#x27;type&#x27; can also be set at the column family level. However, the setting at this level takes precedence if &#x27;type&#x27; is set at both levels.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001428 &quot;qualifierEncoded&quot;: &quot;A String&quot;, # [Required] Qualifier of the column. Columns in the parent column family that has this exact qualifier are exposed as . field. If the qualifier is valid UTF-8 string, it can be specified in the qualifier_string field. Otherwise, a base-64 encoded value must be set to qualifier_encoded. The column field name is the same as the column qualifier. However, if the qualifier is not a valid BigQuery field identifier i.e. does not match [a-zA-Z][a-zA-Z0-9_]*, a valid identifier must be provided as field_name.
1429 &quot;onlyReadLatest&quot;: True or False, # [Optional] If this is set, only the latest version of value in this column are exposed. &#x27;onlyReadLatest&#x27; can also be set at the column family level. However, the setting at this level takes precedence if &#x27;onlyReadLatest&#x27; is set at both levels.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001430 },
1431 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001432 &quot;type&quot;: &quot;A String&quot;, # [Optional] The type to convert the value in cells of this column family. The values are expected to be encoded using HBase Bytes.toBytes function when using the BINARY encoding value. Following BigQuery types are allowed (case-sensitive) - BYTES STRING INTEGER FLOAT BOOLEAN Default type is BYTES. This can be overridden for a specific column by listing that column in &#x27;columns&#x27; and specifying a type for it.
1433 &quot;familyId&quot;: &quot;A String&quot;, # Identifier of the column family.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001434 },
1435 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001436 &quot;ignoreUnspecifiedColumnFamilies&quot;: True or False, # [Optional] If field is true, then the column families that are not specified in columnFamilies list are not exposed in the table schema. Otherwise, they are read with BYTES type values. The default value is false.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001437 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001438 &quot;schema&quot;: { # [Optional] The schema for the data. Schema is required for CSV and JSON formats. Schema is disallowed for Google Cloud Bigtable, Cloud Datastore backups, and Avro formats.
1439 &quot;fields&quot;: [ # Describes the fields in a table.
Takashi Matsuo06694102015-09-11 13:55:40 -07001440 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001441 &quot;name&quot;: &quot;A String&quot;, # [Required] The field name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 128 characters.
1442 &quot;type&quot;: &quot;A String&quot;, # [Required] The field data type. Possible values include STRING, BYTES, INTEGER, INT64 (same as INTEGER), FLOAT, FLOAT64 (same as FLOAT), BOOLEAN, BOOL (same as BOOLEAN), TIMESTAMP, DATE, TIME, DATETIME, RECORD (where RECORD indicates that the field contains a nested schema) or STRUCT (same as RECORD).
1443 &quot;categories&quot;: { # [Optional] The categories attached to this field, used for field-level access control.
1444 &quot;names&quot;: [ # A list of category resource names. For example, &quot;projects/1/taxonomies/2/categories/3&quot;. At most 5 categories are allowed.
1445 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001446 ],
1447 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001448 &quot;mode&quot;: &quot;A String&quot;, # [Optional] The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.
1449 &quot;description&quot;: &quot;A String&quot;, # [Optional] The field description. The maximum length is 1,024 characters.
1450 &quot;policyTags&quot;: {
1451 &quot;names&quot;: [ # A list of category resource names. For example, &quot;projects/1/location/eu/taxonomies/2/policyTags/3&quot;. At most 1 policy tag is allowed.
1452 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001453 ],
1454 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001455 &quot;fields&quot;: [ # [Optional] Describes the nested schema fields if the type property is set to RECORD.
1456 # Object with schema name: TableFieldSchema
1457 ],
Takashi Matsuo06694102015-09-11 13:55:40 -07001458 },
1459 ],
1460 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001461 &quot;connectionId&quot;: &quot;A String&quot;, # [Optional, Trusted Tester] Connection for external data source.
Bu Sun Kim65020912020-05-20 12:08:20 -07001462 &quot;hivePartitioningOptions&quot;: { # [Optional, Trusted Tester] Options to configure hive partitioning support.
1463 &quot;sourceUriPrefix&quot;: &quot;A String&quot;, # [Optional, Trusted Tester] When hive partition detection is requested, a common prefix for all source uris should be supplied. The prefix must end immediately before the partition key encoding begins. For example, consider files following this data layout. gs://bucket/path_to_table/dt=2019-01-01/country=BR/id=7/file.avro gs://bucket/path_to_table/dt=2018-12-31/country=CA/id=3/file.avro When hive partitioning is requested with either AUTO or STRINGS detection, the common prefix can be either of gs://bucket/path_to_table or gs://bucket/path_to_table/ (trailing slash does not matter).
1464 &quot;mode&quot;: &quot;A String&quot;, # [Optional, Trusted Tester] When set, what mode of hive partitioning to use when reading data. Two modes are supported. (1) AUTO: automatically infer partition key name(s) and type(s). (2) STRINGS: automatically infer partition key name(s). All types are interpreted as strings. Not all storage formats support hive partitioning. Requesting hive partitioning on an unsupported format will lead to an error. Currently supported types include: AVRO, CSV, JSON, ORC and Parquet.
1465 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001466 &quot;autodetect&quot;: True or False, # Try to detect schema and format options automatically. Any option specified explicitly will be honored.
1467 &quot;googleSheetsOptions&quot;: { # [Optional] Additional options if sourceFormat is set to GOOGLE_SHEETS.
1468 &quot;range&quot;: &quot;A String&quot;, # [Optional] Range of a sheet to query from. Only used when non-empty. Typical format: sheet_name!top_left_cell_id:bottom_right_cell_id For example: sheet1!A1:B20
1469 &quot;skipLeadingRows&quot;: &quot;A String&quot;, # [Optional] The number of rows at the top of a sheet that BigQuery will skip when reading the data. The default value is 0. This property is useful if you have header rows that should be skipped. When autodetect is on, behavior is the following: * skipLeadingRows unspecified - Autodetect tries to detect headers in the first row. If they are not detected, the row is read as data. Otherwise data is read starting from the second row. * skipLeadingRows is 0 - Instructs autodetect that there are no headers and data should be read starting from the first row. * skipLeadingRows = N &gt; 0 - Autodetect skips N-1 rows and tries to detect headers in row N. If headers are not detected, row N is just skipped. Otherwise row N is used to extract column names for the detected schema.
1470 },
1471 &quot;ignoreUnknownValues&quot;: True or False, # [Optional] Indicates if BigQuery should allow extra values that are not represented in the table schema. If true, the extra values are ignored. If false, records with extra columns are treated as bad records, and if there are too many bad records, an invalid error is returned in the job result. The default value is false. The sourceFormat property determines what BigQuery treats as an extra value: CSV: Trailing columns JSON: Named values that don&#x27;t match any column names Google Cloud Bigtable: This setting is ignored. Google Cloud Datastore backups: This setting is ignored. Avro: This setting is ignored.
1472 &quot;sourceFormat&quot;: &quot;A String&quot;, # [Required] The data format. For CSV files, specify &quot;CSV&quot;. For Google sheets, specify &quot;GOOGLE_SHEETS&quot;. For newline-delimited JSON, specify &quot;NEWLINE_DELIMITED_JSON&quot;. For Avro files, specify &quot;AVRO&quot;. For Google Cloud Datastore backups, specify &quot;DATASTORE_BACKUP&quot;. [Beta] For Google Cloud Bigtable, specify &quot;BIGTABLE&quot;.
Takashi Matsuo06694102015-09-11 13:55:40 -07001473 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001474 &quot;model&quot;: { # [Output-only, Beta] Present iff this table represents a ML model. Describes the training information for the model, and it is required to run &#x27;PREDICT&#x27; queries.
1475 &quot;modelOptions&quot;: { # [Output-only, Beta] Model options used for the first training run. These options are immutable for subsequent training runs. Default values are used for any options not specified in the input query.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001476 &quot;lossType&quot;: &quot;A String&quot;,
1477 &quot;modelType&quot;: &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -07001478 &quot;labels&quot;: [
1479 &quot;A String&quot;,
1480 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001481 },
1482 &quot;trainingRuns&quot;: [ # [Output-only, Beta] Information about ml training runs, each training run comprises of multiple iterations and there may be multiple training runs for the model if warm start is used or if a user decides to continue a previously cancelled query.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001483 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001484 &quot;iterationResults&quot;: [ # [Output-only, Beta] List of each iteration results.
1485 {
1486 &quot;durationMs&quot;: &quot;A String&quot;, # [Output-only, Beta] Time taken to run the training iteration in milliseconds.
1487 &quot;trainingLoss&quot;: 3.14, # [Output-only, Beta] Training loss computed on the training data at the end of the iteration. The training loss function is defined by model type.
1488 &quot;evalLoss&quot;: 3.14, # [Output-only, Beta] Eval loss computed on the eval data at the end of the iteration. The eval loss is used for early stopping to avoid overfitting. No eval loss if eval_split_method option is specified as no_split or auto_split with input data size less than 500 rows.
1489 &quot;index&quot;: 42, # [Output-only, Beta] Index of the ML training iteration, starting from zero for each training run.
1490 &quot;learnRate&quot;: 3.14, # [Output-only, Beta] Learning rate used for this iteration, it varies for different training iterations if learn_rate_strategy option is not constant.
1491 },
1492 ],
1493 &quot;startTime&quot;: &quot;A String&quot;, # [Output-only, Beta] Training run start time in milliseconds since the epoch.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001494 &quot;trainingOptions&quot;: { # [Output-only, Beta] Training options used by this training run. These options are mutable for subsequent training runs. Default values are explicitly stored for options not specified in the input query of the first training run. For subsequent training runs, any option not explicitly specified in the input query will be copied from the previous training run.
1495 &quot;l1Reg&quot;: 3.14,
1496 &quot;maxIteration&quot;: &quot;A String&quot;,
1497 &quot;learnRate&quot;: 3.14,
1498 &quot;minRelProgress&quot;: 3.14,
1499 &quot;l2Reg&quot;: 3.14,
1500 &quot;warmStart&quot;: True or False,
1501 &quot;learnRateStrategy&quot;: &quot;A String&quot;,
1502 &quot;lineSearchInitLearnRate&quot;: 3.14,
1503 &quot;earlyStop&quot;: True or False,
1504 },
1505 &quot;state&quot;: &quot;A String&quot;, # [Output-only, Beta] Different state applicable for a training run. IN PROGRESS: Training run is in progress. FAILED: Training run ended due to a non-retryable failure. SUCCEEDED: Training run successfully completed. CANCELLED: Training run cancelled by the user.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001506 },
1507 ],
1508 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001509 &quot;selfLink&quot;: &quot;A String&quot;, # [Output-only] A URL that can be used to access this resource again.
1510 &quot;expirationTime&quot;: &quot;A String&quot;, # [Optional] The time when this table expires, in milliseconds since the epoch. If not present, the table will persist indefinitely. Expired tables will be deleted and their storage reclaimed. The defaultTableExpirationMs property of the encapsulating dataset can be used to set a default expirationTime on newly created tables.
1511 &quot;kind&quot;: &quot;bigquery#table&quot;, # [Output-only] The type of the resource.
1512 &quot;description&quot;: &quot;A String&quot;, # [Optional] A user-friendly description of this table.
1513 &quot;creationTime&quot;: &quot;A String&quot;, # [Output-only] The time when this table was created, in milliseconds since the epoch.
1514 &quot;rangePartitioning&quot;: { # [TrustedTester] Range partitioning specification for this table. Only one of timePartitioning and rangePartitioning should be specified.
1515 &quot;range&quot;: { # [TrustedTester] [Required] Defines the ranges for range partitioning.
1516 &quot;interval&quot;: &quot;A String&quot;, # [TrustedTester] [Required] The width of each interval.
1517 &quot;start&quot;: &quot;A String&quot;, # [TrustedTester] [Required] The start of range partitioning, inclusive.
1518 &quot;end&quot;: &quot;A String&quot;, # [TrustedTester] [Required] The end of range partitioning, exclusive.
1519 },
1520 &quot;field&quot;: &quot;A String&quot;, # [TrustedTester] [Required] The table is partitioned by this field. The field must be a top-level NULLABLE/REQUIRED field. The only supported type is INTEGER/INT64.
1521 },
1522 &quot;schema&quot;: { # [Optional] Describes the schema of this table.
1523 &quot;fields&quot;: [ # Describes the fields in a table.
1524 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001525 &quot;name&quot;: &quot;A String&quot;, # [Required] The field name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 128 characters.
1526 &quot;type&quot;: &quot;A String&quot;, # [Required] The field data type. Possible values include STRING, BYTES, INTEGER, INT64 (same as INTEGER), FLOAT, FLOAT64 (same as FLOAT), BOOLEAN, BOOL (same as BOOLEAN), TIMESTAMP, DATE, TIME, DATETIME, RECORD (where RECORD indicates that the field contains a nested schema) or STRUCT (same as RECORD).
1527 &quot;categories&quot;: { # [Optional] The categories attached to this field, used for field-level access control.
1528 &quot;names&quot;: [ # A list of category resource names. For example, &quot;projects/1/taxonomies/2/categories/3&quot;. At most 5 categories are allowed.
1529 &quot;A String&quot;,
1530 ],
1531 },
1532 &quot;mode&quot;: &quot;A String&quot;, # [Optional] The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.
1533 &quot;description&quot;: &quot;A String&quot;, # [Optional] The field description. The maximum length is 1,024 characters.
1534 &quot;policyTags&quot;: {
1535 &quot;names&quot;: [ # A list of category resource names. For example, &quot;projects/1/location/eu/taxonomies/2/policyTags/3&quot;. At most 1 policy tag is allowed.
1536 &quot;A String&quot;,
1537 ],
1538 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001539 &quot;fields&quot;: [ # [Optional] Describes the nested schema fields if the type property is set to RECORD.
1540 # Object with schema name: TableFieldSchema
1541 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001542 },
1543 ],
1544 },
1545 &quot;id&quot;: &quot;A String&quot;, # [Output-only] An opaque ID uniquely identifying the table.
1546 &quot;requirePartitionFilter&quot;: false, # [Optional] If set to true, queries over this table require a partition filter that can be used for partition elimination to be specified.
1547 &quot;materializedView&quot;: { # [Optional] Materialized view definition.
1548 &quot;query&quot;: &quot;A String&quot;, # [Required] A query whose result is persisted.
1549 &quot;enableRefresh&quot;: True or False, # [Optional] [TrustedTester] Enable automatic refresh of the materialized view when the base table is updated. The default value is &quot;true&quot;.
1550 &quot;refreshIntervalMs&quot;: &quot;A String&quot;, # [Optional] [TrustedTester] The maximum frequency at which this materialized view will be refreshed. The default value is &quot;1800000&quot; (30 minutes).
1551 &quot;lastRefreshTime&quot;: &quot;A String&quot;, # [Output-only] [TrustedTester] The time when this materialized view was last modified, in milliseconds since the epoch.
1552 },
1553 &quot;tableReference&quot;: { # [Required] Reference describing the ID of this table.
Bu Sun Kim65020912020-05-20 12:08:20 -07001554 &quot;projectId&quot;: &quot;A String&quot;, # [Required] The ID of the project containing this table.
1555 &quot;datasetId&quot;: &quot;A String&quot;, # [Required] The ID of the dataset containing this table.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001556 &quot;tableId&quot;: &quot;A String&quot;, # [Required] The ID of the table. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -07001557 },
1558 &quot;lastModifiedTime&quot;: &quot;A String&quot;, # [Output-only] The time when this table was last modified, in milliseconds since the epoch.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001559 &quot;type&quot;: &quot;A String&quot;, # [Output-only] Describes the table type. The following values are supported: TABLE: A normal BigQuery table. VIEW: A virtual table defined by a SQL query. [TrustedTester] MATERIALIZED_VIEW: SQL query whose result is persisted. EXTERNAL: A table that references data stored in an external storage system, such as Google Cloud Storage. The default value is TABLE.
Bu Sun Kim65020912020-05-20 12:08:20 -07001560 &quot;clustering&quot;: { # [Beta] Clustering specification for the table. Must be specified with partitioning, data in the table will be first partitioned and subsequently clustered.
1561 &quot;fields&quot;: [ # [Repeated] One or more fields on which data should be clustered. Only top-level, non-repeated, simple-type fields are supported. When you cluster a table using multiple columns, the order of columns you specify is important. The order of the specified columns determines the sort order of the data.
1562 &quot;A String&quot;,
1563 ],
1564 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001565 &quot;numRows&quot;: &quot;A String&quot;, # [Output-only] The number of rows of data in this table, excluding any data in the streaming buffer.
John Asmuth614db982014-04-24 15:46:26 -04001566 }</pre>
1567</div>
1568
1569<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07001570 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None)</code>
1571 <pre>Sets the access control policy on the specified resource. Replaces any
1572existing policy.
1573
1574Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
1575
1576Args:
1577 resource: string, REQUIRED: The resource for which the policy is being specified.
1578See the operation documentation for the appropriate value for this field. (required)
1579 body: object, The request body.
1580 The object takes the form of:
1581
1582{ # Request message for `SetIamPolicy` method.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001583 &quot;updateMask&quot;: &quot;A String&quot;, # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
1584 # the fields in the mask will be modified. If no mask is provided, the
1585 # following default mask is used:
1586 #
1587 # `paths: &quot;bindings, etag&quot;`
Bu Sun Kim65020912020-05-20 12:08:20 -07001588 &quot;policy&quot;: { # An Identity and Access Management (IAM) policy, which specifies access # REQUIRED: The complete policy to be applied to the `resource`. The size of
1589 # the policy is limited to a few 10s of KB. An empty policy is a
1590 # valid policy but certain Cloud Platform services (such as Projects)
1591 # might reject them.
1592 # controls for Google Cloud resources.
1593 #
1594 #
1595 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
1596 # `members` to a single `role`. Members can be user accounts, service accounts,
1597 # Google groups, and domains (such as G Suite). A `role` is a named list of
1598 # permissions; each `role` can be an IAM predefined role or a user-created
1599 # custom role.
1600 #
1601 # For some types of Google Cloud resources, a `binding` can also specify a
1602 # `condition`, which is a logical expression that allows access to a resource
1603 # only if the expression evaluates to `true`. A condition can add constraints
1604 # based on attributes of the request, the resource, or both. To learn which
1605 # resources support conditions in their IAM policies, see the
1606 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1607 #
1608 # **JSON example:**
1609 #
1610 # {
1611 # &quot;bindings&quot;: [
1612 # {
1613 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
1614 # &quot;members&quot;: [
1615 # &quot;user:mike@example.com&quot;,
1616 # &quot;group:admins@example.com&quot;,
1617 # &quot;domain:google.com&quot;,
1618 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
1619 # ]
1620 # },
1621 # {
1622 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
1623 # &quot;members&quot;: [
1624 # &quot;user:eve@example.com&quot;
1625 # ],
1626 # &quot;condition&quot;: {
1627 # &quot;title&quot;: &quot;expirable access&quot;,
1628 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
1629 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
1630 # }
1631 # }
1632 # ],
1633 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
1634 # &quot;version&quot;: 3
1635 # }
1636 #
1637 # **YAML example:**
1638 #
1639 # bindings:
1640 # - members:
1641 # - user:mike@example.com
1642 # - group:admins@example.com
1643 # - domain:google.com
1644 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
1645 # role: roles/resourcemanager.organizationAdmin
1646 # - members:
1647 # - user:eve@example.com
1648 # role: roles/resourcemanager.organizationViewer
1649 # condition:
1650 # title: expirable access
1651 # description: Does not grant access after Sep 2020
1652 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
1653 # - etag: BwWWja0YfJA=
1654 # - version: 3
1655 #
1656 # For a description of IAM and its features, see the
1657 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kim65020912020-05-20 12:08:20 -07001658 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
1659 # prevent simultaneous updates of a policy from overwriting each other.
1660 # It is strongly suggested that systems make use of the `etag` in the
1661 # read-modify-write cycle to perform policy updates in order to avoid race
1662 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
1663 # systems are expected to put that etag in the request to `setIamPolicy` to
1664 # ensure that their change will be applied to the same version of the policy.
1665 #
1666 # **Important:** If you use IAM Conditions, you must include the `etag` field
1667 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1668 # you to overwrite a version `3` policy with a version `1` policy, and all of
1669 # the conditions in the version `3` policy are lost.
1670 &quot;version&quot;: 42, # Specifies the format of the policy.
1671 #
1672 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
1673 # are rejected.
1674 #
1675 # Any operation that affects conditional role bindings must specify version
1676 # `3`. This requirement applies to the following operations:
1677 #
1678 # * Getting a policy that includes a conditional role binding
1679 # * Adding a conditional role binding to a policy
1680 # * Changing a conditional role binding in a policy
1681 # * Removing any role binding, with or without a condition, from a policy
1682 # that includes conditions
1683 #
1684 # **Important:** If you use IAM Conditions, you must include the `etag` field
1685 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1686 # you to overwrite a version `3` policy with a version `1` policy, and all of
1687 # the conditions in the version `3` policy are lost.
1688 #
1689 # If a policy does not include any conditions, operations on that policy may
1690 # specify any valid version or leave the field unset.
1691 #
1692 # To learn which resources support conditions in their IAM policies, see the
1693 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1694 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
1695 { # Specifies the audit configuration for a service.
1696 # The configuration determines which permission types are logged, and what
1697 # identities, if any, are exempted from logging.
1698 # An AuditConfig must have one or more AuditLogConfigs.
1699 #
1700 # If there are AuditConfigs for both `allServices` and a specific service,
1701 # the union of the two AuditConfigs is used for that service: the log_types
1702 # specified in each AuditConfig are enabled, and the exempted_members in each
1703 # AuditLogConfig are exempted.
1704 #
1705 # Example Policy with multiple AuditConfigs:
1706 #
1707 # {
1708 # &quot;audit_configs&quot;: [
1709 # {
1710 # &quot;service&quot;: &quot;allServices&quot;
1711 # &quot;audit_log_configs&quot;: [
1712 # {
1713 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1714 # &quot;exempted_members&quot;: [
1715 # &quot;user:jose@example.com&quot;
1716 # ]
1717 # },
1718 # {
1719 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1720 # },
1721 # {
1722 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;,
1723 # }
1724 # ]
1725 # },
1726 # {
1727 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;
1728 # &quot;audit_log_configs&quot;: [
1729 # {
1730 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1731 # },
1732 # {
1733 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1734 # &quot;exempted_members&quot;: [
1735 # &quot;user:aliya@example.com&quot;
1736 # ]
1737 # }
1738 # ]
1739 # }
1740 # ]
1741 # }
1742 #
1743 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
1744 # logging. It also exempts jose@example.com from DATA_READ logging, and
1745 # aliya@example.com from DATA_WRITE logging.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001746 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
1747 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
1748 # `allServices` is a special value that covers all services.
Bu Sun Kim65020912020-05-20 12:08:20 -07001749 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
1750 { # Provides the configuration for logging a type of permissions.
1751 # Example:
1752 #
1753 # {
1754 # &quot;audit_log_configs&quot;: [
1755 # {
1756 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
1757 # &quot;exempted_members&quot;: [
1758 # &quot;user:jose@example.com&quot;
1759 # ]
1760 # },
1761 # {
1762 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
1763 # }
1764 # ]
1765 # }
1766 #
1767 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
1768 # jose@example.com from DATA_READ logging.
1769 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
1770 # permission.
1771 # Follows the same format of Binding.members.
1772 &quot;A String&quot;,
1773 ],
1774 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
1775 },
1776 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001777 },
1778 ],
1779 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
1780 # `condition` that determines how and when the `bindings` are applied. Each
1781 # of the `bindings` must contain at least one member.
1782 { # Associates `members` with a `role`.
1783 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
1784 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1785 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
1786 #
1787 # If the condition evaluates to `true`, then this binding applies to the
1788 # current request.
1789 #
1790 # If the condition evaluates to `false`, then this binding does not apply to
1791 # the current request. However, a different role binding might grant the same
1792 # role to one or more of the members in this binding.
1793 #
1794 # To learn which resources support conditions in their IAM policies, see the
1795 # [IAM
1796 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1797 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
1798 # are documented at https://github.com/google/cel-spec.
1799 #
1800 # Example (Comparison):
1801 #
1802 # title: &quot;Summary size limit&quot;
1803 # description: &quot;Determines if a summary is less than 100 chars&quot;
1804 # expression: &quot;document.summary.size() &lt; 100&quot;
1805 #
1806 # Example (Equality):
1807 #
1808 # title: &quot;Requestor is owner&quot;
1809 # description: &quot;Determines if requestor is the document owner&quot;
1810 # expression: &quot;document.owner == request.auth.claims.email&quot;
1811 #
1812 # Example (Logic):
1813 #
1814 # title: &quot;Public documents&quot;
1815 # description: &quot;Determine whether the document should be publicly visible&quot;
1816 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
1817 #
1818 # Example (Data Manipulation):
1819 #
1820 # title: &quot;Notification string&quot;
1821 # description: &quot;Create a notification string with a timestamp.&quot;
1822 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
1823 #
1824 # The exact variables and functions that may be referenced within an expression
1825 # are determined by the service that evaluates it. See the service
1826 # documentation for additional information.
1827 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
1828 # describes the expression, e.g. when hovered over it in a UI.
1829 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
1830 # syntax.
1831 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
1832 # its purpose. This can be used e.g. in UIs which allow to enter the
1833 # expression.
1834 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
1835 # reporting, e.g. a file name and a position in the file.
1836 },
1837 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
1838 # `members` can have the following values:
1839 #
1840 # * `allUsers`: A special identifier that represents anyone who is
1841 # on the internet; with or without a Google account.
1842 #
1843 # * `allAuthenticatedUsers`: A special identifier that represents anyone
1844 # who is authenticated with a Google account or a service account.
1845 #
1846 # * `user:{emailid}`: An email address that represents a specific Google
1847 # account. For example, `alice@example.com` .
1848 #
1849 #
1850 # * `serviceAccount:{emailid}`: An email address that represents a service
1851 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
1852 #
1853 # * `group:{emailid}`: An email address that represents a Google group.
1854 # For example, `admins@example.com`.
1855 #
1856 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
1857 # identifier) representing a user that has been recently deleted. For
1858 # example, `alice@example.com?uid=123456789012345678901`. If the user is
1859 # recovered, this value reverts to `user:{emailid}` and the recovered user
1860 # retains the role in the binding.
1861 #
1862 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
1863 # unique identifier) representing a service account that has been recently
1864 # deleted. For example,
1865 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
1866 # If the service account is undeleted, this value reverts to
1867 # `serviceAccount:{emailid}` and the undeleted service account retains the
1868 # role in the binding.
1869 #
1870 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
1871 # identifier) representing a Google group that has been recently
1872 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
1873 # the group is recovered, this value reverts to `group:{emailid}` and the
1874 # recovered group retains the role in the binding.
1875 #
1876 #
1877 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
1878 # users of that domain. For example, `google.com` or `example.com`.
1879 #
1880 &quot;A String&quot;,
1881 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001882 },
1883 ],
1884 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001885 }
1886
1887
1888Returns:
1889 An object of the form:
1890
1891 { # An Identity and Access Management (IAM) policy, which specifies access
1892 # controls for Google Cloud resources.
1893 #
1894 #
1895 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
1896 # `members` to a single `role`. Members can be user accounts, service accounts,
1897 # Google groups, and domains (such as G Suite). A `role` is a named list of
1898 # permissions; each `role` can be an IAM predefined role or a user-created
1899 # custom role.
1900 #
1901 # For some types of Google Cloud resources, a `binding` can also specify a
1902 # `condition`, which is a logical expression that allows access to a resource
1903 # only if the expression evaluates to `true`. A condition can add constraints
1904 # based on attributes of the request, the resource, or both. To learn which
1905 # resources support conditions in their IAM policies, see the
1906 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1907 #
1908 # **JSON example:**
1909 #
1910 # {
1911 # &quot;bindings&quot;: [
1912 # {
1913 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
1914 # &quot;members&quot;: [
1915 # &quot;user:mike@example.com&quot;,
1916 # &quot;group:admins@example.com&quot;,
1917 # &quot;domain:google.com&quot;,
1918 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
1919 # ]
1920 # },
1921 # {
1922 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
1923 # &quot;members&quot;: [
1924 # &quot;user:eve@example.com&quot;
1925 # ],
1926 # &quot;condition&quot;: {
1927 # &quot;title&quot;: &quot;expirable access&quot;,
1928 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
1929 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
1930 # }
1931 # }
1932 # ],
1933 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
1934 # &quot;version&quot;: 3
1935 # }
1936 #
1937 # **YAML example:**
1938 #
1939 # bindings:
1940 # - members:
1941 # - user:mike@example.com
1942 # - group:admins@example.com
1943 # - domain:google.com
1944 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
1945 # role: roles/resourcemanager.organizationAdmin
1946 # - members:
1947 # - user:eve@example.com
1948 # role: roles/resourcemanager.organizationViewer
1949 # condition:
1950 # title: expirable access
1951 # description: Does not grant access after Sep 2020
1952 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
1953 # - etag: BwWWja0YfJA=
1954 # - version: 3
1955 #
1956 # For a description of IAM and its features, see the
1957 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kim65020912020-05-20 12:08:20 -07001958 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
1959 # prevent simultaneous updates of a policy from overwriting each other.
1960 # It is strongly suggested that systems make use of the `etag` in the
1961 # read-modify-write cycle to perform policy updates in order to avoid race
1962 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
1963 # systems are expected to put that etag in the request to `setIamPolicy` to
1964 # ensure that their change will be applied to the same version of the policy.
1965 #
1966 # **Important:** If you use IAM Conditions, you must include the `etag` field
1967 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1968 # you to overwrite a version `3` policy with a version `1` policy, and all of
1969 # the conditions in the version `3` policy are lost.
1970 &quot;version&quot;: 42, # Specifies the format of the policy.
1971 #
1972 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
1973 # are rejected.
1974 #
1975 # Any operation that affects conditional role bindings must specify version
1976 # `3`. This requirement applies to the following operations:
1977 #
1978 # * Getting a policy that includes a conditional role binding
1979 # * Adding a conditional role binding to a policy
1980 # * Changing a conditional role binding in a policy
1981 # * Removing any role binding, with or without a condition, from a policy
1982 # that includes conditions
1983 #
1984 # **Important:** If you use IAM Conditions, you must include the `etag` field
1985 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1986 # you to overwrite a version `3` policy with a version `1` policy, and all of
1987 # the conditions in the version `3` policy are lost.
1988 #
1989 # If a policy does not include any conditions, operations on that policy may
1990 # specify any valid version or leave the field unset.
1991 #
1992 # To learn which resources support conditions in their IAM policies, see the
1993 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1994 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
1995 { # Specifies the audit configuration for a service.
1996 # The configuration determines which permission types are logged, and what
1997 # identities, if any, are exempted from logging.
1998 # An AuditConfig must have one or more AuditLogConfigs.
1999 #
2000 # If there are AuditConfigs for both `allServices` and a specific service,
2001 # the union of the two AuditConfigs is used for that service: the log_types
2002 # specified in each AuditConfig are enabled, and the exempted_members in each
2003 # AuditLogConfig are exempted.
2004 #
2005 # Example Policy with multiple AuditConfigs:
2006 #
2007 # {
2008 # &quot;audit_configs&quot;: [
2009 # {
2010 # &quot;service&quot;: &quot;allServices&quot;
2011 # &quot;audit_log_configs&quot;: [
2012 # {
2013 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
2014 # &quot;exempted_members&quot;: [
2015 # &quot;user:jose@example.com&quot;
2016 # ]
2017 # },
2018 # {
2019 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
2020 # },
2021 # {
2022 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;,
2023 # }
2024 # ]
2025 # },
2026 # {
2027 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;
2028 # &quot;audit_log_configs&quot;: [
2029 # {
2030 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
2031 # },
2032 # {
2033 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
2034 # &quot;exempted_members&quot;: [
2035 # &quot;user:aliya@example.com&quot;
2036 # ]
2037 # }
2038 # ]
2039 # }
2040 # ]
2041 # }
2042 #
2043 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
2044 # logging. It also exempts jose@example.com from DATA_READ logging, and
2045 # aliya@example.com from DATA_WRITE logging.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002046 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
2047 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
2048 # `allServices` is a special value that covers all services.
Bu Sun Kim65020912020-05-20 12:08:20 -07002049 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
2050 { # Provides the configuration for logging a type of permissions.
2051 # Example:
2052 #
2053 # {
2054 # &quot;audit_log_configs&quot;: [
2055 # {
2056 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
2057 # &quot;exempted_members&quot;: [
2058 # &quot;user:jose@example.com&quot;
2059 # ]
2060 # },
2061 # {
2062 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
2063 # }
2064 # ]
2065 # }
2066 #
2067 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
2068 # jose@example.com from DATA_READ logging.
2069 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
2070 # permission.
2071 # Follows the same format of Binding.members.
2072 &quot;A String&quot;,
2073 ],
2074 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
2075 },
2076 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002077 },
2078 ],
2079 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
2080 # `condition` that determines how and when the `bindings` are applied. Each
2081 # of the `bindings` must contain at least one member.
2082 { # Associates `members` with a `role`.
2083 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
2084 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
2085 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
2086 #
2087 # If the condition evaluates to `true`, then this binding applies to the
2088 # current request.
2089 #
2090 # If the condition evaluates to `false`, then this binding does not apply to
2091 # the current request. However, a different role binding might grant the same
2092 # role to one or more of the members in this binding.
2093 #
2094 # To learn which resources support conditions in their IAM policies, see the
2095 # [IAM
2096 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
2097 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
2098 # are documented at https://github.com/google/cel-spec.
2099 #
2100 # Example (Comparison):
2101 #
2102 # title: &quot;Summary size limit&quot;
2103 # description: &quot;Determines if a summary is less than 100 chars&quot;
2104 # expression: &quot;document.summary.size() &lt; 100&quot;
2105 #
2106 # Example (Equality):
2107 #
2108 # title: &quot;Requestor is owner&quot;
2109 # description: &quot;Determines if requestor is the document owner&quot;
2110 # expression: &quot;document.owner == request.auth.claims.email&quot;
2111 #
2112 # Example (Logic):
2113 #
2114 # title: &quot;Public documents&quot;
2115 # description: &quot;Determine whether the document should be publicly visible&quot;
2116 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
2117 #
2118 # Example (Data Manipulation):
2119 #
2120 # title: &quot;Notification string&quot;
2121 # description: &quot;Create a notification string with a timestamp.&quot;
2122 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
2123 #
2124 # The exact variables and functions that may be referenced within an expression
2125 # are determined by the service that evaluates it. See the service
2126 # documentation for additional information.
2127 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
2128 # describes the expression, e.g. when hovered over it in a UI.
2129 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
2130 # syntax.
2131 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
2132 # its purpose. This can be used e.g. in UIs which allow to enter the
2133 # expression.
2134 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
2135 # reporting, e.g. a file name and a position in the file.
2136 },
2137 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
2138 # `members` can have the following values:
2139 #
2140 # * `allUsers`: A special identifier that represents anyone who is
2141 # on the internet; with or without a Google account.
2142 #
2143 # * `allAuthenticatedUsers`: A special identifier that represents anyone
2144 # who is authenticated with a Google account or a service account.
2145 #
2146 # * `user:{emailid}`: An email address that represents a specific Google
2147 # account. For example, `alice@example.com` .
2148 #
2149 #
2150 # * `serviceAccount:{emailid}`: An email address that represents a service
2151 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
2152 #
2153 # * `group:{emailid}`: An email address that represents a Google group.
2154 # For example, `admins@example.com`.
2155 #
2156 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
2157 # identifier) representing a user that has been recently deleted. For
2158 # example, `alice@example.com?uid=123456789012345678901`. If the user is
2159 # recovered, this value reverts to `user:{emailid}` and the recovered user
2160 # retains the role in the binding.
2161 #
2162 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
2163 # unique identifier) representing a service account that has been recently
2164 # deleted. For example,
2165 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
2166 # If the service account is undeleted, this value reverts to
2167 # `serviceAccount:{emailid}` and the undeleted service account retains the
2168 # role in the binding.
2169 #
2170 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
2171 # identifier) representing a Google group that has been recently
2172 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
2173 # the group is recovered, this value reverts to `group:{emailid}` and the
2174 # recovered group retains the role in the binding.
2175 #
2176 #
2177 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
2178 # users of that domain. For example, `google.com` or `example.com`.
2179 #
2180 &quot;A String&quot;,
2181 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002182 },
2183 ],
2184 }</pre>
2185</div>
2186
2187<div class="method">
2188 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None)</code>
2189 <pre>Returns permissions that a caller has on the specified resource.
2190If the resource does not exist, this will return an empty set of
2191permissions, not a `NOT_FOUND` error.
2192
2193Note: This operation is designed to be used for building permission-aware
2194UIs and command-line tools, not for authorization checking. This operation
2195may &quot;fail open&quot; without warning.
2196
2197Args:
2198 resource: string, REQUIRED: The resource for which the policy detail is being requested.
2199See the operation documentation for the appropriate value for this field. (required)
2200 body: object, The request body.
2201 The object takes the form of:
2202
2203{ # Request message for `TestIamPermissions` method.
2204 &quot;permissions&quot;: [ # The set of permissions to check for the `resource`. Permissions with
2205 # wildcards (such as &#x27;*&#x27; or &#x27;storage.*&#x27;) are not allowed. For more
2206 # information see
2207 # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
2208 &quot;A String&quot;,
2209 ],
2210 }
2211
2212
2213Returns:
2214 An object of the form:
2215
2216 { # Response message for `TestIamPermissions` method.
2217 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is
2218 # allowed.
2219 &quot;A String&quot;,
2220 ],
2221 }</pre>
2222</div>
2223
2224<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002225 <code class="details" id="update">update(projectId, datasetId, tableId, body=None)</code>
John Asmuth614db982014-04-24 15:46:26 -04002226 <pre>Updates information in an existing table. The update method replaces the entire table resource, whereas the patch method only replaces fields that are provided in the submitted table resource.
2227
2228Args:
2229 projectId: string, Project ID of the table to update (required)
2230 datasetId: string, Dataset ID of the table to update (required)
2231 tableId: string, Table ID of the table to update (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002232 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -04002233 The object takes the form of:
2234
2235{
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002236 &quot;view&quot;: { # [Optional] The view definition.
2237 &quot;useLegacySql&quot;: True or False, # Specifies whether to use BigQuery&#x27;s legacy SQL for this view. The default value is true. If set to false, the view will use BigQuery&#x27;s standard SQL: https://cloud.google.com/bigquery/sql-reference/ Queries and views that reference this view must use the same flag value.
2238 &quot;query&quot;: &quot;A String&quot;, # [Required] A query that BigQuery executes when the view is referenced.
2239 &quot;userDefinedFunctionResources&quot;: [ # Describes user-defined function resources used in the query.
2240 { # This is used for defining User Defined Function (UDF) resources only when using legacy SQL. Users of Standard SQL should leverage either DDL (e.g. CREATE [TEMPORARY] FUNCTION ... ) or the Routines API to define UDF resources. For additional information on migrating, see: https://cloud.google.com/bigquery/docs/reference/standard-sql/migrating-from-legacy-sql#differences_in_user-defined_javascript_functions
2241 &quot;inlineCode&quot;: &quot;A String&quot;, # [Pick one] An inline resource that contains code for a user-defined function (UDF). Providing a inline code resource is equivalent to providing a URI for a file containing the same code.
2242 &quot;resourceUri&quot;: &quot;A String&quot;, # [Pick one] A code resource to load from a Google Cloud Storage URI (gs://bucket/path).
2243 },
2244 ],
2245 },
2246 &quot;numLongTermBytes&quot;: &quot;A String&quot;, # [Output-only] The number of bytes in the table that are considered &quot;long-term storage&quot;.
2247 &quot;etag&quot;: &quot;A String&quot;, # [Output-only] A hash of the table metadata. Used to ensure there were no concurrent modifications to the resource when attempting an update. Not guaranteed to change when the table contents or the fields numRows, numBytes, numLongTermBytes or lastModifiedTime change.
2248 &quot;encryptionConfiguration&quot;: { # Custom encryption configuration (e.g., Cloud KMS keys).
2249 &quot;kmsKeyName&quot;: &quot;A String&quot;, # [Optional] Describes the Cloud KMS encryption key that will be used to protect destination BigQuery table. The BigQuery Service Account associated with your project requires access to this encryption key.
2250 },
2251 &quot;streamingBuffer&quot;: { # [Output-only] Contains information regarding this table&#x27;s streaming buffer, if one is present. This field will be absent if the table is not being streamed to or if there is no data in the streaming buffer.
2252 &quot;estimatedBytes&quot;: &quot;A String&quot;, # [Output-only] A lower-bound estimate of the number of bytes currently in the streaming buffer.
2253 &quot;estimatedRows&quot;: &quot;A String&quot;, # [Output-only] A lower-bound estimate of the number of rows currently in the streaming buffer.
2254 &quot;oldestEntryTime&quot;: &quot;A String&quot;, # [Output-only] Contains the timestamp of the oldest entry in the streaming buffer, in milliseconds since the epoch, if the streaming buffer is available.
2255 },
2256 &quot;numBytes&quot;: &quot;A String&quot;, # [Output-only] The size of this table in bytes, excluding any data in the streaming buffer.
2257 &quot;location&quot;: &quot;A String&quot;, # [Output-only] The geographic location where the table resides. This value is inherited from the dataset.
2258 &quot;timePartitioning&quot;: { # Time-based partitioning specification for this table. Only one of timePartitioning and rangePartitioning should be specified.
2259 &quot;requirePartitionFilter&quot;: True or False,
2260 &quot;field&quot;: &quot;A String&quot;, # [Beta] [Optional] If not set, the table is partitioned by pseudo column, referenced via either &#x27;_PARTITIONTIME&#x27; as TIMESTAMP type, or &#x27;_PARTITIONDATE&#x27; as DATE type. If field is specified, the table is instead partitioned by this field. The field must be a top-level TIMESTAMP or DATE field. Its mode must be NULLABLE or REQUIRED.
2261 &quot;expirationMs&quot;: &quot;A String&quot;, # [Optional] Number of milliseconds for which to keep the storage for partitions in the table. The storage in a partition will have an expiration time of its partition time plus this value.
2262 &quot;type&quot;: &quot;A String&quot;, # [Required] The only type supported is DAY, which will generate one partition per day.
2263 },
2264 &quot;friendlyName&quot;: &quot;A String&quot;, # [Optional] A descriptive name for this table.
2265 &quot;labels&quot;: { # The labels associated with this table. You can use these to organize and group your tables. Label keys and values can be no longer than 63 characters, can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter and each label in the list must have a different key.
2266 &quot;a_key&quot;: &quot;A String&quot;,
2267 },
2268 &quot;numPhysicalBytes&quot;: &quot;A String&quot;, # [Output-only] [TrustedTester] The physical size of this table in bytes, excluding any data in the streaming buffer. This includes compression and storage used for time travel.
Bu Sun Kim65020912020-05-20 12:08:20 -07002269 &quot;externalDataConfiguration&quot;: { # [Optional] Describes the data format, location, and other properties of a table stored outside of BigQuery. By defining these properties, the data source can then be queried as if it were a standard BigQuery table.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002270 &quot;compression&quot;: &quot;A String&quot;, # [Optional] The compression type of the data source. Possible values include GZIP and NONE. The default value is NONE. This setting is ignored for Google Cloud Bigtable, Google Cloud Datastore backups and Avro formats.
2271 &quot;maxBadRecords&quot;: 42, # [Optional] The maximum number of bad records that BigQuery can ignore when reading data. If the number of bad records exceeds this value, an invalid error is returned in the job result. This is only valid for CSV, JSON, and Google Sheets. The default value is 0, which requires that all records are valid. This setting is ignored for Google Cloud Bigtable, Google Cloud Datastore backups and Avro formats.
2272 &quot;sourceUris&quot;: [ # [Required] The fully-qualified URIs that point to your data in Google Cloud. For Google Cloud Storage URIs: Each URI can contain one &#x27;*&#x27; wildcard character and it must come after the &#x27;bucket&#x27; name. Size limits related to load jobs apply to external data sources. For Google Cloud Bigtable URIs: Exactly one URI can be specified and it has be a fully specified and valid HTTPS URL for a Google Cloud Bigtable table. For Google Cloud Datastore backups, exactly one URI can be specified. Also, the &#x27;*&#x27; wildcard character is not allowed.
2273 &quot;A String&quot;,
2274 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002275 &quot;csvOptions&quot;: { # Additional properties to set if sourceFormat is set to CSV.
Bu Sun Kim65020912020-05-20 12:08:20 -07002276 &quot;quote&quot;: &quot;&quot;&quot;, # [Optional] The value that is used to quote data sections in a CSV file. BigQuery converts the string to ISO-8859-1 encoding, and then uses the first byte of the encoded string to split the data in its raw, binary state. The default value is a double-quote (&#x27;&quot;&#x27;). If your data does not contain quoted sections, set the property value to an empty string. If your data contains quoted newline characters, you must also set the allowQuotedNewlines property to true.
2277 &quot;skipLeadingRows&quot;: &quot;A String&quot;, # [Optional] The number of rows at the top of a CSV file that BigQuery will skip when reading the data. The default value is 0. This property is useful if you have header rows in the file that should be skipped. When autodetect is on, the behavior is the following: * skipLeadingRows unspecified - Autodetect tries to detect headers in the first row. If they are not detected, the row is read as data. Otherwise data is read starting from the second row. * skipLeadingRows is 0 - Instructs autodetect that there are no headers and data should be read starting from the first row. * skipLeadingRows = N &gt; 0 - Autodetect skips N-1 rows and tries to detect headers in row N. If headers are not detected, row N is just skipped. Otherwise row N is used to extract column names for the detected schema.
2278 &quot;allowJaggedRows&quot;: True or False, # [Optional] Indicates if BigQuery should accept rows that are missing trailing optional columns. If true, BigQuery treats missing trailing columns as null values. If false, records with missing trailing columns are treated as bad records, and if there are too many bad records, an invalid error is returned in the job result. The default value is false.
2279 &quot;fieldDelimiter&quot;: &quot;A String&quot;, # [Optional] The separator for fields in a CSV file. BigQuery converts the string to ISO-8859-1 encoding, and then uses the first byte of the encoded string to split the data in its raw, binary state. BigQuery also supports the escape sequence &quot;\t&quot; to specify a tab separator. The default value is a comma (&#x27;,&#x27;).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002280 &quot;encoding&quot;: &quot;A String&quot;, # [Optional] The character encoding of the data. The supported values are UTF-8 or ISO-8859-1. The default value is UTF-8. BigQuery decodes the data after the raw, binary data has been split using the values of the quote and fieldDelimiter properties.
2281 &quot;allowQuotedNewlines&quot;: True or False, # [Optional] Indicates if BigQuery should allow quoted data sections that contain newline characters in a CSV file. The default value is false.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002282 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002283 &quot;bigtableOptions&quot;: { # [Optional] Additional options if sourceFormat is set to BIGTABLE.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002284 &quot;readRowkeyAsString&quot;: True or False, # [Optional] If field is true, then the rowkey column families will be read and converted to string. Otherwise they are read with BYTES type values and users need to manually cast them with CAST if necessary. The default value is false.
Bu Sun Kim65020912020-05-20 12:08:20 -07002285 &quot;columnFamilies&quot;: [ # [Optional] List of column families to expose in the table schema along with their types. This list restricts the column families that can be referenced in queries and specifies their value types. You can use this list to do type conversions - see the &#x27;type&#x27; field for more details. If you leave this list empty, all column families are present in the table schema and their values are read as BYTES. During a query only the column families referenced in that query are read from Bigtable.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07002286 {
Bu Sun Kim65020912020-05-20 12:08:20 -07002287 &quot;onlyReadLatest&quot;: True or False, # [Optional] If this is set only the latest version of value are exposed for all columns in this column family. This can be overridden for a specific column by listing that column in &#x27;columns&#x27; and specifying a different setting for that column.
2288 &quot;encoding&quot;: &quot;A String&quot;, # [Optional] The encoding of the values when the type is not STRING. Acceptable encoding values are: TEXT - indicates values are alphanumeric text strings. BINARY - indicates values are encoded using HBase Bytes.toBytes family of functions. This can be overridden for a specific column by listing that column in &#x27;columns&#x27; and specifying an encoding for it.
2289 &quot;columns&quot;: [ # [Optional] Lists of columns that should be exposed as individual fields as opposed to a list of (column name, value) pairs. All columns whose qualifier matches a qualifier in this list can be accessed as .. Other columns can be accessed as a list through .Column field.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07002290 {
Bu Sun Kim65020912020-05-20 12:08:20 -07002291 &quot;fieldName&quot;: &quot;A String&quot;, # [Optional] If the qualifier is not a valid BigQuery field identifier i.e. does not match [a-zA-Z][a-zA-Z0-9_]*, a valid identifier must be provided as the column field name and is used as field name in queries.
2292 &quot;qualifierString&quot;: &quot;A String&quot;,
2293 &quot;encoding&quot;: &quot;A String&quot;, # [Optional] The encoding of the values when the type is not STRING. Acceptable encoding values are: TEXT - indicates values are alphanumeric text strings. BINARY - indicates values are encoded using HBase Bytes.toBytes family of functions. &#x27;encoding&#x27; can also be set at the column family level. However, the setting at this level takes precedence if &#x27;encoding&#x27; is set at both levels.
2294 &quot;type&quot;: &quot;A String&quot;, # [Optional] The type to convert the value in cells of this column. The values are expected to be encoded using HBase Bytes.toBytes function when using the BINARY encoding value. Following BigQuery types are allowed (case-sensitive) - BYTES STRING INTEGER FLOAT BOOLEAN Default type is BYTES. &#x27;type&#x27; can also be set at the column family level. However, the setting at this level takes precedence if &#x27;type&#x27; is set at both levels.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002295 &quot;qualifierEncoded&quot;: &quot;A String&quot;, # [Required] Qualifier of the column. Columns in the parent column family that has this exact qualifier are exposed as . field. If the qualifier is valid UTF-8 string, it can be specified in the qualifier_string field. Otherwise, a base-64 encoded value must be set to qualifier_encoded. The column field name is the same as the column qualifier. However, if the qualifier is not a valid BigQuery field identifier i.e. does not match [a-zA-Z][a-zA-Z0-9_]*, a valid identifier must be provided as field_name.
2296 &quot;onlyReadLatest&quot;: True or False, # [Optional] If this is set, only the latest version of value in this column are exposed. &#x27;onlyReadLatest&#x27; can also be set at the column family level. However, the setting at this level takes precedence if &#x27;onlyReadLatest&#x27; is set at both levels.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07002297 },
2298 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002299 &quot;type&quot;: &quot;A String&quot;, # [Optional] The type to convert the value in cells of this column family. The values are expected to be encoded using HBase Bytes.toBytes function when using the BINARY encoding value. Following BigQuery types are allowed (case-sensitive) - BYTES STRING INTEGER FLOAT BOOLEAN Default type is BYTES. This can be overridden for a specific column by listing that column in &#x27;columns&#x27; and specifying a type for it.
2300 &quot;familyId&quot;: &quot;A String&quot;, # Identifier of the column family.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07002301 },
2302 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002303 &quot;ignoreUnspecifiedColumnFamilies&quot;: True or False, # [Optional] If field is true, then the column families that are not specified in columnFamilies list are not exposed in the table schema. Otherwise, they are read with BYTES type values. The default value is false.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07002304 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002305 &quot;schema&quot;: { # [Optional] The schema for the data. Schema is required for CSV and JSON formats. Schema is disallowed for Google Cloud Bigtable, Cloud Datastore backups, and Avro formats.
2306 &quot;fields&quot;: [ # Describes the fields in a table.
Takashi Matsuo06694102015-09-11 13:55:40 -07002307 {
Bu Sun Kim65020912020-05-20 12:08:20 -07002308 &quot;name&quot;: &quot;A String&quot;, # [Required] The field name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 128 characters.
2309 &quot;type&quot;: &quot;A String&quot;, # [Required] The field data type. Possible values include STRING, BYTES, INTEGER, INT64 (same as INTEGER), FLOAT, FLOAT64 (same as FLOAT), BOOLEAN, BOOL (same as BOOLEAN), TIMESTAMP, DATE, TIME, DATETIME, RECORD (where RECORD indicates that the field contains a nested schema) or STRUCT (same as RECORD).
2310 &quot;categories&quot;: { # [Optional] The categories attached to this field, used for field-level access control.
2311 &quot;names&quot;: [ # A list of category resource names. For example, &quot;projects/1/taxonomies/2/categories/3&quot;. At most 5 categories are allowed.
2312 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002313 ],
2314 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002315 &quot;mode&quot;: &quot;A String&quot;, # [Optional] The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.
2316 &quot;description&quot;: &quot;A String&quot;, # [Optional] The field description. The maximum length is 1,024 characters.
2317 &quot;policyTags&quot;: {
2318 &quot;names&quot;: [ # A list of category resource names. For example, &quot;projects/1/location/eu/taxonomies/2/policyTags/3&quot;. At most 1 policy tag is allowed.
2319 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002320 ],
2321 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002322 &quot;fields&quot;: [ # [Optional] Describes the nested schema fields if the type property is set to RECORD.
2323 # Object with schema name: TableFieldSchema
2324 ],
Takashi Matsuo06694102015-09-11 13:55:40 -07002325 },
2326 ],
2327 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002328 &quot;connectionId&quot;: &quot;A String&quot;, # [Optional, Trusted Tester] Connection for external data source.
Bu Sun Kim65020912020-05-20 12:08:20 -07002329 &quot;hivePartitioningOptions&quot;: { # [Optional, Trusted Tester] Options to configure hive partitioning support.
2330 &quot;sourceUriPrefix&quot;: &quot;A String&quot;, # [Optional, Trusted Tester] When hive partition detection is requested, a common prefix for all source uris should be supplied. The prefix must end immediately before the partition key encoding begins. For example, consider files following this data layout. gs://bucket/path_to_table/dt=2019-01-01/country=BR/id=7/file.avro gs://bucket/path_to_table/dt=2018-12-31/country=CA/id=3/file.avro When hive partitioning is requested with either AUTO or STRINGS detection, the common prefix can be either of gs://bucket/path_to_table or gs://bucket/path_to_table/ (trailing slash does not matter).
2331 &quot;mode&quot;: &quot;A String&quot;, # [Optional, Trusted Tester] When set, what mode of hive partitioning to use when reading data. Two modes are supported. (1) AUTO: automatically infer partition key name(s) and type(s). (2) STRINGS: automatically infer partition key name(s). All types are interpreted as strings. Not all storage formats support hive partitioning. Requesting hive partitioning on an unsupported format will lead to an error. Currently supported types include: AVRO, CSV, JSON, ORC and Parquet.
2332 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002333 &quot;autodetect&quot;: True or False, # Try to detect schema and format options automatically. Any option specified explicitly will be honored.
2334 &quot;googleSheetsOptions&quot;: { # [Optional] Additional options if sourceFormat is set to GOOGLE_SHEETS.
2335 &quot;range&quot;: &quot;A String&quot;, # [Optional] Range of a sheet to query from. Only used when non-empty. Typical format: sheet_name!top_left_cell_id:bottom_right_cell_id For example: sheet1!A1:B20
2336 &quot;skipLeadingRows&quot;: &quot;A String&quot;, # [Optional] The number of rows at the top of a sheet that BigQuery will skip when reading the data. The default value is 0. This property is useful if you have header rows that should be skipped. When autodetect is on, behavior is the following: * skipLeadingRows unspecified - Autodetect tries to detect headers in the first row. If they are not detected, the row is read as data. Otherwise data is read starting from the second row. * skipLeadingRows is 0 - Instructs autodetect that there are no headers and data should be read starting from the first row. * skipLeadingRows = N &gt; 0 - Autodetect skips N-1 rows and tries to detect headers in row N. If headers are not detected, row N is just skipped. Otherwise row N is used to extract column names for the detected schema.
2337 },
2338 &quot;ignoreUnknownValues&quot;: True or False, # [Optional] Indicates if BigQuery should allow extra values that are not represented in the table schema. If true, the extra values are ignored. If false, records with extra columns are treated as bad records, and if there are too many bad records, an invalid error is returned in the job result. The default value is false. The sourceFormat property determines what BigQuery treats as an extra value: CSV: Trailing columns JSON: Named values that don&#x27;t match any column names Google Cloud Bigtable: This setting is ignored. Google Cloud Datastore backups: This setting is ignored. Avro: This setting is ignored.
2339 &quot;sourceFormat&quot;: &quot;A String&quot;, # [Required] The data format. For CSV files, specify &quot;CSV&quot;. For Google sheets, specify &quot;GOOGLE_SHEETS&quot;. For newline-delimited JSON, specify &quot;NEWLINE_DELIMITED_JSON&quot;. For Avro files, specify &quot;AVRO&quot;. For Google Cloud Datastore backups, specify &quot;DATASTORE_BACKUP&quot;. [Beta] For Google Cloud Bigtable, specify &quot;BIGTABLE&quot;.
Takashi Matsuo06694102015-09-11 13:55:40 -07002340 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002341 &quot;model&quot;: { # [Output-only, Beta] Present iff this table represents a ML model. Describes the training information for the model, and it is required to run &#x27;PREDICT&#x27; queries.
2342 &quot;modelOptions&quot;: { # [Output-only, Beta] Model options used for the first training run. These options are immutable for subsequent training runs. Default values are used for any options not specified in the input query.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002343 &quot;lossType&quot;: &quot;A String&quot;,
2344 &quot;modelType&quot;: &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -07002345 &quot;labels&quot;: [
2346 &quot;A String&quot;,
2347 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002348 },
2349 &quot;trainingRuns&quot;: [ # [Output-only, Beta] Information about ml training runs, each training run comprises of multiple iterations and there may be multiple training runs for the model if warm start is used or if a user decides to continue a previously cancelled query.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08002350 {
Bu Sun Kim65020912020-05-20 12:08:20 -07002351 &quot;iterationResults&quot;: [ # [Output-only, Beta] List of each iteration results.
2352 {
2353 &quot;durationMs&quot;: &quot;A String&quot;, # [Output-only, Beta] Time taken to run the training iteration in milliseconds.
2354 &quot;trainingLoss&quot;: 3.14, # [Output-only, Beta] Training loss computed on the training data at the end of the iteration. The training loss function is defined by model type.
2355 &quot;evalLoss&quot;: 3.14, # [Output-only, Beta] Eval loss computed on the eval data at the end of the iteration. The eval loss is used for early stopping to avoid overfitting. No eval loss if eval_split_method option is specified as no_split or auto_split with input data size less than 500 rows.
2356 &quot;index&quot;: 42, # [Output-only, Beta] Index of the ML training iteration, starting from zero for each training run.
2357 &quot;learnRate&quot;: 3.14, # [Output-only, Beta] Learning rate used for this iteration, it varies for different training iterations if learn_rate_strategy option is not constant.
2358 },
2359 ],
2360 &quot;startTime&quot;: &quot;A String&quot;, # [Output-only, Beta] Training run start time in milliseconds since the epoch.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002361 &quot;trainingOptions&quot;: { # [Output-only, Beta] Training options used by this training run. These options are mutable for subsequent training runs. Default values are explicitly stored for options not specified in the input query of the first training run. For subsequent training runs, any option not explicitly specified in the input query will be copied from the previous training run.
2362 &quot;l1Reg&quot;: 3.14,
2363 &quot;maxIteration&quot;: &quot;A String&quot;,
2364 &quot;learnRate&quot;: 3.14,
2365 &quot;minRelProgress&quot;: 3.14,
2366 &quot;l2Reg&quot;: 3.14,
2367 &quot;warmStart&quot;: True or False,
2368 &quot;learnRateStrategy&quot;: &quot;A String&quot;,
2369 &quot;lineSearchInitLearnRate&quot;: 3.14,
2370 &quot;earlyStop&quot;: True or False,
2371 },
2372 &quot;state&quot;: &quot;A String&quot;, # [Output-only, Beta] Different state applicable for a training run. IN PROGRESS: Training run is in progress. FAILED: Training run ended due to a non-retryable failure. SUCCEEDED: Training run successfully completed. CANCELLED: Training run cancelled by the user.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08002373 },
2374 ],
2375 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002376 &quot;selfLink&quot;: &quot;A String&quot;, # [Output-only] A URL that can be used to access this resource again.
2377 &quot;expirationTime&quot;: &quot;A String&quot;, # [Optional] The time when this table expires, in milliseconds since the epoch. If not present, the table will persist indefinitely. Expired tables will be deleted and their storage reclaimed. The defaultTableExpirationMs property of the encapsulating dataset can be used to set a default expirationTime on newly created tables.
2378 &quot;kind&quot;: &quot;bigquery#table&quot;, # [Output-only] The type of the resource.
2379 &quot;description&quot;: &quot;A String&quot;, # [Optional] A user-friendly description of this table.
2380 &quot;creationTime&quot;: &quot;A String&quot;, # [Output-only] The time when this table was created, in milliseconds since the epoch.
2381 &quot;rangePartitioning&quot;: { # [TrustedTester] Range partitioning specification for this table. Only one of timePartitioning and rangePartitioning should be specified.
2382 &quot;range&quot;: { # [TrustedTester] [Required] Defines the ranges for range partitioning.
2383 &quot;interval&quot;: &quot;A String&quot;, # [TrustedTester] [Required] The width of each interval.
2384 &quot;start&quot;: &quot;A String&quot;, # [TrustedTester] [Required] The start of range partitioning, inclusive.
2385 &quot;end&quot;: &quot;A String&quot;, # [TrustedTester] [Required] The end of range partitioning, exclusive.
2386 },
2387 &quot;field&quot;: &quot;A String&quot;, # [TrustedTester] [Required] The table is partitioned by this field. The field must be a top-level NULLABLE/REQUIRED field. The only supported type is INTEGER/INT64.
2388 },
2389 &quot;schema&quot;: { # [Optional] Describes the schema of this table.
2390 &quot;fields&quot;: [ # Describes the fields in a table.
2391 {
Bu Sun Kim65020912020-05-20 12:08:20 -07002392 &quot;name&quot;: &quot;A String&quot;, # [Required] The field name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 128 characters.
2393 &quot;type&quot;: &quot;A String&quot;, # [Required] The field data type. Possible values include STRING, BYTES, INTEGER, INT64 (same as INTEGER), FLOAT, FLOAT64 (same as FLOAT), BOOLEAN, BOOL (same as BOOLEAN), TIMESTAMP, DATE, TIME, DATETIME, RECORD (where RECORD indicates that the field contains a nested schema) or STRUCT (same as RECORD).
2394 &quot;categories&quot;: { # [Optional] The categories attached to this field, used for field-level access control.
2395 &quot;names&quot;: [ # A list of category resource names. For example, &quot;projects/1/taxonomies/2/categories/3&quot;. At most 5 categories are allowed.
2396 &quot;A String&quot;,
2397 ],
2398 },
2399 &quot;mode&quot;: &quot;A String&quot;, # [Optional] The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.
2400 &quot;description&quot;: &quot;A String&quot;, # [Optional] The field description. The maximum length is 1,024 characters.
2401 &quot;policyTags&quot;: {
2402 &quot;names&quot;: [ # A list of category resource names. For example, &quot;projects/1/location/eu/taxonomies/2/policyTags/3&quot;. At most 1 policy tag is allowed.
2403 &quot;A String&quot;,
2404 ],
2405 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002406 &quot;fields&quot;: [ # [Optional] Describes the nested schema fields if the type property is set to RECORD.
2407 # Object with schema name: TableFieldSchema
2408 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002409 },
2410 ],
2411 },
2412 &quot;id&quot;: &quot;A String&quot;, # [Output-only] An opaque ID uniquely identifying the table.
2413 &quot;requirePartitionFilter&quot;: false, # [Optional] If set to true, queries over this table require a partition filter that can be used for partition elimination to be specified.
2414 &quot;materializedView&quot;: { # [Optional] Materialized view definition.
2415 &quot;query&quot;: &quot;A String&quot;, # [Required] A query whose result is persisted.
2416 &quot;enableRefresh&quot;: True or False, # [Optional] [TrustedTester] Enable automatic refresh of the materialized view when the base table is updated. The default value is &quot;true&quot;.
2417 &quot;refreshIntervalMs&quot;: &quot;A String&quot;, # [Optional] [TrustedTester] The maximum frequency at which this materialized view will be refreshed. The default value is &quot;1800000&quot; (30 minutes).
2418 &quot;lastRefreshTime&quot;: &quot;A String&quot;, # [Output-only] [TrustedTester] The time when this materialized view was last modified, in milliseconds since the epoch.
2419 },
2420 &quot;tableReference&quot;: { # [Required] Reference describing the ID of this table.
Bu Sun Kim65020912020-05-20 12:08:20 -07002421 &quot;projectId&quot;: &quot;A String&quot;, # [Required] The ID of the project containing this table.
2422 &quot;datasetId&quot;: &quot;A String&quot;, # [Required] The ID of the dataset containing this table.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002423 &quot;tableId&quot;: &quot;A String&quot;, # [Required] The ID of the table. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -07002424 },
2425 &quot;lastModifiedTime&quot;: &quot;A String&quot;, # [Output-only] The time when this table was last modified, in milliseconds since the epoch.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002426 &quot;type&quot;: &quot;A String&quot;, # [Output-only] Describes the table type. The following values are supported: TABLE: A normal BigQuery table. VIEW: A virtual table defined by a SQL query. [TrustedTester] MATERIALIZED_VIEW: SQL query whose result is persisted. EXTERNAL: A table that references data stored in an external storage system, such as Google Cloud Storage. The default value is TABLE.
Bu Sun Kim65020912020-05-20 12:08:20 -07002427 &quot;clustering&quot;: { # [Beta] Clustering specification for the table. Must be specified with partitioning, data in the table will be first partitioned and subsequently clustered.
2428 &quot;fields&quot;: [ # [Repeated] One or more fields on which data should be clustered. Only top-level, non-repeated, simple-type fields are supported. When you cluster a table using multiple columns, the order of columns you specify is important. The order of the specified columns determines the sort order of the data.
2429 &quot;A String&quot;,
2430 ],
2431 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002432 &quot;numRows&quot;: &quot;A String&quot;, # [Output-only] The number of rows of data in this table, excluding any data in the streaming buffer.
John Asmuth614db982014-04-24 15:46:26 -04002433 }
2434
2435
2436Returns:
2437 An object of the form:
2438
2439 {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002440 &quot;view&quot;: { # [Optional] The view definition.
2441 &quot;useLegacySql&quot;: True or False, # Specifies whether to use BigQuery&#x27;s legacy SQL for this view. The default value is true. If set to false, the view will use BigQuery&#x27;s standard SQL: https://cloud.google.com/bigquery/sql-reference/ Queries and views that reference this view must use the same flag value.
2442 &quot;query&quot;: &quot;A String&quot;, # [Required] A query that BigQuery executes when the view is referenced.
2443 &quot;userDefinedFunctionResources&quot;: [ # Describes user-defined function resources used in the query.
2444 { # This is used for defining User Defined Function (UDF) resources only when using legacy SQL. Users of Standard SQL should leverage either DDL (e.g. CREATE [TEMPORARY] FUNCTION ... ) or the Routines API to define UDF resources. For additional information on migrating, see: https://cloud.google.com/bigquery/docs/reference/standard-sql/migrating-from-legacy-sql#differences_in_user-defined_javascript_functions
2445 &quot;inlineCode&quot;: &quot;A String&quot;, # [Pick one] An inline resource that contains code for a user-defined function (UDF). Providing a inline code resource is equivalent to providing a URI for a file containing the same code.
2446 &quot;resourceUri&quot;: &quot;A String&quot;, # [Pick one] A code resource to load from a Google Cloud Storage URI (gs://bucket/path).
2447 },
2448 ],
2449 },
2450 &quot;numLongTermBytes&quot;: &quot;A String&quot;, # [Output-only] The number of bytes in the table that are considered &quot;long-term storage&quot;.
2451 &quot;etag&quot;: &quot;A String&quot;, # [Output-only] A hash of the table metadata. Used to ensure there were no concurrent modifications to the resource when attempting an update. Not guaranteed to change when the table contents or the fields numRows, numBytes, numLongTermBytes or lastModifiedTime change.
2452 &quot;encryptionConfiguration&quot;: { # Custom encryption configuration (e.g., Cloud KMS keys).
2453 &quot;kmsKeyName&quot;: &quot;A String&quot;, # [Optional] Describes the Cloud KMS encryption key that will be used to protect destination BigQuery table. The BigQuery Service Account associated with your project requires access to this encryption key.
2454 },
2455 &quot;streamingBuffer&quot;: { # [Output-only] Contains information regarding this table&#x27;s streaming buffer, if one is present. This field will be absent if the table is not being streamed to or if there is no data in the streaming buffer.
2456 &quot;estimatedBytes&quot;: &quot;A String&quot;, # [Output-only] A lower-bound estimate of the number of bytes currently in the streaming buffer.
2457 &quot;estimatedRows&quot;: &quot;A String&quot;, # [Output-only] A lower-bound estimate of the number of rows currently in the streaming buffer.
2458 &quot;oldestEntryTime&quot;: &quot;A String&quot;, # [Output-only] Contains the timestamp of the oldest entry in the streaming buffer, in milliseconds since the epoch, if the streaming buffer is available.
2459 },
2460 &quot;numBytes&quot;: &quot;A String&quot;, # [Output-only] The size of this table in bytes, excluding any data in the streaming buffer.
2461 &quot;location&quot;: &quot;A String&quot;, # [Output-only] The geographic location where the table resides. This value is inherited from the dataset.
2462 &quot;timePartitioning&quot;: { # Time-based partitioning specification for this table. Only one of timePartitioning and rangePartitioning should be specified.
2463 &quot;requirePartitionFilter&quot;: True or False,
2464 &quot;field&quot;: &quot;A String&quot;, # [Beta] [Optional] If not set, the table is partitioned by pseudo column, referenced via either &#x27;_PARTITIONTIME&#x27; as TIMESTAMP type, or &#x27;_PARTITIONDATE&#x27; as DATE type. If field is specified, the table is instead partitioned by this field. The field must be a top-level TIMESTAMP or DATE field. Its mode must be NULLABLE or REQUIRED.
2465 &quot;expirationMs&quot;: &quot;A String&quot;, # [Optional] Number of milliseconds for which to keep the storage for partitions in the table. The storage in a partition will have an expiration time of its partition time plus this value.
2466 &quot;type&quot;: &quot;A String&quot;, # [Required] The only type supported is DAY, which will generate one partition per day.
2467 },
2468 &quot;friendlyName&quot;: &quot;A String&quot;, # [Optional] A descriptive name for this table.
2469 &quot;labels&quot;: { # The labels associated with this table. You can use these to organize and group your tables. Label keys and values can be no longer than 63 characters, can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter and each label in the list must have a different key.
2470 &quot;a_key&quot;: &quot;A String&quot;,
2471 },
2472 &quot;numPhysicalBytes&quot;: &quot;A String&quot;, # [Output-only] [TrustedTester] The physical size of this table in bytes, excluding any data in the streaming buffer. This includes compression and storage used for time travel.
Bu Sun Kim65020912020-05-20 12:08:20 -07002473 &quot;externalDataConfiguration&quot;: { # [Optional] Describes the data format, location, and other properties of a table stored outside of BigQuery. By defining these properties, the data source can then be queried as if it were a standard BigQuery table.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002474 &quot;compression&quot;: &quot;A String&quot;, # [Optional] The compression type of the data source. Possible values include GZIP and NONE. The default value is NONE. This setting is ignored for Google Cloud Bigtable, Google Cloud Datastore backups and Avro formats.
2475 &quot;maxBadRecords&quot;: 42, # [Optional] The maximum number of bad records that BigQuery can ignore when reading data. If the number of bad records exceeds this value, an invalid error is returned in the job result. This is only valid for CSV, JSON, and Google Sheets. The default value is 0, which requires that all records are valid. This setting is ignored for Google Cloud Bigtable, Google Cloud Datastore backups and Avro formats.
2476 &quot;sourceUris&quot;: [ # [Required] The fully-qualified URIs that point to your data in Google Cloud. For Google Cloud Storage URIs: Each URI can contain one &#x27;*&#x27; wildcard character and it must come after the &#x27;bucket&#x27; name. Size limits related to load jobs apply to external data sources. For Google Cloud Bigtable URIs: Exactly one URI can be specified and it has be a fully specified and valid HTTPS URL for a Google Cloud Bigtable table. For Google Cloud Datastore backups, exactly one URI can be specified. Also, the &#x27;*&#x27; wildcard character is not allowed.
2477 &quot;A String&quot;,
2478 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002479 &quot;csvOptions&quot;: { # Additional properties to set if sourceFormat is set to CSV.
Bu Sun Kim65020912020-05-20 12:08:20 -07002480 &quot;quote&quot;: &quot;&quot;&quot;, # [Optional] The value that is used to quote data sections in a CSV file. BigQuery converts the string to ISO-8859-1 encoding, and then uses the first byte of the encoded string to split the data in its raw, binary state. The default value is a double-quote (&#x27;&quot;&#x27;). If your data does not contain quoted sections, set the property value to an empty string. If your data contains quoted newline characters, you must also set the allowQuotedNewlines property to true.
2481 &quot;skipLeadingRows&quot;: &quot;A String&quot;, # [Optional] The number of rows at the top of a CSV file that BigQuery will skip when reading the data. The default value is 0. This property is useful if you have header rows in the file that should be skipped. When autodetect is on, the behavior is the following: * skipLeadingRows unspecified - Autodetect tries to detect headers in the first row. If they are not detected, the row is read as data. Otherwise data is read starting from the second row. * skipLeadingRows is 0 - Instructs autodetect that there are no headers and data should be read starting from the first row. * skipLeadingRows = N &gt; 0 - Autodetect skips N-1 rows and tries to detect headers in row N. If headers are not detected, row N is just skipped. Otherwise row N is used to extract column names for the detected schema.
2482 &quot;allowJaggedRows&quot;: True or False, # [Optional] Indicates if BigQuery should accept rows that are missing trailing optional columns. If true, BigQuery treats missing trailing columns as null values. If false, records with missing trailing columns are treated as bad records, and if there are too many bad records, an invalid error is returned in the job result. The default value is false.
2483 &quot;fieldDelimiter&quot;: &quot;A String&quot;, # [Optional] The separator for fields in a CSV file. BigQuery converts the string to ISO-8859-1 encoding, and then uses the first byte of the encoded string to split the data in its raw, binary state. BigQuery also supports the escape sequence &quot;\t&quot; to specify a tab separator. The default value is a comma (&#x27;,&#x27;).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002484 &quot;encoding&quot;: &quot;A String&quot;, # [Optional] The character encoding of the data. The supported values are UTF-8 or ISO-8859-1. The default value is UTF-8. BigQuery decodes the data after the raw, binary data has been split using the values of the quote and fieldDelimiter properties.
2485 &quot;allowQuotedNewlines&quot;: True or False, # [Optional] Indicates if BigQuery should allow quoted data sections that contain newline characters in a CSV file. The default value is false.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002486 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002487 &quot;bigtableOptions&quot;: { # [Optional] Additional options if sourceFormat is set to BIGTABLE.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002488 &quot;readRowkeyAsString&quot;: True or False, # [Optional] If field is true, then the rowkey column families will be read and converted to string. Otherwise they are read with BYTES type values and users need to manually cast them with CAST if necessary. The default value is false.
Bu Sun Kim65020912020-05-20 12:08:20 -07002489 &quot;columnFamilies&quot;: [ # [Optional] List of column families to expose in the table schema along with their types. This list restricts the column families that can be referenced in queries and specifies their value types. You can use this list to do type conversions - see the &#x27;type&#x27; field for more details. If you leave this list empty, all column families are present in the table schema and their values are read as BYTES. During a query only the column families referenced in that query are read from Bigtable.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07002490 {
Bu Sun Kim65020912020-05-20 12:08:20 -07002491 &quot;onlyReadLatest&quot;: True or False, # [Optional] If this is set only the latest version of value are exposed for all columns in this column family. This can be overridden for a specific column by listing that column in &#x27;columns&#x27; and specifying a different setting for that column.
2492 &quot;encoding&quot;: &quot;A String&quot;, # [Optional] The encoding of the values when the type is not STRING. Acceptable encoding values are: TEXT - indicates values are alphanumeric text strings. BINARY - indicates values are encoded using HBase Bytes.toBytes family of functions. This can be overridden for a specific column by listing that column in &#x27;columns&#x27; and specifying an encoding for it.
2493 &quot;columns&quot;: [ # [Optional] Lists of columns that should be exposed as individual fields as opposed to a list of (column name, value) pairs. All columns whose qualifier matches a qualifier in this list can be accessed as .. Other columns can be accessed as a list through .Column field.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07002494 {
Bu Sun Kim65020912020-05-20 12:08:20 -07002495 &quot;fieldName&quot;: &quot;A String&quot;, # [Optional] If the qualifier is not a valid BigQuery field identifier i.e. does not match [a-zA-Z][a-zA-Z0-9_]*, a valid identifier must be provided as the column field name and is used as field name in queries.
2496 &quot;qualifierString&quot;: &quot;A String&quot;,
2497 &quot;encoding&quot;: &quot;A String&quot;, # [Optional] The encoding of the values when the type is not STRING. Acceptable encoding values are: TEXT - indicates values are alphanumeric text strings. BINARY - indicates values are encoded using HBase Bytes.toBytes family of functions. &#x27;encoding&#x27; can also be set at the column family level. However, the setting at this level takes precedence if &#x27;encoding&#x27; is set at both levels.
2498 &quot;type&quot;: &quot;A String&quot;, # [Optional] The type to convert the value in cells of this column. The values are expected to be encoded using HBase Bytes.toBytes function when using the BINARY encoding value. Following BigQuery types are allowed (case-sensitive) - BYTES STRING INTEGER FLOAT BOOLEAN Default type is BYTES. &#x27;type&#x27; can also be set at the column family level. However, the setting at this level takes precedence if &#x27;type&#x27; is set at both levels.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002499 &quot;qualifierEncoded&quot;: &quot;A String&quot;, # [Required] Qualifier of the column. Columns in the parent column family that has this exact qualifier are exposed as . field. If the qualifier is valid UTF-8 string, it can be specified in the qualifier_string field. Otherwise, a base-64 encoded value must be set to qualifier_encoded. The column field name is the same as the column qualifier. However, if the qualifier is not a valid BigQuery field identifier i.e. does not match [a-zA-Z][a-zA-Z0-9_]*, a valid identifier must be provided as field_name.
2500 &quot;onlyReadLatest&quot;: True or False, # [Optional] If this is set, only the latest version of value in this column are exposed. &#x27;onlyReadLatest&#x27; can also be set at the column family level. However, the setting at this level takes precedence if &#x27;onlyReadLatest&#x27; is set at both levels.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07002501 },
2502 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002503 &quot;type&quot;: &quot;A String&quot;, # [Optional] The type to convert the value in cells of this column family. The values are expected to be encoded using HBase Bytes.toBytes function when using the BINARY encoding value. Following BigQuery types are allowed (case-sensitive) - BYTES STRING INTEGER FLOAT BOOLEAN Default type is BYTES. This can be overridden for a specific column by listing that column in &#x27;columns&#x27; and specifying a type for it.
2504 &quot;familyId&quot;: &quot;A String&quot;, # Identifier of the column family.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07002505 },
2506 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002507 &quot;ignoreUnspecifiedColumnFamilies&quot;: True or False, # [Optional] If field is true, then the column families that are not specified in columnFamilies list are not exposed in the table schema. Otherwise, they are read with BYTES type values. The default value is false.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07002508 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002509 &quot;schema&quot;: { # [Optional] The schema for the data. Schema is required for CSV and JSON formats. Schema is disallowed for Google Cloud Bigtable, Cloud Datastore backups, and Avro formats.
2510 &quot;fields&quot;: [ # Describes the fields in a table.
Takashi Matsuo06694102015-09-11 13:55:40 -07002511 {
Bu Sun Kim65020912020-05-20 12:08:20 -07002512 &quot;name&quot;: &quot;A String&quot;, # [Required] The field name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 128 characters.
2513 &quot;type&quot;: &quot;A String&quot;, # [Required] The field data type. Possible values include STRING, BYTES, INTEGER, INT64 (same as INTEGER), FLOAT, FLOAT64 (same as FLOAT), BOOLEAN, BOOL (same as BOOLEAN), TIMESTAMP, DATE, TIME, DATETIME, RECORD (where RECORD indicates that the field contains a nested schema) or STRUCT (same as RECORD).
2514 &quot;categories&quot;: { # [Optional] The categories attached to this field, used for field-level access control.
2515 &quot;names&quot;: [ # A list of category resource names. For example, &quot;projects/1/taxonomies/2/categories/3&quot;. At most 5 categories are allowed.
2516 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002517 ],
2518 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002519 &quot;mode&quot;: &quot;A String&quot;, # [Optional] The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.
2520 &quot;description&quot;: &quot;A String&quot;, # [Optional] The field description. The maximum length is 1,024 characters.
2521 &quot;policyTags&quot;: {
2522 &quot;names&quot;: [ # A list of category resource names. For example, &quot;projects/1/location/eu/taxonomies/2/policyTags/3&quot;. At most 1 policy tag is allowed.
2523 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002524 ],
2525 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002526 &quot;fields&quot;: [ # [Optional] Describes the nested schema fields if the type property is set to RECORD.
2527 # Object with schema name: TableFieldSchema
2528 ],
Takashi Matsuo06694102015-09-11 13:55:40 -07002529 },
2530 ],
2531 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002532 &quot;connectionId&quot;: &quot;A String&quot;, # [Optional, Trusted Tester] Connection for external data source.
Bu Sun Kim65020912020-05-20 12:08:20 -07002533 &quot;hivePartitioningOptions&quot;: { # [Optional, Trusted Tester] Options to configure hive partitioning support.
2534 &quot;sourceUriPrefix&quot;: &quot;A String&quot;, # [Optional, Trusted Tester] When hive partition detection is requested, a common prefix for all source uris should be supplied. The prefix must end immediately before the partition key encoding begins. For example, consider files following this data layout. gs://bucket/path_to_table/dt=2019-01-01/country=BR/id=7/file.avro gs://bucket/path_to_table/dt=2018-12-31/country=CA/id=3/file.avro When hive partitioning is requested with either AUTO or STRINGS detection, the common prefix can be either of gs://bucket/path_to_table or gs://bucket/path_to_table/ (trailing slash does not matter).
2535 &quot;mode&quot;: &quot;A String&quot;, # [Optional, Trusted Tester] When set, what mode of hive partitioning to use when reading data. Two modes are supported. (1) AUTO: automatically infer partition key name(s) and type(s). (2) STRINGS: automatically infer partition key name(s). All types are interpreted as strings. Not all storage formats support hive partitioning. Requesting hive partitioning on an unsupported format will lead to an error. Currently supported types include: AVRO, CSV, JSON, ORC and Parquet.
2536 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002537 &quot;autodetect&quot;: True or False, # Try to detect schema and format options automatically. Any option specified explicitly will be honored.
2538 &quot;googleSheetsOptions&quot;: { # [Optional] Additional options if sourceFormat is set to GOOGLE_SHEETS.
2539 &quot;range&quot;: &quot;A String&quot;, # [Optional] Range of a sheet to query from. Only used when non-empty. Typical format: sheet_name!top_left_cell_id:bottom_right_cell_id For example: sheet1!A1:B20
2540 &quot;skipLeadingRows&quot;: &quot;A String&quot;, # [Optional] The number of rows at the top of a sheet that BigQuery will skip when reading the data. The default value is 0. This property is useful if you have header rows that should be skipped. When autodetect is on, behavior is the following: * skipLeadingRows unspecified - Autodetect tries to detect headers in the first row. If they are not detected, the row is read as data. Otherwise data is read starting from the second row. * skipLeadingRows is 0 - Instructs autodetect that there are no headers and data should be read starting from the first row. * skipLeadingRows = N &gt; 0 - Autodetect skips N-1 rows and tries to detect headers in row N. If headers are not detected, row N is just skipped. Otherwise row N is used to extract column names for the detected schema.
2541 },
2542 &quot;ignoreUnknownValues&quot;: True or False, # [Optional] Indicates if BigQuery should allow extra values that are not represented in the table schema. If true, the extra values are ignored. If false, records with extra columns are treated as bad records, and if there are too many bad records, an invalid error is returned in the job result. The default value is false. The sourceFormat property determines what BigQuery treats as an extra value: CSV: Trailing columns JSON: Named values that don&#x27;t match any column names Google Cloud Bigtable: This setting is ignored. Google Cloud Datastore backups: This setting is ignored. Avro: This setting is ignored.
2543 &quot;sourceFormat&quot;: &quot;A String&quot;, # [Required] The data format. For CSV files, specify &quot;CSV&quot;. For Google sheets, specify &quot;GOOGLE_SHEETS&quot;. For newline-delimited JSON, specify &quot;NEWLINE_DELIMITED_JSON&quot;. For Avro files, specify &quot;AVRO&quot;. For Google Cloud Datastore backups, specify &quot;DATASTORE_BACKUP&quot;. [Beta] For Google Cloud Bigtable, specify &quot;BIGTABLE&quot;.
Takashi Matsuo06694102015-09-11 13:55:40 -07002544 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002545 &quot;model&quot;: { # [Output-only, Beta] Present iff this table represents a ML model. Describes the training information for the model, and it is required to run &#x27;PREDICT&#x27; queries.
2546 &quot;modelOptions&quot;: { # [Output-only, Beta] Model options used for the first training run. These options are immutable for subsequent training runs. Default values are used for any options not specified in the input query.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002547 &quot;lossType&quot;: &quot;A String&quot;,
2548 &quot;modelType&quot;: &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -07002549 &quot;labels&quot;: [
2550 &quot;A String&quot;,
2551 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002552 },
2553 &quot;trainingRuns&quot;: [ # [Output-only, Beta] Information about ml training runs, each training run comprises of multiple iterations and there may be multiple training runs for the model if warm start is used or if a user decides to continue a previously cancelled query.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08002554 {
Bu Sun Kim65020912020-05-20 12:08:20 -07002555 &quot;iterationResults&quot;: [ # [Output-only, Beta] List of each iteration results.
2556 {
2557 &quot;durationMs&quot;: &quot;A String&quot;, # [Output-only, Beta] Time taken to run the training iteration in milliseconds.
2558 &quot;trainingLoss&quot;: 3.14, # [Output-only, Beta] Training loss computed on the training data at the end of the iteration. The training loss function is defined by model type.
2559 &quot;evalLoss&quot;: 3.14, # [Output-only, Beta] Eval loss computed on the eval data at the end of the iteration. The eval loss is used for early stopping to avoid overfitting. No eval loss if eval_split_method option is specified as no_split or auto_split with input data size less than 500 rows.
2560 &quot;index&quot;: 42, # [Output-only, Beta] Index of the ML training iteration, starting from zero for each training run.
2561 &quot;learnRate&quot;: 3.14, # [Output-only, Beta] Learning rate used for this iteration, it varies for different training iterations if learn_rate_strategy option is not constant.
2562 },
2563 ],
2564 &quot;startTime&quot;: &quot;A String&quot;, # [Output-only, Beta] Training run start time in milliseconds since the epoch.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002565 &quot;trainingOptions&quot;: { # [Output-only, Beta] Training options used by this training run. These options are mutable for subsequent training runs. Default values are explicitly stored for options not specified in the input query of the first training run. For subsequent training runs, any option not explicitly specified in the input query will be copied from the previous training run.
2566 &quot;l1Reg&quot;: 3.14,
2567 &quot;maxIteration&quot;: &quot;A String&quot;,
2568 &quot;learnRate&quot;: 3.14,
2569 &quot;minRelProgress&quot;: 3.14,
2570 &quot;l2Reg&quot;: 3.14,
2571 &quot;warmStart&quot;: True or False,
2572 &quot;learnRateStrategy&quot;: &quot;A String&quot;,
2573 &quot;lineSearchInitLearnRate&quot;: 3.14,
2574 &quot;earlyStop&quot;: True or False,
2575 },
2576 &quot;state&quot;: &quot;A String&quot;, # [Output-only, Beta] Different state applicable for a training run. IN PROGRESS: Training run is in progress. FAILED: Training run ended due to a non-retryable failure. SUCCEEDED: Training run successfully completed. CANCELLED: Training run cancelled by the user.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08002577 },
2578 ],
2579 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002580 &quot;selfLink&quot;: &quot;A String&quot;, # [Output-only] A URL that can be used to access this resource again.
2581 &quot;expirationTime&quot;: &quot;A String&quot;, # [Optional] The time when this table expires, in milliseconds since the epoch. If not present, the table will persist indefinitely. Expired tables will be deleted and their storage reclaimed. The defaultTableExpirationMs property of the encapsulating dataset can be used to set a default expirationTime on newly created tables.
2582 &quot;kind&quot;: &quot;bigquery#table&quot;, # [Output-only] The type of the resource.
2583 &quot;description&quot;: &quot;A String&quot;, # [Optional] A user-friendly description of this table.
2584 &quot;creationTime&quot;: &quot;A String&quot;, # [Output-only] The time when this table was created, in milliseconds since the epoch.
2585 &quot;rangePartitioning&quot;: { # [TrustedTester] Range partitioning specification for this table. Only one of timePartitioning and rangePartitioning should be specified.
2586 &quot;range&quot;: { # [TrustedTester] [Required] Defines the ranges for range partitioning.
2587 &quot;interval&quot;: &quot;A String&quot;, # [TrustedTester] [Required] The width of each interval.
2588 &quot;start&quot;: &quot;A String&quot;, # [TrustedTester] [Required] The start of range partitioning, inclusive.
2589 &quot;end&quot;: &quot;A String&quot;, # [TrustedTester] [Required] The end of range partitioning, exclusive.
2590 },
2591 &quot;field&quot;: &quot;A String&quot;, # [TrustedTester] [Required] The table is partitioned by this field. The field must be a top-level NULLABLE/REQUIRED field. The only supported type is INTEGER/INT64.
2592 },
2593 &quot;schema&quot;: { # [Optional] Describes the schema of this table.
2594 &quot;fields&quot;: [ # Describes the fields in a table.
2595 {
Bu Sun Kim65020912020-05-20 12:08:20 -07002596 &quot;name&quot;: &quot;A String&quot;, # [Required] The field name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 128 characters.
2597 &quot;type&quot;: &quot;A String&quot;, # [Required] The field data type. Possible values include STRING, BYTES, INTEGER, INT64 (same as INTEGER), FLOAT, FLOAT64 (same as FLOAT), BOOLEAN, BOOL (same as BOOLEAN), TIMESTAMP, DATE, TIME, DATETIME, RECORD (where RECORD indicates that the field contains a nested schema) or STRUCT (same as RECORD).
2598 &quot;categories&quot;: { # [Optional] The categories attached to this field, used for field-level access control.
2599 &quot;names&quot;: [ # A list of category resource names. For example, &quot;projects/1/taxonomies/2/categories/3&quot;. At most 5 categories are allowed.
2600 &quot;A String&quot;,
2601 ],
2602 },
2603 &quot;mode&quot;: &quot;A String&quot;, # [Optional] The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.
2604 &quot;description&quot;: &quot;A String&quot;, # [Optional] The field description. The maximum length is 1,024 characters.
2605 &quot;policyTags&quot;: {
2606 &quot;names&quot;: [ # A list of category resource names. For example, &quot;projects/1/location/eu/taxonomies/2/policyTags/3&quot;. At most 1 policy tag is allowed.
2607 &quot;A String&quot;,
2608 ],
2609 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002610 &quot;fields&quot;: [ # [Optional] Describes the nested schema fields if the type property is set to RECORD.
2611 # Object with schema name: TableFieldSchema
2612 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002613 },
2614 ],
2615 },
2616 &quot;id&quot;: &quot;A String&quot;, # [Output-only] An opaque ID uniquely identifying the table.
2617 &quot;requirePartitionFilter&quot;: false, # [Optional] If set to true, queries over this table require a partition filter that can be used for partition elimination to be specified.
2618 &quot;materializedView&quot;: { # [Optional] Materialized view definition.
2619 &quot;query&quot;: &quot;A String&quot;, # [Required] A query whose result is persisted.
2620 &quot;enableRefresh&quot;: True or False, # [Optional] [TrustedTester] Enable automatic refresh of the materialized view when the base table is updated. The default value is &quot;true&quot;.
2621 &quot;refreshIntervalMs&quot;: &quot;A String&quot;, # [Optional] [TrustedTester] The maximum frequency at which this materialized view will be refreshed. The default value is &quot;1800000&quot; (30 minutes).
2622 &quot;lastRefreshTime&quot;: &quot;A String&quot;, # [Output-only] [TrustedTester] The time when this materialized view was last modified, in milliseconds since the epoch.
2623 },
2624 &quot;tableReference&quot;: { # [Required] Reference describing the ID of this table.
Bu Sun Kim65020912020-05-20 12:08:20 -07002625 &quot;projectId&quot;: &quot;A String&quot;, # [Required] The ID of the project containing this table.
2626 &quot;datasetId&quot;: &quot;A String&quot;, # [Required] The ID of the dataset containing this table.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002627 &quot;tableId&quot;: &quot;A String&quot;, # [Required] The ID of the table. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -07002628 },
2629 &quot;lastModifiedTime&quot;: &quot;A String&quot;, # [Output-only] The time when this table was last modified, in milliseconds since the epoch.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002630 &quot;type&quot;: &quot;A String&quot;, # [Output-only] Describes the table type. The following values are supported: TABLE: A normal BigQuery table. VIEW: A virtual table defined by a SQL query. [TrustedTester] MATERIALIZED_VIEW: SQL query whose result is persisted. EXTERNAL: A table that references data stored in an external storage system, such as Google Cloud Storage. The default value is TABLE.
Bu Sun Kim65020912020-05-20 12:08:20 -07002631 &quot;clustering&quot;: { # [Beta] Clustering specification for the table. Must be specified with partitioning, data in the table will be first partitioned and subsequently clustered.
2632 &quot;fields&quot;: [ # [Repeated] One or more fields on which data should be clustered. Only top-level, non-repeated, simple-type fields are supported. When you cluster a table using multiple columns, the order of columns you specify is important. The order of the specified columns determines the sort order of the data.
2633 &quot;A String&quot;,
2634 ],
2635 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002636 &quot;numRows&quot;: &quot;A String&quot;, # [Output-only] The number of rows of data in this table, excluding any data in the streaming buffer.
John Asmuth614db982014-04-24 15:46:26 -04002637 }</pre>
2638</div>
2639
2640</body></html>