Class: Google::Apis::NetworkconnectivityV1::Hub
- Inherits:
-
Object
- Object
- Google::Apis::NetworkconnectivityV1::Hub
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/networkconnectivity_v1/classes.rb,
lib/google/apis/networkconnectivity_v1/representations.rb,
lib/google/apis/networkconnectivity_v1/representations.rb
Overview
A Network Connectivity Center hub is a global management resource to which you attach spokes. A single hub can contain spokes from multiple regions. However, if any of a hub's spokes use the site-to-site data transfer feature, the resources associated with those spokes must all be in the same VPC network. Spokes that do not use site-to-site data transfer can be associated with any VPC network in your project.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
An optional description of the hub.
-
#labels ⇒ Hash<String,String>
Optional labels in key:value format.
-
#name ⇒ String
Immutable.
-
#routing_vpcs ⇒ Array<Google::Apis::NetworkconnectivityV1::RoutingVpc>
The VPC networks associated with this hub's spokes.
-
#state ⇒ String
Output only.
-
#unique_id ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Hub
constructor
A new instance of Hub.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Hub
Returns a new instance of Hub.
437 438 439 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 437 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. The time the hub was created.
Corresponds to the JSON property createTime
393 394 395 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 393 def create_time @create_time end |
#description ⇒ String
An optional description of the hub.
Corresponds to the JSON property description
398 399 400 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 398 def description @description end |
#labels ⇒ Hash<String,String>
Optional labels in key:value format. For more information about labels, see
Requirements for labels.
Corresponds to the JSON property labels
405 406 407 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 405 def labels @labels end |
#name ⇒ String
Immutable. The name of the hub. Hub names must be unique. They use the
following form: projects/project_number/locations/global/hubs/hub_id`
Corresponds to the JSON propertyname`
411 412 413 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 411 def name @name end |
#routing_vpcs ⇒ Array<Google::Apis::NetworkconnectivityV1::RoutingVpc>
The VPC networks associated with this hub's spokes. This field is read-only.
Network Connectivity Center automatically populates it based on the set of
spokes attached to the hub.
Corresponds to the JSON property routingVpcs
418 419 420 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 418 def routing_vpcs @routing_vpcs end |
#state ⇒ String
Output only. The current lifecycle state of this hub.
Corresponds to the JSON property state
423 424 425 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 423 def state @state end |
#unique_id ⇒ String
Output only. The Google-generated UUID for the hub. This value is unique
across all hub resources. If a hub is deleted and another with the same name
is created, the new hub is assigned a different unique_id.
Corresponds to the JSON property uniqueId
430 431 432 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 430 def unique_id @unique_id end |
#update_time ⇒ String
Output only. The time the hub was last updated.
Corresponds to the JSON property updateTime
435 436 437 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 435 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
442 443 444 445 446 447 448 449 450 451 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 442 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @description = args[:description] if args.key?(:description) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @routing_vpcs = args[:routing_vpcs] if args.key?(:routing_vpcs) @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 |