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 represents a subset of spokes attached to a hub.
Instance Attribute Summary collapse
- 
  
    
      #auto_accept  ⇒ Google::Apis::NetworkconnectivityV1::AutoAccept 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The auto-accept setting for a group controls whether proposed spokes are automatically attached to the hub.
 - 
  
    
      #create_time  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Output only.
 - 
  
    
      #description  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Optional.
 - 
  
    
      #labels  ⇒ Hash<String,String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Optional.
 - 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Immutable.
 - 
  
    
      #route_table  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Output only.
 - 
  
    
      #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.
      838 839 840  | 
    
      # File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 838 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#auto_accept ⇒ Google::Apis::NetworkconnectivityV1::AutoAccept
The auto-accept setting for a group controls whether proposed spokes are
automatically attached to the hub. If auto-accept is enabled, the spoke
immediately is attached to the hub and becomes part of the group. In this case,
the new spoke is in the ACTIVE state. If auto-accept is disabled, the spoke
goes to the INACTIVE state, and it must be reviewed and accepted by a hub
administrator.
Corresponds to the JSON property autoAccept
      788 789 790  | 
    
      # File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 788 def auto_accept @auto_accept end  | 
  
#create_time ⇒ String
Output only. The time the group was created.
Corresponds to the JSON property createTime
      793 794 795  | 
    
      # File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 793 def create_time @create_time end  | 
  
#description ⇒ String
Optional. The description of the group.
Corresponds to the JSON property description
      798 799 800  | 
    
      # File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 798 def description @description end  | 
  
#labels ⇒ Hash<String,String>
Optional. Labels in key-value pair format. For more information about labels,
see Requirements for labels.
Corresponds to the JSON property labels
      805 806 807  | 
    
      # File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 805 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`
      812 813 814  | 
    
      # File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 812 def name @name end  | 
  
#route_table ⇒ String
Output only. The name of the route table that corresponds to this group. They
use the following form: projects/project_number/locations/global/hubs/
hub_id/routeTables/route_table_id`
Corresponds to the JSON propertyrouteTable`
      819 820 821  | 
    
      # File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 819 def route_table @route_table end  | 
  
#state ⇒ String
Output only. The current lifecycle state of this group.
Corresponds to the JSON property state
      824 825 826  | 
    
      # File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 824 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
      831 832 833  | 
    
      # File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 831 def uid @uid end  | 
  
#update_time ⇒ String
Output only. The time the group was last updated.
Corresponds to the JSON property updateTime
      836 837 838  | 
    
      # File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 836 def update_time @update_time end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      843 844 845 846 847 848 849 850 851 852 853  | 
    
      # File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 843 def update!(**args) @auto_accept = args[:auto_accept] if args.key?(:auto_accept) @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) @route_table = args[:route_table] if args.key?(:route_table) @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  |