Class: Google::Apis::BackupdrV1::BackupLocation
- Inherits:
-
Object
- Object
- Google::Apis::BackupdrV1::BackupLocation
- 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
Overview
BackupLocation represents a cloud location where a backup can be stored.
Instance Attribute Summary collapse
-
#location_id ⇒ String
Output only.
-
#type ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BackupLocation
constructor
A new instance of BackupLocation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BackupLocation
Returns a new instance of BackupLocation.
1186 1187 1188 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1186 def initialize(**args) update!(**args) end |
Instance Attribute Details
#location_id ⇒ String
Output only. The id of the cloud location. Example: "us-central1"
Corresponds to the JSON property locationId
1179 1180 1181 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1179 def location_id @location_id end |
#type ⇒ String
Output only. The type of the location.
Corresponds to the JSON property type
1184 1185 1186 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1184 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1191 1192 1193 1194 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1191 def update!(**args) @location_id = args[:location_id] if args.key?(:location_id) @type = args[:type] if args.key?(:type) end |