Class: Google::Apis::VmmigrationV1alpha1::AwsSecurityGroup

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/vmmigration_v1alpha1/classes.rb,
lib/google/apis/vmmigration_v1alpha1/representations.rb,
lib/google/apis/vmmigration_v1alpha1/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.



184
185
186
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 184

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

Instance Attribute Details

#idString

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

Returns:

  • (String)


177
178
179
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 177

def id
  @id
end

#nameString

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

Returns:

  • (String)


182
183
184
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 182

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



189
190
191
192
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 189

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