Reference documentation and code samples for the Google Cloud Compute V1 API class Google::Cloud::Compute::V1::CapacityHistoryResponse.
Contains the capacity history.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#location
def location() -> ::String
Returns
- (::String) — Output only. The location (region or zone) for which the capacity history is returned. It is returned as a URL - For example,https://www.googleapis.com/compute/v1/projects/project/zones/zone.
#location=
def location=(value) -> ::String
Parameter
- value (::String) — Output only. The location (region or zone) for which the capacity history is returned. It is returned as a URL - For example,https://www.googleapis.com/compute/v1/projects/project/zones/zone.
Returns
- (::String) — Output only. The location (region or zone) for which the capacity history is returned. It is returned as a URL - For example,https://www.googleapis.com/compute/v1/projects/project/zones/zone.
#machine_type
def machine_type() -> ::String
Returns
- (::String) — The machine type for which the capacity history is returned.
#machine_type=
def machine_type=(value) -> ::String
Parameter
- value (::String) — The machine type for which the capacity history is returned.
Returns
- (::String) — The machine type for which the capacity history is returned.
#preemption_history
def preemption_history() -> ::Array<::Google::Cloud::Compute::V1::CapacityHistoryResponsePreemptionRecord>
Returns
- (::Array<::Google::Cloud::Compute::V1::CapacityHistoryResponsePreemptionRecord>) — The preemption history for the requested machine type and location.
#preemption_history=
def preemption_history=(value) -> ::Array<::Google::Cloud::Compute::V1::CapacityHistoryResponsePreemptionRecord>
Parameter
- value (::Array<::Google::Cloud::Compute::V1::CapacityHistoryResponsePreemptionRecord>) — The preemption history for the requested machine type and location.
Returns
- (::Array<::Google::Cloud::Compute::V1::CapacityHistoryResponsePreemptionRecord>) — The preemption history for the requested machine type and location.
#price_history
def price_history() -> ::Array<::Google::Cloud::Compute::V1::CapacityHistoryResponsePriceRecord>
Returns
- (::Array<::Google::Cloud::Compute::V1::CapacityHistoryResponsePriceRecord>) — The price history for the requested machine type and location.
#price_history=
def price_history=(value) -> ::Array<::Google::Cloud::Compute::V1::CapacityHistoryResponsePriceRecord>
Parameter
- value (::Array<::Google::Cloud::Compute::V1::CapacityHistoryResponsePriceRecord>) — The price history for the requested machine type and location.
Returns
- (::Array<::Google::Cloud::Compute::V1::CapacityHistoryResponsePriceRecord>) — The price history for the requested machine type and location.