Class: Google::Apis::VmmigrationV1alpha1::AwsSecurityGroup
- Inherits:
-
Object
- Object
- Google::Apis::VmmigrationV1alpha1::AwsSecurityGroup
- 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
-
#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.
222 223 224 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 222 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ String
The AWS security group id.
Corresponds to the JSON property id
215 216 217 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 215 def id @id end |
#name ⇒ String
The AWS security group name.
Corresponds to the JSON property name
220 221 222 |
# File 'lib/google/apis/vmmigration_v1alpha1/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_v1alpha1/classes.rb', line 227 def update!(**args) @id = args[:id] if args.key?(:id) @name = args[:name] if args.key?(:name) end |