pricing

package
v0.74.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_api_pricing_details_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type PricingData added in v0.71.22

type PricingData struct {

	// Cloud vendor.
	Vendor string `protobuf:"bytes,1,opt,name=vendor,proto3" json:"vendor,omitempty"`
	// Cloud vendor service. We have a limited number of services supported currently.
	// Refer to https://labs.alphaus.cloud/blueapidocs/#/Pricing/Pricing_GetSupportedServices to list supported services.
	Service string `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"`
	// Region code.
	RegionCode string `protobuf:"bytes,3,opt,name=regionCode,proto3" json:"regionCode,omitempty"`
	// SKU ID.
	Sku string `protobuf:"bytes,4,opt,name=sku,proto3" json:"sku,omitempty"`
	// Unit of measure.
	Unit string `protobuf:"bytes,5,opt,name=unit,proto3" json:"unit,omitempty"`
	// Price per unit.
	PricePerUnit float64 `protobuf:"fixed64,6,opt,name=pricePerUnit,proto3" json:"pricePerUnit,omitempty"`
	// Service details. A protobuf struct which translates to a map for HTTP. Keys are of type string and values can be of type string, float, or bool, depending on the detail.
	//
	// The following is an example of a serviceDetails field of a response,
	// “`
	//
	//	"serviceDetails": {
	//	  "availabilityZone": "NA",
	//	  "capacityStatus": "Used",
	//	  "classicNetworkingSupport": "false",
	//	  "clockSpeed": "3.5 GHz",
	//	  "currency": "USD",
	//	  "currentGeneration": "Yes",
	//	  "dedicatedEbsThroughput": "Up to 10000 Mbps",
	//	  "ebsOptimized": "",
	//	  "ecu": "NA",
	//	  "effectiveDate": "2022-04-01",
	//	  "elasticGraphicsType": "",
	//	  "endingRange": "Inf",
	//	  "enhancedNetworkingSupported": "Yes",
	//	  "fromLocation": "",
	//	  "fromLocationType": "",
	//	  "fromRegionCode": "",
	//	  "gpu": "",
	//	  "gpuMemory": "NA",
	//	  "groupDescription": "",
	//	  "groupings": "",
	//	  "instance": "",
	//	  "instanceCapacity10Xlarge": "",
	//	  "instanceCapacity12Xlarge": "",
	//	  "instanceCapacity16Xlarge": "",
	//	  "instanceCapacity18Xlarge": "",
	//	  "instanceCapacity24Xlarge": "",
	//	  "instanceCapacity2Xlarge": "",
	//	  "instanceCapacity32Xlarge": "",
	//	  "instanceCapacity4Xlarge": "",
	//	  "instanceCapacity8Xlarge": "",
	//	  "instanceCapacity9Xlarge": "",
	//	  "instanceCapacityLarge": "",
	//	  "instanceCapacityMedium": "",
	//	  "instanceCapacityMetal": "",
	//	  "instanceCapacityXlarge": "",
	//	  "instanceFamily": "Compute optimized",
	//	  "instanceSku": "",
	//	  "instanceType": "c6i.large",
	//	  "intelAvx2Available": "Yes",
	//	  "intelAvxAvailable": "Yes",
	//	  "intelTurboAvailable": "Yes",
	//	  "leaseContractLength": "1yr",
	//	  "licenseModel": "No License required",
	//	  "location": "Asia Pacific (Tokyo)",
	//	  "locationType": "AWS Region",
	//	  "marketOption": "OnDemand",
	//	  "maxIopsBurstPerformance": "",
	//	  "maxIopsVolume": "",
	//	  "maxThroughputVolume": "",
	//	  "maxVolumeSize": "",
	//	  "memory": "4 GiB",
	//	  "networkPerformance": "Up to 12500 Megabit",
	//	  "normalizationSizeFactor": "4",
	//	  "offerTermCode": "4NA7Y494T4",
	//	  "offeringClass": "standard",
	//	  "operatingSystem": "Windows",
	//	  "operation": "RunInstances:0202",
	//	  "physicalCores": "",
	//	  "physicalProcessor": "Intel Xeon 8375C (Ice Lake)",
	//	  "preInstalledSw": "SQL Web",
	//	  "priceDescription": "Windows with SQL Server Web (Amazon VPC), c6i.large reserved instance applied",
	//	  "processorArchitecture": "64-bit",
	//	  "processorFeatures": "Intel AVX; Intel AVX2; Intel AVX512; Intel Turbo",
	//	  "productFamily": "Compute Instance",
	//	  "productType": "",
	//	  "provisioned": "",
	//	  "purchaseOption": "No Upfront",
	//	  "rateCode": "2223B6PCG6QAUYY6.4NA7Y494T4.6YS6EN2CT7",
	//	  "relatedTo": "",
	//	  "resourceType": "",
	//	  "serviceCode": "AmazonEC2",
	//	  "serviceName": "Amazon Elastic Compute Cloud",
	//	  "snapShotArchiveFeeType": "",
	//	  "startingRange": "0",
	//	  "storage": "EBS only",
	//	  "storageMedia": "",
	//	  "tenancy": "Dedicated",
	//	  "termType": "Reserved",
	//	  "toLocation": "",
	//	  "toLocationType": "",
	//	  "toRegionCode": "",
	//	  "transferType": "",
	//	  "usageType": "APN1-DedicatedUsage:c6i.large",
	//	  "vcpu": "2",
	//	  "volumeApiName": "",
	//	  "volumeType": "",
	//	  "vpcNetworkingSupport": "true"
	//	}
	//
	// “`
	ServiceDetails *structpb.Struct `protobuf:"bytes,7,opt,name=serviceDetails,proto3" json:"serviceDetails,omitempty"`
	// contains filtered or unexported fields
}

Pricing details

func (*PricingData) Descriptor deprecated added in v0.71.22

func (*PricingData) Descriptor() ([]byte, []int)

Deprecated: Use PricingData.ProtoReflect.Descriptor instead.

func (*PricingData) GetPricePerUnit added in v0.71.22

func (x *PricingData) GetPricePerUnit() float64

func (*PricingData) GetRegionCode added in v0.71.22

func (x *PricingData) GetRegionCode() string

func (*PricingData) GetService added in v0.71.22

func (x *PricingData) GetService() string

func (*PricingData) GetServiceDetails added in v0.71.22

func (x *PricingData) GetServiceDetails() *structpb.Struct

func (*PricingData) GetSku added in v0.71.22

func (x *PricingData) GetSku() string

func (*PricingData) GetUnit added in v0.71.22

func (x *PricingData) GetUnit() string

func (*PricingData) GetVendor added in v0.71.22

func (x *PricingData) GetVendor() string

func (*PricingData) ProtoMessage added in v0.71.22

func (*PricingData) ProtoMessage()

func (*PricingData) ProtoReflect added in v0.71.22

func (x *PricingData) ProtoReflect() protoreflect.Message

func (*PricingData) Reset added in v0.71.22

func (x *PricingData) Reset()

func (*PricingData) String added in v0.71.22

func (x *PricingData) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL