Class: Google::Apis::NetworkconnectivityV1alpha1::Spoke

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/networkconnectivity_v1alpha1/classes.rb,
lib/google/apis/networkconnectivity_v1alpha1/representations.rb,
lib/google/apis/networkconnectivity_v1alpha1/representations.rb

Overview

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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Spoke

Returns a new instance of Spoke.



1056
1057
1058
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 1056

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#create_timeString

The time when the Spoke was created. Corresponds to the JSON property createTime

Returns:

  • (String)


1002
1003
1004
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 1002

def create_time
  @create_time
end

#descriptionString

Short description of the spoke resource Corresponds to the JSON property description

Returns:

  • (String)


1007
1008
1009
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 1007

def description
  @description
end

#hubString

The resource URL of the hub resource that the spoke is attached to Corresponds to the JSON property hub

Returns:

  • (String)


1012
1013
1014
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 1012

def hub
  @hub
end

#labelsHash<String,String>

User-defined labels. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


1017
1018
1019
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 1017

def labels
  @labels
end

#linked_interconnect_attachmentsArray<String>

The URIs of linked interconnect attachment resources Corresponds to the JSON property linkedInterconnectAttachments

Returns:

  • (Array<String>)


1022
1023
1024
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 1022

def linked_interconnect_attachments
  @linked_interconnect_attachments
end

#linked_router_appliance_instancesArray<Google::Apis::NetworkconnectivityV1alpha1::RouterApplianceInstance>

The URIs of linked Router appliance resources Corresponds to the JSON property linkedRouterApplianceInstances



1027
1028
1029
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 1027

def linked_router_appliance_instances
  @linked_router_appliance_instances
end

#linked_vpn_tunnelsArray<String>

The URIs of linked VPN tunnel resources Corresponds to the JSON property linkedVpnTunnels

Returns:

  • (Array<String>)


1032
1033
1034
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 1032

def linked_vpn_tunnels
  @linked_vpn_tunnels
end

#nameString

Immutable. The name of a Spoke resource. Corresponds to the JSON property name

Returns:

  • (String)


1037
1038
1039
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 1037

def name
  @name
end

#stateString

Output only. The current lifecycle state of this Hub. Corresponds to the JSON property state

Returns:

  • (String)


1042
1043
1044
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 1042

def state
  @state
end

#unique_idString

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

Returns:

  • (String)


1049
1050
1051
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 1049

def unique_id
  @unique_id
end

#update_timeString

The time when the Spoke was updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


1054
1055
1056
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 1054

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 1061

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