Class: Google::Apis::BackupdrV1::BackupLocation

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_idString

Output only. The id of the cloud location. Example: "us-central1" Corresponds to the JSON property locationId

Returns:

  • (String)


1179
1180
1181
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1179

def location_id
  @location_id
end

#typeString

Output only. The type of the location. Corresponds to the JSON property type

Returns:

  • (String)


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