Class: Google::Apis::ComputeBeta::SnapshotSettingsAccessLocationAccessLocationPreference

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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SnapshotSettingsAccessLocationAccessLocationPreference

Returns a new instance of SnapshotSettingsAccessLocationAccessLocationPreference.



58518
58519
58520
# File 'lib/google/apis/compute_beta/classes.rb', line 58518

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

Instance Attribute Details

#regionString

Accessible region name Corresponds to the JSON property region

Returns:

  • (String)


58516
58517
58518
# File 'lib/google/apis/compute_beta/classes.rb', line 58516

def region
  @region
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



58523
58524
58525
# File 'lib/google/apis/compute_beta/classes.rb', line 58523

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