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:

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, authorizedViewsIdignoreWarnings, updateMaskUpdates 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__deletionProtection,
data__etag,
data__name,
data__subsetView,
projectsId,
instancesId,
tablesId,
authorizedViewId
)
SELECT
{{ deletionProtection }},
'{{ etag }}',
'{{ name }}',
'{{ subsetView }}',
'{{ 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__deletionProtection = {{ deletionProtection }},
data__etag = '{{ etag }}',
data__name = '{{ name }}',
data__subsetView = '{{ subsetView }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND instancesId = '{{ instancesId }}' --required
AND tablesId = '{{ tablesId }}' --required
AND authorizedViewsId = '{{ authorizedViewsId }}' --required
AND ignoreWarnings = {{ ignoreWarnings}}
AND updateMask = '{{ updateMask}}'
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 }}'
;