Class Spoke (2.4.2)

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

A Network Connectivity Center spoke represents one or more network connectivity resources.

When you create a spoke, you associate it with a hub. You must also identify a value for exactly one of the following fields:

  • linked_vpn_tunnels
  • linked_interconnect_attachments
  • linked_router_appliance_instances
  • linked_vpc_network

Attributes

NameDescription
name str
Immutable. The name of the spoke. Spoke names must be unique. They use the following form: projects/{project_number}/locations/{region}/spokes/{spoke_id}
create_time google.protobuf.timestamp_pb2.Timestamp
Output only. The time the spoke was created.
update_time google.protobuf.timestamp_pb2.Timestamp
Output only. The time the spoke was last updated.
labels MutableMapping[str, str]
Optional labels in key-value pair format. For more information about labels, see `Requirements for labels
description str
An optional description of the spoke.
hub str
Immutable. The name of the hub that this spoke is attached to.
group str
Optional. The name of the group that this spoke is associated with.
linked_vpn_tunnels google.cloud.networkconnectivity_v1.types.LinkedVpnTunnels
VPN tunnels that are associated with the spoke.
linked_interconnect_attachments google.cloud.networkconnectivity_v1.types.LinkedInterconnectAttachments
VLAN attachments that are associated with the spoke.
linked_router_appliance_instances google.cloud.networkconnectivity_v1.types.LinkedRouterApplianceInstances
Router appliance instances that are associated with the spoke.
linked_vpc_network google.cloud.networkconnectivity_v1.types.LinkedVpcNetwork
Optional. VPC network that is associated with the spoke.
unique_id str
Output only. The Google-generated UUID for the spoke. This value is unique across all spoke resources. If a spoke is deleted and another with the same name is created, the new spoke is assigned a different unique_id.
state google.cloud.networkconnectivity_v1.types.State
Output only. The current lifecycle state of this spoke.
reasons MutableSequence[google.cloud.networkconnectivity_v1.types.Spoke.StateReason]
Output only. The reasons for current state of the spoke. Only present when the spoke is in the INACTIVE state.
spoke_type google.cloud.networkconnectivity_v1.types.SpokeType
Output only. The type of resource associated with the spoke.

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.

StateReason

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

The reason a spoke is inactive.