# Network Connectivity V1alpha1 API - Class Google::Cloud::NetworkConnectivity::V1alpha1::Hub (v0.17.0)

0.17.0 (latest) 0.16.0 0.15.0 0.14.1 0.13.0 0.12.0 0.11.1 0.10.0 0.9.1 0.8.2 0.7.0 0.6.1 0.5.0 0.4.5 Reference documentation and code samples for the Network Connectivity V1alpha1 API class Google::Cloud::NetworkConnectivity::V1alpha1::Hub.

Network Connectivity Center is a hub-and-spoke abstraction for
network connectivity management in Google Cloud. It reduces
operational complexity through a simple, centralized connectivity management
model. Following is the resource message of a hub.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_connectivity-v1alpha1/latest/Google-Protobuf-Timestamp)) --- Time when the Hub was created.

### #create_time=

    def create_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_connectivity-v1alpha1/latest/Google-Protobuf-Timestamp)) --- Time when the Hub was created.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_connectivity-v1alpha1/latest/Google-Protobuf-Timestamp)) --- Time when the Hub was created.

### #description

    def description() -> ::String

**Returns**

- (::String) --- Short description of the hub resource.

### #description=

    def description=(value) -> ::String

**Parameter**

- **value** (::String) --- Short description of the hub resource.
**Returns**

- (::String) --- Short description of the hub resource.

### #labels

    def labels() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- User-defined labels.

### #labels=

    def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- User-defined labels.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- User-defined labels.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Immutable. The name of a Hub resource.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Immutable. The name of a Hub resource.
**Returns**

- (::String) --- Immutable. The name of a Hub resource.

### #spokes

    def spokes() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Output only. A list of the URIs of all attached spokes

### #state

    def state() -> ::Google::Cloud::NetworkConnectivity::V1alpha1::State

**Returns**

- ([::Google::Cloud::NetworkConnectivity::V1alpha1::State](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_connectivity-v1alpha1/latest/Google-Cloud-NetworkConnectivity-V1alpha1-State)) --- Output only. The current lifecycle state of this Hub.

### #unique_id

    def unique_id() -> ::String

**Returns**

- (::String) --- Output only. Google-generated UUID for this resource. This is unique across all Hub resources. If a Hub resource is deleted and another with the same name is created, it gets a different unique_id.

### #update_time

    def update_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_connectivity-v1alpha1/latest/Google-Protobuf-Timestamp)) --- Time when the Hub was updated.

### #update_time=

    def update_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_connectivity-v1alpha1/latest/Google-Protobuf-Timestamp)) --- Time when the Hub was updated.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_connectivity-v1alpha1/latest/Google-Protobuf-Timestamp)) --- Time when the Hub was updated.