@@ -94,6 +94,20 @@ def delete_dataset(project_id, dataset_id, delete_contents: nil, fields: nil, qu
9494 # Required. Project ID of the requested dataset
9595 # @param [String] dataset_id
9696 # Required. Dataset ID of the requested dataset
97+ # @param [Fixnum] access_policy_version
98+ # Optional. The version of the access policy schema to fetch. Valid values are 0,
99+ # 1, and 3. Requests specifying an invalid value will be rejected. Requests for
100+ # conditional access policy binding in datasets must specify version 3. Dataset
101+ # with no conditional role bindings in access policy may specify any valid value
102+ # or leave the field unset. This field will be maped to [IAM Policy version] (
103+ # https://cloud.google.com/iam/docs/policies#versions) and will be used to fetch
104+ # policy from IAM. If unset or if 0 or 1 value is used for dataset with
105+ # conditional bindings, access entry with condition will have role string
106+ # appended by 'withcond' string followed by a hash value. For example : ` "
107+ # access": [ ` "role": "roles/bigquery.
108+ # dataViewer_with_conditionalbinding_7a34awqsda", "userByEmail": "user@example.
109+ # com", ` ] ` Please refer https://cloud.google.com/iam/docs/troubleshooting-
110+ # withcond for more details.
97111 # @param [String] dataset_view
98112 # Optional. Specifies the view that determines which dataset information is
99113 # returned. By default, metadata and ACL information are returned.
@@ -114,12 +128,13 @@ def delete_dataset(project_id, dataset_id, delete_contents: nil, fields: nil, qu
114128 # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
115129 # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
116130 # @raise [Google::Apis::AuthorizationError] Authorization is required
117- def get_dataset ( project_id , dataset_id , dataset_view : nil , fields : nil , quota_user : nil , options : nil , &block )
131+ def get_dataset ( project_id , dataset_id , access_policy_version : nil , dataset_view : nil , fields : nil , quota_user : nil , options : nil , &block )
118132 command = make_simple_command ( :get , 'projects/{+projectId}/datasets/{+datasetId}' , options )
119133 command . response_representation = Google ::Apis ::BigqueryV2 ::Dataset ::Representation
120134 command . response_class = Google ::Apis ::BigqueryV2 ::Dataset
121135 command . params [ 'projectId' ] = project_id unless project_id . nil?
122136 command . params [ 'datasetId' ] = dataset_id unless dataset_id . nil?
137+ command . query [ 'accessPolicyVersion' ] = access_policy_version unless access_policy_version . nil?
123138 command . query [ 'datasetView' ] = dataset_view unless dataset_view . nil?
124139 command . query [ 'fields' ] = fields unless fields . nil?
125140 command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
@@ -130,6 +145,18 @@ def get_dataset(project_id, dataset_id, dataset_view: nil, fields: nil, quota_us
130145 # @param [String] project_id
131146 # Required. Project ID of the new dataset
132147 # @param [Google::Apis::BigqueryV2::Dataset] dataset_object
148+ # @param [Fixnum] access_policy_version
149+ # Optional. The version of the provided access policy schema. Valid values are 0,
150+ # 1, and 3. Requests specifying an invalid value will be rejected. This version
151+ # refers to the schema version of the access policy and not the version of
152+ # access policy. This field's value can be equal or more than the access policy
153+ # schema provided in the request. For example, * Requests with conditional
154+ # access policy binding in datasets must specify version 3. * But dataset with
155+ # no conditional role bindings in access policy may specify any valid value or
156+ # leave the field unset. If unset or if 0 or 1 value is used for dataset with
157+ # conditional bindings, request will be rejected. This field will be maped to
158+ # IAM Policy version (https://cloud.google.com/iam/docs/policies#versions) and
159+ # will be used to set policy in IAM.
133160 # @param [String] fields
134161 # Selector specifying which fields to include in a partial response.
135162 # @param [String] quota_user
@@ -147,13 +174,14 @@ def get_dataset(project_id, dataset_id, dataset_view: nil, fields: nil, quota_us
147174 # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
148175 # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
149176 # @raise [Google::Apis::AuthorizationError] Authorization is required
150- def insert_dataset ( project_id , dataset_object = nil , fields : nil , quota_user : nil , options : nil , &block )
177+ def insert_dataset ( project_id , dataset_object = nil , access_policy_version : nil , fields : nil , quota_user : nil , options : nil , &block )
151178 command = make_simple_command ( :post , 'projects/{+projectId}/datasets' , options )
152179 command . request_representation = Google ::Apis ::BigqueryV2 ::Dataset ::Representation
153180 command . request_object = dataset_object
154181 command . response_representation = Google ::Apis ::BigqueryV2 ::Dataset ::Representation
155182 command . response_class = Google ::Apis ::BigqueryV2 ::Dataset
156183 command . params [ 'projectId' ] = project_id unless project_id . nil?
184+ command . query [ 'accessPolicyVersion' ] = access_policy_version unless access_policy_version . nil?
157185 command . query [ 'fields' ] = fields unless fields . nil?
158186 command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
159187 execute_or_queue_command ( command , &block )
@@ -216,6 +244,20 @@ def list_datasets(project_id, all: nil, filter: nil, max_results: nil, page_toke
216244 # @param [String] dataset_id
217245 # Required. Dataset ID of the dataset being updated
218246 # @param [Google::Apis::BigqueryV2::Dataset] dataset_object
247+ # @param [Fixnum] access_policy_version
248+ # Optional. The version of the provided access policy schema. Valid values are 0,
249+ # 1, and 3. Requests specifying an invalid value will be rejected. This version
250+ # refers to the schema version of the access policy and not the version of
251+ # access policy. This field's value can be equal or more than the access policy
252+ # schema provided in the request. For example, * Operations updating conditional
253+ # access policy binding in datasets must specify version 3. Some of the
254+ # operations are : - Adding a new access policy entry with condition. - Removing
255+ # an access policy entry with condition. - Updating an access policy entry with
256+ # condition. * But dataset with no conditional role bindings in access policy
257+ # may specify any valid value or leave the field unset. If unset or if 0 or 1
258+ # value is used for dataset with conditional bindings, request will be rejected.
259+ # This field will be maped to IAM Policy version (https://cloud.google.com/iam/
260+ # docs/policies#versions) and will be used to set policy in IAM.
219261 # @param [String] fields
220262 # Selector specifying which fields to include in a partial response.
221263 # @param [String] quota_user
@@ -233,14 +275,15 @@ def list_datasets(project_id, all: nil, filter: nil, max_results: nil, page_toke
233275 # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
234276 # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
235277 # @raise [Google::Apis::AuthorizationError] Authorization is required
236- def patch_dataset ( project_id , dataset_id , dataset_object = nil , fields : nil , quota_user : nil , options : nil , &block )
278+ def patch_dataset ( project_id , dataset_id , dataset_object = nil , access_policy_version : nil , fields : nil , quota_user : nil , options : nil , &block )
237279 command = make_simple_command ( :patch , 'projects/{+projectId}/datasets/{+datasetId}' , options )
238280 command . request_representation = Google ::Apis ::BigqueryV2 ::Dataset ::Representation
239281 command . request_object = dataset_object
240282 command . response_representation = Google ::Apis ::BigqueryV2 ::Dataset ::Representation
241283 command . response_class = Google ::Apis ::BigqueryV2 ::Dataset
242284 command . params [ 'projectId' ] = project_id unless project_id . nil?
243285 command . params [ 'datasetId' ] = dataset_id unless dataset_id . nil?
286+ command . query [ 'accessPolicyVersion' ] = access_policy_version unless access_policy_version . nil?
244287 command . query [ 'fields' ] = fields unless fields . nil?
245288 command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
246289 execute_or_queue_command ( command , &block )
@@ -292,6 +335,20 @@ def undelete_dataset(project_id, dataset_id, undelete_dataset_request_object = n
292335 # @param [String] dataset_id
293336 # Required. Dataset ID of the dataset being updated
294337 # @param [Google::Apis::BigqueryV2::Dataset] dataset_object
338+ # @param [Fixnum] access_policy_version
339+ # Optional. The version of the provided access policy schema. Valid values are 0,
340+ # 1, and 3. Requests specifying an invalid value will be rejected. This version
341+ # refers to the schema version of the access policy and not the version of
342+ # access policy. This field's value can be equal or more than the access policy
343+ # schema provided in the request. For example, * Operations updating conditional
344+ # access policy binding in datasets must specify version 3. Some of the
345+ # operations are : - Adding a new access policy entry with condition. - Removing
346+ # an access policy entry with condition. - Updating an access policy entry with
347+ # condition. * But dataset with no conditional role bindings in access policy
348+ # may specify any valid value or leave the field unset. If unset or if 0 or 1
349+ # value is used for dataset with conditional bindings, request will be rejected.
350+ # This field will be maped to IAM Policy version (https://cloud.google.com/iam/
351+ # docs/policies#versions) and will be used to set policy in IAM.
295352 # @param [String] fields
296353 # Selector specifying which fields to include in a partial response.
297354 # @param [String] quota_user
@@ -309,14 +366,15 @@ def undelete_dataset(project_id, dataset_id, undelete_dataset_request_object = n
309366 # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
310367 # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
311368 # @raise [Google::Apis::AuthorizationError] Authorization is required
312- def update_dataset ( project_id , dataset_id , dataset_object = nil , fields : nil , quota_user : nil , options : nil , &block )
369+ def update_dataset ( project_id , dataset_id , dataset_object = nil , access_policy_version : nil , fields : nil , quota_user : nil , options : nil , &block )
313370 command = make_simple_command ( :put , 'projects/{+projectId}/datasets/{+datasetId}' , options )
314371 command . request_representation = Google ::Apis ::BigqueryV2 ::Dataset ::Representation
315372 command . request_object = dataset_object
316373 command . response_representation = Google ::Apis ::BigqueryV2 ::Dataset ::Representation
317374 command . response_class = Google ::Apis ::BigqueryV2 ::Dataset
318375 command . params [ 'projectId' ] = project_id unless project_id . nil?
319376 command . params [ 'datasetId' ] = dataset_id unless dataset_id . nil?
377+ command . query [ 'accessPolicyVersion' ] = access_policy_version unless access_policy_version . nil?
320378 command . query [ 'fields' ] = fields unless fields . nil?
321379 command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
322380 execute_or_queue_command ( command , &block )
0 commit comments