Class: Google::Apis::ComputeAlpha::DiskSettingsAccessLocationAccessLocationPreference

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

Overview

A structure for specifying an allowed target region to create snapshot.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DiskSettingsAccessLocationAccessLocationPreference

Returns a new instance of DiskSettingsAccessLocationAccessLocationPreference.



8970
8971
8972
# File 'lib/google/apis/compute_alpha/classes.rb', line 8970

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

Instance Attribute Details

#regionString

Accessible region name Corresponds to the JSON property region

Returns:

  • (String)


8968
8969
8970
# File 'lib/google/apis/compute_alpha/classes.rb', line 8968

def region
  @region
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8975
8976
8977
# File 'lib/google/apis/compute_alpha/classes.rb', line 8975

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