Data Loss Prevention V2 Client - Class TransientCryptoKey (2.2.1)

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
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 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
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