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.



29913
29914
29915
# File 'lib/google/apis/compute_v1/classes.rb', line 29913

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)


29911
29912
29913
# File 'lib/google/apis/compute_v1/classes.rb', line 29911

def zone
  @zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



29918
29919
29920
# File 'lib/google/apis/compute_v1/classes.rb', line 29918

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