Reference documentation and code samples for the Capacity Planner V1BETA API class Google::Cloud::CapacityPlanner::V1beta::ResourceDemand.
Capacity demand for a resource.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#child_resource_demands
def child_resource_demands() -> ::Array<::Google::Cloud::CapacityPlanner::V1beta::ChildResourceDemand>
Returns
- (::Array<::Google::Cloud::CapacityPlanner::V1beta::ChildResourceDemand>) — Optional. The child resource demands associated with the resource.
#child_resource_demands=
def child_resource_demands=(value) -> ::Array<::Google::Cloud::CapacityPlanner::V1beta::ChildResourceDemand>
Parameter
- value (::Array<::Google::Cloud::CapacityPlanner::V1beta::ChildResourceDemand>) — Optional. The child resource demands associated with the resource.
Returns
- (::Array<::Google::Cloud::CapacityPlanner::V1beta::ChildResourceDemand>) — Optional. The child resource demands associated with the resource.
#create_time
def create_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — Output only. Timestamp when the demand was created.
#demand_metadata
def demand_metadata() -> ::Google::Cloud::CapacityPlanner::V1beta::DemandMetadata
Returns
- (::Google::Cloud::CapacityPlanner::V1beta::DemandMetadata) — Optional. The metadata associated with the demand.
#demand_metadata=
def demand_metadata=(value) -> ::Google::Cloud::CapacityPlanner::V1beta::DemandMetadata
Parameter
- value (::Google::Cloud::CapacityPlanner::V1beta::DemandMetadata) — Optional. The metadata associated with the demand.
Returns
- (::Google::Cloud::CapacityPlanner::V1beta::DemandMetadata) — Optional. The metadata associated with the demand.
#demand_values
def demand_values() -> ::Google::Cloud::CapacityPlanner::V1beta::DemandValues
Returns
- (::Google::Cloud::CapacityPlanner::V1beta::DemandValues) — Required. The demand values associated with the resource.
#demand_values=
def demand_values=(value) -> ::Google::Cloud::CapacityPlanner::V1beta::DemandValues
Parameter
- value (::Google::Cloud::CapacityPlanner::V1beta::DemandValues) — Required. The demand values associated with the resource.
Returns
- (::Google::Cloud::CapacityPlanner::V1beta::DemandValues) — Required. The demand values associated with the resource.
#id
def id() -> ::String
Returns
- (::String) — Output only. Identifier of resource demand.
#location_id
def location_id() -> ::Google::Cloud::CapacityPlanner::V1beta::LocationIdentifier
Returns
- (::Google::Cloud::CapacityPlanner::V1beta::LocationIdentifier) — Required. Identifier of location.
#location_id=
def location_id=(value) -> ::Google::Cloud::CapacityPlanner::V1beta::LocationIdentifier
Parameter
- value (::Google::Cloud::CapacityPlanner::V1beta::LocationIdentifier) — Required. Identifier of location.
Returns
- (::Google::Cloud::CapacityPlanner::V1beta::LocationIdentifier) — Required. Identifier of location.
#reporter
def reporter() -> ::Google::Cloud::CapacityPlanner::V1beta::User
Returns
- (::Google::Cloud::CapacityPlanner::V1beta::User) — Output only. User who reported the demand.
#resource_container
def resource_container() -> ::Google::Cloud::CapacityPlanner::V1beta::ResourceContainer
Returns
- (::Google::Cloud::CapacityPlanner::V1beta::ResourceContainer) — Required. The resource container associated with the demand.
#resource_container=
def resource_container=(value) -> ::Google::Cloud::CapacityPlanner::V1beta::ResourceContainer
Parameter
- value (::Google::Cloud::CapacityPlanner::V1beta::ResourceContainer) — Required. The resource container associated with the demand.
Returns
- (::Google::Cloud::CapacityPlanner::V1beta::ResourceContainer) — Required. The resource container associated with the demand.
#resource_id
def resource_id() -> ::Google::Cloud::CapacityPlanner::V1beta::ResourceIdentifier
Returns
- (::Google::Cloud::CapacityPlanner::V1beta::ResourceIdentifier) — Required. Identifier of resource.
#resource_id=
def resource_id=(value) -> ::Google::Cloud::CapacityPlanner::V1beta::ResourceIdentifier
Parameter
- value (::Google::Cloud::CapacityPlanner::V1beta::ResourceIdentifier) — Required. Identifier of resource.
Returns
- (::Google::Cloud::CapacityPlanner::V1beta::ResourceIdentifier) — Required. Identifier of resource.
#state
def state() -> ::Google::Cloud::CapacityPlanner::V1beta::State
Returns
- (::Google::Cloud::CapacityPlanner::V1beta::State) — Output only. State of the resource demand.
#update_time
def update_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — Output only. Timestamp when the demand was last updated.