Data Loss Prevention V2 Client - Class TransientCryptoKey (1.10.2)

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

Namespace

Google \ Cloud \ Dlp \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
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 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).

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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this