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.



60617
60618
60619
# File 'lib/google/apis/compute_beta/classes.rb', line 60617

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

Instance Attribute Details

#regionString

Accessible region name Corresponds to the JSON property region

Returns:

  • (String)


60615
60616
60617
# File 'lib/google/apis/compute_beta/classes.rb', line 60615

def region
  @region
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



60622
60623
60624
# File 'lib/google/apis/compute_beta/classes.rb', line 60622

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