Class protos.google.cloud.accessapproval.v1.AccessApproval (2.2.2)

Represents an AccessApproval

Inheritance

$protobuf.rpc.Service > protos.google.cloud.accessapproval.v1.AccessApproval

Package

@google-cloud/access-approval

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new AccessApproval service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

approveApprovalRequest(request, callback)

public approveApprovalRequest(request: google.cloud.accessapproval.v1.IApproveApprovalRequestMessage, callback: google.cloud.accessapproval.v1.AccessApproval.ApproveApprovalRequestCallback): void;

Calls ApproveApprovalRequest.

Parameters
NameDescription
request IApproveApprovalRequestMessage

ApproveApprovalRequestMessage message or plain object

callback google.cloud.accessapproval.v1.AccessApproval.ApproveApprovalRequestCallback

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

Returns
TypeDescription
void

approveApprovalRequest(request)

public approveApprovalRequest(request: google.cloud.accessapproval.v1.IApproveApprovalRequestMessage): Promise<google.cloud.accessapproval.v1.ApprovalRequest>;

Calls ApproveApprovalRequest.

Parameter
NameDescription
request IApproveApprovalRequestMessage

ApproveApprovalRequestMessage message or plain object

Returns
TypeDescription
Promise<google.cloud.accessapproval.v1.ApprovalRequest>

Promise

create(rpcImpl, requestDelimited, responseDelimited)

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

Creates new AccessApproval service using the specified rpc implementation.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
AccessApproval

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

deleteAccessApprovalSettings(request, callback)

public deleteAccessApprovalSettings(request: google.cloud.accessapproval.v1.IDeleteAccessApprovalSettingsMessage, callback: google.cloud.accessapproval.v1.AccessApproval.DeleteAccessApprovalSettingsCallback): void;

Calls DeleteAccessApprovalSettings.

Parameters
NameDescription
request google.cloud.accessapproval.v1.IDeleteAccessApprovalSettingsMessage

DeleteAccessApprovalSettingsMessage message or plain object

callback google.cloud.accessapproval.v1.AccessApproval.DeleteAccessApprovalSettingsCallback

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

Returns
TypeDescription
void

deleteAccessApprovalSettings(request)

public deleteAccessApprovalSettings(request: google.cloud.accessapproval.v1.IDeleteAccessApprovalSettingsMessage): Promise<google.protobuf.Empty>;

Calls DeleteAccessApprovalSettings.

Parameter
NameDescription
request google.cloud.accessapproval.v1.IDeleteAccessApprovalSettingsMessage

DeleteAccessApprovalSettingsMessage message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

dismissApprovalRequest(request, callback)

public dismissApprovalRequest(request: google.cloud.accessapproval.v1.IDismissApprovalRequestMessage, callback: google.cloud.accessapproval.v1.AccessApproval.DismissApprovalRequestCallback): void;

Calls DismissApprovalRequest.

Parameters
NameDescription
request IDismissApprovalRequestMessage

DismissApprovalRequestMessage message or plain object

callback google.cloud.accessapproval.v1.AccessApproval.DismissApprovalRequestCallback

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

Returns
TypeDescription
void

dismissApprovalRequest(request)

public dismissApprovalRequest(request: google.cloud.accessapproval.v1.IDismissApprovalRequestMessage): Promise<google.cloud.accessapproval.v1.ApprovalRequest>;

Calls DismissApprovalRequest.

Parameter
NameDescription
request IDismissApprovalRequestMessage

DismissApprovalRequestMessage message or plain object

Returns
TypeDescription
Promise<google.cloud.accessapproval.v1.ApprovalRequest>

Promise

getAccessApprovalServiceAccount(request, callback)

public getAccessApprovalServiceAccount(request: google.cloud.accessapproval.v1.IGetAccessApprovalServiceAccountMessage, callback: google.cloud.accessapproval.v1.AccessApproval.GetAccessApprovalServiceAccountCallback): void;

Calls GetAccessApprovalServiceAccount.

Parameters
NameDescription
request IGetAccessApprovalServiceAccountMessage

GetAccessApprovalServiceAccountMessage message or plain object

callback google.cloud.accessapproval.v1.AccessApproval.GetAccessApprovalServiceAccountCallback

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

Returns
TypeDescription
void

getAccessApprovalServiceAccount(request)

public getAccessApprovalServiceAccount(request: google.cloud.accessapproval.v1.IGetAccessApprovalServiceAccountMessage): Promise<google.cloud.accessapproval.v1.AccessApprovalServiceAccount>;

Calls GetAccessApprovalServiceAccount.

Parameter
NameDescription
request IGetAccessApprovalServiceAccountMessage

GetAccessApprovalServiceAccountMessage message or plain object

Returns
TypeDescription
Promise<google.cloud.accessapproval.v1.AccessApprovalServiceAccount>

Promise

getAccessApprovalSettings(request, callback)

public getAccessApprovalSettings(request: google.cloud.accessapproval.v1.IGetAccessApprovalSettingsMessage, callback: google.cloud.accessapproval.v1.AccessApproval.GetAccessApprovalSettingsCallback): void;

Calls GetAccessApprovalSettings.

Parameters
NameDescription
request IGetAccessApprovalSettingsMessage

GetAccessApprovalSettingsMessage message or plain object

callback google.cloud.accessapproval.v1.AccessApproval.GetAccessApprovalSettingsCallback

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

Returns
TypeDescription
void

getAccessApprovalSettings(request)

public getAccessApprovalSettings(request: google.cloud.accessapproval.v1.IGetAccessApprovalSettingsMessage): Promise<google.cloud.accessapproval.v1.AccessApprovalSettings>;

Calls GetAccessApprovalSettings.

Parameter
NameDescription
request IGetAccessApprovalSettingsMessage

GetAccessApprovalSettingsMessage message or plain object

Returns
TypeDescription
Promise<google.cloud.accessapproval.v1.AccessApprovalSettings>

Promise

getApprovalRequest(request, callback)

public getApprovalRequest(request: google.cloud.accessapproval.v1.IGetApprovalRequestMessage, callback: google.cloud.accessapproval.v1.AccessApproval.GetApprovalRequestCallback): void;

Calls GetApprovalRequest.

Parameters
NameDescription
request IGetApprovalRequestMessage

GetApprovalRequestMessage message or plain object

callback google.cloud.accessapproval.v1.AccessApproval.GetApprovalRequestCallback

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

Returns
TypeDescription
void

getApprovalRequest(request)

public getApprovalRequest(request: google.cloud.accessapproval.v1.IGetApprovalRequestMessage): Promise<google.cloud.accessapproval.v1.ApprovalRequest>;

Calls GetApprovalRequest.

Parameter
NameDescription
request IGetApprovalRequestMessage

GetApprovalRequestMessage message or plain object

Returns
TypeDescription
Promise<google.cloud.accessapproval.v1.ApprovalRequest>

Promise

invalidateApprovalRequest(request, callback)

public invalidateApprovalRequest(request: google.cloud.accessapproval.v1.IInvalidateApprovalRequestMessage, callback: google.cloud.accessapproval.v1.AccessApproval.InvalidateApprovalRequestCallback): void;

Calls InvalidateApprovalRequest.

Parameters
NameDescription
request IInvalidateApprovalRequestMessage

InvalidateApprovalRequestMessage message or plain object

callback google.cloud.accessapproval.v1.AccessApproval.InvalidateApprovalRequestCallback

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

Returns
TypeDescription
void

invalidateApprovalRequest(request)

public invalidateApprovalRequest(request: google.cloud.accessapproval.v1.IInvalidateApprovalRequestMessage): Promise<google.cloud.accessapproval.v1.ApprovalRequest>;

Calls InvalidateApprovalRequest.

Parameter
NameDescription
request IInvalidateApprovalRequestMessage

InvalidateApprovalRequestMessage message or plain object

Returns
TypeDescription
Promise<google.cloud.accessapproval.v1.ApprovalRequest>

Promise

listApprovalRequests(request, callback)

public listApprovalRequests(request: google.cloud.accessapproval.v1.IListApprovalRequestsMessage, callback: google.cloud.accessapproval.v1.AccessApproval.ListApprovalRequestsCallback): void;

Calls ListApprovalRequests.

Parameters
NameDescription
request IListApprovalRequestsMessage

ListApprovalRequestsMessage message or plain object

callback google.cloud.accessapproval.v1.AccessApproval.ListApprovalRequestsCallback

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

Returns
TypeDescription
void

listApprovalRequests(request)

public listApprovalRequests(request: google.cloud.accessapproval.v1.IListApprovalRequestsMessage): Promise<google.cloud.accessapproval.v1.ListApprovalRequestsResponse>;

Calls ListApprovalRequests.

Parameter
NameDescription
request IListApprovalRequestsMessage

ListApprovalRequestsMessage message or plain object

Returns
TypeDescription
Promise<google.cloud.accessapproval.v1.ListApprovalRequestsResponse>

Promise

updateAccessApprovalSettings(request, callback)

public updateAccessApprovalSettings(request: google.cloud.accessapproval.v1.IUpdateAccessApprovalSettingsMessage, callback: google.cloud.accessapproval.v1.AccessApproval.UpdateAccessApprovalSettingsCallback): void;

Calls UpdateAccessApprovalSettings.

Parameters
NameDescription
request IUpdateAccessApprovalSettingsMessage

UpdateAccessApprovalSettingsMessage message or plain object

callback google.cloud.accessapproval.v1.AccessApproval.UpdateAccessApprovalSettingsCallback

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

Returns
TypeDescription
void

updateAccessApprovalSettings(request)

public updateAccessApprovalSettings(request: google.cloud.accessapproval.v1.IUpdateAccessApprovalSettingsMessage): Promise<google.cloud.accessapproval.v1.AccessApprovalSettings>;

Calls UpdateAccessApprovalSettings.

Parameter
NameDescription
request IUpdateAccessApprovalSettingsMessage

UpdateAccessApprovalSettingsMessage message or plain object

Returns
TypeDescription
Promise<google.cloud.accessapproval.v1.AccessApprovalSettings>

Promise