pub struct V2Key {
pub annotations: Option<HashMap<String, String>>,
pub create_time: Option<DateTime<Utc>>,
pub delete_time: Option<DateTime<Utc>>,
pub display_name: Option<String>,
pub etag: Option<String>,
pub key_string: Option<String>,
pub name: Option<String>,
pub restrictions: Option<V2Restrictions>,
pub service_account_email: Option<String>,
pub uid: Option<String>,
pub update_time: Option<DateTime<Utc>>,
}Expand description
The representation of a key managed by the API Keys API.
§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 keys create projects (request)
- locations keys get projects (response)
- locations keys patch projects (request)
Fields§
§annotations: Option<HashMap<String, String>>Annotations is an unstructured key-value map stored with a policy that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects.
create_time: Option<DateTime<Utc>>Output only. A timestamp identifying the time this key was originally created.
delete_time: Option<DateTime<Utc>>Output only. A timestamp when this key was deleted. If the resource is not deleted, this must be empty.
display_name: Option<String>Human-readable display name of this key that you can modify. The maximum length is 63 characters.
etag: Option<String>Output only. A checksum computed by the server based on the current value of the Key resource. This may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. See https://google.aip.dev/154.
key_string: Option<String>Output only. An encrypted and signed value held by this key. This field can be accessed only through the GetKeyString method.
name: Option<String>Output only. The resource name of the key. The name has the form: projects//locations/global/keys/. For example: projects/123456867718/locations/global/keys/b7ff1f9f-8275-410a-94dd-3855ee9b5dd2 NOTE: Key is a global resource; hence the only supported value for location is global.
restrictions: Option<V2Restrictions>Key restrictions.
service_account_email: Option<String>Optional. The email address of the service account the key is bound to.
uid: Option<String>Output only. Unique id in UUID4 format.
update_time: Option<DateTime<Utc>>Output only. A timestamp identifying the time this key was last updated.