#[non_exhaustive]pub struct InstanceGroupManager {Show 32 fields
pub all_instances_config: Option<InstanceGroupManagerAllInstancesConfig>,
pub auto_healing_policies: Vec<InstanceGroupManagerAutoHealingPolicy>,
pub base_instance_name: Option<String>,
pub creation_timestamp: Option<String>,
pub current_actions: Option<InstanceGroupManagerActionsSummary>,
pub description: Option<String>,
pub distribution_policy: Option<DistributionPolicy>,
pub fingerprint: Option<Bytes>,
pub id: Option<u64>,
pub instance_flexibility_policy: Option<InstanceGroupManagerInstanceFlexibilityPolicy>,
pub instance_group: Option<String>,
pub instance_lifecycle_policy: Option<InstanceGroupManagerInstanceLifecyclePolicy>,
pub instance_template: Option<String>,
pub kind: Option<String>,
pub list_managed_instances_results: Option<ListManagedInstancesResults>,
pub name: Option<String>,
pub named_ports: Vec<NamedPort>,
pub region: Option<String>,
pub resource_policies: Option<InstanceGroupManagerResourcePolicies>,
pub satisfies_pzi: Option<bool>,
pub satisfies_pzs: Option<bool>,
pub self_link: Option<String>,
pub standby_policy: Option<InstanceGroupManagerStandbyPolicy>,
pub stateful_policy: Option<StatefulPolicy>,
pub status: Option<InstanceGroupManagerStatus>,
pub target_pools: Vec<String>,
pub target_size: Option<i32>,
pub target_stopped_size: Option<i32>,
pub target_suspended_size: Option<i32>,
pub update_policy: Option<InstanceGroupManagerUpdatePolicy>,
pub versions: Vec<InstanceGroupManagerVersion>,
pub zone: Option<String>,
/* private fields */
}instance-group-managers or region-instance-group-managers only.Expand description
Represents a Managed Instance Group resource.
An instance group is a collection of VM instances that you can manage as a single entity. For more information, readInstance groups.
For zonal Managed Instance Group, use the instanceGroupManagers resource.
For regional Managed Instance Group, use theregionInstanceGroupManagers resource.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.all_instances_config: Option<InstanceGroupManagerAllInstancesConfig>Specifies configuration that overrides the instance template configuration for the group.
auto_healing_policies: Vec<InstanceGroupManagerAutoHealingPolicy>The autohealing policy for this managed instance group. You can specify only one value.
base_instance_name: Option<String>The base instance name is a prefix that you want to attach to the names of all VMs in a MIG. The maximum character length is 58 and the name must comply with RFC1035 format.
When a VM is created in the group, the MIG appends a hyphen and a random four-character string to the base instance name. If you want the MIG to assign sequential numbers instead of a random string, then end the base instance name with a hyphen followed by one or more hash symbols. The hash symbols indicate the number of digits. For example, a base instance name of “vm-###” results in “vm-001” as a VM name. @pattern a-z
creation_timestamp: Option<String>Output only. [Output Only] The creation timestamp for this managed instance group inRFC3339 text format.
current_actions: Option<InstanceGroupManagerActionsSummary>Output only. [Output Only] The list of instance actions and the number of instances in this managed instance group that are scheduled for each of those actions.
description: Option<String>An optional description of this resource.
distribution_policy: Option<DistributionPolicy>Policy specifying the intended distribution of managed instances across zones in a regional managed instance group.
fingerprint: Option<Bytes>Fingerprint of this resource. This field may be used in optimistic locking. It will be ignored when inserting an InstanceGroupManager. An up-to-date fingerprint must be provided in order to update the InstanceGroupManager, otherwise the request will fail with error412 conditionNotMet.
To see the latest fingerprint, make a get() request to retrieve an InstanceGroupManager.
id: Option<u64>Output only. [Output Only] A unique identifier for this resource type. The server generates this identifier.
instance_flexibility_policy: Option<InstanceGroupManagerInstanceFlexibilityPolicy>Instance flexibility allowing MIG to create VMs from multiple types of machines. Instance flexibility configuration on MIG overrides instance template configuration.
instance_group: Option<String>Output only. [Output Only] The URL of the Instance Group resource.
instance_lifecycle_policy: Option<InstanceGroupManagerInstanceLifecyclePolicy>The repair policy for this managed instance group.
instance_template: Option<String>The URL of the instance template that is specified for this managed instance group. The group uses this template to create all new instances in the managed instance group. The templates for existing instances in the group do not change unless you run recreateInstances, runapplyUpdatesToInstances, or set the group’supdatePolicy.type to PROACTIVE.
kind: Option<String>Output only. [Output Only] The resource type, which is alwayscompute#instanceGroupManager for managed instance groups.
list_managed_instances_results: Option<ListManagedInstancesResults>Pagination behavior of the listManagedInstances API method for this managed instance group.
name: Option<String>The name of the managed instance group. The name must be 1-63 characters long, and comply withRFC1035.
named_ports: Vec<NamedPort>[Output Only] Named ports configured on the Instance Groups complementary to this Instance Group Manager.
region: Option<String>Output only. [Output Only] The URL of theregion where the managed instance group resides (for regional resources).
resource_policies: Option<InstanceGroupManagerResourcePolicies>Resource policies for this managed instance group.
satisfies_pzi: Option<bool>Output only. [Output Only] Reserved for future use.
satisfies_pzs: Option<bool>Output only. [Output Only] Reserved for future use.
self_link: Option<String>Output only. [Output Only] The URL for this managed instance group. The server defines this URL.
standby_policy: Option<InstanceGroupManagerStandbyPolicy>Standby policy for stopped and suspended instances.
stateful_policy: Option<StatefulPolicy>Stateful configuration for this Instanced Group Manager
status: Option<InstanceGroupManagerStatus>Output only. [Output Only] The status of this managed instance group.
target_pools: Vec<String>The URLs for all TargetPool resources to which instances in theinstanceGroup field are added. The target pools automatically apply to all of the instances in the managed instance group.
target_size: Option<i32>The target number of running instances for this managed instance group. You can reduce this number by using the instanceGroupManager deleteInstances or abandonInstances methods. Resizing the group also changes this number.
target_stopped_size: Option<i32>The target number of stopped instances for this managed instance group. This number changes when you:
- Stop instance using the stopInstances method or start instances using the startInstances method.
- Manually change the targetStoppedSize using the update method.
target_suspended_size: Option<i32>The target number of suspended instances for this managed instance group. This number changes when you:
- Suspend instance using the suspendInstances method or resume instances using the resumeInstances method.
- Manually change the targetSuspendedSize using the update method.
update_policy: Option<InstanceGroupManagerUpdatePolicy>The update policy for this managed instance group.
versions: Vec<InstanceGroupManagerVersion>Specifies the instance templates used by this managed instance group to create instances.
Each version is defined by an instanceTemplate and aname. Every version can appear at most once per instance group. This field overrides the top-level instanceTemplate field. Read more about therelationships between these fields. Exactly one version must leave thetargetSize field unset. That version will be applied to all remaining instances. For more information, read aboutcanary updates.
zone: Option<String>Output only. [Output Only] The URL of azone where the managed instance group is located (for zonal resources).
Implementations§
Source§impl InstanceGroupManager
impl InstanceGroupManager
pub fn new() -> Self
Sourcepub fn set_all_instances_config<T>(self, v: T) -> Selfwhere
T: Into<InstanceGroupManagerAllInstancesConfig>,
pub fn set_all_instances_config<T>(self, v: T) -> Selfwhere
T: Into<InstanceGroupManagerAllInstancesConfig>,
Sets the value of all_instances_config.
§Example
use google_cloud_compute_v1::model::InstanceGroupManagerAllInstancesConfig;
let x = InstanceGroupManager::new().set_all_instances_config(InstanceGroupManagerAllInstancesConfig::default()/* use setters */);Sourcepub fn set_or_clear_all_instances_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstanceGroupManagerAllInstancesConfig>,
pub fn set_or_clear_all_instances_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstanceGroupManagerAllInstancesConfig>,
Sets or clears the value of all_instances_config.
§Example
use google_cloud_compute_v1::model::InstanceGroupManagerAllInstancesConfig;
let x = InstanceGroupManager::new().set_or_clear_all_instances_config(Some(InstanceGroupManagerAllInstancesConfig::default()/* use setters */));
let x = InstanceGroupManager::new().set_or_clear_all_instances_config(None::<InstanceGroupManagerAllInstancesConfig>);Sourcepub fn set_auto_healing_policies<T, V>(self, v: T) -> Self
pub fn set_auto_healing_policies<T, V>(self, v: T) -> Self
Sets the value of auto_healing_policies.
§Example
use google_cloud_compute_v1::model::InstanceGroupManagerAutoHealingPolicy;
let x = InstanceGroupManager::new()
.set_auto_healing_policies([
InstanceGroupManagerAutoHealingPolicy::default()/* use setters */,
InstanceGroupManagerAutoHealingPolicy::default()/* use (different) setters */,
]);Sourcepub fn set_base_instance_name<T>(self, v: T) -> Self
pub fn set_base_instance_name<T>(self, v: T) -> Self
Sets the value of base_instance_name.
§Example
let x = InstanceGroupManager::new().set_base_instance_name("example");Sourcepub fn set_or_clear_base_instance_name<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_base_instance_name<T>(self, v: Option<T>) -> Self
Sets or clears the value of base_instance_name.
§Example
let x = InstanceGroupManager::new().set_or_clear_base_instance_name(Some("example"));
let x = InstanceGroupManager::new().set_or_clear_base_instance_name(None::<String>);Sourcepub fn set_creation_timestamp<T>(self, v: T) -> Self
pub fn set_creation_timestamp<T>(self, v: T) -> Self
Sets the value of creation_timestamp.
§Example
let x = InstanceGroupManager::new().set_creation_timestamp("example");Sourcepub fn set_or_clear_creation_timestamp<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_creation_timestamp<T>(self, v: Option<T>) -> Self
Sets or clears the value of creation_timestamp.
§Example
let x = InstanceGroupManager::new().set_or_clear_creation_timestamp(Some("example"));
let x = InstanceGroupManager::new().set_or_clear_creation_timestamp(None::<String>);Sourcepub fn set_current_actions<T>(self, v: T) -> Selfwhere
T: Into<InstanceGroupManagerActionsSummary>,
pub fn set_current_actions<T>(self, v: T) -> Selfwhere
T: Into<InstanceGroupManagerActionsSummary>,
Sets the value of current_actions.
§Example
use google_cloud_compute_v1::model::InstanceGroupManagerActionsSummary;
let x = InstanceGroupManager::new().set_current_actions(InstanceGroupManagerActionsSummary::default()/* use setters */);Sourcepub fn set_or_clear_current_actions<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstanceGroupManagerActionsSummary>,
pub fn set_or_clear_current_actions<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstanceGroupManagerActionsSummary>,
Sets or clears the value of current_actions.
§Example
use google_cloud_compute_v1::model::InstanceGroupManagerActionsSummary;
let x = InstanceGroupManager::new().set_or_clear_current_actions(Some(InstanceGroupManagerActionsSummary::default()/* use setters */));
let x = InstanceGroupManager::new().set_or_clear_current_actions(None::<InstanceGroupManagerActionsSummary>);Sourcepub fn set_description<T>(self, v: T) -> Self
pub fn set_description<T>(self, v: T) -> Self
Sets the value of description.
§Example
let x = InstanceGroupManager::new().set_description("example");Sourcepub fn set_or_clear_description<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_description<T>(self, v: Option<T>) -> Self
Sets or clears the value of description.
§Example
let x = InstanceGroupManager::new().set_or_clear_description(Some("example"));
let x = InstanceGroupManager::new().set_or_clear_description(None::<String>);Sourcepub fn set_distribution_policy<T>(self, v: T) -> Selfwhere
T: Into<DistributionPolicy>,
pub fn set_distribution_policy<T>(self, v: T) -> Selfwhere
T: Into<DistributionPolicy>,
Sets the value of distribution_policy.
§Example
use google_cloud_compute_v1::model::DistributionPolicy;
let x = InstanceGroupManager::new().set_distribution_policy(DistributionPolicy::default()/* use setters */);Sourcepub fn set_or_clear_distribution_policy<T>(self, v: Option<T>) -> Selfwhere
T: Into<DistributionPolicy>,
pub fn set_or_clear_distribution_policy<T>(self, v: Option<T>) -> Selfwhere
T: Into<DistributionPolicy>,
Sets or clears the value of distribution_policy.
§Example
use google_cloud_compute_v1::model::DistributionPolicy;
let x = InstanceGroupManager::new().set_or_clear_distribution_policy(Some(DistributionPolicy::default()/* use setters */));
let x = InstanceGroupManager::new().set_or_clear_distribution_policy(None::<DistributionPolicy>);Sourcepub fn set_fingerprint<T>(self, v: T) -> Self
pub fn set_fingerprint<T>(self, v: T) -> Self
Sets the value of fingerprint.
§Example
let x = InstanceGroupManager::new().set_fingerprint(bytes::Bytes::from_static(b"example"));Sourcepub fn set_or_clear_fingerprint<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_fingerprint<T>(self, v: Option<T>) -> Self
Sets or clears the value of fingerprint.
§Example
let x = InstanceGroupManager::new().set_or_clear_fingerprint(Some(bytes::Bytes::from_static(b"example")));
let x = InstanceGroupManager::new().set_or_clear_fingerprint(None::<bytes::Bytes>);Sourcepub fn set_or_clear_id<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_id<T>(self, v: Option<T>) -> Self
Sourcepub fn set_instance_flexibility_policy<T>(self, v: T) -> Self
pub fn set_instance_flexibility_policy<T>(self, v: T) -> Self
Sets the value of instance_flexibility_policy.
§Example
use google_cloud_compute_v1::model::InstanceGroupManagerInstanceFlexibilityPolicy;
let x = InstanceGroupManager::new().set_instance_flexibility_policy(InstanceGroupManagerInstanceFlexibilityPolicy::default()/* use setters */);Sourcepub fn set_or_clear_instance_flexibility_policy<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_instance_flexibility_policy<T>(self, v: Option<T>) -> Self
Sets or clears the value of instance_flexibility_policy.
§Example
use google_cloud_compute_v1::model::InstanceGroupManagerInstanceFlexibilityPolicy;
let x = InstanceGroupManager::new().set_or_clear_instance_flexibility_policy(Some(InstanceGroupManagerInstanceFlexibilityPolicy::default()/* use setters */));
let x = InstanceGroupManager::new().set_or_clear_instance_flexibility_policy(None::<InstanceGroupManagerInstanceFlexibilityPolicy>);Sourcepub fn set_instance_group<T>(self, v: T) -> Self
pub fn set_instance_group<T>(self, v: T) -> Self
Sets the value of instance_group.
§Example
let x = InstanceGroupManager::new().set_instance_group("example");Sourcepub fn set_or_clear_instance_group<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_instance_group<T>(self, v: Option<T>) -> Self
Sets or clears the value of instance_group.
§Example
let x = InstanceGroupManager::new().set_or_clear_instance_group(Some("example"));
let x = InstanceGroupManager::new().set_or_clear_instance_group(None::<String>);Sourcepub fn set_instance_lifecycle_policy<T>(self, v: T) -> Selfwhere
T: Into<InstanceGroupManagerInstanceLifecyclePolicy>,
pub fn set_instance_lifecycle_policy<T>(self, v: T) -> Selfwhere
T: Into<InstanceGroupManagerInstanceLifecyclePolicy>,
Sets the value of instance_lifecycle_policy.
§Example
use google_cloud_compute_v1::model::InstanceGroupManagerInstanceLifecyclePolicy;
let x = InstanceGroupManager::new().set_instance_lifecycle_policy(InstanceGroupManagerInstanceLifecyclePolicy::default()/* use setters */);Sourcepub fn set_or_clear_instance_lifecycle_policy<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstanceGroupManagerInstanceLifecyclePolicy>,
pub fn set_or_clear_instance_lifecycle_policy<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstanceGroupManagerInstanceLifecyclePolicy>,
Sets or clears the value of instance_lifecycle_policy.
§Example
use google_cloud_compute_v1::model::InstanceGroupManagerInstanceLifecyclePolicy;
let x = InstanceGroupManager::new().set_or_clear_instance_lifecycle_policy(Some(InstanceGroupManagerInstanceLifecyclePolicy::default()/* use setters */));
let x = InstanceGroupManager::new().set_or_clear_instance_lifecycle_policy(None::<InstanceGroupManagerInstanceLifecyclePolicy>);Sourcepub fn set_instance_template<T>(self, v: T) -> Self
pub fn set_instance_template<T>(self, v: T) -> Self
Sets the value of instance_template.
§Example
let x = InstanceGroupManager::new().set_instance_template("example");Sourcepub fn set_or_clear_instance_template<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_instance_template<T>(self, v: Option<T>) -> Self
Sets or clears the value of instance_template.
§Example
let x = InstanceGroupManager::new().set_or_clear_instance_template(Some("example"));
let x = InstanceGroupManager::new().set_or_clear_instance_template(None::<String>);Sourcepub fn set_or_clear_kind<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_kind<T>(self, v: Option<T>) -> Self
Sourcepub fn set_list_managed_instances_results<T>(self, v: T) -> Selfwhere
T: Into<ListManagedInstancesResults>,
pub fn set_list_managed_instances_results<T>(self, v: T) -> Selfwhere
T: Into<ListManagedInstancesResults>,
Sets the value of list_managed_instances_results.
§Example
use google_cloud_compute_v1::model::instance_group_manager::ListManagedInstancesResults;
let x0 = InstanceGroupManager::new().set_list_managed_instances_results(ListManagedInstancesResults::Paginated);Sourcepub fn set_or_clear_list_managed_instances_results<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<ListManagedInstancesResults>,
pub fn set_or_clear_list_managed_instances_results<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<ListManagedInstancesResults>,
Sets or clears the value of list_managed_instances_results.
§Example
use google_cloud_compute_v1::model::instance_group_manager::ListManagedInstancesResults;
let x0 = InstanceGroupManager::new().set_or_clear_list_managed_instances_results(Some(ListManagedInstancesResults::Paginated));
let x_none = InstanceGroupManager::new().set_or_clear_list_managed_instances_results(None::<ListManagedInstancesResults>);Sourcepub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
Sourcepub fn set_named_ports<T, V>(self, v: T) -> Self
pub fn set_named_ports<T, V>(self, v: T) -> Self
Sets the value of named_ports.
§Example
use google_cloud_compute_v1::model::NamedPort;
let x = InstanceGroupManager::new()
.set_named_ports([
NamedPort::default()/* use setters */,
NamedPort::default()/* use (different) setters */,
]);Sourcepub fn set_region<T>(self, v: T) -> Self
pub fn set_region<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_region<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_region<T>(self, v: Option<T>) -> Self
Sourcepub fn set_resource_policies<T>(self, v: T) -> Selfwhere
T: Into<InstanceGroupManagerResourcePolicies>,
pub fn set_resource_policies<T>(self, v: T) -> Selfwhere
T: Into<InstanceGroupManagerResourcePolicies>,
Sets the value of resource_policies.
§Example
use google_cloud_compute_v1::model::InstanceGroupManagerResourcePolicies;
let x = InstanceGroupManager::new().set_resource_policies(InstanceGroupManagerResourcePolicies::default()/* use setters */);Sourcepub fn set_or_clear_resource_policies<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstanceGroupManagerResourcePolicies>,
pub fn set_or_clear_resource_policies<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstanceGroupManagerResourcePolicies>,
Sets or clears the value of resource_policies.
§Example
use google_cloud_compute_v1::model::InstanceGroupManagerResourcePolicies;
let x = InstanceGroupManager::new().set_or_clear_resource_policies(Some(InstanceGroupManagerResourcePolicies::default()/* use setters */));
let x = InstanceGroupManager::new().set_or_clear_resource_policies(None::<InstanceGroupManagerResourcePolicies>);Sourcepub fn set_satisfies_pzi<T>(self, v: T) -> Self
pub fn set_satisfies_pzi<T>(self, v: T) -> Self
Sets the value of satisfies_pzi.
§Example
let x = InstanceGroupManager::new().set_satisfies_pzi(true);Sourcepub fn set_or_clear_satisfies_pzi<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_satisfies_pzi<T>(self, v: Option<T>) -> Self
Sets or clears the value of satisfies_pzi.
§Example
let x = InstanceGroupManager::new().set_or_clear_satisfies_pzi(Some(false));
let x = InstanceGroupManager::new().set_or_clear_satisfies_pzi(None::<bool>);Sourcepub fn set_satisfies_pzs<T>(self, v: T) -> Self
pub fn set_satisfies_pzs<T>(self, v: T) -> Self
Sets the value of satisfies_pzs.
§Example
let x = InstanceGroupManager::new().set_satisfies_pzs(true);Sourcepub fn set_or_clear_satisfies_pzs<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_satisfies_pzs<T>(self, v: Option<T>) -> Self
Sets or clears the value of satisfies_pzs.
§Example
let x = InstanceGroupManager::new().set_or_clear_satisfies_pzs(Some(false));
let x = InstanceGroupManager::new().set_or_clear_satisfies_pzs(None::<bool>);Sourcepub fn set_self_link<T>(self, v: T) -> Self
pub fn set_self_link<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_self_link<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_self_link<T>(self, v: Option<T>) -> Self
Sourcepub fn set_standby_policy<T>(self, v: T) -> Selfwhere
T: Into<InstanceGroupManagerStandbyPolicy>,
pub fn set_standby_policy<T>(self, v: T) -> Selfwhere
T: Into<InstanceGroupManagerStandbyPolicy>,
Sets the value of standby_policy.
§Example
use google_cloud_compute_v1::model::InstanceGroupManagerStandbyPolicy;
let x = InstanceGroupManager::new().set_standby_policy(InstanceGroupManagerStandbyPolicy::default()/* use setters */);Sourcepub fn set_or_clear_standby_policy<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstanceGroupManagerStandbyPolicy>,
pub fn set_or_clear_standby_policy<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstanceGroupManagerStandbyPolicy>,
Sets or clears the value of standby_policy.
§Example
use google_cloud_compute_v1::model::InstanceGroupManagerStandbyPolicy;
let x = InstanceGroupManager::new().set_or_clear_standby_policy(Some(InstanceGroupManagerStandbyPolicy::default()/* use setters */));
let x = InstanceGroupManager::new().set_or_clear_standby_policy(None::<InstanceGroupManagerStandbyPolicy>);Sourcepub fn set_stateful_policy<T>(self, v: T) -> Selfwhere
T: Into<StatefulPolicy>,
pub fn set_stateful_policy<T>(self, v: T) -> Selfwhere
T: Into<StatefulPolicy>,
Sets the value of stateful_policy.
§Example
use google_cloud_compute_v1::model::StatefulPolicy;
let x = InstanceGroupManager::new().set_stateful_policy(StatefulPolicy::default()/* use setters */);Sourcepub fn set_or_clear_stateful_policy<T>(self, v: Option<T>) -> Selfwhere
T: Into<StatefulPolicy>,
pub fn set_or_clear_stateful_policy<T>(self, v: Option<T>) -> Selfwhere
T: Into<StatefulPolicy>,
Sets or clears the value of stateful_policy.
§Example
use google_cloud_compute_v1::model::StatefulPolicy;
let x = InstanceGroupManager::new().set_or_clear_stateful_policy(Some(StatefulPolicy::default()/* use setters */));
let x = InstanceGroupManager::new().set_or_clear_stateful_policy(None::<StatefulPolicy>);Sourcepub fn set_status<T>(self, v: T) -> Selfwhere
T: Into<InstanceGroupManagerStatus>,
pub fn set_status<T>(self, v: T) -> Selfwhere
T: Into<InstanceGroupManagerStatus>,
Sourcepub fn set_or_clear_status<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstanceGroupManagerStatus>,
pub fn set_or_clear_status<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstanceGroupManagerStatus>,
Sets or clears the value of status.
§Example
use google_cloud_compute_v1::model::InstanceGroupManagerStatus;
let x = InstanceGroupManager::new().set_or_clear_status(Some(InstanceGroupManagerStatus::default()/* use setters */));
let x = InstanceGroupManager::new().set_or_clear_status(None::<InstanceGroupManagerStatus>);Sourcepub fn set_target_pools<T, V>(self, v: T) -> Self
pub fn set_target_pools<T, V>(self, v: T) -> Self
Sets the value of target_pools.
§Example
let x = InstanceGroupManager::new().set_target_pools(["a", "b", "c"]);Sourcepub fn set_target_size<T>(self, v: T) -> Self
pub fn set_target_size<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_target_size<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_target_size<T>(self, v: Option<T>) -> Self
Sets or clears the value of target_size.
§Example
let x = InstanceGroupManager::new().set_or_clear_target_size(Some(42));
let x = InstanceGroupManager::new().set_or_clear_target_size(None::<i32>);Sourcepub fn set_target_stopped_size<T>(self, v: T) -> Self
pub fn set_target_stopped_size<T>(self, v: T) -> Self
Sets the value of target_stopped_size.
§Example
let x = InstanceGroupManager::new().set_target_stopped_size(42);Sourcepub fn set_or_clear_target_stopped_size<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_target_stopped_size<T>(self, v: Option<T>) -> Self
Sets or clears the value of target_stopped_size.
§Example
let x = InstanceGroupManager::new().set_or_clear_target_stopped_size(Some(42));
let x = InstanceGroupManager::new().set_or_clear_target_stopped_size(None::<i32>);Sourcepub fn set_target_suspended_size<T>(self, v: T) -> Self
pub fn set_target_suspended_size<T>(self, v: T) -> Self
Sets the value of target_suspended_size.
§Example
let x = InstanceGroupManager::new().set_target_suspended_size(42);Sourcepub fn set_or_clear_target_suspended_size<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_target_suspended_size<T>(self, v: Option<T>) -> Self
Sets or clears the value of target_suspended_size.
§Example
let x = InstanceGroupManager::new().set_or_clear_target_suspended_size(Some(42));
let x = InstanceGroupManager::new().set_or_clear_target_suspended_size(None::<i32>);Sourcepub fn set_update_policy<T>(self, v: T) -> Selfwhere
T: Into<InstanceGroupManagerUpdatePolicy>,
pub fn set_update_policy<T>(self, v: T) -> Selfwhere
T: Into<InstanceGroupManagerUpdatePolicy>,
Sets the value of update_policy.
§Example
use google_cloud_compute_v1::model::InstanceGroupManagerUpdatePolicy;
let x = InstanceGroupManager::new().set_update_policy(InstanceGroupManagerUpdatePolicy::default()/* use setters */);Sourcepub fn set_or_clear_update_policy<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstanceGroupManagerUpdatePolicy>,
pub fn set_or_clear_update_policy<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstanceGroupManagerUpdatePolicy>,
Sets or clears the value of update_policy.
§Example
use google_cloud_compute_v1::model::InstanceGroupManagerUpdatePolicy;
let x = InstanceGroupManager::new().set_or_clear_update_policy(Some(InstanceGroupManagerUpdatePolicy::default()/* use setters */));
let x = InstanceGroupManager::new().set_or_clear_update_policy(None::<InstanceGroupManagerUpdatePolicy>);Sourcepub fn set_versions<T, V>(self, v: T) -> Self
pub fn set_versions<T, V>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for InstanceGroupManager
impl Clone for InstanceGroupManager
Source§fn clone(&self) -> InstanceGroupManager
fn clone(&self) -> InstanceGroupManager
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more