Class: Google::Apis::NetworkconnectivityV1::Group
- Inherits:
-
Object
- Object
- Google::Apis::NetworkconnectivityV1::Group
- 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 group is a set of spokes to which you can apply policies. Each group of spokes has its own route table. For each group, you can also set different rules for whether spokes can be automatically attached to the hub.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
Optional.
-
#labels ⇒ Hash<String,String>
Optional.
-
#name ⇒ String
Immutable.
-
#state ⇒ String
Output only.
-
#uid ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Group
constructor
A new instance of Group.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Group
Returns a new instance of Group.
650 651 652 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 650 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. The time the group was created.
Corresponds to the JSON property createTime
612 613 614 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 612 def create_time @create_time end |
#description ⇒ String
Optional. The description of the group.
Corresponds to the JSON property description
617 618 619 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 617 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
624 625 626 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 624 def labels @labels end |
#name ⇒ String
Immutable. The name of the group. Group names must be unique. They use the
following form: projects/project_number/locations/global/hubs/hub/groups/
group_id`
Corresponds to the JSON propertyname`
631 632 633 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 631 def name @name end |
#state ⇒ String
Output only. The current lifecycle state of this group.
Corresponds to the JSON property state
636 637 638 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 636 def state @state end |
#uid ⇒ String
Output only. The Google-generated UUID for the group. This value is unique
across all group resources. If a group is deleted and another with the same
name is created, the new route table is assigned a different unique_id.
Corresponds to the JSON property uid
643 644 645 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 643 def uid @uid end |
#update_time ⇒ String
Output only. The time the group was last updated.
Corresponds to the JSON property updateTime
648 649 650 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 648 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
655 656 657 658 659 660 661 662 663 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 655 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) @state = args[:state] if args.key?(:state) @uid = args[:uid] if args.key?(:uid) @update_time = args[:update_time] if args.key?(:update_time) end |