Represents an AccessApproval
Inheritance
$protobuf.rpc.Service > protos.google.cloud.accessapproval.v1.AccessApprovalPackage
@google-cloud/access-approvalConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new AccessApproval service.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
approveApprovalRequest(request)
public approveApprovalRequest(request: google.cloud.accessapproval.v1.IApproveApprovalRequestMessage): Promise<google.cloud.accessapproval.v1.ApprovalRequest>;
Calls ApproveApprovalRequest.
Parameter | |
---|---|
Name | Description |
request |
IApproveApprovalRequestMessage
ApproveApprovalRequestMessage message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
deleteAccessApprovalSettings(request)
public deleteAccessApprovalSettings(request: google.cloud.accessapproval.v1.IDeleteAccessApprovalSettingsMessage): Promise<google.protobuf.Empty>;
Calls DeleteAccessApprovalSettings.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.accessapproval.v1.IDeleteAccessApprovalSettingsMessage
DeleteAccessApprovalSettingsMessage message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
dismissApprovalRequest(request)
public dismissApprovalRequest(request: google.cloud.accessapproval.v1.IDismissApprovalRequestMessage): Promise<google.cloud.accessapproval.v1.ApprovalRequest>;
Calls DismissApprovalRequest.
Parameter | |
---|---|
Name | Description |
request |
IDismissApprovalRequestMessage
DismissApprovalRequestMessage message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
getAccessApprovalServiceAccount(request)
public getAccessApprovalServiceAccount(request: google.cloud.accessapproval.v1.IGetAccessApprovalServiceAccountMessage): Promise<google.cloud.accessapproval.v1.AccessApprovalServiceAccount>;
Calls GetAccessApprovalServiceAccount.
Parameter | |
---|---|
Name | Description |
request |
IGetAccessApprovalServiceAccountMessage
GetAccessApprovalServiceAccountMessage message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
getAccessApprovalSettings(request)
public getAccessApprovalSettings(request: google.cloud.accessapproval.v1.IGetAccessApprovalSettingsMessage): Promise<google.cloud.accessapproval.v1.AccessApprovalSettings>;
Calls GetAccessApprovalSettings.
Parameter | |
---|---|
Name | Description |
request |
IGetAccessApprovalSettingsMessage
GetAccessApprovalSettingsMessage message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
getApprovalRequest(request)
public getApprovalRequest(request: google.cloud.accessapproval.v1.IGetApprovalRequestMessage): Promise<google.cloud.accessapproval.v1.ApprovalRequest>;
Calls GetApprovalRequest.
Parameter | |
---|---|
Name | Description |
request |
IGetApprovalRequestMessage
GetApprovalRequestMessage message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
invalidateApprovalRequest(request)
public invalidateApprovalRequest(request: google.cloud.accessapproval.v1.IInvalidateApprovalRequestMessage): Promise<google.cloud.accessapproval.v1.ApprovalRequest>;
Calls InvalidateApprovalRequest.
Parameter | |
---|---|
Name | Description |
request |
IInvalidateApprovalRequestMessage
InvalidateApprovalRequestMessage message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
listApprovalRequests(request)
public listApprovalRequests(request: google.cloud.accessapproval.v1.IListApprovalRequestsMessage): Promise<google.cloud.accessapproval.v1.ListApprovalRequestsResponse>;
Calls ListApprovalRequests.
Parameter | |
---|---|
Name | Description |
request |
IListApprovalRequestsMessage
ListApprovalRequestsMessage message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
updateAccessApprovalSettings(request)
public updateAccessApprovalSettings(request: google.cloud.accessapproval.v1.IUpdateAccessApprovalSettingsMessage): Promise<google.cloud.accessapproval.v1.AccessApprovalSettings>;
Calls UpdateAccessApprovalSettings.
Parameter | |
---|---|
Name | Description |
request |
IUpdateAccessApprovalSettingsMessage
UpdateAccessApprovalSettingsMessage message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.accessapproval.v1.AccessApprovalSettings> | Promise |