Network Connectivity v1 API - Class Hub (2.9.0)

public sealed class Hub : IMessage<Hub>, IEquatable<Hub>, IDeepCloneable<Hub>, IBufferMessage, IMessage

Reference documentation and code samples for the Network Connectivity v1 API class Hub.

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.

Inheritance

object > Hub

Namespace

Google.Cloud.NetworkConnectivity.V1

Assembly

Google.Cloud.NetworkConnectivity.V1.dll

Constructors

Hub()

public Hub()

Hub(Hub)

public Hub(Hub other)
Parameter
Name Description
other Hub

Properties

CreateTime

public Timestamp CreateTime { get; set; }

Output only. The time the hub was created.

Property Value
Type Description
Timestamp

Description

public string Description { get; set; }

An optional description of the hub.

Property Value
Type Description
string

ExportPsc

public bool ExportPsc { get; set; }

Optional. Whether Private Service Connect transitivity 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.

Property Value
Type Description
bool

HasExportPsc

public bool HasExportPsc { get; }

Gets whether the "export_psc" field is set

Property Value
Type Description
bool

HubName

public HubName HubName { get; set; }

HubName-typed view over the Name resource name property.

Property Value
Type Description
HubName

Labels

public MapField<string, string> Labels { get; }

Optional labels in key-value pair format. For more information about labels, see Requirements for labels.

Property Value
Type Description
MapFieldstringstring

Name

public string Name { get; set; }

Immutable. The name of the hub. Hub names must be unique. They use the following form: projects/{project_number}/locations/global/hubs/{hub_id}

Property Value
Type Description
string

PolicyMode

public PolicyMode PolicyMode { get; set; }

Optional. The policy mode of this hub. This field can be either PRESET or CUSTOM. If unspecified, the policy_mode defaults to PRESET.

Property Value
Type Description
PolicyMode

PresetTopology

public PresetTopology PresetTopology { get; set; }

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.

Property Value
Type Description
PresetTopology

RouteTables

public RepeatedField<string> RouteTables { get; }

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.

Property Value
Type Description
RepeatedFieldstring

RoutingVpcs

public RepeatedField<RoutingVPC> RoutingVpcs { get; }

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.

Property Value
Type Description
RepeatedFieldRoutingVPC

SpokeSummary

public SpokeSummary SpokeSummary { get; set; }

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.

Property Value
Type Description
SpokeSummary

State

public State State { get; set; }

Output only. The current lifecycle state of this hub.

Property Value
Type Description
State

UniqueId

public string UniqueId { get; set; }

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.

Property Value
Type Description
string

UpdateTime

public Timestamp UpdateTime { get; set; }

Output only. The time the hub was last updated.

Property Value
Type Description
Timestamp