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.



8926
8927
8928
# File 'lib/google/apis/compute_alpha/classes.rb', line 8926

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



8915
8916
8917
# File 'lib/google/apis/compute_alpha/classes.rb', line 8915

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



8924
8925
8926
# File 'lib/google/apis/compute_alpha/classes.rb', line 8924

def default_resource_policies
  @default_resource_policies
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8931
8932
8933
8934
# File 'lib/google/apis/compute_alpha/classes.rb', line 8931

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