blob: 707dd29c9b98c41f6caf9c6d3195573bd2dc9b66 [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.datasets.html">datasets</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
John Asmuth614db982014-04-24 15:46:26 -040081 <code><a href="#delete">delete(projectId, datasetId, deleteContents=None)</a></code></p>
82<p class="firstline">Deletes the dataset specified by the datasetId value. Before you can delete a dataset, you must delete all its tables, either manually or by specifying deleteContents. Immediately after deletion, you can create another dataset with the same name.</p>
83<p class="toc_element">
84 <code><a href="#get">get(projectId, datasetId)</a></code></p>
85<p class="firstline">Returns the dataset specified by datasetID.</p>
86<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070087 <code><a href="#insert">insert(projectId, body=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040088<p class="firstline">Creates a new empty dataset.</p>
89<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070090 <code><a href="#list">list(projectId, maxResults=None, pageToken=None, filter=None, all=None)</a></code></p>
Nathaniel Manista4f877e52015-06-15 16:44:50 +000091<p class="firstline">Lists all datasets in the specified project to which you have been granted 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, body=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040097<p class="firstline">Updates information in an existing dataset. The update method replaces the entire dataset resource, whereas the patch method only replaces fields that are provided in the submitted dataset resource. This method supports patch semantics.</p>
98<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070099 <code><a href="#update">update(projectId, datasetId, body=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -0400100<p class="firstline">Updates information in an existing dataset. The update method replaces the entire dataset resource, whereas the patch method only replaces fields that are provided in the submitted dataset resource.</p>
101<h3>Method Details</h3>
102<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700103 <code class="details" id="close">close()</code>
104 <pre>Close httplib2 connections.</pre>
105</div>
106
107<div class="method">
John Asmuth614db982014-04-24 15:46:26 -0400108 <code class="details" id="delete">delete(projectId, datasetId, deleteContents=None)</code>
109 <pre>Deletes the dataset specified by the datasetId value. Before you can delete a dataset, you must delete all its tables, either manually or by specifying deleteContents. Immediately after deletion, you can create another dataset with the same name.
110
111Args:
112 projectId: string, Project ID of the dataset being deleted (required)
113 datasetId: string, Dataset ID of dataset being deleted (required)
114 deleteContents: boolean, If True, delete all the tables in the dataset. If False and the dataset contains tables, the request will fail. Default is False
115</pre>
116</div>
117
118<div class="method">
119 <code class="details" id="get">get(projectId, datasetId)</code>
120 <pre>Returns the dataset specified by datasetID.
121
122Args:
123 projectId: string, Project ID of the requested dataset (required)
124 datasetId: string, Dataset ID of the requested dataset (required)
125
126Returns:
127 An object of the form:
128
129 {
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700130 &quot;etag&quot;: &quot;A String&quot;, # [Output-only] A hash of the resource.
131 &quot;kind&quot;: &quot;bigquery#dataset&quot;, # [Output-only] The resource type.
132 &quot;description&quot;: &quot;A String&quot;, # [Optional] A user-friendly description of the dataset.
133 &quot;lastModifiedTime&quot;: &quot;A String&quot;, # [Output-only] The date when this dataset or any of its tables was last modified, in milliseconds since the epoch.
134 &quot;datasetReference&quot;: { # [Required] A reference that identifies the dataset.
135 &quot;datasetId&quot;: &quot;A String&quot;, # [Required] A unique ID for this dataset, without the project name. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters.
136 &quot;projectId&quot;: &quot;A String&quot;, # [Optional] The ID of the project containing this dataset.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700137 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700138 &quot;id&quot;: &quot;A String&quot;, # [Output-only] The fully-qualified unique name of the dataset in the format projectId:datasetId. The dataset name without the project name is given in the datasetId field. When creating a new dataset, leave this field blank, and instead specify the datasetId field.
139 &quot;defaultEncryptionConfiguration&quot;: {
140 &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.
141 },
142 &quot;access&quot;: [ # [Optional] An array of objects that define dataset access for one or more entities. You can set this property when inserting or updating a dataset in order to control who is allowed to access the data. If unspecified at dataset creation time, BigQuery adds default dataset access for the following entities: access.specialGroup: projectReaders; access.role: READER; access.specialGroup: projectWriters; access.role: WRITER; access.specialGroup: projectOwners; access.role: OWNER; access.userByEmail: [dataset creator email]; access.role: OWNER;
143 {
144 &quot;role&quot;: &quot;A String&quot;, # [Required] An IAM role ID that should be granted to the user, group, or domain specified in this access entry. The following legacy mappings will be applied: OWNER roles/bigquery.dataOwner WRITER roles/bigquery.dataEditor READER roles/bigquery.dataViewer This field will accept any of the above formats, but will return only the legacy format. For example, if you set this field to &quot;roles/bigquery.dataOwner&quot;, it will be returned back as &quot;OWNER&quot;.
145 &quot;groupByEmail&quot;: &quot;A String&quot;, # [Pick one] An email address of a Google Group to grant access to. Maps to IAM policy member &quot;group:GROUP&quot;.
146 &quot;iamMember&quot;: &quot;A String&quot;, # [Pick one] Some other type of member that appears in the IAM Policy but isn&#x27;t a user, group, domain, or special group.
147 &quot;view&quot;: { # [Pick one] A view from a different dataset to grant access to. Queries executed against that view will have read access to tables in this dataset. The role field is not required when this field is set. If that view is updated by any user, access to the view needs to be granted again via an update operation.
148 &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.
149 &quot;projectId&quot;: &quot;A String&quot;, # [Required] The ID of the project containing this table.
150 &quot;datasetId&quot;: &quot;A String&quot;, # [Required] The ID of the dataset containing this table.
151 },
152 &quot;userByEmail&quot;: &quot;A String&quot;, # [Pick one] An email address of a user to grant access to. For example: fred@example.com. Maps to IAM policy member &quot;user:EMAIL&quot; or &quot;serviceAccount:EMAIL&quot;.
153 &quot;domain&quot;: &quot;A String&quot;, # [Pick one] A domain to grant access to. Any users signed in with the domain specified will be granted the specified access. Example: &quot;example.com&quot;. Maps to IAM policy member &quot;domain:DOMAIN&quot;.
154 &quot;specialGroup&quot;: &quot;A String&quot;, # [Pick one] A special group to grant access to. Possible values include: projectOwners: Owners of the enclosing project. projectReaders: Readers of the enclosing project. projectWriters: Writers of the enclosing project. allAuthenticatedUsers: All authenticated BigQuery users. Maps to similarly-named IAM members.
155 },
156 ],
157 &quot;creationTime&quot;: &quot;A String&quot;, # [Output-only] The time when this dataset was created, in milliseconds since the epoch.
158 &quot;selfLink&quot;: &quot;A String&quot;, # [Output-only] A URL that can be used to access the resource again. You can use this URL in Get or Update requests to the resource.
159 &quot;satisfiesPZS&quot;: True or False, # [Output-only] Reserved for future use.
160 &quot;location&quot;: &quot;A String&quot;, # The geographic location where the dataset should reside. The default value is US. See details at https://cloud.google.com/bigquery/docs/locations.
161 &quot;labels&quot;: { # The labels associated with this dataset. You can use these to organize and group your datasets. You can set this property when inserting or updating a dataset. See Creating and Updating Dataset Labels for more information.
162 &quot;a_key&quot;: &quot;A String&quot;,
163 },
164 &quot;defaultTableExpirationMs&quot;: &quot;A String&quot;, # [Optional] The default lifetime of all tables in the dataset, in milliseconds. The minimum value is 3600000 milliseconds (one hour). Once this property is set, all newly-created tables in the dataset will have an expirationTime property set to the creation time plus the value in this property, and changing the value will only affect new tables, not existing ones. When the expirationTime for a given table is reached, that table will be deleted automatically. If a table&#x27;s expirationTime is modified or removed before the table expires, or if you provide an explicit expirationTime when creating a table, that value takes precedence over the default expiration time indicated by this property.
165 &quot;friendlyName&quot;: &quot;A String&quot;, # [Optional] A descriptive name for the dataset.
166 &quot;defaultPartitionExpirationMs&quot;: &quot;A String&quot;, # [Optional] The default partition expiration for all partitioned tables in the dataset, in milliseconds. Once this property is set, all newly-created partitioned tables in the dataset will have an expirationMs property in the timePartitioning settings set to this value, and changing the value will only affect new tables, not existing ones. The storage in a partition will have an expiration time of its partition time plus this value. Setting this property overrides the use of defaultTableExpirationMs for partitioned tables: only one of defaultTableExpirationMs and defaultPartitionExpirationMs will be used for any new partitioned table. If you provide an explicit timePartitioning.expirationMs when creating or updating a partitioned table, that value takes precedence over the default partition expiration time indicated by this property.
167 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400168</div>
169
170<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700171 <code class="details" id="insert">insert(projectId, body=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400172 <pre>Creates a new empty dataset.
173
174Args:
175 projectId: string, Project ID of the new dataset (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700176 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400177 The object takes the form of:
178
179{
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700180 &quot;etag&quot;: &quot;A String&quot;, # [Output-only] A hash of the resource.
181 &quot;kind&quot;: &quot;bigquery#dataset&quot;, # [Output-only] The resource type.
182 &quot;description&quot;: &quot;A String&quot;, # [Optional] A user-friendly description of the dataset.
183 &quot;lastModifiedTime&quot;: &quot;A String&quot;, # [Output-only] The date when this dataset or any of its tables was last modified, in milliseconds since the epoch.
184 &quot;datasetReference&quot;: { # [Required] A reference that identifies the dataset.
185 &quot;datasetId&quot;: &quot;A String&quot;, # [Required] A unique ID for this dataset, without the project name. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters.
186 &quot;projectId&quot;: &quot;A String&quot;, # [Optional] The ID of the project containing this dataset.
Bu Sun Kim65020912020-05-20 12:08:20 -0700187 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700188 &quot;id&quot;: &quot;A String&quot;, # [Output-only] The fully-qualified unique name of the dataset in the format projectId:datasetId. The dataset name without the project name is given in the datasetId field. When creating a new dataset, leave this field blank, and instead specify the datasetId field.
189 &quot;defaultEncryptionConfiguration&quot;: {
190 &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.
191 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700192 &quot;access&quot;: [ # [Optional] An array of objects that define dataset access for one or more entities. You can set this property when inserting or updating a dataset in order to control who is allowed to access the data. If unspecified at dataset creation time, BigQuery adds default dataset access for the following entities: access.specialGroup: projectReaders; access.role: READER; access.specialGroup: projectWriters; access.role: WRITER; access.specialGroup: projectOwners; access.role: OWNER; access.userByEmail: [dataset creator email]; access.role: OWNER;
193 {
194 &quot;role&quot;: &quot;A String&quot;, # [Required] An IAM role ID that should be granted to the user, group, or domain specified in this access entry. The following legacy mappings will be applied: OWNER roles/bigquery.dataOwner WRITER roles/bigquery.dataEditor READER roles/bigquery.dataViewer This field will accept any of the above formats, but will return only the legacy format. For example, if you set this field to &quot;roles/bigquery.dataOwner&quot;, it will be returned back as &quot;OWNER&quot;.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700195 &quot;groupByEmail&quot;: &quot;A String&quot;, # [Pick one] An email address of a Google Group to grant access to. Maps to IAM policy member &quot;group:GROUP&quot;.
196 &quot;iamMember&quot;: &quot;A String&quot;, # [Pick one] Some other type of member that appears in the IAM Policy but isn&#x27;t a user, group, domain, or special group.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700197 &quot;view&quot;: { # [Pick one] A view from a different dataset to grant access to. Queries executed against that view will have read access to tables in this dataset. The role field is not required when this field is set. If that view is updated by any user, access to the view needs to be granted again via an update operation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700198 &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 Kim4ed7d3f2020-05-27 12:20:54 -0700199 &quot;projectId&quot;: &quot;A String&quot;, # [Required] The ID of the project containing this table.
200 &quot;datasetId&quot;: &quot;A String&quot;, # [Required] The ID of the dataset containing this table.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700201 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700202 &quot;userByEmail&quot;: &quot;A String&quot;, # [Pick one] An email address of a user to grant access to. For example: fred@example.com. Maps to IAM policy member &quot;user:EMAIL&quot; or &quot;serviceAccount:EMAIL&quot;.
203 &quot;domain&quot;: &quot;A String&quot;, # [Pick one] A domain to grant access to. Any users signed in with the domain specified will be granted the specified access. Example: &quot;example.com&quot;. Maps to IAM policy member &quot;domain:DOMAIN&quot;.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700204 &quot;specialGroup&quot;: &quot;A String&quot;, # [Pick one] A special group to grant access to. Possible values include: projectOwners: Owners of the enclosing project. projectReaders: Readers of the enclosing project. projectWriters: Writers of the enclosing project. allAuthenticatedUsers: All authenticated BigQuery users. Maps to similarly-named IAM members.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700205 },
206 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700207 &quot;creationTime&quot;: &quot;A String&quot;, # [Output-only] The time when this dataset was created, in milliseconds since the epoch.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700208 &quot;selfLink&quot;: &quot;A String&quot;, # [Output-only] A URL that can be used to access the resource again. You can use this URL in Get or Update requests to the resource.
209 &quot;satisfiesPZS&quot;: True or False, # [Output-only] Reserved for future use.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700210 &quot;location&quot;: &quot;A String&quot;, # The geographic location where the dataset should reside. The default value is US. See details at https://cloud.google.com/bigquery/docs/locations.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700211 &quot;labels&quot;: { # The labels associated with this dataset. You can use these to organize and group your datasets. You can set this property when inserting or updating a dataset. See Creating and Updating Dataset Labels for more information.
212 &quot;a_key&quot;: &quot;A String&quot;,
213 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700214 &quot;defaultTableExpirationMs&quot;: &quot;A String&quot;, # [Optional] The default lifetime of all tables in the dataset, in milliseconds. The minimum value is 3600000 milliseconds (one hour). Once this property is set, all newly-created tables in the dataset will have an expirationTime property set to the creation time plus the value in this property, and changing the value will only affect new tables, not existing ones. When the expirationTime for a given table is reached, that table will be deleted automatically. If a table&#x27;s expirationTime is modified or removed before the table expires, or if you provide an explicit expirationTime when creating a table, that value takes precedence over the default expiration time indicated by this property.
215 &quot;friendlyName&quot;: &quot;A String&quot;, # [Optional] A descriptive name for the dataset.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700216 &quot;defaultPartitionExpirationMs&quot;: &quot;A String&quot;, # [Optional] The default partition expiration for all partitioned tables in the dataset, in milliseconds. Once this property is set, all newly-created partitioned tables in the dataset will have an expirationMs property in the timePartitioning settings set to this value, and changing the value will only affect new tables, not existing ones. The storage in a partition will have an expiration time of its partition time plus this value. Setting this property overrides the use of defaultTableExpirationMs for partitioned tables: only one of defaultTableExpirationMs and defaultPartitionExpirationMs will be used for any new partitioned table. If you provide an explicit timePartitioning.expirationMs when creating or updating a partitioned table, that value takes precedence over the default partition expiration time indicated by this property.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700217 }
John Asmuth614db982014-04-24 15:46:26 -0400218
John Asmuth614db982014-04-24 15:46:26 -0400219
220Returns:
221 An object of the form:
222
223 {
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700224 &quot;etag&quot;: &quot;A String&quot;, # [Output-only] A hash of the resource.
225 &quot;kind&quot;: &quot;bigquery#dataset&quot;, # [Output-only] The resource type.
226 &quot;description&quot;: &quot;A String&quot;, # [Optional] A user-friendly description of the dataset.
227 &quot;lastModifiedTime&quot;: &quot;A String&quot;, # [Output-only] The date when this dataset or any of its tables was last modified, in milliseconds since the epoch.
228 &quot;datasetReference&quot;: { # [Required] A reference that identifies the dataset.
229 &quot;datasetId&quot;: &quot;A String&quot;, # [Required] A unique ID for this dataset, without the project name. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters.
230 &quot;projectId&quot;: &quot;A String&quot;, # [Optional] The ID of the project containing this dataset.
231 },
232 &quot;id&quot;: &quot;A String&quot;, # [Output-only] The fully-qualified unique name of the dataset in the format projectId:datasetId. The dataset name without the project name is given in the datasetId field. When creating a new dataset, leave this field blank, and instead specify the datasetId field.
233 &quot;defaultEncryptionConfiguration&quot;: {
234 &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.
235 },
236 &quot;access&quot;: [ # [Optional] An array of objects that define dataset access for one or more entities. You can set this property when inserting or updating a dataset in order to control who is allowed to access the data. If unspecified at dataset creation time, BigQuery adds default dataset access for the following entities: access.specialGroup: projectReaders; access.role: READER; access.specialGroup: projectWriters; access.role: WRITER; access.specialGroup: projectOwners; access.role: OWNER; access.userByEmail: [dataset creator email]; access.role: OWNER;
237 {
238 &quot;role&quot;: &quot;A String&quot;, # [Required] An IAM role ID that should be granted to the user, group, or domain specified in this access entry. The following legacy mappings will be applied: OWNER roles/bigquery.dataOwner WRITER roles/bigquery.dataEditor READER roles/bigquery.dataViewer This field will accept any of the above formats, but will return only the legacy format. For example, if you set this field to &quot;roles/bigquery.dataOwner&quot;, it will be returned back as &quot;OWNER&quot;.
239 &quot;groupByEmail&quot;: &quot;A String&quot;, # [Pick one] An email address of a Google Group to grant access to. Maps to IAM policy member &quot;group:GROUP&quot;.
240 &quot;iamMember&quot;: &quot;A String&quot;, # [Pick one] Some other type of member that appears in the IAM Policy but isn&#x27;t a user, group, domain, or special group.
241 &quot;view&quot;: { # [Pick one] A view from a different dataset to grant access to. Queries executed against that view will have read access to tables in this dataset. The role field is not required when this field is set. If that view is updated by any user, access to the view needs to be granted again via an update operation.
242 &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.
243 &quot;projectId&quot;: &quot;A String&quot;, # [Required] The ID of the project containing this table.
244 &quot;datasetId&quot;: &quot;A String&quot;, # [Required] The ID of the dataset containing this table.
245 },
246 &quot;userByEmail&quot;: &quot;A String&quot;, # [Pick one] An email address of a user to grant access to. For example: fred@example.com. Maps to IAM policy member &quot;user:EMAIL&quot; or &quot;serviceAccount:EMAIL&quot;.
247 &quot;domain&quot;: &quot;A String&quot;, # [Pick one] A domain to grant access to. Any users signed in with the domain specified will be granted the specified access. Example: &quot;example.com&quot;. Maps to IAM policy member &quot;domain:DOMAIN&quot;.
248 &quot;specialGroup&quot;: &quot;A String&quot;, # [Pick one] A special group to grant access to. Possible values include: projectOwners: Owners of the enclosing project. projectReaders: Readers of the enclosing project. projectWriters: Writers of the enclosing project. allAuthenticatedUsers: All authenticated BigQuery users. Maps to similarly-named IAM members.
249 },
250 ],
251 &quot;creationTime&quot;: &quot;A String&quot;, # [Output-only] The time when this dataset was created, in milliseconds since the epoch.
252 &quot;selfLink&quot;: &quot;A String&quot;, # [Output-only] A URL that can be used to access the resource again. You can use this URL in Get or Update requests to the resource.
253 &quot;satisfiesPZS&quot;: True or False, # [Output-only] Reserved for future use.
254 &quot;location&quot;: &quot;A String&quot;, # The geographic location where the dataset should reside. The default value is US. See details at https://cloud.google.com/bigquery/docs/locations.
255 &quot;labels&quot;: { # The labels associated with this dataset. You can use these to organize and group your datasets. You can set this property when inserting or updating a dataset. See Creating and Updating Dataset Labels for more information.
256 &quot;a_key&quot;: &quot;A String&quot;,
257 },
258 &quot;defaultTableExpirationMs&quot;: &quot;A String&quot;, # [Optional] The default lifetime of all tables in the dataset, in milliseconds. The minimum value is 3600000 milliseconds (one hour). Once this property is set, all newly-created tables in the dataset will have an expirationTime property set to the creation time plus the value in this property, and changing the value will only affect new tables, not existing ones. When the expirationTime for a given table is reached, that table will be deleted automatically. If a table&#x27;s expirationTime is modified or removed before the table expires, or if you provide an explicit expirationTime when creating a table, that value takes precedence over the default expiration time indicated by this property.
259 &quot;friendlyName&quot;: &quot;A String&quot;, # [Optional] A descriptive name for the dataset.
260 &quot;defaultPartitionExpirationMs&quot;: &quot;A String&quot;, # [Optional] The default partition expiration for all partitioned tables in the dataset, in milliseconds. Once this property is set, all newly-created partitioned tables in the dataset will have an expirationMs property in the timePartitioning settings set to this value, and changing the value will only affect new tables, not existing ones. The storage in a partition will have an expiration time of its partition time plus this value. Setting this property overrides the use of defaultTableExpirationMs for partitioned tables: only one of defaultTableExpirationMs and defaultPartitionExpirationMs will be used for any new partitioned table. If you provide an explicit timePartitioning.expirationMs when creating or updating a partitioned table, that value takes precedence over the default partition expiration time indicated by this property.
261 }</pre>
262</div>
263
264<div class="method">
265 <code class="details" id="list">list(projectId, maxResults=None, pageToken=None, filter=None, all=None)</code>
266 <pre>Lists all datasets in the specified project to which you have been granted the READER dataset role.
267
268Args:
269 projectId: string, Project ID of the datasets to be listed (required)
270 maxResults: integer, The maximum number of results to return
271 pageToken: string, Page token, returned by a previous call, to request the next page of results
272 filter: string, An expression for filtering the results of the request by label. The syntax is &quot;labels.&lt;name&gt;[:&lt;value&gt;]&quot;. Multiple filters can be ANDed together by connecting with a space. Example: &quot;labels.department:receiving labels.active&quot;. See Filtering datasets using labels for details.
273 all: boolean, Whether to list all datasets, including hidden ones
274
275Returns:
276 An object of the form:
277
278 {
279 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token that can be used to request the next results page. This property is omitted on the final results page.
280 &quot;kind&quot;: &quot;bigquery#datasetList&quot;, # The list type. This property always returns the value &quot;bigquery#datasetList&quot;.
281 &quot;etag&quot;: &quot;A String&quot;, # A hash value of the results page. You can use this property to determine if the page has changed since the last request.
Bu Sun Kim65020912020-05-20 12:08:20 -0700282 &quot;datasets&quot;: [ # An array of the dataset resources in the project. Each resource contains basic information. For full information about a particular dataset resource, use the Datasets: get method. This property is omitted when there are no datasets in the project.
John Asmuth614db982014-04-24 15:46:26 -0400283 {
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700284 &quot;friendlyName&quot;: &quot;A String&quot;, # A descriptive name for the dataset, if one exists.
285 &quot;kind&quot;: &quot;bigquery#dataset&quot;, # The resource type. This property always returns the value &quot;bigquery#dataset&quot;.
286 &quot;location&quot;: &quot;A String&quot;, # The geographic location where the data resides.
Bu Sun Kim65020912020-05-20 12:08:20 -0700287 &quot;labels&quot;: { # The labels associated with this dataset. You can use these to organize and group your datasets.
288 &quot;a_key&quot;: &quot;A String&quot;,
John Asmuth614db982014-04-24 15:46:26 -0400289 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700290 &quot;datasetReference&quot;: { # The dataset reference. Use this property to access specific parts of the dataset&#x27;s ID, such as project ID or dataset ID.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700291 &quot;datasetId&quot;: &quot;A String&quot;, # [Required] A unique ID for this dataset, without the project name. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700292 &quot;projectId&quot;: &quot;A String&quot;, # [Optional] The ID of the project containing this dataset.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700293 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700294 &quot;id&quot;: &quot;A String&quot;, # The fully-qualified, unique, opaque ID of the dataset.
John Asmuth614db982014-04-24 15:46:26 -0400295 },
296 ],
John Asmuth614db982014-04-24 15:46:26 -0400297 }</pre>
298</div>
299
300<div class="method">
301 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
302 <pre>Retrieves the next page of results.
303
304Args:
305 previous_request: The request for the previous page. (required)
306 previous_response: The response from the request for the previous page. (required)
307
308Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700309 A request object that you can call &#x27;execute()&#x27; on to request the next
John Asmuth614db982014-04-24 15:46:26 -0400310 page. Returns None if there are no more items in the collection.
311 </pre>
312</div>
313
314<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700315 <code class="details" id="patch">patch(projectId, datasetId, body=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400316 <pre>Updates information in an existing dataset. The update method replaces the entire dataset resource, whereas the patch method only replaces fields that are provided in the submitted dataset resource. This method supports patch semantics.
317
318Args:
319 projectId: string, Project ID of the dataset being updated (required)
320 datasetId: string, Dataset ID of the dataset being updated (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700321 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400322 The object takes the form of:
323
324{
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700325 &quot;etag&quot;: &quot;A String&quot;, # [Output-only] A hash of the resource.
326 &quot;kind&quot;: &quot;bigquery#dataset&quot;, # [Output-only] The resource type.
327 &quot;description&quot;: &quot;A String&quot;, # [Optional] A user-friendly description of the dataset.
328 &quot;lastModifiedTime&quot;: &quot;A String&quot;, # [Output-only] The date when this dataset or any of its tables was last modified, in milliseconds since the epoch.
329 &quot;datasetReference&quot;: { # [Required] A reference that identifies the dataset.
330 &quot;datasetId&quot;: &quot;A String&quot;, # [Required] A unique ID for this dataset, without the project name. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters.
331 &quot;projectId&quot;: &quot;A String&quot;, # [Optional] The ID of the project containing this dataset.
Bu Sun Kim65020912020-05-20 12:08:20 -0700332 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700333 &quot;id&quot;: &quot;A String&quot;, # [Output-only] The fully-qualified unique name of the dataset in the format projectId:datasetId. The dataset name without the project name is given in the datasetId field. When creating a new dataset, leave this field blank, and instead specify the datasetId field.
334 &quot;defaultEncryptionConfiguration&quot;: {
335 &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.
336 },
337 &quot;access&quot;: [ # [Optional] An array of objects that define dataset access for one or more entities. You can set this property when inserting or updating a dataset in order to control who is allowed to access the data. If unspecified at dataset creation time, BigQuery adds default dataset access for the following entities: access.specialGroup: projectReaders; access.role: READER; access.specialGroup: projectWriters; access.role: WRITER; access.specialGroup: projectOwners; access.role: OWNER; access.userByEmail: [dataset creator email]; access.role: OWNER;
338 {
339 &quot;role&quot;: &quot;A String&quot;, # [Required] An IAM role ID that should be granted to the user, group, or domain specified in this access entry. The following legacy mappings will be applied: OWNER roles/bigquery.dataOwner WRITER roles/bigquery.dataEditor READER roles/bigquery.dataViewer This field will accept any of the above formats, but will return only the legacy format. For example, if you set this field to &quot;roles/bigquery.dataOwner&quot;, it will be returned back as &quot;OWNER&quot;.
340 &quot;groupByEmail&quot;: &quot;A String&quot;, # [Pick one] An email address of a Google Group to grant access to. Maps to IAM policy member &quot;group:GROUP&quot;.
341 &quot;iamMember&quot;: &quot;A String&quot;, # [Pick one] Some other type of member that appears in the IAM Policy but isn&#x27;t a user, group, domain, or special group.
342 &quot;view&quot;: { # [Pick one] A view from a different dataset to grant access to. Queries executed against that view will have read access to tables in this dataset. The role field is not required when this field is set. If that view is updated by any user, access to the view needs to be granted again via an update operation.
343 &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.
344 &quot;projectId&quot;: &quot;A String&quot;, # [Required] The ID of the project containing this table.
345 &quot;datasetId&quot;: &quot;A String&quot;, # [Required] The ID of the dataset containing this table.
346 },
347 &quot;userByEmail&quot;: &quot;A String&quot;, # [Pick one] An email address of a user to grant access to. For example: fred@example.com. Maps to IAM policy member &quot;user:EMAIL&quot; or &quot;serviceAccount:EMAIL&quot;.
348 &quot;domain&quot;: &quot;A String&quot;, # [Pick one] A domain to grant access to. Any users signed in with the domain specified will be granted the specified access. Example: &quot;example.com&quot;. Maps to IAM policy member &quot;domain:DOMAIN&quot;.
349 &quot;specialGroup&quot;: &quot;A String&quot;, # [Pick one] A special group to grant access to. Possible values include: projectOwners: Owners of the enclosing project. projectReaders: Readers of the enclosing project. projectWriters: Writers of the enclosing project. allAuthenticatedUsers: All authenticated BigQuery users. Maps to similarly-named IAM members.
350 },
351 ],
352 &quot;creationTime&quot;: &quot;A String&quot;, # [Output-only] The time when this dataset was created, in milliseconds since the epoch.
353 &quot;selfLink&quot;: &quot;A String&quot;, # [Output-only] A URL that can be used to access the resource again. You can use this URL in Get or Update requests to the resource.
354 &quot;satisfiesPZS&quot;: True or False, # [Output-only] Reserved for future use.
355 &quot;location&quot;: &quot;A String&quot;, # The geographic location where the dataset should reside. The default value is US. See details at https://cloud.google.com/bigquery/docs/locations.
356 &quot;labels&quot;: { # The labels associated with this dataset. You can use these to organize and group your datasets. You can set this property when inserting or updating a dataset. See Creating and Updating Dataset Labels for more information.
357 &quot;a_key&quot;: &quot;A String&quot;,
358 },
359 &quot;defaultTableExpirationMs&quot;: &quot;A String&quot;, # [Optional] The default lifetime of all tables in the dataset, in milliseconds. The minimum value is 3600000 milliseconds (one hour). Once this property is set, all newly-created tables in the dataset will have an expirationTime property set to the creation time plus the value in this property, and changing the value will only affect new tables, not existing ones. When the expirationTime for a given table is reached, that table will be deleted automatically. If a table&#x27;s expirationTime is modified or removed before the table expires, or if you provide an explicit expirationTime when creating a table, that value takes precedence over the default expiration time indicated by this property.
360 &quot;friendlyName&quot;: &quot;A String&quot;, # [Optional] A descriptive name for the dataset.
361 &quot;defaultPartitionExpirationMs&quot;: &quot;A String&quot;, # [Optional] The default partition expiration for all partitioned tables in the dataset, in milliseconds. Once this property is set, all newly-created partitioned tables in the dataset will have an expirationMs property in the timePartitioning settings set to this value, and changing the value will only affect new tables, not existing ones. The storage in a partition will have an expiration time of its partition time plus this value. Setting this property overrides the use of defaultTableExpirationMs for partitioned tables: only one of defaultTableExpirationMs and defaultPartitionExpirationMs will be used for any new partitioned table. If you provide an explicit timePartitioning.expirationMs when creating or updating a partitioned table, that value takes precedence over the default partition expiration time indicated by this property.
362 }
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700363
364
365Returns:
366 An object of the form:
367
368 {
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700369 &quot;etag&quot;: &quot;A String&quot;, # [Output-only] A hash of the resource.
370 &quot;kind&quot;: &quot;bigquery#dataset&quot;, # [Output-only] The resource type.
371 &quot;description&quot;: &quot;A String&quot;, # [Optional] A user-friendly description of the dataset.
372 &quot;lastModifiedTime&quot;: &quot;A String&quot;, # [Output-only] The date when this dataset or any of its tables was last modified, in milliseconds since the epoch.
373 &quot;datasetReference&quot;: { # [Required] A reference that identifies the dataset.
374 &quot;datasetId&quot;: &quot;A String&quot;, # [Required] A unique ID for this dataset, without the project name. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters.
375 &quot;projectId&quot;: &quot;A String&quot;, # [Optional] The ID of the project containing this dataset.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700376 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700377 &quot;id&quot;: &quot;A String&quot;, # [Output-only] The fully-qualified unique name of the dataset in the format projectId:datasetId. The dataset name without the project name is given in the datasetId field. When creating a new dataset, leave this field blank, and instead specify the datasetId field.
378 &quot;defaultEncryptionConfiguration&quot;: {
379 &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.
380 },
381 &quot;access&quot;: [ # [Optional] An array of objects that define dataset access for one or more entities. You can set this property when inserting or updating a dataset in order to control who is allowed to access the data. If unspecified at dataset creation time, BigQuery adds default dataset access for the following entities: access.specialGroup: projectReaders; access.role: READER; access.specialGroup: projectWriters; access.role: WRITER; access.specialGroup: projectOwners; access.role: OWNER; access.userByEmail: [dataset creator email]; access.role: OWNER;
382 {
383 &quot;role&quot;: &quot;A String&quot;, # [Required] An IAM role ID that should be granted to the user, group, or domain specified in this access entry. The following legacy mappings will be applied: OWNER roles/bigquery.dataOwner WRITER roles/bigquery.dataEditor READER roles/bigquery.dataViewer This field will accept any of the above formats, but will return only the legacy format. For example, if you set this field to &quot;roles/bigquery.dataOwner&quot;, it will be returned back as &quot;OWNER&quot;.
384 &quot;groupByEmail&quot;: &quot;A String&quot;, # [Pick one] An email address of a Google Group to grant access to. Maps to IAM policy member &quot;group:GROUP&quot;.
385 &quot;iamMember&quot;: &quot;A String&quot;, # [Pick one] Some other type of member that appears in the IAM Policy but isn&#x27;t a user, group, domain, or special group.
386 &quot;view&quot;: { # [Pick one] A view from a different dataset to grant access to. Queries executed against that view will have read access to tables in this dataset. The role field is not required when this field is set. If that view is updated by any user, access to the view needs to be granted again via an update operation.
387 &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.
388 &quot;projectId&quot;: &quot;A String&quot;, # [Required] The ID of the project containing this table.
389 &quot;datasetId&quot;: &quot;A String&quot;, # [Required] The ID of the dataset containing this table.
390 },
391 &quot;userByEmail&quot;: &quot;A String&quot;, # [Pick one] An email address of a user to grant access to. For example: fred@example.com. Maps to IAM policy member &quot;user:EMAIL&quot; or &quot;serviceAccount:EMAIL&quot;.
392 &quot;domain&quot;: &quot;A String&quot;, # [Pick one] A domain to grant access to. Any users signed in with the domain specified will be granted the specified access. Example: &quot;example.com&quot;. Maps to IAM policy member &quot;domain:DOMAIN&quot;.
393 &quot;specialGroup&quot;: &quot;A String&quot;, # [Pick one] A special group to grant access to. Possible values include: projectOwners: Owners of the enclosing project. projectReaders: Readers of the enclosing project. projectWriters: Writers of the enclosing project. allAuthenticatedUsers: All authenticated BigQuery users. Maps to similarly-named IAM members.
394 },
395 ],
396 &quot;creationTime&quot;: &quot;A String&quot;, # [Output-only] The time when this dataset was created, in milliseconds since the epoch.
397 &quot;selfLink&quot;: &quot;A String&quot;, # [Output-only] A URL that can be used to access the resource again. You can use this URL in Get or Update requests to the resource.
398 &quot;satisfiesPZS&quot;: True or False, # [Output-only] Reserved for future use.
399 &quot;location&quot;: &quot;A String&quot;, # The geographic location where the dataset should reside. The default value is US. See details at https://cloud.google.com/bigquery/docs/locations.
400 &quot;labels&quot;: { # The labels associated with this dataset. You can use these to organize and group your datasets. You can set this property when inserting or updating a dataset. See Creating and Updating Dataset Labels for more information.
401 &quot;a_key&quot;: &quot;A String&quot;,
402 },
403 &quot;defaultTableExpirationMs&quot;: &quot;A String&quot;, # [Optional] The default lifetime of all tables in the dataset, in milliseconds. The minimum value is 3600000 milliseconds (one hour). Once this property is set, all newly-created tables in the dataset will have an expirationTime property set to the creation time plus the value in this property, and changing the value will only affect new tables, not existing ones. When the expirationTime for a given table is reached, that table will be deleted automatically. If a table&#x27;s expirationTime is modified or removed before the table expires, or if you provide an explicit expirationTime when creating a table, that value takes precedence over the default expiration time indicated by this property.
404 &quot;friendlyName&quot;: &quot;A String&quot;, # [Optional] A descriptive name for the dataset.
405 &quot;defaultPartitionExpirationMs&quot;: &quot;A String&quot;, # [Optional] The default partition expiration for all partitioned tables in the dataset, in milliseconds. Once this property is set, all newly-created partitioned tables in the dataset will have an expirationMs property in the timePartitioning settings set to this value, and changing the value will only affect new tables, not existing ones. The storage in a partition will have an expiration time of its partition time plus this value. Setting this property overrides the use of defaultTableExpirationMs for partitioned tables: only one of defaultTableExpirationMs and defaultPartitionExpirationMs will be used for any new partitioned table. If you provide an explicit timePartitioning.expirationMs when creating or updating a partitioned table, that value takes precedence over the default partition expiration time indicated by this property.
406 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400407</div>
408
409<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700410 <code class="details" id="update">update(projectId, datasetId, body=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400411 <pre>Updates information in an existing dataset. The update method replaces the entire dataset resource, whereas the patch method only replaces fields that are provided in the submitted dataset resource.
412
413Args:
414 projectId: string, Project ID of the dataset being updated (required)
415 datasetId: string, Dataset ID of the dataset being updated (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700416 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400417 The object takes the form of:
418
419{
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700420 &quot;etag&quot;: &quot;A String&quot;, # [Output-only] A hash of the resource.
421 &quot;kind&quot;: &quot;bigquery#dataset&quot;, # [Output-only] The resource type.
422 &quot;description&quot;: &quot;A String&quot;, # [Optional] A user-friendly description of the dataset.
423 &quot;lastModifiedTime&quot;: &quot;A String&quot;, # [Output-only] The date when this dataset or any of its tables was last modified, in milliseconds since the epoch.
424 &quot;datasetReference&quot;: { # [Required] A reference that identifies the dataset.
425 &quot;datasetId&quot;: &quot;A String&quot;, # [Required] A unique ID for this dataset, without the project name. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters.
426 &quot;projectId&quot;: &quot;A String&quot;, # [Optional] The ID of the project containing this dataset.
Bu Sun Kim65020912020-05-20 12:08:20 -0700427 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700428 &quot;id&quot;: &quot;A String&quot;, # [Output-only] The fully-qualified unique name of the dataset in the format projectId:datasetId. The dataset name without the project name is given in the datasetId field. When creating a new dataset, leave this field blank, and instead specify the datasetId field.
429 &quot;defaultEncryptionConfiguration&quot;: {
430 &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.
431 },
432 &quot;access&quot;: [ # [Optional] An array of objects that define dataset access for one or more entities. You can set this property when inserting or updating a dataset in order to control who is allowed to access the data. If unspecified at dataset creation time, BigQuery adds default dataset access for the following entities: access.specialGroup: projectReaders; access.role: READER; access.specialGroup: projectWriters; access.role: WRITER; access.specialGroup: projectOwners; access.role: OWNER; access.userByEmail: [dataset creator email]; access.role: OWNER;
433 {
434 &quot;role&quot;: &quot;A String&quot;, # [Required] An IAM role ID that should be granted to the user, group, or domain specified in this access entry. The following legacy mappings will be applied: OWNER roles/bigquery.dataOwner WRITER roles/bigquery.dataEditor READER roles/bigquery.dataViewer This field will accept any of the above formats, but will return only the legacy format. For example, if you set this field to &quot;roles/bigquery.dataOwner&quot;, it will be returned back as &quot;OWNER&quot;.
435 &quot;groupByEmail&quot;: &quot;A String&quot;, # [Pick one] An email address of a Google Group to grant access to. Maps to IAM policy member &quot;group:GROUP&quot;.
436 &quot;iamMember&quot;: &quot;A String&quot;, # [Pick one] Some other type of member that appears in the IAM Policy but isn&#x27;t a user, group, domain, or special group.
437 &quot;view&quot;: { # [Pick one] A view from a different dataset to grant access to. Queries executed against that view will have read access to tables in this dataset. The role field is not required when this field is set. If that view is updated by any user, access to the view needs to be granted again via an update operation.
438 &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.
439 &quot;projectId&quot;: &quot;A String&quot;, # [Required] The ID of the project containing this table.
440 &quot;datasetId&quot;: &quot;A String&quot;, # [Required] The ID of the dataset containing this table.
441 },
442 &quot;userByEmail&quot;: &quot;A String&quot;, # [Pick one] An email address of a user to grant access to. For example: fred@example.com. Maps to IAM policy member &quot;user:EMAIL&quot; or &quot;serviceAccount:EMAIL&quot;.
443 &quot;domain&quot;: &quot;A String&quot;, # [Pick one] A domain to grant access to. Any users signed in with the domain specified will be granted the specified access. Example: &quot;example.com&quot;. Maps to IAM policy member &quot;domain:DOMAIN&quot;.
444 &quot;specialGroup&quot;: &quot;A String&quot;, # [Pick one] A special group to grant access to. Possible values include: projectOwners: Owners of the enclosing project. projectReaders: Readers of the enclosing project. projectWriters: Writers of the enclosing project. allAuthenticatedUsers: All authenticated BigQuery users. Maps to similarly-named IAM members.
445 },
446 ],
447 &quot;creationTime&quot;: &quot;A String&quot;, # [Output-only] The time when this dataset was created, in milliseconds since the epoch.
448 &quot;selfLink&quot;: &quot;A String&quot;, # [Output-only] A URL that can be used to access the resource again. You can use this URL in Get or Update requests to the resource.
449 &quot;satisfiesPZS&quot;: True or False, # [Output-only] Reserved for future use.
450 &quot;location&quot;: &quot;A String&quot;, # The geographic location where the dataset should reside. The default value is US. See details at https://cloud.google.com/bigquery/docs/locations.
451 &quot;labels&quot;: { # The labels associated with this dataset. You can use these to organize and group your datasets. You can set this property when inserting or updating a dataset. See Creating and Updating Dataset Labels for more information.
452 &quot;a_key&quot;: &quot;A String&quot;,
453 },
454 &quot;defaultTableExpirationMs&quot;: &quot;A String&quot;, # [Optional] The default lifetime of all tables in the dataset, in milliseconds. The minimum value is 3600000 milliseconds (one hour). Once this property is set, all newly-created tables in the dataset will have an expirationTime property set to the creation time plus the value in this property, and changing the value will only affect new tables, not existing ones. When the expirationTime for a given table is reached, that table will be deleted automatically. If a table&#x27;s expirationTime is modified or removed before the table expires, or if you provide an explicit expirationTime when creating a table, that value takes precedence over the default expiration time indicated by this property.
455 &quot;friendlyName&quot;: &quot;A String&quot;, # [Optional] A descriptive name for the dataset.
456 &quot;defaultPartitionExpirationMs&quot;: &quot;A String&quot;, # [Optional] The default partition expiration for all partitioned tables in the dataset, in milliseconds. Once this property is set, all newly-created partitioned tables in the dataset will have an expirationMs property in the timePartitioning settings set to this value, and changing the value will only affect new tables, not existing ones. The storage in a partition will have an expiration time of its partition time plus this value. Setting this property overrides the use of defaultTableExpirationMs for partitioned tables: only one of defaultTableExpirationMs and defaultPartitionExpirationMs will be used for any new partitioned table. If you provide an explicit timePartitioning.expirationMs when creating or updating a partitioned table, that value takes precedence over the default partition expiration time indicated by this property.
457 }
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700458
459
460Returns:
461 An object of the form:
462
463 {
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700464 &quot;etag&quot;: &quot;A String&quot;, # [Output-only] A hash of the resource.
465 &quot;kind&quot;: &quot;bigquery#dataset&quot;, # [Output-only] The resource type.
466 &quot;description&quot;: &quot;A String&quot;, # [Optional] A user-friendly description of the dataset.
467 &quot;lastModifiedTime&quot;: &quot;A String&quot;, # [Output-only] The date when this dataset or any of its tables was last modified, in milliseconds since the epoch.
468 &quot;datasetReference&quot;: { # [Required] A reference that identifies the dataset.
469 &quot;datasetId&quot;: &quot;A String&quot;, # [Required] A unique ID for this dataset, without the project name. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters.
470 &quot;projectId&quot;: &quot;A String&quot;, # [Optional] The ID of the project containing this dataset.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700471 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700472 &quot;id&quot;: &quot;A String&quot;, # [Output-only] The fully-qualified unique name of the dataset in the format projectId:datasetId. The dataset name without the project name is given in the datasetId field. When creating a new dataset, leave this field blank, and instead specify the datasetId field.
473 &quot;defaultEncryptionConfiguration&quot;: {
474 &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.
475 },
476 &quot;access&quot;: [ # [Optional] An array of objects that define dataset access for one or more entities. You can set this property when inserting or updating a dataset in order to control who is allowed to access the data. If unspecified at dataset creation time, BigQuery adds default dataset access for the following entities: access.specialGroup: projectReaders; access.role: READER; access.specialGroup: projectWriters; access.role: WRITER; access.specialGroup: projectOwners; access.role: OWNER; access.userByEmail: [dataset creator email]; access.role: OWNER;
477 {
478 &quot;role&quot;: &quot;A String&quot;, # [Required] An IAM role ID that should be granted to the user, group, or domain specified in this access entry. The following legacy mappings will be applied: OWNER roles/bigquery.dataOwner WRITER roles/bigquery.dataEditor READER roles/bigquery.dataViewer This field will accept any of the above formats, but will return only the legacy format. For example, if you set this field to &quot;roles/bigquery.dataOwner&quot;, it will be returned back as &quot;OWNER&quot;.
479 &quot;groupByEmail&quot;: &quot;A String&quot;, # [Pick one] An email address of a Google Group to grant access to. Maps to IAM policy member &quot;group:GROUP&quot;.
480 &quot;iamMember&quot;: &quot;A String&quot;, # [Pick one] Some other type of member that appears in the IAM Policy but isn&#x27;t a user, group, domain, or special group.
481 &quot;view&quot;: { # [Pick one] A view from a different dataset to grant access to. Queries executed against that view will have read access to tables in this dataset. The role field is not required when this field is set. If that view is updated by any user, access to the view needs to be granted again via an update operation.
482 &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.
483 &quot;projectId&quot;: &quot;A String&quot;, # [Required] The ID of the project containing this table.
484 &quot;datasetId&quot;: &quot;A String&quot;, # [Required] The ID of the dataset containing this table.
485 },
486 &quot;userByEmail&quot;: &quot;A String&quot;, # [Pick one] An email address of a user to grant access to. For example: fred@example.com. Maps to IAM policy member &quot;user:EMAIL&quot; or &quot;serviceAccount:EMAIL&quot;.
487 &quot;domain&quot;: &quot;A String&quot;, # [Pick one] A domain to grant access to. Any users signed in with the domain specified will be granted the specified access. Example: &quot;example.com&quot;. Maps to IAM policy member &quot;domain:DOMAIN&quot;.
488 &quot;specialGroup&quot;: &quot;A String&quot;, # [Pick one] A special group to grant access to. Possible values include: projectOwners: Owners of the enclosing project. projectReaders: Readers of the enclosing project. projectWriters: Writers of the enclosing project. allAuthenticatedUsers: All authenticated BigQuery users. Maps to similarly-named IAM members.
489 },
490 ],
491 &quot;creationTime&quot;: &quot;A String&quot;, # [Output-only] The time when this dataset was created, in milliseconds since the epoch.
492 &quot;selfLink&quot;: &quot;A String&quot;, # [Output-only] A URL that can be used to access the resource again. You can use this URL in Get or Update requests to the resource.
493 &quot;satisfiesPZS&quot;: True or False, # [Output-only] Reserved for future use.
494 &quot;location&quot;: &quot;A String&quot;, # The geographic location where the dataset should reside. The default value is US. See details at https://cloud.google.com/bigquery/docs/locations.
495 &quot;labels&quot;: { # The labels associated with this dataset. You can use these to organize and group your datasets. You can set this property when inserting or updating a dataset. See Creating and Updating Dataset Labels for more information.
496 &quot;a_key&quot;: &quot;A String&quot;,
497 },
498 &quot;defaultTableExpirationMs&quot;: &quot;A String&quot;, # [Optional] The default lifetime of all tables in the dataset, in milliseconds. The minimum value is 3600000 milliseconds (one hour). Once this property is set, all newly-created tables in the dataset will have an expirationTime property set to the creation time plus the value in this property, and changing the value will only affect new tables, not existing ones. When the expirationTime for a given table is reached, that table will be deleted automatically. If a table&#x27;s expirationTime is modified or removed before the table expires, or if you provide an explicit expirationTime when creating a table, that value takes precedence over the default expiration time indicated by this property.
499 &quot;friendlyName&quot;: &quot;A String&quot;, # [Optional] A descriptive name for the dataset.
500 &quot;defaultPartitionExpirationMs&quot;: &quot;A String&quot;, # [Optional] The default partition expiration for all partitioned tables in the dataset, in milliseconds. Once this property is set, all newly-created partitioned tables in the dataset will have an expirationMs property in the timePartitioning settings set to this value, and changing the value will only affect new tables, not existing ones. The storage in a partition will have an expiration time of its partition time plus this value. Setting this property overrides the use of defaultTableExpirationMs for partitioned tables: only one of defaultTableExpirationMs and defaultPartitionExpirationMs will be used for any new partitioned table. If you provide an explicit timePartitioning.expirationMs when creating or updating a partitioned table, that value takes precedence over the default partition expiration time indicated by this property.
501 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400502</div>
503
504</body></html>