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.



32875
32876
32877
# File 'lib/google/apis/compute_v1/classes.rb', line 32875

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)


32873
32874
32875
# File 'lib/google/apis/compute_v1/classes.rb', line 32873

def zone
  @zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



32880
32881
32882
# File 'lib/google/apis/compute_v1/classes.rb', line 32880

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