gcloud_storage/http/hmac_keys/
mod.rs

1use time::OffsetDateTime;
2
3pub mod create;
4pub mod delete;
5pub mod get;
6pub mod list;
7pub mod update;
8
9/// Hmac Key Metadata, which includes all information other than the secret.
10#[derive(Clone, PartialEq, Eq, serde::Deserialize, serde::Serialize, Debug, Default)]
11#[serde(rename_all = "camelCase")]
12pub struct HmacKeyMetadata {
13    /// Resource name ID of the key in the format <projectId>/<accessId>.
14    pub id: String,
15    /// Globally unique id for keys.
16    pub access_id: String,
17    /// The project ID that the hmac key is contained in.
18    pub project_id: String,
19    /// Email of the service account the key authenticates as.
20    pub service_account_email: String,
21    /// State of the key. One of ACTIVE, INACTIVE, or DELETED.
22    pub state: String,
23    /// The creation time of the HMAC key in RFC 3339 format.
24    #[serde(default, with = "time::serde::rfc3339::option")]
25    pub time_created: Option<OffsetDateTime>,
26    /// The last modification time of the HMAC key metadata in RFC 3339 format.
27    #[serde(default, with = "time::serde::rfc3339::option")]
28    pub updated: Option<OffsetDateTime>,
29    /// Tag updated with each key update.
30    pub etag: String,
31}