Class: Google::Apis::ComputeBeta::CapacityHistoryRequest

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

A request to get the capacity history.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CapacityHistoryRequest

Returns a new instance of CapacityHistoryRequest.



8356
8357
8358
# File 'lib/google/apis/compute_beta/classes.rb', line 8356

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

Instance Attribute Details

#instance_propertiesGoogle::Apis::ComputeBeta::CapacityHistoryRequestInstanceProperties

Instance properties for this request. Corresponds to the JSON property instanceProperties



8344
8345
8346
# File 'lib/google/apis/compute_beta/classes.rb', line 8344

def instance_properties
  @instance_properties
end

#location_policyGoogle::Apis::ComputeBeta::CapacityHistoryRequestLocationPolicy

Location policy for this request. Corresponds to the JSON property locationPolicy



8349
8350
8351
# File 'lib/google/apis/compute_beta/classes.rb', line 8349

def location_policy
  @location_policy
end

#typesArray<String>

List of history types to get capacity history for. Corresponds to the JSON property types

Returns:

  • (Array<String>)


8354
8355
8356
# File 'lib/google/apis/compute_beta/classes.rb', line 8354

def types
  @types
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8361
8362
8363
8364
8365
# File 'lib/google/apis/compute_beta/classes.rb', line 8361

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