Skip to main content

authorized_views

Creates, updates, deletes, gets or lists an authorized_views resource.

Overview

Nameauthorized_views
TypeResource
Idgoogle.bigtableadmin.authorized_views

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. The name of this AuthorizedView. Values are of the form projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}
deletionProtectionbooleanSet to true to make the AuthorizedView protected against deletion. The parent Table and containing Instance cannot be deleted if an AuthorizedView has this bit set.
etagstringThe etag for this AuthorizedView. If this is provided on update, it must match the server's etag. The server returns ABORTED error on a mismatched etag.
subsetViewobjectAn AuthorizedView permitting access to an explicit subset of a Table. (id: GoogleBigtableAdminV2AuthorizedViewSubsetView)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, instancesId, tablesId, authorizedViewsIdviewGets information from a specified AuthorizedView.
listselectprojectsId, instancesId, tablesIdpageSize, pageToken, viewLists all AuthorizedViews from a specific table.
createinsertprojectsId, instancesId, tablesIdauthorizedViewIdCreates a new AuthorizedView in a table.
patchupdateprojectsId, instancesId, tablesId, authorizedViewsIdupdateMask, ignoreWarningsUpdates an AuthorizedView in a table.
deletedeleteprojectsId, instancesId, tablesId, authorizedViewsIdetagPermanently deletes a specified AuthorizedView.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
authorizedViewsIdstring
instancesIdstring
projectsIdstring
tablesIdstring
authorizedViewIdstring
etagstring
ignoreWarningsboolean
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)
viewstring

SELECT examples

Gets information from a specified AuthorizedView.

SELECT
name,
deletionProtection,
etag,
subsetView
FROM google.bigtableadmin.authorized_views
WHERE projectsId = '{{ projectsId }}' -- required
AND instancesId = '{{ instancesId }}' -- required
AND tablesId = '{{ tablesId }}' -- required
AND authorizedViewsId = '{{ authorizedViewsId }}' -- required
AND view = '{{ view }}';

INSERT examples

Creates a new AuthorizedView in a table.

INSERT INTO google.bigtableadmin.authorized_views (
data__name,
data__subsetView,
data__etag,
data__deletionProtection,
projectsId,
instancesId,
tablesId,
authorizedViewId
)
SELECT
'{{ name }}',
'{{ subsetView }}',
'{{ etag }}',
{{ deletionProtection }},
'{{ projectsId }}',
'{{ instancesId }}',
'{{ tablesId }}',
'{{ authorizedViewId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates an AuthorizedView in a table.

UPDATE google.bigtableadmin.authorized_views
SET
data__name = '{{ name }}',
data__subsetView = '{{ subsetView }}',
data__etag = '{{ etag }}',
data__deletionProtection = {{ deletionProtection }}
WHERE
projectsId = '{{ projectsId }}' --required
AND instancesId = '{{ instancesId }}' --required
AND tablesId = '{{ tablesId }}' --required
AND authorizedViewsId = '{{ authorizedViewsId }}' --required
AND updateMask = '{{ updateMask}}'
AND ignoreWarnings = {{ ignoreWarnings}}
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Permanently deletes a specified AuthorizedView.

DELETE FROM google.bigtableadmin.authorized_views
WHERE projectsId = '{{ projectsId }}' --required
AND instancesId = '{{ instancesId }}' --required
AND tablesId = '{{ tablesId }}' --required
AND authorizedViewsId = '{{ authorizedViewsId }}' --required
AND etag = '{{ etag }}';