Class: Google::Apis::ComputeAlpha::DiskSettings

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DiskSettings

Returns a new instance of DiskSettings.



10417
10418
10419
# File 'lib/google/apis/compute_alpha/classes.rb', line 10417

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

Instance Attribute Details

#access_locationGoogle::Apis::ComputeAlpha::DiskSettingsAccessLocation

AccessLocation is only used for regional snapshot. It contains which regions are allowed to create a regional snapshot from disks located in the given region/zone. It includes key-value pairs designed to store the following structure. The keys should match their corresponding values, which must be provided: access_location: locations us-central1 region: "us-central1", asia-west2 region: "asia-west2" Corresponds to the JSON property accessLocation



10406
10407
10408
# File 'lib/google/apis/compute_alpha/classes.rb', line 10406

def access_location
  @access_location
end

#default_resource_policiesHash<String,Google::Apis::ComputeAlpha::DiskSettingsResourcePolicyDetails>

An optional parameter for storing the default resource policies that will be used for the Disks created in the given scope. The Key is a string type, provided by customers to uniquely identify the default Resource Policy entry. The Value is a Default ResourcePolicyDetails Object used to represent the detailed information of the Resource Policy entry. Corresponds to the JSON property defaultResourcePolicies



10415
10416
10417
# File 'lib/google/apis/compute_alpha/classes.rb', line 10415

def default_resource_policies
  @default_resource_policies
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10422
10423
10424
10425
# File 'lib/google/apis/compute_alpha/classes.rb', line 10422

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