Class Google::Cloud::Kms::V1::CryptoKey (v0.10.2)

A CryptoKey represents a logical key that can be used for cryptographic operations.

A CryptoKey is made up of zero or more versions, which represent the actual key material used in cryptographic operations.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#create_time

def create_time() -> ::Google::Protobuf::Timestamp
Returns

#destroy_scheduled_duration

def destroy_scheduled_duration() -> ::Google::Protobuf::Duration
Returns

#destroy_scheduled_duration=

def destroy_scheduled_duration=(value) -> ::Google::Protobuf::Duration
Parameter
Returns

#import_only

def import_only() -> ::Boolean
Returns
  • (::Boolean) — Immutable. Whether this key may contain imported versions only.

#import_only=

def import_only=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Immutable. Whether this key may contain imported versions only.
Returns
  • (::Boolean) — Immutable. Whether this key may contain imported versions only.

#labels

def labels() -> ::Google::Protobuf::Map{::String => ::String}
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — Labels with user-defined metadata. For more information, see Labeling Keys.

#labels=

def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}
Parameter
  • value (::Google::Protobuf::Map{::String => ::String}) — Labels with user-defined metadata. For more information, see Labeling Keys.
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — Labels with user-defined metadata. For more information, see Labeling Keys.

#name

def name() -> ::String
Returns
  • (::String) — Output only. The resource name for this CryptoKey in the format projects/*/locations/*/keyRings/*/cryptoKeys/*.

#next_rotation_time

def next_rotation_time() -> ::Google::Protobuf::Timestamp
Returns

#next_rotation_time=

def next_rotation_time=(value) -> ::Google::Protobuf::Timestamp
Parameter
Returns

#primary

def primary() -> ::Google::Cloud::Kms::V1::CryptoKeyVersion
Returns

#purpose

def purpose() -> ::Google::Cloud::Kms::V1::CryptoKey::CryptoKeyPurpose
Returns

#purpose=

def purpose=(value) -> ::Google::Cloud::Kms::V1::CryptoKey::CryptoKeyPurpose
Parameter
Returns

#rotation_period

def rotation_period() -> ::Google::Protobuf::Duration
Returns

#rotation_period=

def rotation_period=(value) -> ::Google::Protobuf::Duration
Parameter
Returns

#version_template

def version_template() -> ::Google::Cloud::Kms::V1::CryptoKeyVersionTemplate
Returns

#version_template=

def version_template=(value) -> ::Google::Cloud::Kms::V1::CryptoKeyVersionTemplate
Parameter
Returns