Cloud KMS V1 Client - Class CreateEkmConnectionRequest (1.20.2)

Reference documentation and code samples for the Cloud KMS V1 Client class CreateEkmConnectionRequest.

Request message for EkmService.CreateEkmConnection.

Generated from protobuf message google.cloud.kms.v1.CreateEkmConnectionRequest

Namespace

Google \ Cloud \ Kms \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The resource name of the location associated with the EkmConnection, in the format projects/*/locations/*.

↳ ekm_connection_id string

Required. It must be unique within a location and match the regular expression [a-zA-Z0-9_-]{1,63}.

↳ ekm_connection Google\Cloud\Kms\V1\EkmConnection

Required. An EkmConnection with initial field values.

getParent

Required. The resource name of the location associated with the EkmConnection, in the format projects/*/locations/*.

Returns
TypeDescription
string

setParent

Required. The resource name of the location associated with the EkmConnection, in the format projects/*/locations/*.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getEkmConnectionId

Required. It must be unique within a location and match the regular expression [a-zA-Z0-9_-]{1,63}.

Returns
TypeDescription
string

setEkmConnectionId

Required. It must be unique within a location and match the regular expression [a-zA-Z0-9_-]{1,63}.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getEkmConnection

Required. An EkmConnection with initial field values.

Returns
TypeDescription
Google\Cloud\Kms\V1\EkmConnection|null

hasEkmConnection

clearEkmConnection

setEkmConnection

Required. An EkmConnection with initial field values.

Parameter
NameDescription
var Google\Cloud\Kms\V1\EkmConnection
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
parent string

Required. The resource name of the location associated with the EkmConnection, in the format projects/*/locations/*. Please see Google\Cloud\Kms\V1\EkmServiceClient::locationName() for help formatting this field.

ekmConnectionId string

Required. It must be unique within a location and match the regular expression [a-zA-Z0-9_-]{1,63}.

ekmConnection Google\Cloud\Kms\V1\EkmConnection

Required. An EkmConnection with initial field values.

Returns
TypeDescription
Google\Cloud\Kms\V1\CreateEkmConnectionRequest