Reference documentation and code samples for the Data Loss Prevention V2 Client class TransientCryptoKey.
Use this to have a random data crypto key generated.
It will be discarded after the request finishes.
Generated from protobuf message google.privacy.dlp.v2.TransientCryptoKey
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
Required. Name of the key. This is an arbitrary string used to differentiate different keys. A unique key is generated per name: two separate |
getName
Required. Name of the key.
This is an arbitrary string used to differentiate different keys.
A unique key is generated per name: two separate TransientCryptoKey
protos share the same generated key if their names are the same.
When the data crypto key is generated, this name is not used in any way
(repeating the api call will result in a different key being generated).
Returns | |
---|---|
Type | Description |
string |
setName
Required. Name of the key.
This is an arbitrary string used to differentiate different keys.
A unique key is generated per name: two separate TransientCryptoKey
protos share the same generated key if their names are the same.
When the data crypto key is generated, this name is not used in any way
(repeating the api call will result in a different key being generated).
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |