Struct google_cloudkms1_beta1::CryptoKey [] [src]

pub struct CryptoKey {
    pub name: Option<String>,
    pub next_rotation_time: Option<String>,
    pub rotation_period: Option<String>,
    pub primary: Option<CryptoKeyVersion>,
    pub create_time: Option<String>,
    pub purpose: Option<String>,
}

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

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

Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields

Output only. The resource name for this CryptoKey in the format projects/*/locations/*/keyRings/*/cryptoKeys/*.

At next_rotation_time, the Key Management Service will automatically:

  1. Create a new version of this CryptoKey.
  2. Mark the new version as primary.

Key rotations performed manually via CreateCryptoKeyVersion and UpdateCryptoKeyPrimaryVersion do not affect next_rotation_time.

next_rotation_time will be advanced by this period when the service automatically rotates a key. Must be at least one day.

If rotation_period is set, next_rotation_time must also be set.

Output only. A copy of the "primary" CryptoKeyVersion that will be used by Encrypt when this CryptoKey is given in EncryptRequest.name.

The CryptoKey's primary version can be updated via UpdateCryptoKeyPrimaryVersion.

Output only. The time at which this CryptoKey was created.

The immutable purpose of this CryptoKey. Currently, the only acceptable purpose is ENCRYPT_DECRYPT.

Trait Implementations

impl Default for CryptoKey
[src]

Returns the "default value" for a type. Read more

impl Clone for CryptoKey
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for CryptoKey
[src]

Formats the value using the given formatter.

impl RequestValue for CryptoKey
[src]

impl ResponseResult for CryptoKey
[src]