DiscoveredWorkload is a binary deployment (such as managed instance groups (MIGs) and GKE deployments) that performs the smallest logical subset of business functionality. A discovered workload can be registered to an App Hub Workload.
Fields
name
Identifier. The resource name of the discovered workload. Format:
"projects/{host-project-id}/locations/{location}/discoveredWorkloads/{uuid}"
workload_reference
Output only. Reference of an underlying compute resource represented by the Workload. These are immutable.
workload_properties
Output only. Properties of an underlying compute resource represented by the Workload. These are immutable.
Implementations
new
fn new() -> Self
set_name
fn set_name<T: std::convert::Into<std::string::String>>(self, v: T) -> Self
Sets the value of [name][crate::model::DiscoveredWorkload::name].
set_workload_reference
fn set_workload_reference<T>(self, v: T) -> Self
where
T: std::convert::Into<crate::model::WorkloadReference>,
Sets the value of [workload_reference][crate::model::DiscoveredWorkload::workload_reference].
set_or_clear_workload_reference
fn set_or_clear_workload_reference<T>(self, v: std::option::Option<T>) -> Self
where
T: std::convert::Into<crate::model::WorkloadReference>,
Sets or clears the value of [workload_reference][crate::model::DiscoveredWorkload::workload_reference].
set_workload_properties
fn set_workload_properties<T>(self, v: T) -> Self
where
T: std::convert::Into<crate::model::WorkloadProperties>,
Sets the value of [workload_properties][crate::model::DiscoveredWorkload::workload_properties].
set_or_clear_workload_properties
fn set_or_clear_workload_properties<T>(self, v: std::option::Option<T>) -> Self
where
T: std::convert::Into<crate::model::WorkloadProperties>,
Sets or clears the value of [workload_properties][crate::model::DiscoveredWorkload::workload_properties].