Class: Google::Apis::ComputeV1::LocationPolicyZoneConfiguration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LocationPolicyZoneConfiguration

Returns a new instance of LocationPolicyZoneConfiguration.



33464
33465
33466
# File 'lib/google/apis/compute_v1/classes.rb', line 33464

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

Instance Attribute Details

#zoneString

The URL of the zone. The zone must exist in the region where the request is called. Zones must be represented as valid partial URLs, such as zones/us-central1-a. Corresponds to the JSON property zone

Returns:

  • (String)


33462
33463
33464
# File 'lib/google/apis/compute_v1/classes.rb', line 33462

def zone
  @zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



33469
33470
33471
# File 'lib/google/apis/compute_v1/classes.rb', line 33469

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