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.



64071
64072
64073
# File 'lib/google/apis/compute_beta/classes.rb', line 64071

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

Instance Attribute Details

#regionString

Accessible region name Corresponds to the JSON property region

Returns:

  • (String)


64069
64070
64071
# File 'lib/google/apis/compute_beta/classes.rb', line 64069

def region
  @region
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



64076
64077
64078
# File 'lib/google/apis/compute_beta/classes.rb', line 64076

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