Google Cloud Network Connectivity V1 Client - Class Spoke (1.1.1)

Reference documentation and code samples for the Google Cloud Network Connectivity V1 Client class Spoke.

A Network Connectivity Center spoke represents a connection between your Google Cloud network resources and a non-Google-Cloud network.

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

Generated from protobuf message google.cloud.networkconnectivity.v1.Spoke

Namespace

Google \ Cloud \ NetworkConnectivity \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ name
string

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

Output only. The time the spoke was created.

↳ update_time
Google\Protobuf\Timestamp

Output only. The time the spoke was last updated.

↳ labels
array| Google\Protobuf\Internal\MapField

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

↳ description
string

An optional description of the spoke.

↳ hub
string

Immutable. The name of the hub that this spoke is attached to.

↳ linked_vpn_tunnels
Google\Cloud\NetworkConnectivity\V1\LinkedVpnTunnels

VPN tunnels that are associated with the spoke.

↳ linked_interconnect_attachments
Google\Cloud\NetworkConnectivity\V1\LinkedInterconnectAttachments

VLAN attachments that are associated with the spoke.

↳ linked_router_appliance_instances
Google\Cloud\NetworkConnectivity\V1\LinkedRouterApplianceInstances

Router appliance instances that are associated with the spoke.

↳ unique_id
string

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
int

Output only. The current lifecycle state of this spoke.

getName

Immutable. The name of the spoke. Spoke names must be unique. They use the following form: projects/{project_number}/locations/{region}/spokes/{spoke_id}

Returns
Type
Description
string

setName

Immutable. The name of the spoke. Spoke names must be unique. They use the following form: projects/{project_number}/locations/{region}/spokes/{spoke_id}

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getCreateTime

Output only. The time the spoke was created.

Returns
Type
Description

hasCreateTime

clearCreateTime

setCreateTime

Output only. The time the spoke was created.

Parameter
Name
Description
Returns
Type
Description
$this

getUpdateTime

Output only. The time the spoke was last updated.

Returns
Type
Description

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. The time the spoke was last updated.

Parameter
Name
Description
Returns
Type
Description
$this

getLabels

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

Returns
Type
Description

setLabels

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

Parameter
Name
Description
Returns
Type
Description
$this

getDescription

An optional description of the spoke.

Returns
Type
Description
string

setDescription

An optional description of the spoke.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getHub

Immutable. The name of the hub that this spoke is attached to.

Returns
Type
Description
string

setHub

Immutable. The name of the hub that this spoke is attached to.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getLinkedVpnTunnels

VPN tunnels that are associated with the spoke.

hasLinkedVpnTunnels

clearLinkedVpnTunnels

setLinkedVpnTunnels

VPN tunnels that are associated with the spoke.

Returns
Type
Description
$this

getLinkedInterconnectAttachments

VLAN attachments that are associated with the spoke.

hasLinkedInterconnectAttachments

clearLinkedInterconnectAttachments

setLinkedInterconnectAttachments

VLAN attachments that are associated with the spoke.

Returns
Type
Description
$this

getLinkedRouterApplianceInstances

Router appliance instances that are associated with the spoke.

hasLinkedRouterApplianceInstances

clearLinkedRouterApplianceInstances

setLinkedRouterApplianceInstances

Router appliance instances that are associated with the spoke.

Returns
Type
Description
$this

getUniqueId

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.

Returns
Type
Description
string

setUniqueId

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.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getState

Output only. The current lifecycle state of this spoke.

Returns
Type
Description
int

setState

Output only. The current lifecycle state of this spoke.

Parameter
Name
Description
var
int
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: