Class Instance (1.3.1)

Instance(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A server.

Attributes

NameDescription
name str
Output only. The resource name of this Instance. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. Format: projects/{project}/locations/{location}/instances/{instance}
id str
An identifier for the Instance, generated by the backend.
create_time google.protobuf.timestamp_pb2.Timestamp
Output only. Create a time stamp.
update_time google.protobuf.timestamp_pb2.Timestamp
Output only. Update a time stamp.
machine_type str
The server type. `Available server types
state google.cloud.bare_metal_solution_v2.types.Instance.State
The state of the server.
hyperthreading_enabled bool
True if you enable hyperthreading for the server, otherwise false. The default value is false.
labels MutableMapping[str, str]
Labels as key value pairs.
luns MutableSequence[google.cloud.bare_metal_solution_v2.types.Lun]
List of LUNs associated with this server.
networks MutableSequence[google.cloud.bare_metal_solution_v2.types.Network]
List of networks associated with this server.
interactive_serial_console_enabled bool
True if the interactive serial console feature is enabled for the instance, false otherwise. The default value is false.
os_image str
The OS image currently installed on the server.
pod str
Immutable. Pod name. Pod is an independent part of infrastructure. Instance can be connected to the assets (networks, volumes) allocated in the same pod only.
network_template str
Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc. Generally, the template name follows the syntax of "bond
logical_interfaces MutableSequence[google.cloud.bare_metal_solution_v2.types.LogicalInterface]
List of logical interfaces for the instance. The number of logical interfaces will be the same as number of hardware bond/nic on the chosen network template. For the non-multivlan configurations (for eg, existing servers) that use existing default network template (bondaa-bondaa), both the Instance.networks field and the Instance.logical_interfaces fields will be filled to ensure backward compatibility. For the others, only Instance.logical_interfaces will be filled.

Classes

LabelsEntry

LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

Parameters
NameDescription
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, .Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.

State

State(value)

The possible states for this server.

Values: STATE_UNSPECIFIED (0): The server is in an unknown state. PROVISIONING (1): The server is being provisioned. RUNNING (2): The server is running. DELETED (3): The server has been deleted.