Class: Google::Apis::ComputeV1::SnapshotSettingsAccessLocationAccessLocationPreference

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



57630
57631
57632
# File 'lib/google/apis/compute_v1/classes.rb', line 57630

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

Instance Attribute Details

#regionString

Accessible region name Corresponds to the JSON property region

Returns:

  • (String)


57628
57629
57630
# File 'lib/google/apis/compute_v1/classes.rb', line 57628

def region
  @region
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



57635
57636
57637
# File 'lib/google/apis/compute_v1/classes.rb', line 57635

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