Skip to main content

InstanceGroupManager

Struct InstanceGroupManager 

Source
#[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 */
}
Available on crate features 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
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional 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

Source

pub fn new() -> Self

Source

pub fn set_all_instances_config<T>(self, v: T) -> Self

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 */);
Source

pub fn set_or_clear_all_instances_config<T>(self, v: Option<T>) -> Self

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>);
Source

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 */,
    ]);
Source

pub fn set_base_instance_name<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of base_instance_name.

§Example
let x = InstanceGroupManager::new().set_base_instance_name("example");
Source

pub fn set_or_clear_base_instance_name<T>(self, v: Option<T>) -> Self
where T: Into<String>,

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>);
Source

pub fn set_creation_timestamp<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of creation_timestamp.

§Example
let x = InstanceGroupManager::new().set_creation_timestamp("example");
Source

pub fn set_or_clear_creation_timestamp<T>(self, v: Option<T>) -> Self
where T: Into<String>,

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>);
Source

pub fn set_current_actions<T>(self, v: T) -> Self

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 */);
Source

pub fn set_or_clear_current_actions<T>(self, v: Option<T>) -> Self

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>);
Source

pub fn set_description<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of description.

§Example
let x = InstanceGroupManager::new().set_description("example");
Source

pub fn set_or_clear_description<T>(self, v: Option<T>) -> Self
where T: Into<String>,

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>);
Source

pub fn set_distribution_policy<T>(self, v: T) -> Self

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 */);
Source

pub fn set_or_clear_distribution_policy<T>(self, v: Option<T>) -> Self

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>);
Source

pub fn set_fingerprint<T>(self, v: T) -> Self
where T: Into<Bytes>,

Sets the value of fingerprint.

§Example
let x = InstanceGroupManager::new().set_fingerprint(bytes::Bytes::from_static(b"example"));
Source

pub fn set_or_clear_fingerprint<T>(self, v: Option<T>) -> Self
where T: Into<Bytes>,

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>);
Source

pub fn set_id<T>(self, v: T) -> Self
where T: Into<u64>,

Sets the value of id.

§Example
let x = InstanceGroupManager::new().set_id(42_u32);
Source

pub fn set_or_clear_id<T>(self, v: Option<T>) -> Self
where T: Into<u64>,

Sets or clears the value of id.

§Example
let x = InstanceGroupManager::new().set_or_clear_id(Some(42_u32));
let x = InstanceGroupManager::new().set_or_clear_id(None::<u32>);
Source

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 */);
Source

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>);
Source

pub fn set_instance_group<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of instance_group.

§Example
let x = InstanceGroupManager::new().set_instance_group("example");
Source

pub fn set_or_clear_instance_group<T>(self, v: Option<T>) -> Self
where T: Into<String>,

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>);
Source

pub fn set_instance_lifecycle_policy<T>(self, v: T) -> Self

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 */);
Source

pub fn set_or_clear_instance_lifecycle_policy<T>(self, v: Option<T>) -> Self

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>);
Source

pub fn set_instance_template<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of instance_template.

§Example
let x = InstanceGroupManager::new().set_instance_template("example");
Source

pub fn set_or_clear_instance_template<T>(self, v: Option<T>) -> Self
where T: Into<String>,

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>);
Source

pub fn set_kind<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of kind.

§Example
let x = InstanceGroupManager::new().set_kind("example");
Source

pub fn set_or_clear_kind<T>(self, v: Option<T>) -> Self
where T: Into<String>,

Sets or clears the value of kind.

§Example
let x = InstanceGroupManager::new().set_or_clear_kind(Some("example"));
let x = InstanceGroupManager::new().set_or_clear_kind(None::<String>);
Source

pub fn set_list_managed_instances_results<T>(self, v: T) -> Self

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);
Source

pub fn set_or_clear_list_managed_instances_results<T>( self, v: Option<T>, ) -> Self

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>);
Source

pub fn set_name<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of name.

§Example
let x = InstanceGroupManager::new().set_name("example");
Source

pub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
where T: Into<String>,

Sets or clears the value of name.

§Example
let x = InstanceGroupManager::new().set_or_clear_name(Some("example"));
let x = InstanceGroupManager::new().set_or_clear_name(None::<String>);
Source

pub fn set_named_ports<T, V>(self, v: T) -> Self
where T: IntoIterator<Item = V>, V: Into<NamedPort>,

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 */,
    ]);
Source

pub fn set_region<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of region.

§Example
let x = InstanceGroupManager::new().set_region("example");
Source

pub fn set_or_clear_region<T>(self, v: Option<T>) -> Self
where T: Into<String>,

Sets or clears the value of region.

§Example
let x = InstanceGroupManager::new().set_or_clear_region(Some("example"));
let x = InstanceGroupManager::new().set_or_clear_region(None::<String>);
Source

pub fn set_resource_policies<T>(self, v: T) -> Self

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 */);
Source

pub fn set_or_clear_resource_policies<T>(self, v: Option<T>) -> Self

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>);
Source

pub fn set_satisfies_pzi<T>(self, v: T) -> Self
where T: Into<bool>,

Sets the value of satisfies_pzi.

§Example
let x = InstanceGroupManager::new().set_satisfies_pzi(true);
Source

pub fn set_or_clear_satisfies_pzi<T>(self, v: Option<T>) -> Self
where T: Into<bool>,

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>);
Source

pub fn set_satisfies_pzs<T>(self, v: T) -> Self
where T: Into<bool>,

Sets the value of satisfies_pzs.

§Example
let x = InstanceGroupManager::new().set_satisfies_pzs(true);
Source

pub fn set_or_clear_satisfies_pzs<T>(self, v: Option<T>) -> Self
where T: Into<bool>,

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>);

Sets the value of self_link.

§Example
let x = InstanceGroupManager::new().set_self_link("example");

Sets or clears the value of self_link.

§Example
let x = InstanceGroupManager::new().set_or_clear_self_link(Some("example"));
let x = InstanceGroupManager::new().set_or_clear_self_link(None::<String>);
Source

pub fn set_standby_policy<T>(self, v: T) -> Self

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 */);
Source

pub fn set_or_clear_standby_policy<T>(self, v: Option<T>) -> Self

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>);
Source

pub fn set_stateful_policy<T>(self, v: T) -> Self
where 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 */);
Source

pub fn set_or_clear_stateful_policy<T>(self, v: Option<T>) -> Self
where 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>);
Source

pub fn set_status<T>(self, v: T) -> Self

Sets the value of status.

§Example
use google_cloud_compute_v1::model::InstanceGroupManagerStatus;
let x = InstanceGroupManager::new().set_status(InstanceGroupManagerStatus::default()/* use setters */);
Source

pub fn set_or_clear_status<T>(self, v: Option<T>) -> Self

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>);
Source

pub fn set_target_pools<T, V>(self, v: T) -> Self
where T: IntoIterator<Item = V>, V: Into<String>,

Sets the value of target_pools.

§Example
let x = InstanceGroupManager::new().set_target_pools(["a", "b", "c"]);
Source

pub fn set_target_size<T>(self, v: T) -> Self
where T: Into<i32>,

Sets the value of target_size.

§Example
let x = InstanceGroupManager::new().set_target_size(42);
Source

pub fn set_or_clear_target_size<T>(self, v: Option<T>) -> Self
where T: Into<i32>,

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>);
Source

pub fn set_target_stopped_size<T>(self, v: T) -> Self
where T: Into<i32>,

Sets the value of target_stopped_size.

§Example
let x = InstanceGroupManager::new().set_target_stopped_size(42);
Source

pub fn set_or_clear_target_stopped_size<T>(self, v: Option<T>) -> Self
where T: Into<i32>,

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>);
Source

pub fn set_target_suspended_size<T>(self, v: T) -> Self
where T: Into<i32>,

Sets the value of target_suspended_size.

§Example
let x = InstanceGroupManager::new().set_target_suspended_size(42);
Source

pub fn set_or_clear_target_suspended_size<T>(self, v: Option<T>) -> Self
where T: Into<i32>,

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>);
Source

pub fn set_update_policy<T>(self, v: T) -> Self

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 */);
Source

pub fn set_or_clear_update_policy<T>(self, v: Option<T>) -> Self

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>);
Source

pub fn set_versions<T, V>(self, v: T) -> Self

Sets the value of versions.

§Example
use google_cloud_compute_v1::model::InstanceGroupManagerVersion;
let x = InstanceGroupManager::new()
    .set_versions([
        InstanceGroupManagerVersion::default()/* use setters */,
        InstanceGroupManagerVersion::default()/* use (different) setters */,
    ]);
Source

pub fn set_zone<T>(self, v: T) -> Self
where T: Into<String>,

Sets the value of zone.

§Example
let x = InstanceGroupManager::new().set_zone("example");
Source

pub fn set_or_clear_zone<T>(self, v: Option<T>) -> Self
where T: Into<String>,

Sets or clears the value of zone.

§Example
let x = InstanceGroupManager::new().set_or_clear_zone(Some("example"));
let x = InstanceGroupManager::new().set_or_clear_zone(None::<String>);

Trait Implementations§

Source§

impl Clone for InstanceGroupManager

Source§

fn clone(&self) -> InstanceGroupManager

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for InstanceGroupManager

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for InstanceGroupManager

Source§

fn default() -> InstanceGroupManager

Returns the “default value” for a type. Read more
Source§

impl Message for InstanceGroupManager

Source§

fn typename() -> &'static str

The typename of this message.
Source§

impl PartialEq for InstanceGroupManager

Source§

fn eq(&self, other: &InstanceGroupManager) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for InstanceGroupManager

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,