Class: Google::Apis::NetworkconnectivityV1::Group

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Group

Returns a new instance of Group.



747
748
749
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 747

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

Instance Attribute Details

#create_timeString

Output only. The time the group was created. Corresponds to the JSON property createTime

Returns:

  • (String)


709
710
711
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 709

def create_time
  @create_time
end

#descriptionString

Optional. The description of the group. Corresponds to the JSON property description

Returns:

  • (String)


714
715
716
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 714

def description
  @description
end

#labelsHash<String,String>

Optional. Labels in key-value pair format. For more information about labels, see Requirements for labels. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


721
722
723
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 721

def labels
  @labels
end

#nameString

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`

Returns:

  • (String)


728
729
730
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 728

def name
  @name
end

#stateString

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

Returns:

  • (String)


733
734
735
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 733

def state
  @state
end

#uidString

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

Returns:

  • (String)


740
741
742
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 740

def uid
  @uid
end

#update_timeString

Output only. The time the group was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


745
746
747
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 745

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



752
753
754
755
756
757
758
759
760
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 752

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