Class: Google::Apis::ComputeAlpha::SnapshotSettingsAccessLocationAccessLocationPreference

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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SnapshotSettingsAccessLocationAccessLocationPreference

Returns a new instance of SnapshotSettingsAccessLocationAccessLocationPreference.



71236
71237
71238
# File 'lib/google/apis/compute_alpha/classes.rb', line 71236

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

Instance Attribute Details

#regionString

Accessible region name Corresponds to the JSON property region

Returns:

  • (String)


71234
71235
71236
# File 'lib/google/apis/compute_alpha/classes.rb', line 71234

def region
  @region
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



71241
71242
71243
# File 'lib/google/apis/compute_alpha/classes.rb', line 71241

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