Class: Google::Apis::ComputeV1::SnapshotSettingsStorageLocationSettings

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_v1/classes.rb,
lib/google/apis/compute_v1/representations.rb,
lib/google/apis/compute_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SnapshotSettingsStorageLocationSettings

Returns a new instance of SnapshotSettingsStorageLocationSettings.



37763
37764
37765
# File 'lib/google/apis/compute_v1/classes.rb', line 37763

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#locationsHash<String,Google::Apis::ComputeV1::SnapshotSettingsStorageLocationSettingsStorageLocationPreference>

When the policy is SPECIFIC_LOCATIONS, snapshots will be stored in the locations listed in this field. Keys are GCS bucket locations. Corresponds to the JSON property locations



37756
37757
37758
# File 'lib/google/apis/compute_v1/classes.rb', line 37756

def locations
  @locations
end

#policyString

The chosen location policy. Corresponds to the JSON property policy

Returns:

  • (String)


37761
37762
37763
# File 'lib/google/apis/compute_v1/classes.rb', line 37761

def policy
  @policy
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



37768
37769
37770
37771
# File 'lib/google/apis/compute_v1/classes.rb', line 37768

def update!(**args)
  @locations = args[:locations] if args.key?(:locations)
  @policy = args[:policy] if args.key?(:policy)
end