Class: Google::Apis::VmmigrationV1::AwsSecurityGroup
- Inherits:
-
Object
- Object
- Google::Apis::VmmigrationV1::AwsSecurityGroup
- 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
-
#id ⇒ String
The AWS security group id.
-
#name ⇒ String
The AWS security group name.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AwsSecurityGroup
constructor
A new instance of AwsSecurityGroup.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AwsSecurityGroup
Returns a new instance of AwsSecurityGroup.
249 250 251 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 249 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ String
The AWS security group id.
Corresponds to the JSON property id
242 243 244 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 242 def id @id end |
#name ⇒ String
The AWS security group name.
Corresponds to the JSON property name
247 248 249 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 247 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
254 255 256 257 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 254 def update!(**args) @id = args[:id] if args.key?(:id) @name = args[:name] if args.key?(:name) end |