# Network Connectivity V1alpha1 API - Class Google::Cloud::NetworkConnectivity::V1alpha1::Spoke (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::Spoke.

A Spoke is an abstraction of a network attachment being attached
to a Hub. A Spoke can be underlying a VPN tunnel, a
VLAN (interconnect) attachment, a Router appliance, etc.

## 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)) --- The time when the Spoke 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)) --- The time when the Spoke was created.
**Returns**

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

### #description

    def description() -> ::String

**Returns**

- (::String) --- Short description of the spoke resource

### #description=

    def description=(value) -> ::String

**Parameter**

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

- (::String) --- Short description of the spoke resource

### #hub

    def hub() -> ::String

**Returns**

- (::String) --- The resource URL of the hub resource that the spoke is attached to

### #hub=

    def hub=(value) -> ::String

**Parameter**

- **value** (::String) --- The resource URL of the hub resource that the spoke is attached to
**Returns**

- (::String) --- The resource URL of the hub resource that the spoke is attached to

### #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.

### #linked_interconnect_attachments

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

**Returns**

- (::Array\<::String\>) --- The URIs of linked interconnect attachment resources

### #linked_interconnect_attachments=

    def linked_interconnect_attachments=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- The URIs of linked interconnect attachment resources
**Returns**

- (::Array\<::String\>) --- The URIs of linked interconnect attachment resources

### #linked_router_appliance_instances

    def linked_router_appliance_instances() -> ::Array<::Google::Cloud::NetworkConnectivity::V1alpha1::RouterApplianceInstance>

**Returns**

- (::Array\<[::Google::Cloud::NetworkConnectivity::V1alpha1::RouterApplianceInstance](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_connectivity-v1alpha1/latest/Google-Cloud-NetworkConnectivity-V1alpha1-RouterApplianceInstance)\>) --- The URIs of linked Router appliance resources

### #linked_router_appliance_instances=

    def linked_router_appliance_instances=(value) -> ::Array<::Google::Cloud::NetworkConnectivity::V1alpha1::RouterApplianceInstance>

**Parameter**

- **value** (::Array\<[::Google::Cloud::NetworkConnectivity::V1alpha1::RouterApplianceInstance](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_connectivity-v1alpha1/latest/Google-Cloud-NetworkConnectivity-V1alpha1-RouterApplianceInstance)\>) --- The URIs of linked Router appliance resources
**Returns**

- (::Array\<[::Google::Cloud::NetworkConnectivity::V1alpha1::RouterApplianceInstance](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_connectivity-v1alpha1/latest/Google-Cloud-NetworkConnectivity-V1alpha1-RouterApplianceInstance)\>) --- The URIs of linked Router appliance resources

### #linked_vpn_tunnels

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

**Returns**

- (::Array\<::String\>) --- The URIs of linked VPN tunnel resources

### #linked_vpn_tunnels=

    def linked_vpn_tunnels=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- The URIs of linked VPN tunnel resources
**Returns**

- (::Array\<::String\>) --- The URIs of linked VPN tunnel resources

### #name

    def name() -> ::String

**Returns**

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

### #name=

    def name=(value) -> ::String

**Parameter**

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

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

### #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 Spoke resources. If a Spoke 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)) --- The time when the Spoke 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)) --- The time when the Spoke was updated.
**Returns**

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