Class: Google::Apis::NetworkconnectivityV1::VirtualMachine

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

VM instances that this policy-based route applies to.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VirtualMachine

Returns a new instance of VirtualMachine.



3699
3700
3701
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3699

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

Instance Attribute Details

#tagsArray<String>

Optional. A list of VM instance tags that this policy-based route applies to. VM instances that have ANY of tags specified here installs this PBR. Corresponds to the JSON property tags

Returns:

  • (Array<String>)


3697
3698
3699
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3697

def tags
  @tags
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3704
3705
3706
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3704

def update!(**args)
  @tags = args[:tags] if args.key?(:tags)
end