Class: Google::Apis::VmmigrationV1::AwsSecurityGroup

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/vmmigration_v1/classes.rb,
lib/google/apis/vmmigration_v1/representations.rb,
lib/google/apis/vmmigration_v1/representations.rb

Overview

AwsSecurityGroup describes a security group of an AWS VM.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AwsSecurityGroup

Returns a new instance of AwsSecurityGroup.



222
223
224
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 222

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

Instance Attribute Details

#idString

The AWS security group id. Corresponds to the JSON property id

Returns:

  • (String)


215
216
217
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 215

def id
  @id
end

#nameString

The AWS security group name. Corresponds to the JSON property name

Returns:

  • (String)


220
221
222
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 220

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



227
228
229
230
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 227

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