Represents a SecretManagerService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.secretmanager.v1.SecretManagerServicePackage
@google-cloud/secret-managerConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new SecretManagerService service.
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Methods
accessSecretVersion(request, callback)
public accessSecretVersion(request: google.cloud.secretmanager.v1.IAccessSecretVersionRequest, callback: google.cloud.secretmanager.v1.SecretManagerService.AccessSecretVersionCallback): void;
Calls AccessSecretVersion.
Name | Description |
request |
IAccessSecretVersionRequest
AccessSecretVersionRequest message or plain object |
callback |
google.cloud.secretmanager.v1.SecretManagerService.AccessSecretVersionCallback
Node-style callback called with the error, if any, and AccessSecretVersionResponse |
Type | Description |
void |
accessSecretVersion(request)
public accessSecretVersion(request: google.cloud.secretmanager.v1.IAccessSecretVersionRequest): Promise<google.cloud.secretmanager.v1.AccessSecretVersionResponse>;
Calls AccessSecretVersion.
Name | Description |
request |
IAccessSecretVersionRequest
AccessSecretVersionRequest message or plain object |
Type | Description |
Promise<google.cloud.secretmanager.v1.AccessSecretVersionResponse> | Promise |
addSecretVersion(request, callback)
public addSecretVersion(request: google.cloud.secretmanager.v1.IAddSecretVersionRequest, callback: google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersionCallback): void;
Calls AddSecretVersion.
Name | Description |
request |
IAddSecretVersionRequest
AddSecretVersionRequest message or plain object |
callback |
google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersionCallback
Node-style callback called with the error, if any, and SecretVersion |
Type | Description |
void |
addSecretVersion(request)
public addSecretVersion(request: google.cloud.secretmanager.v1.IAddSecretVersionRequest): Promise<google.cloud.secretmanager.v1.SecretVersion>;
Calls AddSecretVersion.
Name | Description |
request |
IAddSecretVersionRequest
AddSecretVersionRequest message or plain object |
Type | Description |
Promise<google.cloud.secretmanager.v1.SecretVersion> | Promise |
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): SecretManagerService;
Creates new SecretManagerService service using the specified rpc implementation.
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Type | Description |
SecretManagerService | RPC service. Useful where requests and/or responses are streamed. |
createSecret(request, callback)
public createSecret(request: google.cloud.secretmanager.v1.ICreateSecretRequest, callback: google.cloud.secretmanager.v1.SecretManagerService.CreateSecretCallback): void;
Calls CreateSecret.
Name | Description |
request |
google.cloud.secretmanager.v1.ICreateSecretRequest
CreateSecretRequest message or plain object |
callback |
google.cloud.secretmanager.v1.SecretManagerService.CreateSecretCallback
Node-style callback called with the error, if any, and Secret |
Type | Description |
void |
createSecret(request)
public createSecret(request: google.cloud.secretmanager.v1.ICreateSecretRequest): Promise<google.cloud.secretmanager.v1.Secret>;
Calls CreateSecret.
Name | Description |
request |
google.cloud.secretmanager.v1.ICreateSecretRequest
CreateSecretRequest message or plain object |
Type | Description |
Promise<google.cloud.secretmanager.v1.Secret> | Promise |
deleteSecret(request, callback)
public deleteSecret(request: google.cloud.secretmanager.v1.IDeleteSecretRequest, callback: google.cloud.secretmanager.v1.SecretManagerService.DeleteSecretCallback): void;
Calls DeleteSecret.
Name | Description |
request |
google.cloud.secretmanager.v1.IDeleteSecretRequest
DeleteSecretRequest message or plain object |
callback |
google.cloud.secretmanager.v1.SecretManagerService.DeleteSecretCallback
Node-style callback called with the error, if any, and Empty |
Type | Description |
void |
deleteSecret(request)
public deleteSecret(request: google.cloud.secretmanager.v1.IDeleteSecretRequest): Promise<google.protobuf.Empty>;
Calls DeleteSecret.
Name | Description |
request |
google.cloud.secretmanager.v1.IDeleteSecretRequest
DeleteSecretRequest message or plain object |
Type | Description |
Promise<google.protobuf.Empty> | Promise |
destroySecretVersion(request, callback)
public destroySecretVersion(request: google.cloud.secretmanager.v1.IDestroySecretVersionRequest, callback: google.cloud.secretmanager.v1.SecretManagerService.DestroySecretVersionCallback): void;
Calls DestroySecretVersion.
Name | Description |
request |
IDestroySecretVersionRequest
DestroySecretVersionRequest message or plain object |
callback |
google.cloud.secretmanager.v1.SecretManagerService.DestroySecretVersionCallback
Node-style callback called with the error, if any, and SecretVersion |
Type | Description |
void |
destroySecretVersion(request)
public destroySecretVersion(request: google.cloud.secretmanager.v1.IDestroySecretVersionRequest): Promise<google.cloud.secretmanager.v1.SecretVersion>;
Calls DestroySecretVersion.
Name | Description |
request |
IDestroySecretVersionRequest
DestroySecretVersionRequest message or plain object |
Type | Description |
Promise<google.cloud.secretmanager.v1.SecretVersion> | Promise |
disableSecretVersion(request, callback)
public disableSecretVersion(request: google.cloud.secretmanager.v1.IDisableSecretVersionRequest, callback: google.cloud.secretmanager.v1.SecretManagerService.DisableSecretVersionCallback): void;
Calls DisableSecretVersion.
Name | Description |
request |
google.cloud.secretmanager.v1.IDisableSecretVersionRequest
DisableSecretVersionRequest message or plain object |
callback |
google.cloud.secretmanager.v1.SecretManagerService.DisableSecretVersionCallback
Node-style callback called with the error, if any, and SecretVersion |
Type | Description |
void |
disableSecretVersion(request)
public disableSecretVersion(request: google.cloud.secretmanager.v1.IDisableSecretVersionRequest): Promise<google.cloud.secretmanager.v1.SecretVersion>;
Calls DisableSecretVersion.
Name | Description |
request |
google.cloud.secretmanager.v1.IDisableSecretVersionRequest
DisableSecretVersionRequest message or plain object |
Type | Description |
Promise<google.cloud.secretmanager.v1.SecretVersion> | Promise |
enableSecretVersion(request, callback)
public enableSecretVersion(request: google.cloud.secretmanager.v1.IEnableSecretVersionRequest, callback: google.cloud.secretmanager.v1.SecretManagerService.EnableSecretVersionCallback): void;
Calls EnableSecretVersion.
Name | Description |
request |
google.cloud.secretmanager.v1.IEnableSecretVersionRequest
EnableSecretVersionRequest message or plain object |
callback |
google.cloud.secretmanager.v1.SecretManagerService.EnableSecretVersionCallback
Node-style callback called with the error, if any, and SecretVersion |
Type | Description |
void |
enableSecretVersion(request)
public enableSecretVersion(request: google.cloud.secretmanager.v1.IEnableSecretVersionRequest): Promise<google.cloud.secretmanager.v1.SecretVersion>;
Calls EnableSecretVersion.
Name | Description |
request |
google.cloud.secretmanager.v1.IEnableSecretVersionRequest
EnableSecretVersionRequest message or plain object |
Type | Description |
Promise<google.cloud.secretmanager.v1.SecretVersion> | Promise |
getIamPolicy(request, callback)
public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest, callback: google.cloud.secretmanager.v1.SecretManagerService.GetIamPolicyCallback): void;
Calls GetIamPolicy.
Name | Description |
request |
google.iam.v1.IGetIamPolicyRequest
GetIamPolicyRequest message or plain object |
callback |
google.cloud.secretmanager.v1.SecretManagerService.GetIamPolicyCallback
Node-style callback called with the error, if any, and Policy |
Type | Description |
void |
getIamPolicy(request)
public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest): Promise<google.iam.v1.Policy>;
Calls GetIamPolicy.
Name | Description |
request |
google.iam.v1.IGetIamPolicyRequest
GetIamPolicyRequest message or plain object |
Type | Description |
Promise<google.iam.v1.Policy> | Promise |
getSecret(request, callback)
public getSecret(request: google.cloud.secretmanager.v1.IGetSecretRequest, callback: google.cloud.secretmanager.v1.SecretManagerService.GetSecretCallback): void;
Calls GetSecret.
Name | Description |
request |
IGetSecretRequest
GetSecretRequest message or plain object |
callback |
google.cloud.secretmanager.v1.SecretManagerService.GetSecretCallback
Node-style callback called with the error, if any, and Secret |
Type | Description |
void |
getSecret(request)
public getSecret(request: google.cloud.secretmanager.v1.IGetSecretRequest): Promise<google.cloud.secretmanager.v1.Secret>;
Calls GetSecret.
Name | Description |
request |
IGetSecretRequest
GetSecretRequest message or plain object |
Type | Description |
Promise<google.cloud.secretmanager.v1.Secret> | Promise |
getSecretVersion(request, callback)
public getSecretVersion(request: google.cloud.secretmanager.v1.IGetSecretVersionRequest, callback: google.cloud.secretmanager.v1.SecretManagerService.GetSecretVersionCallback): void;
Calls GetSecretVersion.
Name | Description |
request |
IGetSecretVersionRequest
GetSecretVersionRequest message or plain object |
callback |
google.cloud.secretmanager.v1.SecretManagerService.GetSecretVersionCallback
Node-style callback called with the error, if any, and SecretVersion |
Type | Description |
void |
getSecretVersion(request)
public getSecretVersion(request: google.cloud.secretmanager.v1.IGetSecretVersionRequest): Promise<google.cloud.secretmanager.v1.SecretVersion>;
Calls GetSecretVersion.
Name | Description |
request |
IGetSecretVersionRequest
GetSecretVersionRequest message or plain object |
Type | Description |
Promise<google.cloud.secretmanager.v1.SecretVersion> | Promise |
listSecrets(request, callback)
public listSecrets(request: google.cloud.secretmanager.v1.IListSecretsRequest, callback: google.cloud.secretmanager.v1.SecretManagerService.ListSecretsCallback): void;
Calls ListSecrets.
Name | Description |
request |
google.cloud.secretmanager.v1.IListSecretsRequest
ListSecretsRequest message or plain object |
callback |
google.cloud.secretmanager.v1.SecretManagerService.ListSecretsCallback
Node-style callback called with the error, if any, and ListSecretsResponse |
Type | Description |
void |
listSecrets(request)
public listSecrets(request: google.cloud.secretmanager.v1.IListSecretsRequest): Promise<google.cloud.secretmanager.v1.ListSecretsResponse>;
Calls ListSecrets.
Name | Description |
request |
google.cloud.secretmanager.v1.IListSecretsRequest
ListSecretsRequest message or plain object |
Type | Description |
Promise<google.cloud.secretmanager.v1.ListSecretsResponse> | Promise |
listSecretVersions(request, callback)
public listSecretVersions(request: google.cloud.secretmanager.v1.IListSecretVersionsRequest, callback: google.cloud.secretmanager.v1.SecretManagerService.ListSecretVersionsCallback): void;
Calls ListSecretVersions.
Name | Description |
request |
google.cloud.secretmanager.v1.IListSecretVersionsRequest
ListSecretVersionsRequest message or plain object |
callback |
google.cloud.secretmanager.v1.SecretManagerService.ListSecretVersionsCallback
Node-style callback called with the error, if any, and ListSecretVersionsResponse |
Type | Description |
void |
listSecretVersions(request)
public listSecretVersions(request: google.cloud.secretmanager.v1.IListSecretVersionsRequest): Promise<google.cloud.secretmanager.v1.ListSecretVersionsResponse>;
Calls ListSecretVersions.
Name | Description |
request |
google.cloud.secretmanager.v1.IListSecretVersionsRequest
ListSecretVersionsRequest message or plain object |
Type | Description |
Promise<google.cloud.secretmanager.v1.ListSecretVersionsResponse> | Promise |
setIamPolicy(request, callback)
public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest, callback: google.cloud.secretmanager.v1.SecretManagerService.SetIamPolicyCallback): void;
Calls SetIamPolicy.
Name | Description |
request |
google.iam.v1.ISetIamPolicyRequest
SetIamPolicyRequest message or plain object |
callback |
google.cloud.secretmanager.v1.SecretManagerService.SetIamPolicyCallback
Node-style callback called with the error, if any, and Policy |
Type | Description |
void |
setIamPolicy(request)
public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest): Promise<google.iam.v1.Policy>;
Calls SetIamPolicy.
Name | Description |
request |
google.iam.v1.ISetIamPolicyRequest
SetIamPolicyRequest message or plain object |
Type | Description |
Promise<google.iam.v1.Policy> | Promise |
testIamPermissions(request, callback)
public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest, callback: google.cloud.secretmanager.v1.SecretManagerService.TestIamPermissionsCallback): void;
Calls TestIamPermissions.
Name | Description |
request |
google.iam.v1.ITestIamPermissionsRequest
TestIamPermissionsRequest message or plain object |
callback |
google.cloud.secretmanager.v1.SecretManagerService.TestIamPermissionsCallback
Node-style callback called with the error, if any, and TestIamPermissionsResponse |
Type | Description |
void |
testIamPermissions(request)
public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest): Promise<google.iam.v1.TestIamPermissionsResponse>;
Calls TestIamPermissions.
Name | Description |
request |
google.iam.v1.ITestIamPermissionsRequest
TestIamPermissionsRequest message or plain object |
Type | Description |
Promise<google.iam.v1.TestIamPermissionsResponse> | Promise |
updateSecret(request, callback)
public updateSecret(request: google.cloud.secretmanager.v1.IUpdateSecretRequest, callback: google.cloud.secretmanager.v1.SecretManagerService.UpdateSecretCallback): void;
Calls UpdateSecret.
Name | Description |
request |
google.cloud.secretmanager.v1.IUpdateSecretRequest
UpdateSecretRequest message or plain object |
callback |
google.cloud.secretmanager.v1.SecretManagerService.UpdateSecretCallback
Node-style callback called with the error, if any, and Secret |
Type | Description |
void |
updateSecret(request)
public updateSecret(request: google.cloud.secretmanager.v1.IUpdateSecretRequest): Promise<google.cloud.secretmanager.v1.Secret>;
Calls UpdateSecret.
Name | Description |
request |
google.cloud.secretmanager.v1.IUpdateSecretRequest
UpdateSecretRequest message or plain object |
Type | Description |
Promise<google.cloud.secretmanager.v1.Secret> | Promise |