class Google::Apis::NetworkconnectivityV1alpha1::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.

Attributes

create_time[RW]

The time when the Spoke was created. Corresponds to the JSON property `createTime` @return [String]

description[RW]

Short description of the spoke resource Corresponds to the JSON property `description` @return [String]

hub[RW]

The resource URL of the hub resource that the spoke is attached to Corresponds to the JSON property `hub` @return [String]

labels[RW]

User-defined labels. Corresponds to the JSON property `labels` @return [Hash<String,String>]

linked_interconnect_attachments[RW]

The URIs of linked interconnect attachment resources Corresponds to the JSON property `linkedInterconnectAttachments` @return [Array<String>]

linked_router_appliance_instances[RW]

The URIs of linked Router appliance resources Corresponds to the JSON property `linkedRouterApplianceInstances` @return [Array<Google::Apis::NetworkconnectivityV1alpha1::RouterApplianceInstance>]

linked_vpn_tunnels[RW]

The URIs of linked VPN tunnel resources Corresponds to the JSON property `linkedVpnTunnels` @return [Array<String>]

name[RW]

Immutable. The name of a Spoke resource. Corresponds to the JSON property `name` @return [String]

state[RW]

Output only. The current lifecycle state of this Hub. Corresponds to the JSON property `state` @return [String]

unique_id[RW]

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. Corresponds to the JSON property `uniqueId` @return [String]

update_time[RW]

The time when the Spoke was updated. Corresponds to the JSON property `updateTime` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/networkconnectivity_v1alpha1/classes.rb, line 878
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/networkconnectivity_v1alpha1/classes.rb, line 883
def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @hub = args[:hub] if args.key?(:hub)
  @labels = args[:labels] if args.key?(:labels)
  @linked_interconnect_attachments = args[:linked_interconnect_attachments] if args.key?(:linked_interconnect_attachments)
  @linked_router_appliance_instances = args[:linked_router_appliance_instances] if args.key?(:linked_router_appliance_instances)
  @linked_vpn_tunnels = args[:linked_vpn_tunnels] if args.key?(:linked_vpn_tunnels)
  @name = args[:name] if args.key?(:name)
  @state = args[:state] if args.key?(:state)
  @unique_id = args[:unique_id] if args.key?(:unique_id)
  @update_time = args[:update_time] if args.key?(:update_time)
end