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).
- locations key rings crypto keys get projects (response)
- locations key rings crypto keys update primary version projects (response)
- locations key rings crypto keys create projects (request|response)
- locations key rings crypto keys patch projects (request|response)
Fields
name: Option<String>
Output only. The resource name for this CryptoKey in the format
projects/*/locations/*/keyRings/*/cryptoKeys/*
.
next_rotation_time: Option<String>
At next_rotation_time, the Key Management Service will automatically:
- Create a new version of this CryptoKey.
- Mark the new version as primary.
Key rotations performed manually via CreateCryptoKeyVersion and UpdateCryptoKeyPrimaryVersion do not affect next_rotation_time.
rotation_period: Option<String>
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.
primary: Option<CryptoKeyVersion>
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.
create_time: Option<String>
Output only. The time at which this CryptoKey was created.
purpose: Option<String>
The immutable purpose of this CryptoKey. Currently, the only acceptable purpose is ENCRYPT_DECRYPT.
Trait Implementations
impl Default for CryptoKey
[src]
impl Clone for CryptoKey
[src]
fn clone(&self) -> CryptoKey
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more