pub enum ServiceAccountHeartbeatData {
Variant0 {Show 21 fields
assume_role_policy_present: bool,
attached_policy_count: i32,
attached_policy_names: Vec<String>,
backend: ServiceAccountHeartbeatDataVariant0Backend,
create_date: String,
description: Option<String>,
inline_policy_count: i32,
inline_policy_names: Vec<String>,
last_used_date: Option<String>,
last_used_region: Option<String>,
managed_tag_count: i32,
max_session_duration: Option<i32>,
path: String,
permissions_boundary_arn: Option<String>,
permissions_boundary_type: Option<String>,
role_arn: String,
role_id: String,
role_name: String,
stack_permissions_applied: bool,
status: ServiceAccountHeartbeatStatus,
tag_count: i32,
},
Variant1 {Show 15 fields
backend: ServiceAccountHeartbeatDataVariant1Backend,
description: Option<String>,
disabled: Option<bool>,
display_name: Option<String>,
email: String,
etag: Option<String>,
name: Option<String>,
oauth2_client_id: Option<String>,
project_binding_count: i32,
project_id: Option<String>,
project_roles: Vec<String>,
service_account_binding_count: i32,
service_account_roles: Vec<String>,
status: ServiceAccountHeartbeatStatus,
unique_id: Option<String>,
},
Variant2 {Show 17 fields
backend: ServiceAccountHeartbeatDataVariant2Backend,
client_id: Option<String>,
custom_role_definition_count: i32,
custom_role_definition_ids: Vec<String>,
isolation_scope: Option<String>,
location: String,
managed_tag_count: i32,
name: String,
principal_id: Option<String>,
resource_group: String,
resource_id: String,
role_assignment_count: i32,
role_assignment_ids: Vec<String>,
stack_permissions_applied: bool,
status: ServiceAccountHeartbeatStatus,
tenant_id: Option<String>,
type_: Option<String>,
},
Variant3 {
backend: ServiceAccountHeartbeatDataVariant3Backend,
configured: bool,
identity: String,
status: ServiceAccountHeartbeatStatus,
},
}Expand description
ServiceAccountHeartbeatData
JSON schema
{
"oneOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/AwsIamRoleServiceAccountHeartbeatData"
},
{
"type": "object",
"required": [
"backend"
],
"properties": {
"backend": {
"type": "string",
"enum": [
"awsIamRole"
]
}
}
}
]
},
{
"allOf": [
{
"$ref": "#/components/schemas/GcpServiceAccountHeartbeatData"
},
{
"type": "object",
"required": [
"backend"
],
"properties": {
"backend": {
"type": "string",
"enum": [
"gcpServiceAccount"
]
}
}
}
]
},
{
"allOf": [
{
"$ref": "#/components/schemas/AzureManagedIdentityServiceAccountHeartbeatData"
},
{
"type": "object",
"required": [
"backend"
],
"properties": {
"backend": {
"type": "string",
"enum": [
"azureManagedIdentity"
]
}
}
}
]
},
{
"allOf": [
{
"$ref": "#/components/schemas/LocalServiceAccountHeartbeatData"
},
{
"type": "object",
"required": [
"backend"
],
"properties": {
"backend": {
"type": "string",
"enum": [
"local"
]
}
}
}
]
}
]
}Variants§
Variant0
Fields
§
status: ServiceAccountHeartbeatStatusVariant1
Fields
§
status: ServiceAccountHeartbeatStatusVariant2
Fields
§
status: ServiceAccountHeartbeatStatusVariant3
Fields
§
status: ServiceAccountHeartbeatStatusTrait Implementations§
Source§impl Clone for ServiceAccountHeartbeatData
impl Clone for ServiceAccountHeartbeatData
Source§impl Debug for ServiceAccountHeartbeatData
impl Debug for ServiceAccountHeartbeatData
Source§impl<'de> Deserialize<'de> for ServiceAccountHeartbeatData
impl<'de> Deserialize<'de> for ServiceAccountHeartbeatData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&ServiceAccountHeartbeatData> for ServiceAccountHeartbeatData
impl From<&ServiceAccountHeartbeatData> for ServiceAccountHeartbeatData
Source§fn from(value: &ServiceAccountHeartbeatData) -> Self
fn from(value: &ServiceAccountHeartbeatData) -> Self
Converts to this type from the input type.
Source§impl From<ServiceAccountHeartbeatData> for ResourceHeartbeatData
impl From<ServiceAccountHeartbeatData> for ResourceHeartbeatData
Source§fn from(value: ServiceAccountHeartbeatData) -> Self
fn from(value: ServiceAccountHeartbeatData) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Forget for ServiceAccountHeartbeatData
impl Freeze for ServiceAccountHeartbeatData
impl Move for ServiceAccountHeartbeatData
impl RefUnwindSafe for ServiceAccountHeartbeatData
impl Send for ServiceAccountHeartbeatData
impl Sync for ServiceAccountHeartbeatData
impl Unpin for ServiceAccountHeartbeatData
impl UnsafeUnpin for ServiceAccountHeartbeatData
impl UnwindSafe for ServiceAccountHeartbeatData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more