Google Cloud Commerce Producer V1beta Client - Class UsageCalculation (0.2.0)

Reference documentation and code samples for the Google Cloud Commerce Producer V1beta Client class UsageCalculation.

Determines how the customer's usage is calculated.

Protobuf type google.cloud.commerceproducer.v1beta.Sku.SkuPrice.AiPlatformDeployedModelUsageFee.UsageCalculation

Namespace

Google \ Cloud \ CommerceProducer \ V1beta \ Sku \ SkuPrice \ AiPlatformDeployedModelUsageFee

Methods

static::name

Parameter
Name Description
value mixed

static::value

Parameter
Name Description
name mixed

Constants

USAGE_CALCULATION_UNSPECIFIED

Value: 0

Unused.

Generated from protobuf enum USAGE_CALCULATION_UNSPECIFIED = 0;

LINEAR_RESOURCE_SCALED_DEPLOYMENT_RUNTIME

Value: 2

Usage is calculated from deployment runtime and size.

Usage is calculated by measuring the deployment runtime in hours and multiplying by the amount of the deployed model's hardware resource matching the SKU's hardware resource type. This results in a composite unit of hours ('h') multiplied by the unit that denominates the hardware resource, though note that multiplying by the dimensionless unit ("1") has no effect.

Generated from protobuf enum LINEAR_RESOURCE_SCALED_DEPLOYMENT_RUNTIME = 2;