Class: Google::Apis::NetworkconnectivityV1alpha1::Spoke
- Inherits:
-
Object
- Object
- Google::Apis::NetworkconnectivityV1alpha1::Spoke
- 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 more...
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
-
#create_time ⇒ String
The time when the Spoke was created.
-
#description ⇒ String
Short description of the spoke resource Corresponds to the JSON property
description
. -
#hub ⇒ String
The resource URL of the hub resource that the spoke is attached to Corresponds to the JSON property
hub
. -
#labels ⇒ Hash<String,String>
User-defined labels.
-
#linked_interconnect_attachments ⇒ Array<String>
The URIs of linked interconnect attachment resources Corresponds to the JSON property
linkedInterconnectAttachments
. -
#linked_router_appliance_instances ⇒ Array<Google::Apis::NetworkconnectivityV1alpha1::RouterApplianceInstance>
The URIs of linked Router appliance resources Corresponds to the JSON property
linkedRouterApplianceInstances
. -
#linked_vpn_tunnels ⇒ Array<String>
The URIs of linked VPN tunnel resources Corresponds to the JSON property
linkedVpnTunnels
. -
#name ⇒ String
Immutable.
-
#state ⇒ String
Output only.
-
#unique_id ⇒ String
Output only.
-
#update_time ⇒ String
The time when the Spoke was updated.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Spoke
constructor
A new instance of Spoke.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Spoke
Returns a new instance of Spoke.
1105 1106 1107 |
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 1105 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
The time when the Spoke was created.
Corresponds to the JSON property createTime
1051 1052 1053 |
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 1051 def create_time @create_time end |
#description ⇒ String
Short description of the spoke resource
Corresponds to the JSON property description
1056 1057 1058 |
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 1056 def description @description end |
#hub ⇒ String
The resource URL of the hub resource that the spoke is attached to
Corresponds to the JSON property hub
1061 1062 1063 |
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 1061 def hub @hub end |
#labels ⇒ Hash<String,String>
User-defined labels.
Corresponds to the JSON property labels
1066 1067 1068 |
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 1066 def labels @labels end |
#linked_interconnect_attachments ⇒ Array<String>
The URIs of linked interconnect attachment resources
Corresponds to the JSON property linkedInterconnectAttachments
1071 1072 1073 |
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 1071 def @linked_interconnect_attachments end |
#linked_router_appliance_instances ⇒ Array<Google::Apis::NetworkconnectivityV1alpha1::RouterApplianceInstance>
The URIs of linked Router appliance resources
Corresponds to the JSON property linkedRouterApplianceInstances
1076 1077 1078 |
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 1076 def linked_router_appliance_instances @linked_router_appliance_instances end |
#linked_vpn_tunnels ⇒ Array<String>
The URIs of linked VPN tunnel resources
Corresponds to the JSON property linkedVpnTunnels
1081 1082 1083 |
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 1081 def linked_vpn_tunnels @linked_vpn_tunnels end |
#name ⇒ String
Immutable. The name of a Spoke resource.
Corresponds to the JSON property name
1086 1087 1088 |
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 1086 def name @name end |
#state ⇒ String
Output only. The current lifecycle state of this Hub.
Corresponds to the JSON property state
1091 1092 1093 |
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 1091 def state @state end |
#unique_id ⇒ 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.
Corresponds to the JSON property uniqueId
1098 1099 1100 |
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 1098 def unique_id @unique_id end |
#update_time ⇒ String
The time when the Spoke was updated.
Corresponds to the JSON property updateTime
1103 1104 1105 |
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 1103 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 |
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 1110 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 |