Reference documentation and code samples for the Google Cloud Compute V1 API class Google::Cloud::Compute::V1::ManagedInstance.
A Managed Instance resource.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#current_action
def current_action() -> ::String
Returns
- (::String) — [Output Only] The current action that the managed instance group has scheduled for the instance. Possible values: - NONE The instance is running, and the managed instance group does not have any scheduled actions for this instance. - CREATING The managed instance group is creating this instance. If the group fails to create this instance, it will try again until it is successful. - CREATING_WITHOUT_RETRIES The managed instance group is attempting to create this instance only once. If the group fails to create this instance, it does not try again and the group's targetSize value is decreased instead. - RECREATING The managed instance group is recreating this instance. - DELETING The managed instance group is permanently deleting this instance. - ABANDONING The managed instance group is abandoning this instance. The instance will be removed from the instance group and from any target pools that are associated with this group. - RESTARTING The managed instance group is restarting the instance. - REFRESHING The managed instance group is applying configuration changes to the instance without stopping it. For example, the group can update the target pool list for an instance without stopping that instance. - VERIFYING The managed instance group has created the instance and it is in the process of being verified. Check the CurrentAction enum for the list of possible values.
#current_action=
def current_action=(value) -> ::String
Parameter
- value (::String) — [Output Only] The current action that the managed instance group has scheduled for the instance. Possible values: - NONE The instance is running, and the managed instance group does not have any scheduled actions for this instance. - CREATING The managed instance group is creating this instance. If the group fails to create this instance, it will try again until it is successful. - CREATING_WITHOUT_RETRIES The managed instance group is attempting to create this instance only once. If the group fails to create this instance, it does not try again and the group's targetSize value is decreased instead. - RECREATING The managed instance group is recreating this instance. - DELETING The managed instance group is permanently deleting this instance. - ABANDONING The managed instance group is abandoning this instance. The instance will be removed from the instance group and from any target pools that are associated with this group. - RESTARTING The managed instance group is restarting the instance. - REFRESHING The managed instance group is applying configuration changes to the instance without stopping it. For example, the group can update the target pool list for an instance without stopping that instance. - VERIFYING The managed instance group has created the instance and it is in the process of being verified. Check the CurrentAction enum for the list of possible values.
Returns
- (::String) — [Output Only] The current action that the managed instance group has scheduled for the instance. Possible values: - NONE The instance is running, and the managed instance group does not have any scheduled actions for this instance. - CREATING The managed instance group is creating this instance. If the group fails to create this instance, it will try again until it is successful. - CREATING_WITHOUT_RETRIES The managed instance group is attempting to create this instance only once. If the group fails to create this instance, it does not try again and the group's targetSize value is decreased instead. - RECREATING The managed instance group is recreating this instance. - DELETING The managed instance group is permanently deleting this instance. - ABANDONING The managed instance group is abandoning this instance. The instance will be removed from the instance group and from any target pools that are associated with this group. - RESTARTING The managed instance group is restarting the instance. - REFRESHING The managed instance group is applying configuration changes to the instance without stopping it. For example, the group can update the target pool list for an instance without stopping that instance. - VERIFYING The managed instance group has created the instance and it is in the process of being verified. Check the CurrentAction enum for the list of possible values.
#id
def id() -> ::Integer
Returns
- (::Integer) — [Output only] The unique identifier for this resource. This field is empty when instance does not exist.
#id=
def id=(value) -> ::Integer
Parameter
- value (::Integer) — [Output only] The unique identifier for this resource. This field is empty when instance does not exist.
Returns
- (::Integer) — [Output only] The unique identifier for this resource. This field is empty when instance does not exist.
#instance
def instance() -> ::String
Returns
- (::String) — [Output Only] The URL of the instance. The URL can exist even if the instance has not yet been created.
#instance=
def instance=(value) -> ::String
Parameter
- value (::String) — [Output Only] The URL of the instance. The URL can exist even if the instance has not yet been created.
Returns
- (::String) — [Output Only] The URL of the instance. The URL can exist even if the instance has not yet been created.
#instance_health
def instance_health() -> ::Array<::Google::Cloud::Compute::V1::ManagedInstanceInstanceHealth>
Returns
- (::Array<::Google::Cloud::Compute::V1::ManagedInstanceInstanceHealth>) — [Output Only] Health state of the instance per health-check.
#instance_health=
def instance_health=(value) -> ::Array<::Google::Cloud::Compute::V1::ManagedInstanceInstanceHealth>
Parameter
- value (::Array<::Google::Cloud::Compute::V1::ManagedInstanceInstanceHealth>) — [Output Only] Health state of the instance per health-check.
Returns
- (::Array<::Google::Cloud::Compute::V1::ManagedInstanceInstanceHealth>) — [Output Only] Health state of the instance per health-check.
#instance_status
def instance_status() -> ::String
Returns
- (::String) — [Output Only] The status of the instance. This field is empty when the instance does not exist. Check the InstanceStatus enum for the list of possible values.
#instance_status=
def instance_status=(value) -> ::String
Parameter
- value (::String) — [Output Only] The status of the instance. This field is empty when the instance does not exist. Check the InstanceStatus enum for the list of possible values.
Returns
- (::String) — [Output Only] The status of the instance. This field is empty when the instance does not exist. Check the InstanceStatus enum for the list of possible values.
#last_attempt
def last_attempt() -> ::Google::Cloud::Compute::V1::ManagedInstanceLastAttempt
Returns
- (::Google::Cloud::Compute::V1::ManagedInstanceLastAttempt) — [Output Only] Information about the last attempt to create or delete the instance.
#last_attempt=
def last_attempt=(value) -> ::Google::Cloud::Compute::V1::ManagedInstanceLastAttempt
Parameter
- value (::Google::Cloud::Compute::V1::ManagedInstanceLastAttempt) — [Output Only] Information about the last attempt to create or delete the instance.
Returns
- (::Google::Cloud::Compute::V1::ManagedInstanceLastAttempt) — [Output Only] Information about the last attempt to create or delete the instance.
#name
def name() -> ::String
Returns
- (::String) — [Output Only] The name of the instance. The name always exists even if the instance has not yet been created.
#name=
def name=(value) -> ::String
Parameter
- value (::String) — [Output Only] The name of the instance. The name always exists even if the instance has not yet been created.
Returns
- (::String) — [Output Only] The name of the instance. The name always exists even if the instance has not yet been created.
#preserved_state_from_config
def preserved_state_from_config() -> ::Google::Cloud::Compute::V1::PreservedState
Returns
- (::Google::Cloud::Compute::V1::PreservedState) — [Output Only] Preserved state applied from per-instance config for this instance.
#preserved_state_from_config=
def preserved_state_from_config=(value) -> ::Google::Cloud::Compute::V1::PreservedState
Parameter
- value (::Google::Cloud::Compute::V1::PreservedState) — [Output Only] Preserved state applied from per-instance config for this instance.
Returns
- (::Google::Cloud::Compute::V1::PreservedState) — [Output Only] Preserved state applied from per-instance config for this instance.
#preserved_state_from_policy
def preserved_state_from_policy() -> ::Google::Cloud::Compute::V1::PreservedState
Returns
- (::Google::Cloud::Compute::V1::PreservedState) — [Output Only] Preserved state generated based on stateful policy for this instance.
#preserved_state_from_policy=
def preserved_state_from_policy=(value) -> ::Google::Cloud::Compute::V1::PreservedState
Parameter
- value (::Google::Cloud::Compute::V1::PreservedState) — [Output Only] Preserved state generated based on stateful policy for this instance.
Returns
- (::Google::Cloud::Compute::V1::PreservedState) — [Output Only] Preserved state generated based on stateful policy for this instance.
#properties_from_flexibility_policy
def properties_from_flexibility_policy() -> ::Google::Cloud::Compute::V1::ManagedInstancePropertiesFromFlexibilityPolicy
Returns
- (::Google::Cloud::Compute::V1::ManagedInstancePropertiesFromFlexibilityPolicy) — [Output Only] Instance properties selected for this instance resulting from InstanceFlexibilityPolicy.
#properties_from_flexibility_policy=
def properties_from_flexibility_policy=(value) -> ::Google::Cloud::Compute::V1::ManagedInstancePropertiesFromFlexibilityPolicy
Parameter
- value (::Google::Cloud::Compute::V1::ManagedInstancePropertiesFromFlexibilityPolicy) — [Output Only] Instance properties selected for this instance resulting from InstanceFlexibilityPolicy.
Returns
- (::Google::Cloud::Compute::V1::ManagedInstancePropertiesFromFlexibilityPolicy) — [Output Only] Instance properties selected for this instance resulting from InstanceFlexibilityPolicy.
#version
def version() -> ::Google::Cloud::Compute::V1::ManagedInstanceVersion
Returns
- (::Google::Cloud::Compute::V1::ManagedInstanceVersion) — [Output Only] Intended version of this instance.
#version=
def version=(value) -> ::Google::Cloud::Compute::V1::ManagedInstanceVersion
Parameter
- value (::Google::Cloud::Compute::V1::ManagedInstanceVersion) — [Output Only] Intended version of this instance.
Returns
- (::Google::Cloud::Compute::V1::ManagedInstanceVersion) — [Output Only] Intended version of this instance.