Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ use serde::{Deserialize, Serialize};
/// Database modules/capabilities response
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ModulesData {
/// Database modules supported on this account.
#[serde(skip_serializing_if = "Option::is_none")]
pub modules: Option<Vec<Module>>,

Expand Down Expand Up @@ -158,35 +159,43 @@ pub struct AccountApiKeyOwner {
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct AccountSystemLogEntry {
/// Unique log entry ID.
#[serde(skip_serializing_if = "Option::is_none")]
pub id: Option<i32>,

/// Timestamp the event was recorded (ISO-8601).
#[serde(skip_serializing_if = "Option::is_none")]
pub time: Option<String>,

/// Originator of the event (user, system, etc.).
#[serde(skip_serializing_if = "Option::is_none")]
pub originator: Option<String>,

/// Name of the API key that initiated the action, if any.
#[serde(skip_serializing_if = "Option::is_none")]
pub api_key_name: Option<String>,

/// Resource category the event applies to (e.g. `"database"`).
#[serde(skip_serializing_if = "Option::is_none")]
pub resource: Option<String>,

/// Resource ID associated with this log entry
#[serde(skip_serializing_if = "Option::is_none")]
pub resource_id: Option<i32>,

/// Event type (e.g. `"info"`, `"warning"`, `"error"`).
#[serde(skip_serializing_if = "Option::is_none")]
pub r#type: Option<String>,

/// Human-readable description of the event.
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
}

/// Available regions response
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Regions {
/// Regions available on the account.
#[serde(skip_serializing_if = "Option::is_none")]
pub regions: Option<Vec<Region>>,

Expand Down Expand Up @@ -215,6 +224,7 @@ pub struct Region {
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct PaymentMethods {
/// Account ID the payment methods belong to.
#[serde(skip_serializing_if = "Option::is_none")]
pub account_id: Option<i32>,

Expand Down Expand Up @@ -313,6 +323,7 @@ pub struct ModuleParameter {
/// Account system log entries response
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct AccountSystemLogEntries {
/// System log entries returned by the server.
#[serde(skip_serializing_if = "Option::is_none")]
pub entries: Option<Vec<AccountSystemLogEntry>>,

Expand Down Expand Up @@ -399,6 +410,7 @@ pub struct DataPersistenceOptions {
/// Account session log entries response
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct AccountSessionLogEntries {
/// Session log entries returned by the server.
#[serde(skip_serializing_if = "Option::is_none")]
pub entries: Option<Vec<AccountSessionLogEntry>>,

Expand Down
15 changes: 15 additions & 0 deletions src/acl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ pub struct AclRoleCreateRequest {
/// A list of Redis ACL rules to assign to this database access role.
pub redis_rules: Vec<AclRoleRedisRuleSpec>,

/// Read-only on the response; populated by the server with the
/// operation type.
#[serde(skip_serializing_if = "Option::is_none")]
pub command_type: Option<String>,
}
Expand All @@ -66,6 +68,7 @@ pub struct AclRoleCreateRequest {
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct AclUserUpdateRequest {
/// ACL user ID being updated. Server-populated from the path.
#[serde(skip_serializing_if = "Option::is_none")]
pub user_id: Option<i32>,

Expand All @@ -77,6 +80,8 @@ pub struct AclUserUpdateRequest {
#[serde(skip_serializing_if = "Option::is_none")]
pub password: Option<String>,

/// Read-only on the response; populated by the server with the
/// operation type.
#[serde(skip_serializing_if = "Option::is_none")]
pub command_type: Option<String>,
}
Expand Down Expand Up @@ -154,6 +159,8 @@ pub struct AclRedisRuleCreateRequest {
/// Redis ACL rule pattern. See [ACL syntax](https://redis.io/docs/latest/operate/rc/security/access-control/data-access-control/configure-acls/#define-permissions-with-acl-syntax) to learn how to define rules.
pub redis_rule: String,

/// Read-only on the response; populated by the server with the
/// operation type.
#[serde(skip_serializing_if = "Option::is_none")]
pub command_type: Option<String>,
}
Expand Down Expand Up @@ -262,6 +269,7 @@ pub struct ACLRoleDatabase {
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct AclRedisRuleUpdateRequest {
/// Redis ACL rule ID being updated. Server-populated from the path.
#[serde(skip_serializing_if = "Option::is_none")]
pub redis_rule_id: Option<i32>,

Expand All @@ -271,6 +279,8 @@ pub struct AclRedisRuleUpdateRequest {
/// Optional. Changes the Redis ACL rule pattern. See [ACL syntax](https://redis.io/docs/latest/operate/rc/security/access-control/data-access-control/configure-acls/#define-permissions-with-acl-syntax) to learn how to define rules.
pub redis_rule: String,

/// Read-only on the response; populated by the server with the
/// operation type.
#[serde(skip_serializing_if = "Option::is_none")]
pub command_type: Option<String>,
}
Expand Down Expand Up @@ -303,6 +313,8 @@ pub struct AclUserCreateRequest {
/// The database password for this user.
pub password: String,

/// Read-only on the response; populated by the server with the
/// operation type.
#[serde(skip_serializing_if = "Option::is_none")]
pub command_type: Option<String>,
}
Expand Down Expand Up @@ -343,9 +355,12 @@ pub struct AclRoleUpdateRequest {
#[serde(skip_serializing_if = "Option::is_none")]
pub redis_rules: Option<Vec<AclRoleRedisRuleSpec>>,

/// ACL role ID being updated. Server-populated from the path.
#[serde(skip_serializing_if = "Option::is_none")]
pub role_id: Option<i32>,

/// Read-only on the response; populated by the server with the
/// operation type.
#[serde(skip_serializing_if = "Option::is_none")]
pub command_type: Option<String>,
}
Expand Down
5 changes: 5 additions & 0 deletions src/cloud_accounts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ pub struct CloudAccountUpdateRequest {
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,

/// Cloud account ID being updated. Server-populated from the path.
#[serde(skip_serializing_if = "Option::is_none")]
pub cloud_account_id: Option<i32>,

Expand All @@ -88,6 +89,8 @@ pub struct CloudAccountUpdateRequest {
#[serde(skip_serializing_if = "Option::is_none")]
pub sign_in_login_url: Option<String>,

/// Read-only on the response; populated by the server with the
/// operation type (e.g. `"UPDATE_CLOUD_ACCOUNT"`).
#[serde(skip_serializing_if = "Option::is_none")]
pub command_type: Option<String>,
}
Expand Down Expand Up @@ -171,6 +174,8 @@ pub struct CloudAccountCreateRequest {
/// Cloud provider management console login URL.
pub sign_in_login_url: String,

/// Read-only on the response; populated by the server with the
/// operation type (e.g. `"CREATE_CLOUD_ACCOUNT"`).
#[serde(skip_serializing_if = "Option::is_none")]
pub command_type: Option<String>,
}
Expand Down
4 changes: 4 additions & 0 deletions src/connectivity/psc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct PscEndpointUpdateRequest {
/// Subscription that owns the PSC service. Server-populated; clients
/// pass the value via the path parameter and may leave the default.
pub subscription_id: i32,
/// PSC service ID under the subscription. Server-populated.
pub psc_service_id: i32,
/// PSC endpoint ID being updated. Server-populated.
pub endpoint_id: i32,

/// Google Cloud project ID
Expand Down
3 changes: 3 additions & 0 deletions src/connectivity/transit_gateway.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Cidr {
/// CIDR notation address (e.g. `"10.0.0.0/16"`).
#[serde(skip_serializing_if = "Option::is_none")]
pub cidr_address: Option<String>,
}
Expand All @@ -22,6 +23,8 @@ pub struct TgwUpdateCidrsRequest {
#[serde(skip_serializing_if = "Option::is_none")]
pub cidrs: Option<Vec<Cidr>>,

/// Read-only on the response; populated by the server with the
/// operation type (e.g. `"UPDATE_TGW_CIDRS"`).
#[serde(skip_serializing_if = "Option::is_none")]
pub command_type: Option<String>,
}
Expand Down
3 changes: 3 additions & 0 deletions src/connectivity/vpc_peering.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ pub type VpcPeeringCreateBaseRequest = VpcPeeringCreateRequest;
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct VpcPeeringUpdateAwsRequest {
/// Subscription that owns the peering. Server-populated from the path.
#[serde(skip_serializing_if = "Option::is_none")]
pub subscription_id: Option<i32>,

Expand All @@ -119,6 +120,8 @@ pub struct VpcPeeringUpdateAwsRequest {
#[serde(skip_serializing_if = "Option::is_none")]
pub vpc_cidrs: Option<Vec<String>>,

/// Read-only on the response; populated by the server with the
/// operation type (e.g. `"UPDATE_VPC_PEERING"`).
#[serde(skip_serializing_if = "Option::is_none")]
pub command_type: Option<String>,
}
Expand Down
Loading