Cloud KMS V1 Client - Class EkmConnection (2.3.0)

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

An EkmConnection represents an individual EKM connection. It can be used for creating CryptoKeys and CryptoKeyVersions with a ProtectionLevel of EXTERNAL_VPC, as well as performing cryptographic operations using keys created within the EkmConnection.

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

Namespace

Google \ Cloud \ Kms \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ namestring

Output only. The resource name for the EkmConnection in the format projects/*/locations/*/ekmConnections/*.

↳ create_timeGoogle\Protobuf\Timestamp

Output only. The time at which the EkmConnection was created.

↳ service_resolversarray<EkmConnection\ServiceResolver>

Optional. A list of ServiceResolvers where the EKM can be reached. There should be one ServiceResolver per EKM replica. Currently, only a single ServiceResolver is supported.

↳ etagstring

Optional. Etag of the currently stored EkmConnection.

↳ key_management_modeint

Optional. Describes who can perform control plane operations on the EKM. If unset, this defaults to MANUAL.

↳ crypto_space_pathstring

Optional. Identifies the EKM Crypto Space that this EkmConnection maps to. Note: This field is required if KeyManagementMode is CLOUD_KMS.

getName

Output only. The resource name for the EkmConnection in the format projects/*/locations/*/ekmConnections/*.

Returns
TypeDescription
string

setName

Output only. The resource name for the EkmConnection in the format projects/*/locations/*/ekmConnections/*.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getCreateTime

Output only. The time at which the EkmConnection was created.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The time at which the EkmConnection was created.

Parameter
NameDescription
varGoogle\Protobuf\Timestamp
Returns
TypeDescription
$this

getServiceResolvers

Optional. A list of ServiceResolvers where the EKM can be reached. There should be one ServiceResolver per EKM replica. Currently, only a single ServiceResolver is supported.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setServiceResolvers

Optional. A list of ServiceResolvers where the EKM can be reached. There should be one ServiceResolver per EKM replica. Currently, only a single ServiceResolver is supported.

Parameter
NameDescription
vararray<EkmConnection\ServiceResolver>
Returns
TypeDescription
$this

getEtag

Optional. Etag of the currently stored EkmConnection.

Returns
TypeDescription
string

setEtag

Optional. Etag of the currently stored EkmConnection.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getKeyManagementMode

Optional. Describes who can perform control plane operations on the EKM. If unset, this defaults to MANUAL.

Returns
TypeDescription
int

setKeyManagementMode

Optional. Describes who can perform control plane operations on the EKM. If unset, this defaults to MANUAL.

Parameter
NameDescription
varint
Returns
TypeDescription
$this

getCryptoSpacePath

Optional. Identifies the EKM Crypto Space that this EkmConnection maps to. Note: This field is required if KeyManagementMode is CLOUD_KMS.

Returns
TypeDescription
string

setCryptoSpacePath

Optional. Identifies the EKM Crypto Space that this EkmConnection maps to. Note: This field is required if KeyManagementMode is CLOUD_KMS.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this