Class: Google::Apis::BackupdrV1::CloudAsset
- Inherits:
-
Object
- Object
- Google::Apis::BackupdrV1::CloudAsset
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/backupdr_v1/classes.rb,
lib/google/apis/backupdr_v1/representations.rb,
lib/google/apis/backupdr_v1/representations.rb
Instance Attribute Summary collapse
-
#asset_name ⇒ String
Corresponds to the JSON property
assetName. -
#asset_type ⇒ String
Corresponds to the JSON property
assetType.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CloudAsset
constructor
A new instance of CloudAsset.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CloudAsset
Returns a new instance of CloudAsset.
1371 1372 1373 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1371 def initialize(**args) update!(**args) end |
Instance Attribute Details
#asset_name ⇒ String
Corresponds to the JSON property assetName
1364 1365 1366 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1364 def asset_name @asset_name end |
#asset_type ⇒ String
Corresponds to the JSON property assetType
1369 1370 1371 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1369 def asset_type @asset_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1376 1377 1378 1379 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1376 def update!(**args) @asset_name = args[:asset_name] if args.key?(:asset_name) @asset_type = args[:asset_type] if args.key?(:asset_type) end |