Hub(mapping=None, *, ignore_unknown_fields=False, **kwargs)A Network Connectivity Center hub is a global management resource to which you attach spokes. A single hub can contain spokes from multiple regions. However, if any of a hub's spokes use the site-to-site data transfer feature, the resources associated with those spokes must all be in the same VPC network. Spokes that do not use site-to-site data transfer can be associated with any VPC network in your project.
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
Attributes |
|
|---|---|
| Name | Description |
name |
str
Immutable. The name of the hub. Hub names must be unique. They use the following form: projects/{project_number}/locations/global/hubs/{hub_id}
|
create_time |
google.protobuf.timestamp_pb2.Timestamp
Output only. The time the hub was created. |
update_time |
google.protobuf.timestamp_pb2.Timestamp
Output only. The time the hub 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
Optional. An optional description of the hub. |
unique_id |
str
Output only. The Google-generated UUID for the hub. This value is unique across all hub resources. If a hub is deleted and another with the same name is created, the new hub is assigned a different unique_id. |
state |
google.cloud.networkconnectivity_v1.types.State
Output only. The current lifecycle state of this hub. |
routing_vpcs |
MutableSequence[google.cloud.networkconnectivity_v1.types.RoutingVPC]
The VPC networks associated with this hub's spokes. This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub. |
route_tables |
MutableSequence[str]
Output only. The route tables that belong to this hub. They use the following form: projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}
This field is read-only. Network Connectivity Center
automatically populates it based on the route tables nested
under the hub.
|
spoke_summary |
google.cloud.networkconnectivity_v1.types.SpokeSummary
Output only. A summary of the spokes associated with a hub. The summary includes a count of spokes according to type and according to state. If any spokes are inactive, the summary also lists the reasons they are inactive, including a count for each reason. |
policy_mode |
google.cloud.networkconnectivity_v1.types.PolicyMode
Optional. The policy mode of this hub. This field can be either PRESET or CUSTOM. If unspecified, the policy_mode defaults to PRESET. |
preset_topology |
google.cloud.networkconnectivity_v1.types.PresetTopology
Optional. The topology implemented in this hub. Currently, this field is only used when policy_mode = PRESET. The available preset topologies are MESH and STAR. If preset_topology is unspecified and policy_mode = PRESET, the preset_topology defaults to MESH. When policy_mode = CUSTOM, the preset_topology is set to PRESET_TOPOLOGY_UNSPECIFIED. |
export_psc |
bool
Optional. Whether Private Service Connect connection propagation is enabled for the hub. If true, Private Service Connect endpoints in VPC spokes attached to the hub are made accessible to other VPC spokes attached to the hub. The default value is false. This field is a member of oneof_ _export_psc.
|
Classes
LabelsEntry
LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)The abstract base class for a message.
| Parameters | |
|---|---|
| Name | Description |
kwargs |
dict
Keys and values corresponding to the fields of the message. |
mapping |
Union[dict,
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 |