Class protos.google.cloud.datacatalog.v1.PolicyTagManager (4.7.0)

Represents a PolicyTagManager

Inheritance

$protobuf.rpc.Service > protos.google.cloud.datacatalog.v1.PolicyTagManager

Package

@google-cloud/datacatalog

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new PolicyTagManager service.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): PolicyTagManager;

Creates new PolicyTagManager service using the specified rpc implementation.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
Type Description
PolicyTagManager

RPC service. Useful where requests and/or responses are streamed.

createPolicyTag(request, callback)

public createPolicyTag(request: google.cloud.datacatalog.v1.ICreatePolicyTagRequest, callback: google.cloud.datacatalog.v1.PolicyTagManager.CreatePolicyTagCallback): void;

Calls CreatePolicyTag.

Parameters
Name Description
request ICreatePolicyTagRequest

CreatePolicyTagRequest message or plain object

callback CreatePolicyTagCallback

Node-style callback called with the error, if any, and PolicyTag

Returns
Type Description
void

createPolicyTag(request)

public createPolicyTag(request: google.cloud.datacatalog.v1.ICreatePolicyTagRequest): Promise<google.cloud.datacatalog.v1.PolicyTag>;

Calls CreatePolicyTag.

Parameter
Name Description
request ICreatePolicyTagRequest

CreatePolicyTagRequest message or plain object

Returns
Type Description
Promise<google.cloud.datacatalog.v1.PolicyTag>

Promise

createTaxonomy(request, callback)

public createTaxonomy(request: google.cloud.datacatalog.v1.ICreateTaxonomyRequest, callback: google.cloud.datacatalog.v1.PolicyTagManager.CreateTaxonomyCallback): void;

Calls CreateTaxonomy.

Parameters
Name Description
request ICreateTaxonomyRequest

CreateTaxonomyRequest message or plain object

callback CreateTaxonomyCallback

Node-style callback called with the error, if any, and Taxonomy

Returns
Type Description
void

createTaxonomy(request)

public createTaxonomy(request: google.cloud.datacatalog.v1.ICreateTaxonomyRequest): Promise<google.cloud.datacatalog.v1.Taxonomy>;

Calls CreateTaxonomy.

Parameter
Name Description
request ICreateTaxonomyRequest

CreateTaxonomyRequest message or plain object

Returns
Type Description
Promise<google.cloud.datacatalog.v1.Taxonomy>

Promise

deletePolicyTag(request, callback)

public deletePolicyTag(request: google.cloud.datacatalog.v1.IDeletePolicyTagRequest, callback: google.cloud.datacatalog.v1.PolicyTagManager.DeletePolicyTagCallback): void;

Calls DeletePolicyTag.

Parameters
Name Description
request IDeletePolicyTagRequest

DeletePolicyTagRequest message or plain object

callback DeletePolicyTagCallback

Node-style callback called with the error, if any, and Empty

Returns
Type Description
void

deletePolicyTag(request)

public deletePolicyTag(request: google.cloud.datacatalog.v1.IDeletePolicyTagRequest): Promise<google.protobuf.Empty>;

Calls DeletePolicyTag.

Parameter
Name Description
request IDeletePolicyTagRequest

DeletePolicyTagRequest message or plain object

Returns
Type Description
Promise<google.protobuf.Empty>

Promise

deleteTaxonomy(request, callback)

public deleteTaxonomy(request: google.cloud.datacatalog.v1.IDeleteTaxonomyRequest, callback: google.cloud.datacatalog.v1.PolicyTagManager.DeleteTaxonomyCallback): void;

Calls DeleteTaxonomy.

Parameters
Name Description
request IDeleteTaxonomyRequest

DeleteTaxonomyRequest message or plain object

callback DeleteTaxonomyCallback

Node-style callback called with the error, if any, and Empty

Returns
Type Description
void

deleteTaxonomy(request)

public deleteTaxonomy(request: google.cloud.datacatalog.v1.IDeleteTaxonomyRequest): Promise<google.protobuf.Empty>;

Calls DeleteTaxonomy.

Parameter
Name Description
request IDeleteTaxonomyRequest

DeleteTaxonomyRequest message or plain object

Returns
Type Description
Promise<google.protobuf.Empty>

Promise

getIamPolicy(request, callback)

public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest, callback: google.cloud.datacatalog.v1.PolicyTagManager.GetIamPolicyCallback): void;

Calls GetIamPolicy.

Parameters
Name Description
request IGetIamPolicyRequest

GetIamPolicyRequest message or plain object

callback GetIamPolicyCallback

Node-style callback called with the error, if any, and Policy

Returns
Type Description
void

getIamPolicy(request)

public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest): Promise<google.iam.v1.Policy>;

Calls GetIamPolicy.

Parameter
Name Description
request IGetIamPolicyRequest

GetIamPolicyRequest message or plain object

Returns
Type Description
Promise<google.iam.v1.Policy>

Promise

getPolicyTag(request, callback)

public getPolicyTag(request: google.cloud.datacatalog.v1.IGetPolicyTagRequest, callback: google.cloud.datacatalog.v1.PolicyTagManager.GetPolicyTagCallback): void;

Calls GetPolicyTag.

Parameters
Name Description
request IGetPolicyTagRequest

GetPolicyTagRequest message or plain object

callback GetPolicyTagCallback

Node-style callback called with the error, if any, and PolicyTag

Returns
Type Description
void

getPolicyTag(request)

public getPolicyTag(request: google.cloud.datacatalog.v1.IGetPolicyTagRequest): Promise<google.cloud.datacatalog.v1.PolicyTag>;

Calls GetPolicyTag.

Parameter
Name Description
request IGetPolicyTagRequest

GetPolicyTagRequest message or plain object

Returns
Type Description
Promise<google.cloud.datacatalog.v1.PolicyTag>

Promise

getTaxonomy(request, callback)

public getTaxonomy(request: google.cloud.datacatalog.v1.IGetTaxonomyRequest, callback: google.cloud.datacatalog.v1.PolicyTagManager.GetTaxonomyCallback): void;

Calls GetTaxonomy.

Parameters
Name Description
request IGetTaxonomyRequest

GetTaxonomyRequest message or plain object

callback GetTaxonomyCallback

Node-style callback called with the error, if any, and Taxonomy

Returns
Type Description
void

getTaxonomy(request)

public getTaxonomy(request: google.cloud.datacatalog.v1.IGetTaxonomyRequest): Promise<google.cloud.datacatalog.v1.Taxonomy>;

Calls GetTaxonomy.

Parameter
Name Description
request IGetTaxonomyRequest

GetTaxonomyRequest message or plain object

Returns
Type Description
Promise<google.cloud.datacatalog.v1.Taxonomy>

Promise

listPolicyTags(request, callback)

public listPolicyTags(request: google.cloud.datacatalog.v1.IListPolicyTagsRequest, callback: google.cloud.datacatalog.v1.PolicyTagManager.ListPolicyTagsCallback): void;

Calls ListPolicyTags.

Parameters
Name Description
request IListPolicyTagsRequest

ListPolicyTagsRequest message or plain object

callback ListPolicyTagsCallback

Node-style callback called with the error, if any, and ListPolicyTagsResponse

Returns
Type Description
void

listPolicyTags(request)

public listPolicyTags(request: google.cloud.datacatalog.v1.IListPolicyTagsRequest): Promise<google.cloud.datacatalog.v1.ListPolicyTagsResponse>;

Calls ListPolicyTags.

Parameter
Name Description
request IListPolicyTagsRequest

ListPolicyTagsRequest message or plain object

Returns
Type Description
Promise<google.cloud.datacatalog.v1.ListPolicyTagsResponse>

Promise

listTaxonomies(request, callback)

public listTaxonomies(request: google.cloud.datacatalog.v1.IListTaxonomiesRequest, callback: google.cloud.datacatalog.v1.PolicyTagManager.ListTaxonomiesCallback): void;

Calls ListTaxonomies.

Parameters
Name Description
request IListTaxonomiesRequest

ListTaxonomiesRequest message or plain object

callback ListTaxonomiesCallback

Node-style callback called with the error, if any, and ListTaxonomiesResponse

Returns
Type Description
void

listTaxonomies(request)

public listTaxonomies(request: google.cloud.datacatalog.v1.IListTaxonomiesRequest): Promise<google.cloud.datacatalog.v1.ListTaxonomiesResponse>;

Calls ListTaxonomies.

Parameter
Name Description
request IListTaxonomiesRequest

ListTaxonomiesRequest message or plain object

Returns
Type Description
Promise<google.cloud.datacatalog.v1.ListTaxonomiesResponse>

Promise

setIamPolicy(request, callback)

public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest, callback: google.cloud.datacatalog.v1.PolicyTagManager.SetIamPolicyCallback): void;

Calls SetIamPolicy.

Parameters
Name Description
request ISetIamPolicyRequest

SetIamPolicyRequest message or plain object

callback SetIamPolicyCallback

Node-style callback called with the error, if any, and Policy

Returns
Type Description
void

setIamPolicy(request)

public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest): Promise<google.iam.v1.Policy>;

Calls SetIamPolicy.

Parameter
Name Description
request ISetIamPolicyRequest

SetIamPolicyRequest message or plain object

Returns
Type Description
Promise<google.iam.v1.Policy>

Promise

testIamPermissions(request, callback)

public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest, callback: google.cloud.datacatalog.v1.PolicyTagManager.TestIamPermissionsCallback): void;

Calls TestIamPermissions.

Parameters
Name Description
request ITestIamPermissionsRequest

TestIamPermissionsRequest message or plain object

callback TestIamPermissionsCallback

Node-style callback called with the error, if any, and TestIamPermissionsResponse

Returns
Type Description
void

testIamPermissions(request)

public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest): Promise<google.iam.v1.TestIamPermissionsResponse>;

Calls TestIamPermissions.

Parameter
Name Description
request ITestIamPermissionsRequest

TestIamPermissionsRequest message or plain object

Returns
Type Description
Promise<google.iam.v1.TestIamPermissionsResponse>

Promise

updatePolicyTag(request, callback)

public updatePolicyTag(request: google.cloud.datacatalog.v1.IUpdatePolicyTagRequest, callback: google.cloud.datacatalog.v1.PolicyTagManager.UpdatePolicyTagCallback): void;

Calls UpdatePolicyTag.

Parameters
Name Description
request IUpdatePolicyTagRequest

UpdatePolicyTagRequest message or plain object

callback UpdatePolicyTagCallback

Node-style callback called with the error, if any, and PolicyTag

Returns
Type Description
void

updatePolicyTag(request)

public updatePolicyTag(request: google.cloud.datacatalog.v1.IUpdatePolicyTagRequest): Promise<google.cloud.datacatalog.v1.PolicyTag>;

Calls UpdatePolicyTag.

Parameter
Name Description
request IUpdatePolicyTagRequest

UpdatePolicyTagRequest message or plain object

Returns
Type Description
Promise<google.cloud.datacatalog.v1.PolicyTag>

Promise

updateTaxonomy(request, callback)

public updateTaxonomy(request: google.cloud.datacatalog.v1.IUpdateTaxonomyRequest, callback: google.cloud.datacatalog.v1.PolicyTagManager.UpdateTaxonomyCallback): void;

Calls UpdateTaxonomy.

Parameters
Name Description
request IUpdateTaxonomyRequest

UpdateTaxonomyRequest message or plain object

callback UpdateTaxonomyCallback

Node-style callback called with the error, if any, and Taxonomy

Returns
Type Description
void

updateTaxonomy(request)

public updateTaxonomy(request: google.cloud.datacatalog.v1.IUpdateTaxonomyRequest): Promise<google.cloud.datacatalog.v1.Taxonomy>;

Calls UpdateTaxonomy.

Parameter
Name Description
request IUpdateTaxonomyRequest

UpdateTaxonomyRequest message or plain object

Returns
Type Description
Promise<google.cloud.datacatalog.v1.Taxonomy>

Promise