Class: Google::Apis::ComputeBeta::CapacityHistoryRequestLocationPolicy

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_beta/classes.rb,
lib/google/apis/compute_beta/representations.rb,
lib/google/apis/compute_beta/representations.rb

Overview

Location policy for this request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CapacityHistoryRequestLocationPolicy

Returns a new instance of CapacityHistoryRequestLocationPolicy.



8328
8329
8330
# File 'lib/google/apis/compute_beta/classes.rb', line 8328

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

Instance Attribute Details

#locationString

The region or zone to get capacity history for. It can be a partial or full URL. For example, the following are valid values:

Returns:

  • (String)


8326
8327
8328
# File 'lib/google/apis/compute_beta/classes.rb', line 8326

def location
  @location
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8333
8334
8335
# File 'lib/google/apis/compute_beta/classes.rb', line 8333

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