Class: Google::Apis::ComputeBeta::DiskSettingsAccessLocationAccessLocationPreference

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_beta/classes.rb,
lib/google/apis/compute_beta/representations.rb,
lib/google/apis/compute_beta/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.



10894
10895
10896
# File 'lib/google/apis/compute_beta/classes.rb', line 10894

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

Instance Attribute Details

#regionString

Accessible region name Corresponds to the JSON property region

Returns:

  • (String)


10892
10893
10894
# File 'lib/google/apis/compute_beta/classes.rb', line 10892

def region
  @region
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10899
10900
10901
# File 'lib/google/apis/compute_beta/classes.rb', line 10899

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