Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterUsageServiceServer(s grpc.ServiceRegistrar, srv UsageServiceServer)
- type Allocation
- func (*Allocation) Descriptor() ([]byte, []int)deprecated
- func (x *Allocation) GetAllocation() string
- func (x *Allocation) GetAutoDeleteTime() *timestamppb.Timestamp
- func (x *Allocation) GetCreateTime() *timestamppb.Timestamp
- func (x *Allocation) GetDescription() string
- func (x *Allocation) GetId() int64
- func (x *Allocation) GetOwnerProjectId() string
- func (x *Allocation) GetShareSettings() *Allocation_ShareSettings
- func (x *Allocation) GetSpecificAllocation() *Allocation_SpecificSKUAllocation
- func (x *Allocation) GetStatus() Allocation_Status
- func (x *Allocation) GetType() isAllocation_Type
- func (x *Allocation) GetZone() string
- func (*Allocation) ProtoMessage()
- func (x *Allocation) ProtoReflect() protoreflect.Message
- func (x *Allocation) Reset()
- func (x *Allocation) String() string
- type Allocation_ShareSettings
- func (*Allocation_ShareSettings) Descriptor() ([]byte, []int)deprecated
- func (x *Allocation_ShareSettings) GetProjects() []string
- func (x *Allocation_ShareSettings) GetShareType() Allocation_ShareSettings_ShareType
- func (*Allocation_ShareSettings) ProtoMessage()
- func (x *Allocation_ShareSettings) ProtoReflect() protoreflect.Message
- func (x *Allocation_ShareSettings) Reset()
- func (x *Allocation_ShareSettings) String() string
- type Allocation_ShareSettings_ShareType
- func (Allocation_ShareSettings_ShareType) Descriptor() protoreflect.EnumDescriptor
- func (x Allocation_ShareSettings_ShareType) Enum() *Allocation_ShareSettings_ShareType
- func (Allocation_ShareSettings_ShareType) EnumDescriptor() ([]byte, []int)deprecated
- func (x Allocation_ShareSettings_ShareType) Number() protoreflect.EnumNumber
- func (x Allocation_ShareSettings_ShareType) String() string
- func (Allocation_ShareSettings_ShareType) Type() protoreflect.EnumType
- type Allocation_SpecificAllocation
- type Allocation_SpecificSKUAllocation
- func (*Allocation_SpecificSKUAllocation) Descriptor() ([]byte, []int)deprecated
- func (x *Allocation_SpecificSKUAllocation) GetAssuredCount() int64
- func (x *Allocation_SpecificSKUAllocation) GetCount() int64
- func (x *Allocation_SpecificSKUAllocation) GetInstanceProperties() *Allocation_SpecificSKUAllocation_AllocatedInstanceProperties
- func (x *Allocation_SpecificSKUAllocation) GetUsedCount() int64
- func (*Allocation_SpecificSKUAllocation) ProtoMessage()
- func (x *Allocation_SpecificSKUAllocation) ProtoReflect() protoreflect.Message
- func (x *Allocation_SpecificSKUAllocation) Reset()
- func (x *Allocation_SpecificSKUAllocation) String() string
- type Allocation_SpecificSKUAllocation_AllocatedInstanceProperties
- func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties) Descriptor() ([]byte, []int)deprecated
- func (x *Allocation_SpecificSKUAllocation_AllocatedInstanceProperties) GetGuestAccelerator() ...
- func (x *Allocation_SpecificSKUAllocation_AllocatedInstanceProperties) GetLocalSsd() []*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk
- func (x *Allocation_SpecificSKUAllocation_AllocatedInstanceProperties) GetMachineType() string
- func (x *Allocation_SpecificSKUAllocation_AllocatedInstanceProperties) GetMinCpuPlatform() string
- func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties) ProtoMessage()
- func (x *Allocation_SpecificSKUAllocation_AllocatedInstanceProperties) ProtoReflect() protoreflect.Message
- func (x *Allocation_SpecificSKUAllocation_AllocatedInstanceProperties) Reset()
- func (x *Allocation_SpecificSKUAllocation_AllocatedInstanceProperties) String() string
- type Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AcceleratorConfig
- func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AcceleratorConfig) Descriptor() ([]byte, []int)deprecated
- func (x *Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AcceleratorConfig) GetCount() int32
- func (x *Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AcceleratorConfig) GetType() string
- func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AcceleratorConfig) ProtoMessage()
- func (x *Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AcceleratorConfig) ProtoReflect() protoreflect.Message
- func (x *Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AcceleratorConfig) Reset()
- func (x *Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AcceleratorConfig) String() string
- type Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk
- func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk) Descriptor() ([]byte, []int)deprecated
- func (x *Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk) GetDiskInterface() ...
- func (x *Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk) GetDiskSizeGb() int64
- func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk) ProtoMessage()
- func (x *Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk) ProtoReflect() protoreflect.Message
- func (x *Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk) Reset()
- func (x *Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk) String() string
- type Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DiskInterface
- func (Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DiskInterface) Descriptor() protoreflect.EnumDescriptor
- func (x Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DiskInterface) Enum() ...
- func (Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DiskInterface) EnumDescriptor() ([]byte, []int)deprecated
- func (x Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DiskInterface) Number() protoreflect.EnumNumber
- func (x Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DiskInterface) String() string
- func (Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DiskInterface) Type() protoreflect.EnumType
- type Allocation_Status
- func (Allocation_Status) Descriptor() protoreflect.EnumDescriptor
- func (x Allocation_Status) Enum() *Allocation_Status
- func (Allocation_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x Allocation_Status) Number() protoreflect.EnumNumber
- func (x Allocation_Status) String() string
- func (Allocation_Status) Type() protoreflect.EnumType
- type BigQueryDestination
- func (*BigQueryDestination) Descriptor() ([]byte, []int)deprecated
- func (x *BigQueryDestination) GetCreateDisposition() BigQueryDestination_CreateDisposition
- func (x *BigQueryDestination) GetDataset() string
- func (x *BigQueryDestination) GetGcsLocation() string
- func (x *BigQueryDestination) GetPartitionKey() BigQueryDestination_PartitionKey
- func (x *BigQueryDestination) GetTable() string
- func (x *BigQueryDestination) GetWriteDisposition() BigQueryDestination_WriteDisposition
- func (*BigQueryDestination) ProtoMessage()
- func (x *BigQueryDestination) ProtoReflect() protoreflect.Message
- func (x *BigQueryDestination) Reset()
- func (x *BigQueryDestination) String() string
- type BigQueryDestination_CreateDisposition
- func (BigQueryDestination_CreateDisposition) Descriptor() protoreflect.EnumDescriptor
- func (x BigQueryDestination_CreateDisposition) Enum() *BigQueryDestination_CreateDisposition
- func (BigQueryDestination_CreateDisposition) EnumDescriptor() ([]byte, []int)deprecated
- func (x BigQueryDestination_CreateDisposition) Number() protoreflect.EnumNumber
- func (x BigQueryDestination_CreateDisposition) String() string
- func (BigQueryDestination_CreateDisposition) Type() protoreflect.EnumType
- type BigQueryDestination_PartitionKey
- func (BigQueryDestination_PartitionKey) Descriptor() protoreflect.EnumDescriptor
- func (x BigQueryDestination_PartitionKey) Enum() *BigQueryDestination_PartitionKey
- func (BigQueryDestination_PartitionKey) EnumDescriptor() ([]byte, []int)deprecated
- func (x BigQueryDestination_PartitionKey) Number() protoreflect.EnumNumber
- func (x BigQueryDestination_PartitionKey) String() string
- func (BigQueryDestination_PartitionKey) Type() protoreflect.EnumType
- type BigQueryDestination_WriteDisposition
- func (BigQueryDestination_WriteDisposition) Descriptor() protoreflect.EnumDescriptor
- func (x BigQueryDestination_WriteDisposition) Enum() *BigQueryDestination_WriteDisposition
- func (BigQueryDestination_WriteDisposition) EnumDescriptor() ([]byte, []int)deprecated
- func (x BigQueryDestination_WriteDisposition) Number() protoreflect.EnumNumber
- func (x BigQueryDestination_WriteDisposition) String() string
- func (BigQueryDestination_WriteDisposition) Type() protoreflect.EnumType
- type ExportForecastsRequest
- func (*ExportForecastsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ExportForecastsRequest) GetAggregationMethod() UsageHistory_AggregationMethod
- func (x *ExportForecastsRequest) GetDiskType() string
- func (x *ExportForecastsRequest) GetEndDate() *date.Date
- func (x *ExportForecastsRequest) GetGpuType() string
- func (x *ExportForecastsRequest) GetMachineFamily() string
- func (x *ExportForecastsRequest) GetMachineShape() *MachineShape
- func (x *ExportForecastsRequest) GetOutputConfig() *OutputConfig
- func (x *ExportForecastsRequest) GetParent() string
- func (x *ExportForecastsRequest) GetPredictionInterval() Forecast_PredictionInterval
- func (x *ExportForecastsRequest) GetResourceType() string
- func (x *ExportForecastsRequest) GetStartDate() *date.Date
- func (x *ExportForecastsRequest) GetTpuType() string
- func (*ExportForecastsRequest) ProtoMessage()
- func (x *ExportForecastsRequest) ProtoReflect() protoreflect.Message
- func (x *ExportForecastsRequest) Reset()
- func (x *ExportForecastsRequest) String() string
- type ExportForecastsResponse
- func (*ExportForecastsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ExportForecastsResponse) GetResponse() string
- func (*ExportForecastsResponse) ProtoMessage()
- func (x *ExportForecastsResponse) ProtoReflect() protoreflect.Message
- func (x *ExportForecastsResponse) Reset()
- func (x *ExportForecastsResponse) String() string
- type ExportReservationsUsageRequest
- func (*ExportReservationsUsageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ExportReservationsUsageRequest) GetCloudResourceType() string
- func (x *ExportReservationsUsageRequest) GetEndDate() *date.Date
- func (x *ExportReservationsUsageRequest) GetGpuType() string
- func (x *ExportReservationsUsageRequest) GetLocationLevel() TimeSeries_LocationType
- func (x *ExportReservationsUsageRequest) GetMachineFamily() string
- func (x *ExportReservationsUsageRequest) GetMachineShape() *MachineShape
- func (x *ExportReservationsUsageRequest) GetOutputConfig() *OutputConfig
- func (x *ExportReservationsUsageRequest) GetParent() string
- func (x *ExportReservationsUsageRequest) GetResource() isExportReservationsUsageRequest_Resource
- func (x *ExportReservationsUsageRequest) GetShareType() ExportReservationsUsageRequest_ShareType
- func (x *ExportReservationsUsageRequest) GetStartDate() *date.Date
- func (x *ExportReservationsUsageRequest) GetUsageAggregationMethod() UsageHistory_AggregationMethod
- func (*ExportReservationsUsageRequest) ProtoMessage()
- func (x *ExportReservationsUsageRequest) ProtoReflect() protoreflect.Message
- func (x *ExportReservationsUsageRequest) Reset()
- func (x *ExportReservationsUsageRequest) String() string
- type ExportReservationsUsageRequest_GpuType
- type ExportReservationsUsageRequest_MachineFamily
- type ExportReservationsUsageRequest_MachineShape
- type ExportReservationsUsageRequest_ShareType
- func (ExportReservationsUsageRequest_ShareType) Descriptor() protoreflect.EnumDescriptor
- func (x ExportReservationsUsageRequest_ShareType) Enum() *ExportReservationsUsageRequest_ShareType
- func (ExportReservationsUsageRequest_ShareType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ExportReservationsUsageRequest_ShareType) Number() protoreflect.EnumNumber
- func (x ExportReservationsUsageRequest_ShareType) String() string
- func (ExportReservationsUsageRequest_ShareType) Type() protoreflect.EnumType
- type ExportReservationsUsageResponse
- func (*ExportReservationsUsageResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ExportReservationsUsageResponse) GetResponse() string
- func (*ExportReservationsUsageResponse) ProtoMessage()
- func (x *ExportReservationsUsageResponse) ProtoReflect() protoreflect.Message
- func (x *ExportReservationsUsageResponse) Reset()
- func (x *ExportReservationsUsageResponse) String() string
- type ExportUsageHistoriesRequest
- func (*ExportUsageHistoriesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ExportUsageHistoriesRequest) GetDiskType() string
- func (x *ExportUsageHistoriesRequest) GetEndDate() *date.Date
- func (x *ExportUsageHistoriesRequest) GetGpuType() string
- func (x *ExportUsageHistoriesRequest) GetIsSpot() bool
- func (x *ExportUsageHistoriesRequest) GetMachineFamily() string
- func (x *ExportUsageHistoriesRequest) GetMachineShape() *MachineShape
- func (x *ExportUsageHistoriesRequest) GetOutputConfig() *OutputConfig
- func (x *ExportUsageHistoriesRequest) GetParent() string
- func (x *ExportUsageHistoriesRequest) GetResourceType() string
- func (x *ExportUsageHistoriesRequest) GetStartDate() *date.Date
- func (x *ExportUsageHistoriesRequest) GetTpuType() string
- func (x *ExportUsageHistoriesRequest) GetUsageAggregationMethod() UsageHistory_AggregationMethod
- func (*ExportUsageHistoriesRequest) ProtoMessage()
- func (x *ExportUsageHistoriesRequest) ProtoReflect() protoreflect.Message
- func (x *ExportUsageHistoriesRequest) Reset()
- func (x *ExportUsageHistoriesRequest) String() string
- type ExportUsageHistoriesResponse
- func (*ExportUsageHistoriesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ExportUsageHistoriesResponse) GetResponse() string
- func (*ExportUsageHistoriesResponse) ProtoMessage()
- func (x *ExportUsageHistoriesResponse) ProtoReflect() protoreflect.Message
- func (x *ExportUsageHistoriesResponse) Reset()
- func (x *ExportUsageHistoriesResponse) String() string
- type Forecast
- func (*Forecast) Descriptor() ([]byte, []int)deprecated
- func (x *Forecast) GetAggregationMethod() UsageHistory_AggregationMethod
- func (x *Forecast) GetBounds() Forecast_Bounds
- func (x *Forecast) GetForecastType() Forecast_ForecastType
- func (x *Forecast) GetName() string
- func (x *Forecast) GetPredictionInterval() Forecast_PredictionInterval
- func (x *Forecast) GetTimeSeries() *TimeSeries
- func (*Forecast) ProtoMessage()
- func (x *Forecast) ProtoReflect() protoreflect.Message
- func (x *Forecast) Reset()
- func (x *Forecast) String() string
- type Forecast_Bounds
- func (Forecast_Bounds) Descriptor() protoreflect.EnumDescriptor
- func (x Forecast_Bounds) Enum() *Forecast_Bounds
- func (Forecast_Bounds) EnumDescriptor() ([]byte, []int)deprecated
- func (x Forecast_Bounds) Number() protoreflect.EnumNumber
- func (x Forecast_Bounds) String() string
- func (Forecast_Bounds) Type() protoreflect.EnumType
- type Forecast_ForecastType
- func (Forecast_ForecastType) Descriptor() protoreflect.EnumDescriptor
- func (x Forecast_ForecastType) Enum() *Forecast_ForecastType
- func (Forecast_ForecastType) EnumDescriptor() ([]byte, []int)deprecated
- func (x Forecast_ForecastType) Number() protoreflect.EnumNumber
- func (x Forecast_ForecastType) String() string
- func (Forecast_ForecastType) Type() protoreflect.EnumType
- type Forecast_PredictionInterval
- func (Forecast_PredictionInterval) Descriptor() protoreflect.EnumDescriptor
- func (x Forecast_PredictionInterval) Enum() *Forecast_PredictionInterval
- func (Forecast_PredictionInterval) EnumDescriptor() ([]byte, []int)deprecated
- func (x Forecast_PredictionInterval) Number() protoreflect.EnumNumber
- func (x Forecast_PredictionInterval) String() string
- func (Forecast_PredictionInterval) Type() protoreflect.EnumType
- type FutureReservation
- func (*FutureReservation) Descriptor() ([]byte, []int)deprecated
- func (x *FutureReservation) GetAutoCreatedReservationsDeleteTime() *timestamppb.Timestamp
- func (x *FutureReservation) GetAutoDeleteAutoCreatedReservations() bool
- func (x *FutureReservation) GetCreateTime() *timestamppb.Timestamp
- func (x *FutureReservation) GetDescription() string
- func (x *FutureReservation) GetFutureReservation() string
- func (x *FutureReservation) GetId() int64
- func (x *FutureReservation) GetNamePrefix() string
- func (x *FutureReservation) GetOwnerProjectId() string
- func (x *FutureReservation) GetShareSettings() *Allocation_ShareSettings
- func (x *FutureReservation) GetSpecificSkuProperties() *FutureReservation_SpecificSKUProperties
- func (x *FutureReservation) GetStatus() *FutureReservation_Status
- func (x *FutureReservation) GetTimeWindow() *FutureReservation_TimeWindow
- func (x *FutureReservation) GetType() isFutureReservation_Type
- func (x *FutureReservation) GetZone() string
- func (*FutureReservation) ProtoMessage()
- func (x *FutureReservation) ProtoReflect() protoreflect.Message
- func (x *FutureReservation) Reset()
- func (x *FutureReservation) String() string
- type FutureReservation_SpecificSKUProperties
- func (*FutureReservation_SpecificSKUProperties) Descriptor() ([]byte, []int)deprecated
- func (x *FutureReservation_SpecificSKUProperties) GetInstanceProperties() *Allocation_SpecificSKUAllocation_AllocatedInstanceProperties
- func (x *FutureReservation_SpecificSKUProperties) GetTotalCount() int64
- func (*FutureReservation_SpecificSKUProperties) ProtoMessage()
- func (x *FutureReservation_SpecificSKUProperties) ProtoReflect() protoreflect.Message
- func (x *FutureReservation_SpecificSKUProperties) Reset()
- func (x *FutureReservation_SpecificSKUProperties) String() string
- type FutureReservation_SpecificSkuProperties
- type FutureReservation_Status
- func (*FutureReservation_Status) Descriptor() ([]byte, []int)deprecated
- func (x *FutureReservation_Status) GetAutoCreatedReservations() []string
- func (x *FutureReservation_Status) GetFulfilledCount() int64
- func (x *FutureReservation_Status) GetLockTime() *timestamppb.Timestamp
- func (x *FutureReservation_Status) GetProcurementStatus() FutureReservation_Status_ProcurementStatus
- func (*FutureReservation_Status) ProtoMessage()
- func (x *FutureReservation_Status) ProtoReflect() protoreflect.Message
- func (x *FutureReservation_Status) Reset()
- func (x *FutureReservation_Status) String() string
- type FutureReservation_Status_ProcurementStatus
- func (FutureReservation_Status_ProcurementStatus) Descriptor() protoreflect.EnumDescriptor
- func (x FutureReservation_Status_ProcurementStatus) Enum() *FutureReservation_Status_ProcurementStatus
- func (FutureReservation_Status_ProcurementStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x FutureReservation_Status_ProcurementStatus) Number() protoreflect.EnumNumber
- func (x FutureReservation_Status_ProcurementStatus) String() string
- func (FutureReservation_Status_ProcurementStatus) Type() protoreflect.EnumType
- type FutureReservation_TimeWindow
- func (*FutureReservation_TimeWindow) Descriptor() ([]byte, []int)deprecated
- func (x *FutureReservation_TimeWindow) GetEndTime() *timestamppb.Timestamp
- func (x *FutureReservation_TimeWindow) GetStartTime() *timestamppb.Timestamp
- func (*FutureReservation_TimeWindow) ProtoMessage()
- func (x *FutureReservation_TimeWindow) ProtoReflect() protoreflect.Message
- func (x *FutureReservation_TimeWindow) Reset()
- func (x *FutureReservation_TimeWindow) String() string
- type GcsDestination
- func (*GcsDestination) Descriptor() ([]byte, []int)deprecated
- func (x *GcsDestination) GetBucket() string
- func (x *GcsDestination) GetForce() bool
- func (x *GcsDestination) GetObject() string
- func (x *GcsDestination) GetUri() string
- func (*GcsDestination) ProtoMessage()
- func (x *GcsDestination) ProtoReflect() protoreflect.Message
- func (x *GcsDestination) Reset()
- func (x *GcsDestination) String() string
- type LocationIdentifier
- func (*LocationIdentifier) Descriptor() ([]byte, []int)deprecated
- func (x *LocationIdentifier) GetLinkedLocations() []*LocationIdentifier_LinkedLocation
- func (x *LocationIdentifier) GetLocationLevel() LocationLevel
- func (x *LocationIdentifier) GetSource() string
- func (*LocationIdentifier) ProtoMessage()
- func (x *LocationIdentifier) ProtoReflect() protoreflect.Message
- func (x *LocationIdentifier) Reset()
- func (x *LocationIdentifier) String() string
- type LocationIdentifier_LinkedLocation
- func (*LocationIdentifier_LinkedLocation) Descriptor() ([]byte, []int)deprecated
- func (x *LocationIdentifier_LinkedLocation) GetLabel() string
- func (x *LocationIdentifier_LinkedLocation) GetLocation() string
- func (x *LocationIdentifier_LinkedLocation) GetLocationLevel() LocationLevel
- func (*LocationIdentifier_LinkedLocation) ProtoMessage()
- func (x *LocationIdentifier_LinkedLocation) ProtoReflect() protoreflect.Message
- func (x *LocationIdentifier_LinkedLocation) Reset()
- func (x *LocationIdentifier_LinkedLocation) String() string
- type LocationLevel
- func (LocationLevel) Descriptor() protoreflect.EnumDescriptor
- func (x LocationLevel) Enum() *LocationLevel
- func (LocationLevel) EnumDescriptor() ([]byte, []int)deprecated
- func (x LocationLevel) Number() protoreflect.EnumNumber
- func (x LocationLevel) String() string
- func (LocationLevel) Type() protoreflect.EnumType
- type MachineShape
- func (*MachineShape) Descriptor() ([]byte, []int)deprecated
- func (x *MachineShape) GetCpuCores() float64
- func (x *MachineShape) GetGpuComputeType() string
- func (x *MachineShape) GetGpuCores() int64
- func (x *MachineShape) GetGpuType() string
- func (x *MachineShape) GetLocalSsdGb() float64
- func (x *MachineShape) GetLocalSsdInterface() string
- func (x *MachineShape) GetLocalSsdPartitions() int64
- func (x *MachineShape) GetMachineFamily() string
- func (x *MachineShape) GetMachineShape() string
- func (x *MachineShape) GetMachineType() string
- func (x *MachineShape) GetMemoryGb() float64
- func (x *MachineShape) GetMinCpuPlatform() string
- func (*MachineShape) ProtoMessage()
- func (x *MachineShape) ProtoReflect() protoreflect.Message
- func (x *MachineShape) Reset()
- func (x *MachineShape) String() string
- type OperationMetadata
- func (*OperationMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp
- func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp
- func (*OperationMetadata) ProtoMessage()
- func (x *OperationMetadata) ProtoReflect() protoreflect.Message
- func (x *OperationMetadata) Reset()
- func (x *OperationMetadata) String() string
- type OutputConfig
- func (*OutputConfig) Descriptor() ([]byte, []int)deprecated
- func (x *OutputConfig) GetBigqueryDestination() *BigQueryDestination
- func (x *OutputConfig) GetDestination() isOutputConfig_Destination
- func (x *OutputConfig) GetGcsDestination() *GcsDestination
- func (*OutputConfig) ProtoMessage()
- func (x *OutputConfig) ProtoReflect() protoreflect.Message
- func (x *OutputConfig) Reset()
- func (x *OutputConfig) String() string
- type OutputConfig_BigqueryDestination
- type OutputConfig_GcsDestination
- type Point
- type QueryForecastsRequest
- func (*QueryForecastsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryForecastsRequest) GetAggregationMethod() UsageHistory_AggregationMethod
- func (x *QueryForecastsRequest) GetCloudResourceType() string
- func (x *QueryForecastsRequest) GetConfidentialMode() bool
- func (x *QueryForecastsRequest) GetDiskType() string
- func (x *QueryForecastsRequest) GetForecastType() Forecast_ForecastType
- func (x *QueryForecastsRequest) GetGpuType() string
- func (x *QueryForecastsRequest) GetMachineFamily() string
- func (x *QueryForecastsRequest) GetMachineShape() *MachineShape
- func (x *QueryForecastsRequest) GetParent() string
- func (x *QueryForecastsRequest) GetPredictionInterval() Forecast_PredictionInterval
- func (x *QueryForecastsRequest) GetTpuType() string
- func (*QueryForecastsRequest) ProtoMessage()
- func (x *QueryForecastsRequest) ProtoReflect() protoreflect.Message
- func (x *QueryForecastsRequest) Reset()
- func (x *QueryForecastsRequest) String() string
- type QueryForecastsResponse
- func (*QueryForecastsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryForecastsResponse) GetForecasts() []*Forecast
- func (*QueryForecastsResponse) ProtoMessage()
- func (x *QueryForecastsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryForecastsResponse) Reset()
- func (x *QueryForecastsResponse) String() string
- type QueryReservationsRequest
- func (*QueryReservationsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryReservationsRequest) GetAggregationMethod() UsageHistory_AggregationMethod
- func (x *QueryReservationsRequest) GetCloudResourceType() string
- func (x *QueryReservationsRequest) GetEndDate() *date.Date
- func (x *QueryReservationsRequest) GetGpuType() string
- func (x *QueryReservationsRequest) GetIncludeUnapprovedReservations() bool
- func (x *QueryReservationsRequest) GetLocationLevel() TimeSeries_LocationType
- func (x *QueryReservationsRequest) GetMachineFamily() string
- func (x *QueryReservationsRequest) GetMachineShape() *MachineShape
- func (x *QueryReservationsRequest) GetOwnershipType() QueryReservationsRequest_OwnershipType
- func (x *QueryReservationsRequest) GetParent() string
- func (x *QueryReservationsRequest) GetReservationDataLevel() QueryReservationsRequest_ReservationDataLevel
- func (x *QueryReservationsRequest) GetReservationType() QueryReservationsRequest_ReservationType
- func (x *QueryReservationsRequest) GetShareType() QueryReservationsRequest_ShareType
- func (x *QueryReservationsRequest) GetStartDate() *date.Date
- func (*QueryReservationsRequest) ProtoMessage()
- func (x *QueryReservationsRequest) ProtoReflect() protoreflect.Message
- func (x *QueryReservationsRequest) Reset()
- func (x *QueryReservationsRequest) String() string
- type QueryReservationsRequest_OwnershipType
- func (QueryReservationsRequest_OwnershipType) Descriptor() protoreflect.EnumDescriptor
- func (x QueryReservationsRequest_OwnershipType) Enum() *QueryReservationsRequest_OwnershipType
- func (QueryReservationsRequest_OwnershipType) EnumDescriptor() ([]byte, []int)deprecated
- func (x QueryReservationsRequest_OwnershipType) Number() protoreflect.EnumNumber
- func (x QueryReservationsRequest_OwnershipType) String() string
- func (QueryReservationsRequest_OwnershipType) Type() protoreflect.EnumType
- type QueryReservationsRequest_ReservationDataLevel
- func (QueryReservationsRequest_ReservationDataLevel) Descriptor() protoreflect.EnumDescriptor
- func (x QueryReservationsRequest_ReservationDataLevel) Enum() *QueryReservationsRequest_ReservationDataLevel
- func (QueryReservationsRequest_ReservationDataLevel) EnumDescriptor() ([]byte, []int)deprecated
- func (x QueryReservationsRequest_ReservationDataLevel) Number() protoreflect.EnumNumber
- func (x QueryReservationsRequest_ReservationDataLevel) String() string
- func (QueryReservationsRequest_ReservationDataLevel) Type() protoreflect.EnumType
- type QueryReservationsRequest_ReservationType
- func (QueryReservationsRequest_ReservationType) Descriptor() protoreflect.EnumDescriptor
- func (x QueryReservationsRequest_ReservationType) Enum() *QueryReservationsRequest_ReservationType
- func (QueryReservationsRequest_ReservationType) EnumDescriptor() ([]byte, []int)deprecated
- func (x QueryReservationsRequest_ReservationType) Number() protoreflect.EnumNumber
- func (x QueryReservationsRequest_ReservationType) String() string
- func (QueryReservationsRequest_ReservationType) Type() protoreflect.EnumType
- type QueryReservationsRequest_ShareType
- func (QueryReservationsRequest_ShareType) Descriptor() protoreflect.EnumDescriptor
- func (x QueryReservationsRequest_ShareType) Enum() *QueryReservationsRequest_ShareType
- func (QueryReservationsRequest_ShareType) EnumDescriptor() ([]byte, []int)deprecated
- func (x QueryReservationsRequest_ShareType) Number() protoreflect.EnumNumber
- func (x QueryReservationsRequest_ShareType) String() string
- func (QueryReservationsRequest_ShareType) Type() protoreflect.EnumType
- type QueryReservationsResponse
- func (*QueryReservationsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryReservationsResponse) GetReservations() []*ReservationData
- func (*QueryReservationsResponse) ProtoMessage()
- func (x *QueryReservationsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryReservationsResponse) Reset()
- func (x *QueryReservationsResponse) String() string
- type QueryUsageHistoriesRequest
- func (*QueryUsageHistoriesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryUsageHistoriesRequest) GetCloudResourceType() string
- func (x *QueryUsageHistoriesRequest) GetConfidentialMode() bool
- func (x *QueryUsageHistoriesRequest) GetDiskType() string
- func (x *QueryUsageHistoriesRequest) GetEndDate() *date.Date
- func (x *QueryUsageHistoriesRequest) GetGpuType() string
- func (x *QueryUsageHistoriesRequest) GetIsSpot() bool
- func (x *QueryUsageHistoriesRequest) GetLocationLevel() TimeSeries_LocationType
- func (x *QueryUsageHistoriesRequest) GetMachineFamily() string
- func (x *QueryUsageHistoriesRequest) GetMachineShape() *MachineShape
- func (x *QueryUsageHistoriesRequest) GetParent() string
- func (x *QueryUsageHistoriesRequest) GetStartDate() *date.Date
- func (x *QueryUsageHistoriesRequest) GetTpuType() string
- func (x *QueryUsageHistoriesRequest) GetUsageAggregationMethod() UsageHistory_AggregationMethod
- func (*QueryUsageHistoriesRequest) ProtoMessage()
- func (x *QueryUsageHistoriesRequest) ProtoReflect() protoreflect.Message
- func (x *QueryUsageHistoriesRequest) Reset()
- func (x *QueryUsageHistoriesRequest) String() string
- type QueryUsageHistoriesResponse
- func (*QueryUsageHistoriesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryUsageHistoriesResponse) GetUsageHistories() []*UsageHistory
- func (*QueryUsageHistoriesResponse) ProtoMessage()
- func (x *QueryUsageHistoriesResponse) ProtoReflect() protoreflect.Message
- func (x *QueryUsageHistoriesResponse) Reset()
- func (x *QueryUsageHistoriesResponse) String() string
- type ReservationData
- func (*ReservationData) Descriptor() ([]byte, []int)deprecated
- func (x *ReservationData) GetAllocations() []*Allocation
- func (x *ReservationData) GetFutureReservations() []*FutureReservation
- func (x *ReservationData) GetName() string
- func (x *ReservationData) GetTimeSeries() *TimeSeries
- func (x *ReservationData) GetUsedReservationValues() *TimeSeries
- func (*ReservationData) ProtoMessage()
- func (x *ReservationData) ProtoReflect() protoreflect.Message
- func (x *ReservationData) Reset()
- func (x *ReservationData) String() string
- type ResourceAttribute
- func (*ResourceAttribute) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceAttribute) GetKey() string
- func (x *ResourceAttribute) GetValue() *ResourceValue
- func (*ResourceAttribute) ProtoMessage()
- func (x *ResourceAttribute) ProtoReflect() protoreflect.Message
- func (x *ResourceAttribute) Reset()
- func (x *ResourceAttribute) String() string
- type ResourceContainer
- func (*ResourceContainer) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceContainer) GetId() string
- func (x *ResourceContainer) GetType() ResourceContainer_Type
- func (*ResourceContainer) ProtoMessage()
- func (x *ResourceContainer) ProtoReflect() protoreflect.Message
- func (x *ResourceContainer) Reset()
- func (x *ResourceContainer) String() string
- type ResourceContainer_Type
- func (ResourceContainer_Type) Descriptor() protoreflect.EnumDescriptor
- func (x ResourceContainer_Type) Enum() *ResourceContainer_Type
- func (ResourceContainer_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x ResourceContainer_Type) Number() protoreflect.EnumNumber
- func (x ResourceContainer_Type) String() string
- func (ResourceContainer_Type) Type() protoreflect.EnumType
- type ResourceIdKey
- func (*ResourceIdKey) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceIdKey) GetDemandFields() isResourceIdKey_DemandFields
- func (x *ResourceIdKey) GetResourceCode() string
- func (x *ResourceIdKey) GetResourceId() *ResourceIdentifier
- func (*ResourceIdKey) ProtoMessage()
- func (x *ResourceIdKey) ProtoReflect() protoreflect.Message
- func (x *ResourceIdKey) Reset()
- func (x *ResourceIdKey) String() string
- type ResourceIdKey_ResourceCode
- type ResourceIdentifier
- func (*ResourceIdentifier) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceIdentifier) GetResourceAttributes() []*ResourceAttribute
- func (x *ResourceIdentifier) GetResourceName() string
- func (x *ResourceIdentifier) GetServiceName() string
- func (*ResourceIdentifier) ProtoMessage()
- func (x *ResourceIdentifier) ProtoReflect() protoreflect.Message
- func (x *ResourceIdentifier) Reset()
- func (x *ResourceIdentifier) String() string
- type ResourceValue
- func (*ResourceValue) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceValue) GetUnit() Unit
- func (x *ResourceValue) GetValue() *Value
- func (*ResourceValue) ProtoMessage()
- func (x *ResourceValue) ProtoReflect() protoreflect.Message
- func (x *ResourceValue) Reset()
- func (x *ResourceValue) String() string
- type TimeSeries
- func (*TimeSeries) Descriptor() ([]byte, []int)deprecated
- func (x *TimeSeries) GetCloudResourceType() string
- func (x *TimeSeries) GetConfidentialMode() bool
- func (x *TimeSeries) GetDiskType() string
- func (x *TimeSeries) GetGpuType() string
- func (x *TimeSeries) GetIsSpot() bool
- func (x *TimeSeries) GetLocation() string
- func (x *TimeSeries) GetLocationType() TimeSeries_LocationType
- func (x *TimeSeries) GetMachineFamily() string
- func (x *TimeSeries) GetMachineShape() *MachineShape
- func (x *TimeSeries) GetPoints() []*Point
- func (x *TimeSeries) GetTpuType() string
- func (x *TimeSeries) GetUnit() string
- func (*TimeSeries) ProtoMessage()
- func (x *TimeSeries) ProtoReflect() protoreflect.Message
- func (x *TimeSeries) Reset()
- func (x *TimeSeries) String() string
- type TimeSeries_LocationType
- func (TimeSeries_LocationType) Descriptor() protoreflect.EnumDescriptor
- func (x TimeSeries_LocationType) Enum() *TimeSeries_LocationType
- func (TimeSeries_LocationType) EnumDescriptor() ([]byte, []int)deprecated
- func (x TimeSeries_LocationType) Number() protoreflect.EnumNumber
- func (x TimeSeries_LocationType) String() string
- func (TimeSeries_LocationType) Type() protoreflect.EnumType
- type UnimplementedUsageServiceServer
- func (UnimplementedUsageServiceServer) ExportForecasts(context.Context, *ExportForecastsRequest) (*longrunningpb.Operation, error)
- func (UnimplementedUsageServiceServer) ExportReservationsUsage(context.Context, *ExportReservationsUsageRequest) (*longrunningpb.Operation, error)
- func (UnimplementedUsageServiceServer) ExportUsageHistories(context.Context, *ExportUsageHistoriesRequest) (*longrunningpb.Operation, error)
- func (UnimplementedUsageServiceServer) QueryForecasts(context.Context, *QueryForecastsRequest) (*QueryForecastsResponse, error)
- func (UnimplementedUsageServiceServer) QueryReservations(context.Context, *QueryReservationsRequest) (*QueryReservationsResponse, error)
- func (UnimplementedUsageServiceServer) QueryUsageHistories(context.Context, *QueryUsageHistoriesRequest) (*QueryUsageHistoriesResponse, error)
- type Unit
- type UnsafeUsageServiceServer
- type UsageHistory
- func (*UsageHistory) Descriptor() ([]byte, []int)deprecated
- func (x *UsageHistory) GetAggregationMethod() UsageHistory_AggregationMethod
- func (x *UsageHistory) GetTimeSeries() *TimeSeries
- func (*UsageHistory) ProtoMessage()
- func (x *UsageHistory) ProtoReflect() protoreflect.Message
- func (x *UsageHistory) Reset()
- func (x *UsageHistory) String() string
- type UsageHistory_AggregationMethod
- func (UsageHistory_AggregationMethod) Descriptor() protoreflect.EnumDescriptor
- func (x UsageHistory_AggregationMethod) Enum() *UsageHistory_AggregationMethod
- func (UsageHistory_AggregationMethod) EnumDescriptor() ([]byte, []int)deprecated
- func (x UsageHistory_AggregationMethod) Number() protoreflect.EnumNumber
- func (x UsageHistory_AggregationMethod) String() string
- func (UsageHistory_AggregationMethod) Type() protoreflect.EnumType
- type UsageServiceClient
- type UsageServiceServer
- type Value
- func (*Value) Descriptor() ([]byte, []int)deprecated
- func (x *Value) GetBoolValue() bool
- func (x *Value) GetDoubleValue() float64
- func (x *Value) GetInt64Value() int64
- func (x *Value) GetStringValue() string
- func (x *Value) GetValue() isValue_Value
- func (*Value) ProtoMessage()
- func (x *Value) ProtoReflect() protoreflect.Message
- func (x *Value) Reset()
- func (x *Value) String() string
- type Value_BoolValue
- type Value_DoubleValue
- type Value_Int64Value
- type Value_StringValue
Constants ¶
const ( UsageService_QueryUsageHistories_FullMethodName = "/google.cloud.capacityplanner.v1beta.UsageService/QueryUsageHistories" UsageService_QueryForecasts_FullMethodName = "/google.cloud.capacityplanner.v1beta.UsageService/QueryForecasts" UsageService_QueryReservations_FullMethodName = "/google.cloud.capacityplanner.v1beta.UsageService/QueryReservations" UsageService_ExportUsageHistories_FullMethodName = "/google.cloud.capacityplanner.v1beta.UsageService/ExportUsageHistories" UsageService_ExportForecasts_FullMethodName = "/google.cloud.capacityplanner.v1beta.UsageService/ExportForecasts" UsageService_ExportReservationsUsage_FullMethodName = "/google.cloud.capacityplanner.v1beta.UsageService/ExportReservationsUsage" )
Variables ¶
var ( Allocation_Status_name = map[int32]string{ 0: "STATUS_UNSPECIFIED", 1: "INVALID", 2: "CREATING", 3: "READY", 4: "DELETING", 5: "UPDATING", } Allocation_Status_value = map[string]int32{ "STATUS_UNSPECIFIED": 0, "INVALID": 1, "CREATING": 2, "READY": 3, "DELETING": 4, "UPDATING": 5, } )
Enum value maps for Allocation_Status.
var ( Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DiskInterface_name = map[int32]string{ 0: "DISK_INTERFACE_UNSPECIFIED", 1: "SCSI", 2: "NVME", 3: "NVDIMM", 4: "ISCSI", } Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DiskInterface_value = map[string]int32{ "DISK_INTERFACE_UNSPECIFIED": 0, "SCSI": 1, "NVME": 2, "NVDIMM": 3, "ISCSI": 4, } )
Enum value maps for Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DiskInterface.
var ( 0: "SHARE_TYPE_UNSPECIFIED", 1: "ORGANIZATION", 2: "SPECIFIC_PROJECTS", 3: "LOCAL", 4: "DIRECT_PROJECTS_UNDER_SPECIFIC_FOLDERS", } "SHARE_TYPE_UNSPECIFIED": 0, "ORGANIZATION": 1, "SPECIFIC_PROJECTS": 2, "LOCAL": 3, "DIRECT_PROJECTS_UNDER_SPECIFIC_FOLDERS": 4, } )
Enum value maps for Allocation_ShareSettings_ShareType.
var ( FutureReservation_Status_ProcurementStatus_name = map[int32]string{ 0: "PROCUREMENT_STATUS_UNSPECIFIED", 1: "PENDING_APPROVAL", 2: "APPROVED", 3: "COMMITTED", 4: "DECLINED", 5: "CANCELLED", 6: "PROCURING", 7: "PROVISIONING", 8: "FULFILLED", 9: "FAILED", 10: "FAILED_PARTIALLY_FULFILLED", 11: "DRAFTING", 12: "PENDING_AMENDMENT_APPROVAL", } FutureReservation_Status_ProcurementStatus_value = map[string]int32{ "PROCUREMENT_STATUS_UNSPECIFIED": 0, "PENDING_APPROVAL": 1, "APPROVED": 2, "COMMITTED": 3, "DECLINED": 4, "CANCELLED": 5, "PROCURING": 6, "PROVISIONING": 7, "FULFILLED": 8, "FAILED": 9, "FAILED_PARTIALLY_FULFILLED": 10, "DRAFTING": 11, "PENDING_AMENDMENT_APPROVAL": 12, } )
Enum value maps for FutureReservation_Status_ProcurementStatus.
var ( LocationLevel_name = map[int32]string{ 0: "LOCATION_LEVEL_UNSPECIFIED", 1: "REGION", 2: "ZONE", 3: "GLOBAL", 4: "METRO", 5: "DUAL_REGION", 6: "MULTI_REGION", } LocationLevel_value = map[string]int32{ "LOCATION_LEVEL_UNSPECIFIED": 0, "REGION": 1, "ZONE": 2, "GLOBAL": 3, "METRO": 4, "DUAL_REGION": 5, "MULTI_REGION": 6, } )
Enum value maps for LocationLevel.
var ( Unit_name = map[int32]string{ 0: "UNIT_UNSPECIFIED", 1: "UNIT_COUNT", 2: "KB", 3: "GB", 4: "TB", 17: "MIB", 5: "GIB", 6: "TIB", 7: "QPS", 8: "MB", 9: "PIB", 10: "TBPS", 11: "GBPS_BITS", 12: "GIB_BITS", 13: "MBPS_BITS", 14: "MBPS_BYTES", 15: "TBPS_BITS", 16: "TBPS_BYTES", 18: "KOPS", } Unit_value = map[string]int32{ "UNIT_UNSPECIFIED": 0, "UNIT_COUNT": 1, "KB": 2, "GB": 3, "TB": 4, "MIB": 17, "GIB": 5, "TIB": 6, "QPS": 7, "MB": 8, "PIB": 9, "TBPS": 10, "GBPS_BITS": 11, "GIB_BITS": 12, "MBPS_BITS": 13, "MBPS_BYTES": 14, "TBPS_BITS": 15, "TBPS_BYTES": 16, "KOPS": 18, } )
Enum value maps for Unit.
var ( ResourceContainer_Type_name = map[int32]string{ 0: "TYPE_UNSPECIFIED", 1: "PROJECT", 2: "FOLDER", 3: "ORG", } ResourceContainer_Type_value = map[string]int32{ "TYPE_UNSPECIFIED": 0, "PROJECT": 1, "FOLDER": 2, "ORG": 3, } )
Enum value maps for ResourceContainer_Type.
var ( QueryReservationsRequest_ReservationType_name = map[int32]string{ 0: "RESERVATION_TYPE_UNSPECIFIED", 1: "RESERVATION_TYPE_ALLOCATION", 2: "RESERVATION_TYPE_FUTURE_RESERVATION", 3: "RESERVATION_TYPE_ALL", } QueryReservationsRequest_ReservationType_value = map[string]int32{ "RESERVATION_TYPE_UNSPECIFIED": 0, "RESERVATION_TYPE_ALLOCATION": 1, "RESERVATION_TYPE_FUTURE_RESERVATION": 2, "RESERVATION_TYPE_ALL": 3, } )
Enum value maps for QueryReservationsRequest_ReservationType.
var ( 0: "SHARE_TYPE_UNSPECIFIED", 1: "SHARE_TYPE_LOCAL", 2: "SHARE_TYPE_SPECIFIC_PROJECTS", } "SHARE_TYPE_UNSPECIFIED": 0, "SHARE_TYPE_LOCAL": 1, "SHARE_TYPE_SPECIFIC_PROJECTS": 2, } )
Enum value maps for QueryReservationsRequest_ShareType.
var ( QueryReservationsRequest_OwnershipType_name = map[int32]string{ 0: "OWNERSHIP_TYPE_UNSPECIFIED", 1: "OWNERSHIP_TYPE_OWNED", 2: "OWNERSHIP_TYPE_SHARED_BY_OTHERS", } QueryReservationsRequest_OwnershipType_value = map[string]int32{ "OWNERSHIP_TYPE_UNSPECIFIED": 0, "OWNERSHIP_TYPE_OWNED": 1, "OWNERSHIP_TYPE_SHARED_BY_OTHERS": 2, } )
Enum value maps for QueryReservationsRequest_OwnershipType.
var ( QueryReservationsRequest_ReservationDataLevel_name = map[int32]string{ 0: "RESERVATION_DATA_LEVEL_UNSPECIFIED", 1: "RESERVATION_DATA_LEVEL_AGGREGATED", 2: "RESERVATION_DATA_LEVEL_PER_RESERVATION", } QueryReservationsRequest_ReservationDataLevel_value = map[string]int32{ "RESERVATION_DATA_LEVEL_UNSPECIFIED": 0, "RESERVATION_DATA_LEVEL_AGGREGATED": 1, "RESERVATION_DATA_LEVEL_PER_RESERVATION": 2, } )
Enum value maps for QueryReservationsRequest_ReservationDataLevel.
var ( Forecast_ForecastType_name = map[int32]string{ 0: "FORECAST_TYPE_UNSPECIFIED", 1: "STATISTICAL", 2: "STATISTICAL_WITH_BFCM", 3: "YEARLY_SEASONALITY", } Forecast_ForecastType_value = map[string]int32{ "FORECAST_TYPE_UNSPECIFIED": 0, "STATISTICAL": 1, "STATISTICAL_WITH_BFCM": 2, "YEARLY_SEASONALITY": 3, } )
Enum value maps for Forecast_ForecastType.
var ( Forecast_Bounds_name = map[int32]string{ 0: "BOUNDS_UNSPECIFIED", 1: "LOWER_BOUND", 2: "MEDIAN", 3: "UPPER_BOUND", } Forecast_Bounds_value = map[string]int32{ "BOUNDS_UNSPECIFIED": 0, "LOWER_BOUND": 1, "MEDIAN": 2, "UPPER_BOUND": 3, } )
Enum value maps for Forecast_Bounds.
var ( Forecast_PredictionInterval_name = map[int32]string{ 0: "PREDICTION_INTERVAL_UNSPECIFIED", 1: "PREDICTION_INTERVAL_90", 2: "PREDICTION_INTERVAL_50", } Forecast_PredictionInterval_value = map[string]int32{ "PREDICTION_INTERVAL_UNSPECIFIED": 0, "PREDICTION_INTERVAL_90": 1, "PREDICTION_INTERVAL_50": 2, } )
Enum value maps for Forecast_PredictionInterval.
var ( UsageHistory_AggregationMethod_name = map[int32]string{ 0: "AGGREGATION_METHOD_UNSPECIFIED", 1: "MEDIAN", 2: "PEAK", 3: "P50", 4: "P75", 5: "P99", } UsageHistory_AggregationMethod_value = map[string]int32{ "AGGREGATION_METHOD_UNSPECIFIED": 0, "MEDIAN": 1, "PEAK": 2, "P50": 3, "P75": 4, "P99": 5, } )
Enum value maps for UsageHistory_AggregationMethod.
var ( TimeSeries_LocationType_name = map[int32]string{ 0: "LOCATION_TYPE_UNSPECIFIED", 1: "REGIONAL", 2: "ZONAL", } TimeSeries_LocationType_value = map[string]int32{ "LOCATION_TYPE_UNSPECIFIED": 0, "REGIONAL": 1, "ZONAL": 2, } )
Enum value maps for TimeSeries_LocationType.
var ( 0: "SHARE_TYPE_UNSPECIFIED", 1: "SHARE_TYPE_LOCAL", 2: "SHARE_TYPE_SPECIFIC_PROJECTS", } "SHARE_TYPE_UNSPECIFIED": 0, "SHARE_TYPE_LOCAL": 1, "SHARE_TYPE_SPECIFIC_PROJECTS": 2, } )
Enum value maps for ExportReservationsUsageRequest_ShareType.
var ( BigQueryDestination_PartitionKey_name = map[int32]string{ 0: "PARTITION_KEY_UNSPECIFIED", 1: "REQUEST_TIME", } BigQueryDestination_PartitionKey_value = map[string]int32{ "PARTITION_KEY_UNSPECIFIED": 0, "REQUEST_TIME": 1, } )
Enum value maps for BigQueryDestination_PartitionKey.
var ( BigQueryDestination_WriteDisposition_name = map[int32]string{ 0: "WRITE_DISPOSITION_UNSPECIFIED", 1: "WRITE_APPEND", 2: "WRITE_TRUNCATE", 3: "WRITE_EMPTY", } BigQueryDestination_WriteDisposition_value = map[string]int32{ "WRITE_DISPOSITION_UNSPECIFIED": 0, "WRITE_APPEND": 1, "WRITE_TRUNCATE": 2, "WRITE_EMPTY": 3, } )
Enum value maps for BigQueryDestination_WriteDisposition.
var ( BigQueryDestination_CreateDisposition_name = map[int32]string{ 0: "CREATE_DISPOSITION_UNSPECIFIED", 1: "CREATE_IF_NEEDED", 2: "CREATE_NEVER", } BigQueryDestination_CreateDisposition_value = map[string]int32{ "CREATE_DISPOSITION_UNSPECIFIED": 0, "CREATE_IF_NEEDED": 1, "CREATE_NEVER": 2, } )
Enum value maps for BigQueryDestination_CreateDisposition.
var File_google_cloud_capacityplanner_v1beta_allocation_proto protoreflect.FileDescriptor
var File_google_cloud_capacityplanner_v1beta_future_reservation_proto protoreflect.FileDescriptor
var File_google_cloud_capacityplanner_v1beta_location_proto protoreflect.FileDescriptor
var File_google_cloud_capacityplanner_v1beta_resource_proto protoreflect.FileDescriptor
var File_google_cloud_capacityplanner_v1beta_usage_service_proto protoreflect.FileDescriptor
var UsageService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "google.cloud.capacityplanner.v1beta.UsageService", HandlerType: (*UsageServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "QueryUsageHistories", Handler: _UsageService_QueryUsageHistories_Handler, }, { MethodName: "QueryForecasts", Handler: _UsageService_QueryForecasts_Handler, }, { MethodName: "QueryReservations", Handler: _UsageService_QueryReservations_Handler, }, { MethodName: "ExportUsageHistories", Handler: _UsageService_ExportUsageHistories_Handler, }, { MethodName: "ExportForecasts", Handler: _UsageService_ExportForecasts_Handler, }, { MethodName: "ExportReservationsUsage", Handler: _UsageService_ExportReservationsUsage_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "google/cloud/capacityplanner/v1beta/usage_service.proto", }
UsageService_ServiceDesc is the grpc.ServiceDesc for UsageService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterUsageServiceServer ¶
func RegisterUsageServiceServer(s grpc.ServiceRegistrar, srv UsageServiceServer)
Types ¶
type Allocation ¶
type Allocation struct {
// The type of the reservation which can only be for a specific SKU for now.
//
// Types that are valid to be assigned to Type:
//
// *Allocation_SpecificAllocation
Type isAllocation_Type `protobuf_oneof:"type"`
// The unique identifier for the resource. This identifier is
// defined by the server.
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// The creation timestamp for this allocation.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Zone in which the reservation resides.
Zone string `protobuf:"bytes,3,opt,name=zone,proto3" json:"zone,omitempty"`
// A description while creating reservation.
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
// The reservation resource name.
Allocation string `protobuf:"bytes,5,opt,name=allocation,proto3" json:"allocation,omitempty"`
OwnerProjectId string `protobuf:"bytes,10,opt,name=owner_project_id,json=ownerProjectId,proto3" json:"owner_project_id,omitempty"`
// The status of the reservation.
Status Allocation_Status `protobuf:"varint,7,opt,name=status,proto3,enum=google.cloud.capacityplanner.v1beta.Allocation_Status" json:"status,omitempty"`
ShareSettings *Allocation_ShareSettings `protobuf:"bytes,8,opt,name=share_settings,json=shareSettings,proto3" json:"share_settings,omitempty"`
// Absolute time in future when the reservation will be
// auto-deleted by Compute Engine.
AutoDeleteTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=auto_delete_time,json=autoDeleteTime,proto3" json:"auto_delete_time,omitempty"`
// contains filtered or unexported fields
}
Repesents Allocation which is part of aggregated reservations data response of "QueryReservations".
func (*Allocation) Descriptor
deprecated
func (*Allocation) Descriptor() ([]byte, []int)
Deprecated: Use Allocation.ProtoReflect.Descriptor instead.
func (*Allocation) GetAllocation ¶
func (x *Allocation) GetAllocation() string
func (*Allocation) GetAutoDeleteTime ¶
func (x *Allocation) GetAutoDeleteTime() *timestamppb.Timestamp
func (*Allocation) GetCreateTime ¶
func (x *Allocation) GetCreateTime() *timestamppb.Timestamp
func (*Allocation) GetDescription ¶
func (x *Allocation) GetDescription() string
func (*Allocation) GetId ¶
func (x *Allocation) GetId() int64
func (*Allocation) GetOwnerProjectId ¶
func (x *Allocation) GetOwnerProjectId() string
func (*Allocation) GetShareSettings ¶
func (x *Allocation) GetShareSettings() *Allocation_ShareSettings
func (*Allocation) GetSpecificAllocation ¶
func (x *Allocation) GetSpecificAllocation() *Allocation_SpecificSKUAllocation
func (*Allocation) GetStatus ¶
func (x *Allocation) GetStatus() Allocation_Status
func (*Allocation) GetType ¶
func (x *Allocation) GetType() isAllocation_Type
func (*Allocation) GetZone ¶
func (x *Allocation) GetZone() string
func (*Allocation) ProtoMessage ¶
func (*Allocation) ProtoMessage()
func (*Allocation) ProtoReflect ¶
func (x *Allocation) ProtoReflect() protoreflect.Message
func (*Allocation) Reset ¶
func (x *Allocation) Reset()
func (*Allocation) String ¶
func (x *Allocation) String() string
type Allocation_ShareSettings ¶
type Allocation_ShareSettings struct {
ShareType Allocation_ShareSettings_ShareType `` /* 165-byte string literal not displayed */
// shared-reservation. This is only valid when share_type's value is
// SPECIFIC_PROJECTS.
Projects []string `protobuf:"bytes,2,rep,name=projects,proto3" json:"projects,omitempty"`
// contains filtered or unexported fields
}
The share setting for reservation.
func (*Allocation_ShareSettings) Descriptor
deprecated
func (*Allocation_ShareSettings) Descriptor() ([]byte, []int)
Deprecated: Use Allocation_ShareSettings.ProtoReflect.Descriptor instead.
func (*Allocation_ShareSettings) GetProjects ¶
func (x *Allocation_ShareSettings) GetProjects() []string
func (*Allocation_ShareSettings) GetShareType ¶
func (x *Allocation_ShareSettings) GetShareType() Allocation_ShareSettings_ShareType
func (*Allocation_ShareSettings) ProtoMessage ¶
func (*Allocation_ShareSettings) ProtoMessage()
func (*Allocation_ShareSettings) ProtoReflect ¶
func (x *Allocation_ShareSettings) ProtoReflect() protoreflect.Message
func (*Allocation_ShareSettings) Reset ¶
func (x *Allocation_ShareSettings) Reset()
func (*Allocation_ShareSettings) String ¶
func (x *Allocation_ShareSettings) String() string
type Allocation_ShareSettings_ShareType ¶
type Allocation_ShareSettings_ShareType int32
Possible scope in which the reservation can be shared. More granularity can be added in future.
const ( Allocation_ShareSettings_SHARE_TYPE_UNSPECIFIED Allocation_ShareSettings_ShareType = 0 Allocation_ShareSettings_ORGANIZATION Allocation_ShareSettings_ShareType = 1 Allocation_ShareSettings_SPECIFIC_PROJECTS Allocation_ShareSettings_ShareType = 2 Allocation_ShareSettings_LOCAL Allocation_ShareSettings_ShareType = 3 // folders. Allocation_ShareSettings_DIRECT_PROJECTS_UNDER_SPECIFIC_FOLDERS Allocation_ShareSettings_ShareType = 4 )
func (Allocation_ShareSettings_ShareType) Descriptor ¶
func (Allocation_ShareSettings_ShareType) Descriptor() protoreflect.EnumDescriptor
func (Allocation_ShareSettings_ShareType) Enum ¶
func (x Allocation_ShareSettings_ShareType) Enum() *Allocation_ShareSettings_ShareType
func (Allocation_ShareSettings_ShareType) EnumDescriptor
deprecated
func (Allocation_ShareSettings_ShareType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Allocation_ShareSettings_ShareType.Descriptor instead.
func (Allocation_ShareSettings_ShareType) Number ¶
func (x Allocation_ShareSettings_ShareType) Number() protoreflect.EnumNumber
func (Allocation_ShareSettings_ShareType) String ¶
func (x Allocation_ShareSettings_ShareType) String() string
func (Allocation_ShareSettings_ShareType) Type ¶
func (Allocation_ShareSettings_ShareType) Type() protoreflect.EnumType
type Allocation_SpecificAllocation ¶
type Allocation_SpecificAllocation struct {
// Reservation for instances with specific machine shapes.
SpecificAllocation *Allocation_SpecificSKUAllocation `protobuf:"bytes,6,opt,name=specific_allocation,json=specificAllocation,proto3,oneof"`
}
type Allocation_SpecificSKUAllocation ¶
type Allocation_SpecificSKUAllocation struct {
// The instance properties for the reservation.
InstanceProperties *Allocation_SpecificSKUAllocation_AllocatedInstanceProperties `protobuf:"bytes,1,opt,name=instance_properties,json=instanceProperties,proto3" json:"instance_properties,omitempty"`
// Specifies the number of resources that are allocated.
Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
// Indicates how many instances are in use.
UsedCount int64 `protobuf:"varint,3,opt,name=used_count,json=usedCount,proto3" json:"used_count,omitempty"`
// Indicates how many instances are actually usable currently.
AssuredCount int64 `protobuf:"varint,4,opt,name=assured_count,json=assuredCount,proto3" json:"assured_count,omitempty"`
// contains filtered or unexported fields
}
This reservation type allows to pre allocate specific instance configuration.
func (*Allocation_SpecificSKUAllocation) Descriptor
deprecated
func (*Allocation_SpecificSKUAllocation) Descriptor() ([]byte, []int)
Deprecated: Use Allocation_SpecificSKUAllocation.ProtoReflect.Descriptor instead.
func (*Allocation_SpecificSKUAllocation) GetAssuredCount ¶
func (x *Allocation_SpecificSKUAllocation) GetAssuredCount() int64
func (*Allocation_SpecificSKUAllocation) GetCount ¶
func (x *Allocation_SpecificSKUAllocation) GetCount() int64
func (*Allocation_SpecificSKUAllocation) GetInstanceProperties ¶
func (x *Allocation_SpecificSKUAllocation) GetInstanceProperties() *Allocation_SpecificSKUAllocation_AllocatedInstanceProperties
func (*Allocation_SpecificSKUAllocation) GetUsedCount ¶
func (x *Allocation_SpecificSKUAllocation) GetUsedCount() int64
func (*Allocation_SpecificSKUAllocation) ProtoMessage ¶
func (*Allocation_SpecificSKUAllocation) ProtoMessage()
func (*Allocation_SpecificSKUAllocation) ProtoReflect ¶
func (x *Allocation_SpecificSKUAllocation) ProtoReflect() protoreflect.Message
func (*Allocation_SpecificSKUAllocation) Reset ¶
func (x *Allocation_SpecificSKUAllocation) Reset()
func (*Allocation_SpecificSKUAllocation) String ¶
func (x *Allocation_SpecificSKUAllocation) String() string
type Allocation_SpecificSKUAllocation_AllocatedInstanceProperties ¶
type Allocation_SpecificSKUAllocation_AllocatedInstanceProperties struct {
// Specifies type of machine (name only) which has fixed number of vCPUs
// and fixed amount of memory. This also includes specifying custom
// machine type following custom-NUMBER_OF_CPUS-AMOUNT_OF_MEMORY pattern.
MachineType string `protobuf:"bytes,1,opt,name=machine_type,json=machineType,proto3" json:"machine_type,omitempty"`
// Specifies accelerator type and count.
GuestAccelerator []*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AcceleratorConfig `protobuf:"bytes,2,rep,name=guest_accelerator,json=guestAccelerator,proto3" json:"guest_accelerator,omitempty"`
// Minimum cpu platform the reservation.
MinCpuPlatform string `protobuf:"bytes,3,opt,name=min_cpu_platform,json=minCpuPlatform,proto3" json:"min_cpu_platform,omitempty"`
// Specifies amount of local ssd to reserve with each instance. The type
// of disk is local-ssd.
LocalSsd []*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk `protobuf:"bytes,4,rep,name=local_ssd,json=localSsd,proto3" json:"local_ssd,omitempty"`
// contains filtered or unexported fields
}
Properties of the SKU instances being reserved.
func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties) Descriptor
deprecated
func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties) Descriptor() ([]byte, []int)
Deprecated: Use Allocation_SpecificSKUAllocation_AllocatedInstanceProperties.ProtoReflect.Descriptor instead.
func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties) GetGuestAccelerator ¶
func (x *Allocation_SpecificSKUAllocation_AllocatedInstanceProperties) GetGuestAccelerator() []*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AcceleratorConfig
func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties) GetLocalSsd ¶
func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties) GetMachineType ¶
func (x *Allocation_SpecificSKUAllocation_AllocatedInstanceProperties) GetMachineType() string
func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties) GetMinCpuPlatform ¶
func (x *Allocation_SpecificSKUAllocation_AllocatedInstanceProperties) GetMinCpuPlatform() string
func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties) ProtoMessage ¶
func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties) ProtoMessage()
func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties) ProtoReflect ¶
func (x *Allocation_SpecificSKUAllocation_AllocatedInstanceProperties) ProtoReflect() protoreflect.Message
func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties) Reset ¶
func (x *Allocation_SpecificSKUAllocation_AllocatedInstanceProperties) Reset()
func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties) String ¶
func (x *Allocation_SpecificSKUAllocation_AllocatedInstanceProperties) String() string
type Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AcceleratorConfig ¶
type Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AcceleratorConfig struct {
// Accelerator name.
// See https://cloud.google.com/compute/docs/gpus/#introduction for a
// full list of accelerator types.
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
// The number of the guest accelerator cards exposed to this instance.
Count int32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
// contains filtered or unexported fields
}
A specification of the type and number of accelerator cards attached to the instance.
func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AcceleratorConfig) Descriptor
deprecated
func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AcceleratorConfig) Descriptor() ([]byte, []int)
Deprecated: Use Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AcceleratorConfig.ProtoReflect.Descriptor instead.
func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AcceleratorConfig) GetCount ¶
func (x *Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AcceleratorConfig) GetCount() int32
func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AcceleratorConfig) GetType ¶
func (x *Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AcceleratorConfig) GetType() string
func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AcceleratorConfig) ProtoMessage ¶
func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AcceleratorConfig) ProtoMessage()
func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AcceleratorConfig) ProtoReflect ¶
func (x *Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AcceleratorConfig) ProtoReflect() protoreflect.Message
type Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk ¶
type Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk struct {
// Specifies the size of the disk in base-2 GB.
DiskSizeGb int64 `protobuf:"varint,1,opt,name=disk_size_gb,json=diskSizeGb,proto3" json:"disk_size_gb,omitempty"`
// Specifies the disk interface to use for attaching this disk, which is
// either SCSI or NVME. The default is SCSI.
DiskInterface Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DiskInterface `` /* 231-byte string literal not displayed */
// contains filtered or unexported fields
}
A specification of the interface and size of disk attached to the instance.
func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk) Descriptor
deprecated
func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk) Descriptor() ([]byte, []int)
Deprecated: Use Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk.ProtoReflect.Descriptor instead.
func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk) GetDiskInterface ¶
func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk) GetDiskSizeGb ¶
func (x *Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk) GetDiskSizeGb() int64
func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk) ProtoMessage ¶
func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk) ProtoMessage()
func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk) ProtoReflect ¶
func (x *Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk) ProtoReflect() protoreflect.Message
func (*Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk) String ¶
func (x *Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk) String() string
type Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DiskInterface ¶
type Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DiskInterface int32
guest device interface options to use for the disk.
const ( // Default value. This value is unused. Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DISK_INTERFACE_UNSPECIFIED Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DiskInterface = 0 // SCSI disk interface. Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_SCSI Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DiskInterface = 1 // NVME disk interface. Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_NVME Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DiskInterface = 2 // NVDIMM disk interface. Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_NVDIMM Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DiskInterface = 3 // ISCSI disk interface. Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_ISCSI Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DiskInterface = 4 )
func (Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DiskInterface) Descriptor ¶
func (Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DiskInterface) Enum ¶
func (Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DiskInterface) EnumDescriptor
deprecated
func (Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DiskInterface) EnumDescriptor() ([]byte, []int)
Deprecated: Use Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DiskInterface.Descriptor instead.
func (Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DiskInterface) Number ¶
func (Allocation_SpecificSKUAllocation_AllocatedInstanceProperties_AllocatedDisk_DiskInterface) String ¶
type Allocation_Status ¶
type Allocation_Status int32
The status of the reservation.
const ( // Default value. This value is unused. Allocation_STATUS_UNSPECIFIED Allocation_Status = 0 // Invalid Reservation Allocation_INVALID Allocation_Status = 1 // Resources are being allocated for the reservation. Allocation_CREATING Allocation_Status = 2 // Reservation has allocated all its resources. Allocation_READY Allocation_Status = 3 // Reservation is currently being deleted. Allocation_DELETING Allocation_Status = 4 // Reservation is currently being resized. Allocation_UPDATING Allocation_Status = 5 )
func (Allocation_Status) Descriptor ¶
func (Allocation_Status) Descriptor() protoreflect.EnumDescriptor
func (Allocation_Status) Enum ¶
func (x Allocation_Status) Enum() *Allocation_Status
func (Allocation_Status) EnumDescriptor
deprecated
func (Allocation_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use Allocation_Status.Descriptor instead.
func (Allocation_Status) Number ¶
func (x Allocation_Status) Number() protoreflect.EnumNumber
func (Allocation_Status) String ¶
func (x Allocation_Status) String() string
func (Allocation_Status) Type ¶
func (Allocation_Status) Type() protoreflect.EnumType
type BigQueryDestination ¶
type BigQueryDestination struct {
// Required. The BigQuery dataset in format
// "projects/{projectId}/datasets/{datasetId}", to which the snapshot result
// should be exported. If this dataset does not exist, the export call returns
// an INVALID_ARGUMENT error.
Dataset string `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"`
// Required. The BigQuery table to which the snapshot result should be
// written.
Table string `protobuf:"bytes,2,opt,name=table,proto3" json:"table,omitempty"`
// Optional. The partition key for BigQuery partitioned table.
PartitionKey BigQueryDestination_PartitionKey `` /* 172-byte string literal not displayed */
// Optional. Specifies the action that occurs if the destination table or
// partition already exists.
WriteDisposition BigQueryDestination_WriteDisposition `` /* 188-byte string literal not displayed */
// Optional. Specifies the action that occurs if the destination table does
// not exist
CreateDisposition BigQueryDestination_CreateDisposition `` /* 192-byte string literal not displayed */
// Optional. Specifies the Cloud Storage location.
// Users can choose to provide a location for Cloud Storage bucket to store
// the exported data. (as it is possible that some locations are restricted
// via org policy for that project) Temporary Cloud Storage bucket creation is
// an interim step for BigQuery upload. If no value is provided, the default
// location used will be 'US'.
GcsLocation string `protobuf:"bytes,6,opt,name=gcs_location,json=gcsLocation,proto3" json:"gcs_location,omitempty"`
// contains filtered or unexported fields
}
A BigQuery destination for exporting assets to.
func (*BigQueryDestination) Descriptor
deprecated
func (*BigQueryDestination) Descriptor() ([]byte, []int)
Deprecated: Use BigQueryDestination.ProtoReflect.Descriptor instead.
func (*BigQueryDestination) GetCreateDisposition ¶
func (x *BigQueryDestination) GetCreateDisposition() BigQueryDestination_CreateDisposition
func (*BigQueryDestination) GetDataset ¶
func (x *BigQueryDestination) GetDataset() string
func (*BigQueryDestination) GetGcsLocation ¶
func (x *BigQueryDestination) GetGcsLocation() string
func (*BigQueryDestination) GetPartitionKey ¶
func (x *BigQueryDestination) GetPartitionKey() BigQueryDestination_PartitionKey
func (*BigQueryDestination) GetTable ¶
func (x *BigQueryDestination) GetTable() string
func (*BigQueryDestination) GetWriteDisposition ¶
func (x *BigQueryDestination) GetWriteDisposition() BigQueryDestination_WriteDisposition
func (*BigQueryDestination) ProtoMessage ¶
func (*BigQueryDestination) ProtoMessage()
func (*BigQueryDestination) ProtoReflect ¶
func (x *BigQueryDestination) ProtoReflect() protoreflect.Message
func (*BigQueryDestination) Reset ¶
func (x *BigQueryDestination) Reset()
func (*BigQueryDestination) String ¶
func (x *BigQueryDestination) String() string
type BigQueryDestination_CreateDisposition ¶
type BigQueryDestination_CreateDisposition int32
Specifies the action that occurs if the destination table does not exist. By default, a new table will be created.
const ( // Unspecified create disposition. BigQueryDestination_CREATE_DISPOSITION_UNSPECIFIED BigQueryDestination_CreateDisposition = 0 // If the table does not exist, BigQuery creates the table. BigQueryDestination_CREATE_IF_NEEDED BigQueryDestination_CreateDisposition = 1 // If the table does not exist, an error will be returned. BigQueryDestination_CREATE_NEVER BigQueryDestination_CreateDisposition = 2 )
func (BigQueryDestination_CreateDisposition) Descriptor ¶
func (BigQueryDestination_CreateDisposition) Descriptor() protoreflect.EnumDescriptor
func (BigQueryDestination_CreateDisposition) EnumDescriptor
deprecated
func (BigQueryDestination_CreateDisposition) EnumDescriptor() ([]byte, []int)
Deprecated: Use BigQueryDestination_CreateDisposition.Descriptor instead.
func (BigQueryDestination_CreateDisposition) Number ¶
func (x BigQueryDestination_CreateDisposition) Number() protoreflect.EnumNumber
func (BigQueryDestination_CreateDisposition) String ¶
func (x BigQueryDestination_CreateDisposition) String() string
func (BigQueryDestination_CreateDisposition) Type ¶
func (BigQueryDestination_CreateDisposition) Type() protoreflect.EnumType
type BigQueryDestination_PartitionKey ¶
type BigQueryDestination_PartitionKey int32
This enum determines the partition key column for the BigQuery tables. Partitioning can improve query performance and reduce query cost by filtering partitions. Refer to https://cloud.google.com/bigquery/docs/partitioned-tables for details.
const ( // Unspecified partition key. Tables won't be partitioned using this // option. BigQueryDestination_PARTITION_KEY_UNSPECIFIED BigQueryDestination_PartitionKey = 0 // The time when the request is received. If specified as partition key, // the result table(s) is partitioned by the RequestTime column, an // additional timestamp column representing when the request was received. BigQueryDestination_REQUEST_TIME BigQueryDestination_PartitionKey = 1 )
func (BigQueryDestination_PartitionKey) Descriptor ¶
func (BigQueryDestination_PartitionKey) Descriptor() protoreflect.EnumDescriptor
func (BigQueryDestination_PartitionKey) Enum ¶
func (x BigQueryDestination_PartitionKey) Enum() *BigQueryDestination_PartitionKey
func (BigQueryDestination_PartitionKey) EnumDescriptor
deprecated
func (BigQueryDestination_PartitionKey) EnumDescriptor() ([]byte, []int)
Deprecated: Use BigQueryDestination_PartitionKey.Descriptor instead.
func (BigQueryDestination_PartitionKey) Number ¶
func (x BigQueryDestination_PartitionKey) Number() protoreflect.EnumNumber
func (BigQueryDestination_PartitionKey) String ¶
func (x BigQueryDestination_PartitionKey) String() string
func (BigQueryDestination_PartitionKey) Type ¶
func (BigQueryDestination_PartitionKey) Type() protoreflect.EnumType
type BigQueryDestination_WriteDisposition ¶
type BigQueryDestination_WriteDisposition int32
Specifies the action that occurs if the destination table or partition already exists. By default, the data will be appended to the existing table.
const ( // Unspecified write disposition. BigQueryDestination_WRITE_DISPOSITION_UNSPECIFIED BigQueryDestination_WriteDisposition = 0 // If the table or partition already exists, BigQuery appends the data to // the table or the latest partition. BigQueryDestination_WRITE_APPEND BigQueryDestination_WriteDisposition = 1 // If the table or partition already exists, BigQuery overwrites the entire // table or all the partitions data. BigQueryDestination_WRITE_TRUNCATE BigQueryDestination_WriteDisposition = 2 // If the table already exists and contains data, an error is returned. BigQueryDestination_WRITE_EMPTY BigQueryDestination_WriteDisposition = 3 )
func (BigQueryDestination_WriteDisposition) Descriptor ¶
func (BigQueryDestination_WriteDisposition) Descriptor() protoreflect.EnumDescriptor
func (BigQueryDestination_WriteDisposition) Enum ¶
func (x BigQueryDestination_WriteDisposition) Enum() *BigQueryDestination_WriteDisposition
func (BigQueryDestination_WriteDisposition) EnumDescriptor
deprecated
func (BigQueryDestination_WriteDisposition) EnumDescriptor() ([]byte, []int)
Deprecated: Use BigQueryDestination_WriteDisposition.Descriptor instead.
func (BigQueryDestination_WriteDisposition) Number ¶
func (x BigQueryDestination_WriteDisposition) Number() protoreflect.EnumNumber
func (BigQueryDestination_WriteDisposition) String ¶
func (x BigQueryDestination_WriteDisposition) String() string
func (BigQueryDestination_WriteDisposition) Type ¶
func (BigQueryDestination_WriteDisposition) Type() protoreflect.EnumType
type ExportForecastsRequest ¶
type ExportForecastsRequest struct {
// Required. The compute engine resource and location for the time series
// values to return. The format is:
//
// projects/{project}/locations/{location} or
// organizations/{organization}/locations/{location} or
// folders/{folder}/locations/{location}
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The machine family to use to select the `Forecast` values to
// return. Possible values include "n1", and "n2d".
MachineFamily string `protobuf:"bytes,2,opt,name=machine_family,json=machineFamily,proto3" json:"machine_family,omitempty"`
// Optional. The machine shape for the time series values to export.
MachineShape *MachineShape `protobuf:"bytes,12,opt,name=machine_shape,json=machineShape,proto3" json:"machine_shape,omitempty"`
// Optional. The disk_type for the `Forecast` values to return with request
// persistent-disk resource_type.
DiskType string `protobuf:"bytes,3,opt,name=disk_type,json=diskType,proto3" json:"disk_type,omitempty"`
// Optional. The GPU type for the `Forecast` values to return. Sample values
// are "nvidia-tesla-t4", and "nvidia-tesla-a100". See
// https://cloud.google.com/compute/docs/gpus for a list. Empty gpu_type
// will return results matching all GPUs.
GpuType string `protobuf:"bytes,10,opt,name=gpu_type,json=gpuType,proto3" json:"gpu_type,omitempty"`
// Optional. The TPU type for the `Forecast` values to return. Empty tpu_type
// will return results matching all TPUs.
TpuType string `protobuf:"bytes,11,opt,name=tpu_type,json=tpuType,proto3" json:"tpu_type,omitempty"`
// Required. The resource for the `Forecast` values to return. Possible values
// include "gce-vcpus", "gce-ram", "gce-local-ssd", "gce-persistent-disk",
// "gce-gpu" and "gce-tpu".
ResourceType string `protobuf:"bytes,4,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"`
// Optional. The prediction interval to use to select the `Forecast` values to
// return. PREDICTION_INTERVAL_UNSPECIFIED will return results matching all
// prediction intervals.
PredictionInterval Forecast_PredictionInterval `` /* 185-byte string literal not displayed */
// Optional. Aggregation Method of the historical usage for which the forecast
// is generated.
AggregationMethod UsageHistory_AggregationMethod `` /* 185-byte string literal not displayed */
// Optional. The start date of forecasts.
StartDate *date.Date `protobuf:"bytes,7,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"`
// Optional. The end date of forecasts.
EndDate *date.Date `protobuf:"bytes,8,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"`
// Required. Output configuration indicating where the results will be output
// to.
OutputConfig *OutputConfig `protobuf:"bytes,9,opt,name=output_config,json=outputConfig,proto3" json:"output_config,omitempty"`
// contains filtered or unexported fields
}
The `ExportForecasts` request Next : 13
func (*ExportForecastsRequest) Descriptor
deprecated
func (*ExportForecastsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExportForecastsRequest.ProtoReflect.Descriptor instead.
func (*ExportForecastsRequest) GetAggregationMethod ¶
func (x *ExportForecastsRequest) GetAggregationMethod() UsageHistory_AggregationMethod
func (*ExportForecastsRequest) GetDiskType ¶
func (x *ExportForecastsRequest) GetDiskType() string
func (*ExportForecastsRequest) GetEndDate ¶
func (x *ExportForecastsRequest) GetEndDate() *date.Date
func (*ExportForecastsRequest) GetGpuType ¶
func (x *ExportForecastsRequest) GetGpuType() string
func (*ExportForecastsRequest) GetMachineFamily ¶
func (x *ExportForecastsRequest) GetMachineFamily() string
func (*ExportForecastsRequest) GetMachineShape ¶
func (x *ExportForecastsRequest) GetMachineShape() *MachineShape
func (*ExportForecastsRequest) GetOutputConfig ¶
func (x *ExportForecastsRequest) GetOutputConfig() *OutputConfig
func (*ExportForecastsRequest) GetParent ¶
func (x *ExportForecastsRequest) GetParent() string
func (*ExportForecastsRequest) GetPredictionInterval ¶
func (x *ExportForecastsRequest) GetPredictionInterval() Forecast_PredictionInterval
func (*ExportForecastsRequest) GetResourceType ¶
func (x *ExportForecastsRequest) GetResourceType() string
func (*ExportForecastsRequest) GetStartDate ¶
func (x *ExportForecastsRequest) GetStartDate() *date.Date
func (*ExportForecastsRequest) GetTpuType ¶
func (x *ExportForecastsRequest) GetTpuType() string
func (*ExportForecastsRequest) ProtoMessage ¶
func (*ExportForecastsRequest) ProtoMessage()
func (*ExportForecastsRequest) ProtoReflect ¶
func (x *ExportForecastsRequest) ProtoReflect() protoreflect.Message
func (*ExportForecastsRequest) Reset ¶
func (x *ExportForecastsRequest) Reset()
func (*ExportForecastsRequest) String ¶
func (x *ExportForecastsRequest) String() string
type ExportForecastsResponse ¶
type ExportForecastsResponse struct {
// The response message for the forecast export. In case of bigquery,
// it will also contain job id.
Response string `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
// contains filtered or unexported fields
}
A response message for [UsageService.ExportForecasts].
func (*ExportForecastsResponse) Descriptor
deprecated
func (*ExportForecastsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ExportForecastsResponse.ProtoReflect.Descriptor instead.
func (*ExportForecastsResponse) GetResponse ¶
func (x *ExportForecastsResponse) GetResponse() string
func (*ExportForecastsResponse) ProtoMessage ¶
func (*ExportForecastsResponse) ProtoMessage()
func (*ExportForecastsResponse) ProtoReflect ¶
func (x *ExportForecastsResponse) ProtoReflect() protoreflect.Message
func (*ExportForecastsResponse) Reset ¶
func (x *ExportForecastsResponse) Reset()
func (*ExportForecastsResponse) String ¶
func (x *ExportForecastsResponse) String() string
type ExportReservationsUsageRequest ¶
type ExportReservationsUsageRequest struct {
// resource to query reservations and usage by.
//
// Types that are valid to be assigned to Resource:
//
// *ExportReservationsUsageRequest_MachineFamily
// *ExportReservationsUsageRequest_MachineShape
// *ExportReservationsUsageRequest_GpuType
Resource isExportReservationsUsageRequest_Resource `protobuf_oneof:"resource"`
// Required. The compute engine resource and location of the
// reservationsusage. The format is:
//
// projects/{project}/locations/{location} or
// organizations/{organization}/locations/{location} or
// folders/{folder}/locations/{location}
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The location level of the reservations usage timeseries.
LocationLevel TimeSeries_LocationType `` /* 167-byte string literal not displayed */
// Required. The resource for the `ReservationsUsage` values to return.
// Possible values include "gce-vcpus", "gce-ram", "gce-local-ssd", and
// "gce-gpu".
CloudResourceType string `protobuf:"bytes,5,opt,name=cloud_resource_type,json=cloudResourceType,proto3" json:"cloud_resource_type,omitempty"`
// Required. The method that should be used to convert sampled reservations
// data to daily usage values.
UsageAggregationMethod UsageHistory_AggregationMethod `` /* 202-byte string literal not displayed */
// unspecified, all types are included.
ShareType ExportReservationsUsageRequest_ShareType `` /* 171-byte string literal not displayed */
// Optional. The start date of reservations usage.
StartDate *date.Date `protobuf:"bytes,8,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"`
// Optional. The end date of reservations usage.
EndDate *date.Date `protobuf:"bytes,9,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"`
// Required. Output configuration indicating where the results will be output
// to.
OutputConfig *OutputConfig `protobuf:"bytes,10,opt,name=output_config,json=outputConfig,proto3" json:"output_config,omitempty"`
// contains filtered or unexported fields
}
The `ExportReservationsUsage` request
func (*ExportReservationsUsageRequest) Descriptor
deprecated
func (*ExportReservationsUsageRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExportReservationsUsageRequest.ProtoReflect.Descriptor instead.
func (*ExportReservationsUsageRequest) GetCloudResourceType ¶
func (x *ExportReservationsUsageRequest) GetCloudResourceType() string
func (*ExportReservationsUsageRequest) GetEndDate ¶
func (x *ExportReservationsUsageRequest) GetEndDate() *date.Date
func (*ExportReservationsUsageRequest) GetGpuType ¶
func (x *ExportReservationsUsageRequest) GetGpuType() string
func (*ExportReservationsUsageRequest) GetLocationLevel ¶
func (x *ExportReservationsUsageRequest) GetLocationLevel() TimeSeries_LocationType
func (*ExportReservationsUsageRequest) GetMachineFamily ¶
func (x *ExportReservationsUsageRequest) GetMachineFamily() string
func (*ExportReservationsUsageRequest) GetMachineShape ¶
func (x *ExportReservationsUsageRequest) GetMachineShape() *MachineShape
func (*ExportReservationsUsageRequest) GetOutputConfig ¶
func (x *ExportReservationsUsageRequest) GetOutputConfig() *OutputConfig
func (*ExportReservationsUsageRequest) GetParent ¶
func (x *ExportReservationsUsageRequest) GetParent() string
func (*ExportReservationsUsageRequest) GetResource ¶
func (x *ExportReservationsUsageRequest) GetResource() isExportReservationsUsageRequest_Resource
func (*ExportReservationsUsageRequest) GetShareType ¶
func (x *ExportReservationsUsageRequest) GetShareType() ExportReservationsUsageRequest_ShareType
func (*ExportReservationsUsageRequest) GetStartDate ¶
func (x *ExportReservationsUsageRequest) GetStartDate() *date.Date
func (*ExportReservationsUsageRequest) GetUsageAggregationMethod ¶
func (x *ExportReservationsUsageRequest) GetUsageAggregationMethod() UsageHistory_AggregationMethod
func (*ExportReservationsUsageRequest) ProtoMessage ¶
func (*ExportReservationsUsageRequest) ProtoMessage()
func (*ExportReservationsUsageRequest) ProtoReflect ¶
func (x *ExportReservationsUsageRequest) ProtoReflect() protoreflect.Message
func (*ExportReservationsUsageRequest) Reset ¶
func (x *ExportReservationsUsageRequest) Reset()
func (*ExportReservationsUsageRequest) String ¶
func (x *ExportReservationsUsageRequest) String() string
type ExportReservationsUsageRequest_GpuType ¶
type ExportReservationsUsageRequest_GpuType struct {
// Optional. The GPU type to query reservations and usage by. For example:
// NVIDIA T4.
GpuType string `protobuf:"bytes,4,opt,name=gpu_type,json=gpuType,proto3,oneof"`
}
type ExportReservationsUsageRequest_MachineFamily ¶
type ExportReservationsUsageRequest_MachineFamily struct {
// Optional. The machine family to query reservations and usage by. For
// example: n1, n2d.
MachineFamily string `protobuf:"bytes,2,opt,name=machine_family,json=machineFamily,proto3,oneof"`
}
type ExportReservationsUsageRequest_MachineShape ¶
type ExportReservationsUsageRequest_MachineShape struct {
// Optional. The machine_shape as a filter to select matching reservations
// and its usage.
MachineShape *MachineShape `protobuf:"bytes,3,opt,name=machine_shape,json=machineShape,proto3,oneof"`
}
type ExportReservationsUsageRequest_ShareType ¶
type ExportReservationsUsageRequest_ShareType int32
Possible scope in which the reservation can be shared.
const ( // No share type specified. ExportReservationsUsageRequest_SHARE_TYPE_UNSPECIFIED ExportReservationsUsageRequest_ShareType = 0 // Default value, for which reservation is open to only owner project. ExportReservationsUsageRequest_SHARE_TYPE_LOCAL ExportReservationsUsageRequest_ShareType = 1 // Shared-reservation is open to specific projects. ExportReservationsUsageRequest_SHARE_TYPE_SPECIFIC_PROJECTS ExportReservationsUsageRequest_ShareType = 2 )
func (ExportReservationsUsageRequest_ShareType) Descriptor ¶
func (ExportReservationsUsageRequest_ShareType) Descriptor() protoreflect.EnumDescriptor
func (ExportReservationsUsageRequest_ShareType) EnumDescriptor
deprecated
func (ExportReservationsUsageRequest_ShareType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ExportReservationsUsageRequest_ShareType.Descriptor instead.
func (ExportReservationsUsageRequest_ShareType) Number ¶
func (x ExportReservationsUsageRequest_ShareType) Number() protoreflect.EnumNumber
func (ExportReservationsUsageRequest_ShareType) String ¶
func (x ExportReservationsUsageRequest_ShareType) String() string
func (ExportReservationsUsageRequest_ShareType) Type ¶
func (ExportReservationsUsageRequest_ShareType) Type() protoreflect.EnumType
type ExportReservationsUsageResponse ¶
type ExportReservationsUsageResponse struct {
// The response message for the reservations usage export. In case of
// bigquery, it will also contain job id.
Response string `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
// contains filtered or unexported fields
}
A response message for [UsageService.ExportReservationsUsage].
func (*ExportReservationsUsageResponse) Descriptor
deprecated
func (*ExportReservationsUsageResponse) Descriptor() ([]byte, []int)
Deprecated: Use ExportReservationsUsageResponse.ProtoReflect.Descriptor instead.
func (*ExportReservationsUsageResponse) GetResponse ¶
func (x *ExportReservationsUsageResponse) GetResponse() string
func (*ExportReservationsUsageResponse) ProtoMessage ¶
func (*ExportReservationsUsageResponse) ProtoMessage()
func (*ExportReservationsUsageResponse) ProtoReflect ¶
func (x *ExportReservationsUsageResponse) ProtoReflect() protoreflect.Message
func (*ExportReservationsUsageResponse) Reset ¶
func (x *ExportReservationsUsageResponse) Reset()
func (*ExportReservationsUsageResponse) String ¶
func (x *ExportReservationsUsageResponse) String() string
type ExportUsageHistoriesRequest ¶
type ExportUsageHistoriesRequest struct {
// Required. The compute engine resource and location for the time series
// values to return. The format is:
//
// projects/{project}/locations/{location} or
// organizations/{organization}/locations/{location} or
// folders/{folder}/locations/{location}
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. Set true to export usage for spot resources.
IsSpot bool `protobuf:"varint,11,opt,name=is_spot,json=isSpot,proto3" json:"is_spot,omitempty"`
// Optional. The machine family for the `UsageHistory` values to return.
// Possible values include "n1", and "n2d". See
// https://cloud.google.com/compute/docs/machine-types for more examples.
MachineFamily string `protobuf:"bytes,2,opt,name=machine_family,json=machineFamily,proto3" json:"machine_family,omitempty"`
// Optional. The machine shape for the time series values to export.
MachineShape *MachineShape `protobuf:"bytes,13,opt,name=machine_shape,json=machineShape,proto3" json:"machine_shape,omitempty"`
// Optional. The disk_type for the `UsageHistory` values to return request
// with persistent-disk resource_type. Possible values include "pd-ssd",
// "pd-standard", "pd-balanced", and "pd-extreme".
DiskType string `protobuf:"bytes,3,opt,name=disk_type,json=diskType,proto3" json:"disk_type,omitempty"`
// Optional. The GPU type for the `UsageHistory` values to return. Sample
// values are "nvidia-tesla-t4", and "nvidia-tesla-a100". See
// https://cloud.google.com/compute/docs/gpus for a list. Empty gpu_type
// will return results matching all GPUs.
GpuType string `protobuf:"bytes,9,opt,name=gpu_type,json=gpuType,proto3" json:"gpu_type,omitempty"`
// Optional. The TPU type for the `UsageHistory` values to return. Empty
// tpu_type will return results matching all TPUs.
TpuType string `protobuf:"bytes,10,opt,name=tpu_type,json=tpuType,proto3" json:"tpu_type,omitempty"`
// Required. The resource for the `UsageHistory` values to return. Possible
// values include "gce-vcpus", "gce-ram", "gce-local-ssd",
// "gce-persistent-disk", "gce-gpu" and "gce-tpu".
ResourceType string `protobuf:"bytes,4,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"`
// Optional. The method that should be used to convert sampled usage data to
// daily usage values. AGGREGATION_METHOD_UNSPECIFIED will return results
// matching all the aggregation methods.
UsageAggregationMethod UsageHistory_AggregationMethod `` /* 202-byte string literal not displayed */
// Optional. The start date of usage.
StartDate *date.Date `protobuf:"bytes,6,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"`
// Optional. The end date of usage.
EndDate *date.Date `protobuf:"bytes,7,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"`
// Required. Output configuration indicating where the results will be output
// to.
OutputConfig *OutputConfig `protobuf:"bytes,8,opt,name=output_config,json=outputConfig,proto3" json:"output_config,omitempty"`
// contains filtered or unexported fields
}
The `ExportUsageHistories` request Next : 12
func (*ExportUsageHistoriesRequest) Descriptor
deprecated
func (*ExportUsageHistoriesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExportUsageHistoriesRequest.ProtoReflect.Descriptor instead.
func (*ExportUsageHistoriesRequest) GetDiskType ¶
func (x *ExportUsageHistoriesRequest) GetDiskType() string
func (*ExportUsageHistoriesRequest) GetEndDate ¶
func (x *ExportUsageHistoriesRequest) GetEndDate() *date.Date
func (*ExportUsageHistoriesRequest) GetGpuType ¶
func (x *ExportUsageHistoriesRequest) GetGpuType() string
func (*ExportUsageHistoriesRequest) GetIsSpot ¶
func (x *ExportUsageHistoriesRequest) GetIsSpot() bool
func (*ExportUsageHistoriesRequest) GetMachineFamily ¶
func (x *ExportUsageHistoriesRequest) GetMachineFamily() string
func (*ExportUsageHistoriesRequest) GetMachineShape ¶
func (x *ExportUsageHistoriesRequest) GetMachineShape() *MachineShape
func (*ExportUsageHistoriesRequest) GetOutputConfig ¶
func (x *ExportUsageHistoriesRequest) GetOutputConfig() *OutputConfig
func (*ExportUsageHistoriesRequest) GetParent ¶
func (x *ExportUsageHistoriesRequest) GetParent() string
func (*ExportUsageHistoriesRequest) GetResourceType ¶
func (x *ExportUsageHistoriesRequest) GetResourceType() string
func (*ExportUsageHistoriesRequest) GetStartDate ¶
func (x *ExportUsageHistoriesRequest) GetStartDate() *date.Date
func (*ExportUsageHistoriesRequest) GetTpuType ¶
func (x *ExportUsageHistoriesRequest) GetTpuType() string
func (*ExportUsageHistoriesRequest) GetUsageAggregationMethod ¶
func (x *ExportUsageHistoriesRequest) GetUsageAggregationMethod() UsageHistory_AggregationMethod
func (*ExportUsageHistoriesRequest) ProtoMessage ¶
func (*ExportUsageHistoriesRequest) ProtoMessage()
func (*ExportUsageHistoriesRequest) ProtoReflect ¶
func (x *ExportUsageHistoriesRequest) ProtoReflect() protoreflect.Message
func (*ExportUsageHistoriesRequest) Reset ¶
func (x *ExportUsageHistoriesRequest) Reset()
func (*ExportUsageHistoriesRequest) String ¶
func (x *ExportUsageHistoriesRequest) String() string
type ExportUsageHistoriesResponse ¶
type ExportUsageHistoriesResponse struct {
// The response message for the usage history export. In case of bigquery,
// it will also contain job id.
Response string `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
// contains filtered or unexported fields
}
A response message for [UsageService.ExportUsageHistories].
func (*ExportUsageHistoriesResponse) Descriptor
deprecated
func (*ExportUsageHistoriesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ExportUsageHistoriesResponse.ProtoReflect.Descriptor instead.
func (*ExportUsageHistoriesResponse) GetResponse ¶
func (x *ExportUsageHistoriesResponse) GetResponse() string
func (*ExportUsageHistoriesResponse) ProtoMessage ¶
func (*ExportUsageHistoriesResponse) ProtoMessage()
func (*ExportUsageHistoriesResponse) ProtoReflect ¶
func (x *ExportUsageHistoriesResponse) ProtoReflect() protoreflect.Message
func (*ExportUsageHistoriesResponse) Reset ¶
func (x *ExportUsageHistoriesResponse) Reset()
func (*ExportUsageHistoriesResponse) String ¶
func (x *ExportUsageHistoriesResponse) String() string
type Forecast ¶
type Forecast struct {
// The resource name of the connection in the form of:
// `projects/{project_id}/locations/{location_id}/forecasts/{forecast_id}` or
// `organizations/{organization_id}/locations/{location_id}/forecasts/{forecast_id}`
// or `folders/{folder_id}/locations/{location_id}/forecasts/{forecast_id}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The collection of data points that represent the predicted values. Note
// that some of these values may be in the past (if, for example, the forecast
// was created in the past and predicted values for the present day).
TimeSeries *TimeSeries `protobuf:"bytes,2,opt,name=time_series,json=timeSeries,proto3" json:"time_series,omitempty"`
// The type of forecast.
ForecastType Forecast_ForecastType `` /* 161-byte string literal not displayed */
// The bounds represented by this forecast time series.
Bounds Forecast_Bounds `protobuf:"varint,4,opt,name=bounds,proto3,enum=google.cloud.capacityplanner.v1beta.Forecast_Bounds" json:"bounds,omitempty"`
// The prediction interval represented by the time series.
PredictionInterval Forecast_PredictionInterval `` /* 185-byte string literal not displayed */
// Aggregation Method of the historical usage for which the forecast is
// generated
AggregationMethod UsageHistory_AggregationMethod `` /* 185-byte string literal not displayed */
// contains filtered or unexported fields
}
A collection of data points that describes the predicted time-varying values of a resource.
func (*Forecast) Descriptor
deprecated
func (*Forecast) GetAggregationMethod ¶
func (x *Forecast) GetAggregationMethod() UsageHistory_AggregationMethod
func (*Forecast) GetBounds ¶
func (x *Forecast) GetBounds() Forecast_Bounds
func (*Forecast) GetForecastType ¶
func (x *Forecast) GetForecastType() Forecast_ForecastType
func (*Forecast) GetPredictionInterval ¶
func (x *Forecast) GetPredictionInterval() Forecast_PredictionInterval
func (*Forecast) GetTimeSeries ¶
func (x *Forecast) GetTimeSeries() *TimeSeries
func (*Forecast) ProtoMessage ¶
func (*Forecast) ProtoMessage()
func (*Forecast) ProtoReflect ¶
func (x *Forecast) ProtoReflect() protoreflect.Message
type Forecast_Bounds ¶
type Forecast_Bounds int32
The bounds of the forecast time series.
const ( // No bounds is specified. Forecast_BOUNDS_UNSPECIFIED Forecast_Bounds = 0 // The time series represents the upper bound of the forecast. Forecast_LOWER_BOUND Forecast_Bounds = 1 // The time series represents the median expected forecast value. Forecast_MEDIAN Forecast_Bounds = 2 // The time series represents the lower bound of the forecast. Forecast_UPPER_BOUND Forecast_Bounds = 3 )
func (Forecast_Bounds) Descriptor ¶
func (Forecast_Bounds) Descriptor() protoreflect.EnumDescriptor
func (Forecast_Bounds) Enum ¶
func (x Forecast_Bounds) Enum() *Forecast_Bounds
func (Forecast_Bounds) EnumDescriptor
deprecated
func (Forecast_Bounds) EnumDescriptor() ([]byte, []int)
Deprecated: Use Forecast_Bounds.Descriptor instead.
func (Forecast_Bounds) Number ¶
func (x Forecast_Bounds) Number() protoreflect.EnumNumber
func (Forecast_Bounds) String ¶
func (x Forecast_Bounds) String() string
func (Forecast_Bounds) Type ¶
func (Forecast_Bounds) Type() protoreflect.EnumType
type Forecast_ForecastType ¶
type Forecast_ForecastType int32
The type of the forecast. This describes the method that was used to produce future time series values from historical time series values.
const ( // No forecast type is specified. Forecast_FORECAST_TYPE_UNSPECIFIED Forecast_ForecastType = 0 // Statistical forecast. Forecast_STATISTICAL Forecast_ForecastType = 1 // Statistical forecast that attempts to predict the seasonal affects of // Black Friday and Cyber Monday. Forecast_STATISTICAL_WITH_BFCM Forecast_ForecastType = 2 // Yearly Seasonality model provides generic seasonality beyond BFCM. Forecast_YEARLY_SEASONALITY Forecast_ForecastType = 3 )
func (Forecast_ForecastType) Descriptor ¶
func (Forecast_ForecastType) Descriptor() protoreflect.EnumDescriptor
func (Forecast_ForecastType) Enum ¶
func (x Forecast_ForecastType) Enum() *Forecast_ForecastType
func (Forecast_ForecastType) EnumDescriptor
deprecated
func (Forecast_ForecastType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Forecast_ForecastType.Descriptor instead.
func (Forecast_ForecastType) Number ¶
func (x Forecast_ForecastType) Number() protoreflect.EnumNumber
func (Forecast_ForecastType) String ¶
func (x Forecast_ForecastType) String() string
func (Forecast_ForecastType) Type ¶
func (Forecast_ForecastType) Type() protoreflect.EnumType
type Forecast_PredictionInterval ¶
type Forecast_PredictionInterval int32
The prediction interval represented by a forecast.
const ( // No prediction interval is specified. Forecast_PREDICTION_INTERVAL_UNSPECIFIED Forecast_PredictionInterval = 0 // This represents a prediction interval that has 90% confidence. For // example, for a symmetric prediction interval, a `PredictionInterval` // of `PREDICTION_INTERVAL_90` means that the `UPPER_BOUND` will represent // the 95th precentile. Forecast_PREDICTION_INTERVAL_90 Forecast_PredictionInterval = 1 // This represents a prediction interval that has 50% confidence. For // example, for a symmetric prediction interval, a `PredictionInterval` // of `PREDICTION_INTERVAL_50` means that the `UPPER_BOUND` will represent // the 75th precentile. Forecast_PREDICTION_INTERVAL_50 Forecast_PredictionInterval = 2 )
func (Forecast_PredictionInterval) Descriptor ¶
func (Forecast_PredictionInterval) Descriptor() protoreflect.EnumDescriptor
func (Forecast_PredictionInterval) Enum ¶
func (x Forecast_PredictionInterval) Enum() *Forecast_PredictionInterval
func (Forecast_PredictionInterval) EnumDescriptor
deprecated
func (Forecast_PredictionInterval) EnumDescriptor() ([]byte, []int)
Deprecated: Use Forecast_PredictionInterval.Descriptor instead.
func (Forecast_PredictionInterval) Number ¶
func (x Forecast_PredictionInterval) Number() protoreflect.EnumNumber
func (Forecast_PredictionInterval) String ¶
func (x Forecast_PredictionInterval) String() string
func (Forecast_PredictionInterval) Type ¶
func (Forecast_PredictionInterval) Type() protoreflect.EnumType
type FutureReservation ¶
type FutureReservation struct {
// The type of the future reservation which can only be for a specific SKU for
// now.
//
// Types that are valid to be assigned to Type:
//
// *FutureReservation_SpecificSkuProperties
Type isFutureReservation_Type `protobuf_oneof:"type"`
// A unique identifier for this future reservation. The server
// defines this identifier.
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// The creation timestamp for this future reservation.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// URL of the Zone where this future reservation resides.
Zone string `protobuf:"bytes,5,opt,name=zone,proto3" json:"zone,omitempty"`
// Description of the future reservation provided by user.
Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
// The future reservation resource name.
FutureReservation string `protobuf:"bytes,7,opt,name=future_reservation,json=futureReservation,proto3" json:"future_reservation,omitempty"`
OwnerProjectId string `protobuf:"bytes,15,opt,name=owner_project_id,json=ownerProjectId,proto3" json:"owner_project_id,omitempty"`
// Time window for this Future Reservation.
TimeWindow *FutureReservation_TimeWindow `protobuf:"bytes,9,opt,name=time_window,json=timeWindow,proto3" json:"time_window,omitempty"`
ShareSettings *Allocation_ShareSettings `protobuf:"bytes,10,opt,name=share_settings,json=shareSettings,proto3" json:"share_settings,omitempty"`
// Name prefix for the reservations to be created at the time of
// delivery. The name prefix must comply with RFC1035.
// Maximum allowed length for name prefix is 20. Automatically created
// reservations name format will be <name-prefix>-date-####.
NamePrefix string `protobuf:"bytes,11,opt,name=name_prefix,json=namePrefix,proto3" json:"name_prefix,omitempty"`
// Status of the Future Reservation
Status *FutureReservation_Status `protobuf:"bytes,12,opt,name=status,proto3" json:"status,omitempty"`
// Future timestamp when the FR auto-created reservations will be deleted by
// Compute Engine. Format of this field must be a valid RFC3339 value.
AutoCreatedReservationsDeleteTime *timestamppb.Timestamp `` /* 167-byte string literal not displayed */
// Setting for enabling or disabling automatic deletion for auto-created
// reservation. If set to true, auto-created reservations will be
// deleted at Future Reservation's end time (default) or at user's defined
// timestamp if any of the
// [auto_created_reservations_delete_time, auto_created_reservations_duration]
// values is specified.
// For keeping auto-created reservation indefinitely, this value should be set
// to false.
AutoDeleteAutoCreatedReservations bool `` /* 168-byte string literal not displayed */
// contains filtered or unexported fields
}
Repesents Future Reservation request which is part of aggregated reservations data response of "QueryReservations".
func (*FutureReservation) Descriptor
deprecated
func (*FutureReservation) Descriptor() ([]byte, []int)
Deprecated: Use FutureReservation.ProtoReflect.Descriptor instead.
func (*FutureReservation) GetAutoCreatedReservationsDeleteTime ¶
func (x *FutureReservation) GetAutoCreatedReservationsDeleteTime() *timestamppb.Timestamp
func (*FutureReservation) GetAutoDeleteAutoCreatedReservations ¶
func (x *FutureReservation) GetAutoDeleteAutoCreatedReservations() bool
func (*FutureReservation) GetCreateTime ¶
func (x *FutureReservation) GetCreateTime() *timestamppb.Timestamp
func (*FutureReservation) GetDescription ¶
func (x *FutureReservation) GetDescription() string
func (*FutureReservation) GetFutureReservation ¶
func (x *FutureReservation) GetFutureReservation() string
func (*FutureReservation) GetId ¶
func (x *FutureReservation) GetId() int64
func (*FutureReservation) GetNamePrefix ¶
func (x *FutureReservation) GetNamePrefix() string
func (*FutureReservation) GetOwnerProjectId ¶
func (x *FutureReservation) GetOwnerProjectId() string
func (*FutureReservation) GetShareSettings ¶
func (x *FutureReservation) GetShareSettings() *Allocation_ShareSettings
func (*FutureReservation) GetSpecificSkuProperties ¶
func (x *FutureReservation) GetSpecificSkuProperties() *FutureReservation_SpecificSKUProperties
func (*FutureReservation) GetStatus ¶
func (x *FutureReservation) GetStatus() *FutureReservation_Status
func (*FutureReservation) GetTimeWindow ¶
func (x *FutureReservation) GetTimeWindow() *FutureReservation_TimeWindow
func (*FutureReservation) GetType ¶
func (x *FutureReservation) GetType() isFutureReservation_Type
func (*FutureReservation) GetZone ¶
func (x *FutureReservation) GetZone() string
func (*FutureReservation) ProtoMessage ¶
func (*FutureReservation) ProtoMessage()
func (*FutureReservation) ProtoReflect ¶
func (x *FutureReservation) ProtoReflect() protoreflect.Message
func (*FutureReservation) Reset ¶
func (x *FutureReservation) Reset()
func (*FutureReservation) String ¶
func (x *FutureReservation) String() string
type FutureReservation_SpecificSKUProperties ¶
type FutureReservation_SpecificSKUProperties struct {
// Properties of the SKU instances being reserved.
InstanceProperties *Allocation_SpecificSKUAllocation_AllocatedInstanceProperties `protobuf:"bytes,1,opt,name=instance_properties,json=instanceProperties,proto3" json:"instance_properties,omitempty"`
// Total number of instances for which capacity assurance is requested at a
// future time period.
TotalCount int64 `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
// contains filtered or unexported fields
}
Represents specific SKU properties for the Future Reservation.
func (*FutureReservation_SpecificSKUProperties) Descriptor
deprecated
func (*FutureReservation_SpecificSKUProperties) Descriptor() ([]byte, []int)
Deprecated: Use FutureReservation_SpecificSKUProperties.ProtoReflect.Descriptor instead.
func (*FutureReservation_SpecificSKUProperties) GetInstanceProperties ¶
func (x *FutureReservation_SpecificSKUProperties) GetInstanceProperties() *Allocation_SpecificSKUAllocation_AllocatedInstanceProperties
func (*FutureReservation_SpecificSKUProperties) GetTotalCount ¶
func (x *FutureReservation_SpecificSKUProperties) GetTotalCount() int64
func (*FutureReservation_SpecificSKUProperties) ProtoMessage ¶
func (*FutureReservation_SpecificSKUProperties) ProtoMessage()
func (*FutureReservation_SpecificSKUProperties) ProtoReflect ¶
func (x *FutureReservation_SpecificSKUProperties) ProtoReflect() protoreflect.Message
func (*FutureReservation_SpecificSKUProperties) Reset ¶
func (x *FutureReservation_SpecificSKUProperties) Reset()
func (*FutureReservation_SpecificSKUProperties) String ¶
func (x *FutureReservation_SpecificSKUProperties) String() string
type FutureReservation_SpecificSkuProperties ¶
type FutureReservation_SpecificSkuProperties struct {
// Future Reservation configuration to indicate instance properties and
// total count.
SpecificSkuProperties *FutureReservation_SpecificSKUProperties `protobuf:"bytes,8,opt,name=specific_sku_properties,json=specificSkuProperties,proto3,oneof"`
}
type FutureReservation_Status ¶
type FutureReservation_Status struct {
// Current state of this Future Reservation
ProcurementStatus FutureReservation_Status_ProcurementStatus `` /* 197-byte string literal not displayed */
// Time when Future Reservation would become LOCKED, after which no
// modifications to Future Reservation will be allowed. Applicable only
// after the Future Reservation is in the APPROVED state. The lock_time is
// an RFC3339 string. The procurement_status will transition to PROCURING
// state at this time.
LockTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=lock_time,json=lockTime,proto3" json:"lock_time,omitempty"`
// Fully qualified urls of the automatically created reservations at
// start_time.
AutoCreatedReservations []string `` /* 132-byte string literal not displayed */
// This count indicates the fulfilled capacity so far. This is set during
// "PROVISIONING" state. This count also includes capacity delivered as part
// of existing matching reservations.
FulfilledCount int64 `protobuf:"varint,4,opt,name=fulfilled_count,json=fulfilledCount,proto3" json:"fulfilled_count,omitempty"`
// contains filtered or unexported fields
}
Represents status related to the future reservation.
func (*FutureReservation_Status) Descriptor
deprecated
func (*FutureReservation_Status) Descriptor() ([]byte, []int)
Deprecated: Use FutureReservation_Status.ProtoReflect.Descriptor instead.
func (*FutureReservation_Status) GetAutoCreatedReservations ¶
func (x *FutureReservation_Status) GetAutoCreatedReservations() []string
func (*FutureReservation_Status) GetFulfilledCount ¶
func (x *FutureReservation_Status) GetFulfilledCount() int64
func (*FutureReservation_Status) GetLockTime ¶
func (x *FutureReservation_Status) GetLockTime() *timestamppb.Timestamp
func (*FutureReservation_Status) GetProcurementStatus ¶
func (x *FutureReservation_Status) GetProcurementStatus() FutureReservation_Status_ProcurementStatus
func (*FutureReservation_Status) ProtoMessage ¶
func (*FutureReservation_Status) ProtoMessage()
func (*FutureReservation_Status) ProtoReflect ¶
func (x *FutureReservation_Status) ProtoReflect() protoreflect.Message
func (*FutureReservation_Status) Reset ¶
func (x *FutureReservation_Status) Reset()
func (*FutureReservation_Status) String ¶
func (x *FutureReservation_Status) String() string
type FutureReservation_Status_ProcurementStatus ¶
type FutureReservation_Status_ProcurementStatus int32
Represents procurement status of the Future Reservation.
const ( // This is unused status value. FutureReservation_Status_PROCUREMENT_STATUS_UNSPECIFIED FutureReservation_Status_ProcurementStatus = 0 // Future reservation is pending approval by Google Cloud Platform. FutureReservation_Status_PENDING_APPROVAL FutureReservation_Status_ProcurementStatus = 1 // Future reservation is approved by Google Cloud Platform. FutureReservation_Status_APPROVED FutureReservation_Status_ProcurementStatus = 2 // Future reservation is committed by the customer. FutureReservation_Status_COMMITTED FutureReservation_Status_ProcurementStatus = 3 // Future reservation is rejected by Google Cloud Platform. FutureReservation_Status_DECLINED FutureReservation_Status_ProcurementStatus = 4 // Future reservation is cancelled by the customer. FutureReservation_Status_CANCELLED FutureReservation_Status_ProcurementStatus = 5 // Future reservation is being procured by Google Cloud Platform. Beyond // this point, Future reservation is locked and no further modifications // are allowed. FutureReservation_Status_PROCURING FutureReservation_Status_ProcurementStatus = 6 // Future reservation capacity is being provisioned. This state will be // entered after start_time, while reservations are being created to // provide total_count reserved instance slots. This state will not // persist past start_time + 24h. FutureReservation_Status_PROVISIONING FutureReservation_Status_ProcurementStatus = 7 // Future reservation is fulfilled completely. FutureReservation_Status_FULFILLED FutureReservation_Status_ProcurementStatus = 8 // Future reservation failed. No additional reservations were provided. FutureReservation_Status_FAILED FutureReservation_Status_ProcurementStatus = 9 // Future reservation is partially fulfilled. Additional reservations were // provided but did not reach total_count reserved instance slots. FutureReservation_Status_FAILED_PARTIALLY_FULFILLED FutureReservation_Status_ProcurementStatus = 10 // Related status for PlanningStatus.Draft. Transitions to // PENDING_APPROVAL upon user submitting FR. FutureReservation_Status_DRAFTING FutureReservation_Status_ProcurementStatus = 11 // An Amendment to the Future Reservation has been requested. If the // Amendment is declined, the Future Reservation will be restored to the // last known good state. FutureReservation_Status_PENDING_AMENDMENT_APPROVAL FutureReservation_Status_ProcurementStatus = 12 )
func (FutureReservation_Status_ProcurementStatus) Descriptor ¶
func (FutureReservation_Status_ProcurementStatus) Descriptor() protoreflect.EnumDescriptor
func (FutureReservation_Status_ProcurementStatus) EnumDescriptor
deprecated
func (FutureReservation_Status_ProcurementStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use FutureReservation_Status_ProcurementStatus.Descriptor instead.
func (FutureReservation_Status_ProcurementStatus) Number ¶
func (x FutureReservation_Status_ProcurementStatus) Number() protoreflect.EnumNumber
func (FutureReservation_Status_ProcurementStatus) String ¶
func (x FutureReservation_Status_ProcurementStatus) String() string
func (FutureReservation_Status_ProcurementStatus) Type ¶
func (FutureReservation_Status_ProcurementStatus) Type() protoreflect.EnumType
type FutureReservation_TimeWindow ¶
type FutureReservation_TimeWindow struct {
// Start time of the Future Reservation.
StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
// End time of the Future Reservation.
EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
// contains filtered or unexported fields
}
Represents time window for the Future Reservation.
func (*FutureReservation_TimeWindow) Descriptor
deprecated
func (*FutureReservation_TimeWindow) Descriptor() ([]byte, []int)
Deprecated: Use FutureReservation_TimeWindow.ProtoReflect.Descriptor instead.
func (*FutureReservation_TimeWindow) GetEndTime ¶
func (x *FutureReservation_TimeWindow) GetEndTime() *timestamppb.Timestamp
func (*FutureReservation_TimeWindow) GetStartTime ¶
func (x *FutureReservation_TimeWindow) GetStartTime() *timestamppb.Timestamp
func (*FutureReservation_TimeWindow) ProtoMessage ¶
func (*FutureReservation_TimeWindow) ProtoMessage()
func (*FutureReservation_TimeWindow) ProtoReflect ¶
func (x *FutureReservation_TimeWindow) ProtoReflect() protoreflect.Message
func (*FutureReservation_TimeWindow) Reset ¶
func (x *FutureReservation_TimeWindow) Reset()
func (*FutureReservation_TimeWindow) String ¶
func (x *FutureReservation_TimeWindow) String() string
type GcsDestination ¶
type GcsDestination struct {
// Optional. The path to the file in Cloud Storage where the export will be
// stored. The URI is in the form `gs://bucketName/fileName`. If the file
// already exists, the request succeeds, but the operation fails.
Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
// Required. The bucket name to which the export will be stored.
Bucket string `protobuf:"bytes,3,opt,name=bucket,proto3" json:"bucket,omitempty"`
// Required. The object name to which the export will be stored.
Object string `protobuf:"bytes,4,opt,name=object,proto3" json:"object,omitempty"`
// Optional. Flag to indicate overwrite in case file already exists.
Force bool `protobuf:"varint,2,opt,name=force,proto3" json:"force,omitempty"`
// contains filtered or unexported fields
}
A Cloud Storage location.
func (*GcsDestination) Descriptor
deprecated
func (*GcsDestination) Descriptor() ([]byte, []int)
Deprecated: Use GcsDestination.ProtoReflect.Descriptor instead.
func (*GcsDestination) GetBucket ¶
func (x *GcsDestination) GetBucket() string
func (*GcsDestination) GetForce ¶
func (x *GcsDestination) GetForce() bool
func (*GcsDestination) GetObject ¶
func (x *GcsDestination) GetObject() string
func (*GcsDestination) GetUri ¶
func (x *GcsDestination) GetUri() string
func (*GcsDestination) ProtoMessage ¶
func (*GcsDestination) ProtoMessage()
func (*GcsDestination) ProtoReflect ¶
func (x *GcsDestination) ProtoReflect() protoreflect.Message
func (*GcsDestination) Reset ¶
func (x *GcsDestination) Reset()
func (*GcsDestination) String ¶
func (x *GcsDestination) String() string
type LocationIdentifier ¶
type LocationIdentifier struct {
// The location level such as a region.
LocationLevel LocationLevel `` /* 156-byte string literal not displayed */
// Required. Location where resource is sourced. For Cloud Storage, the
// alphabetically first location is the source.
Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
// Optional. Other linked locations.
LinkedLocations []*LocationIdentifier_LinkedLocation `protobuf:"bytes,3,rep,name=linked_locations,json=linkedLocations,proto3" json:"linked_locations,omitempty"`
// contains filtered or unexported fields
}
Identifier for a Google Cloud Platform location.
func (*LocationIdentifier) Descriptor
deprecated
func (*LocationIdentifier) Descriptor() ([]byte, []int)
Deprecated: Use LocationIdentifier.ProtoReflect.Descriptor instead.
func (*LocationIdentifier) GetLinkedLocations ¶
func (x *LocationIdentifier) GetLinkedLocations() []*LocationIdentifier_LinkedLocation
func (*LocationIdentifier) GetLocationLevel ¶
func (x *LocationIdentifier) GetLocationLevel() LocationLevel
func (*LocationIdentifier) GetSource ¶
func (x *LocationIdentifier) GetSource() string
func (*LocationIdentifier) ProtoMessage ¶
func (*LocationIdentifier) ProtoMessage()
func (*LocationIdentifier) ProtoReflect ¶
func (x *LocationIdentifier) ProtoReflect() protoreflect.Message
func (*LocationIdentifier) Reset ¶
func (x *LocationIdentifier) Reset()
func (*LocationIdentifier) String ¶
func (x *LocationIdentifier) String() string
type LocationIdentifier_LinkedLocation ¶
type LocationIdentifier_LinkedLocation struct {
// The location level such as a region.
LocationLevel LocationLevel `` /* 156-byte string literal not displayed */
// Required. The linked cloud location.
Location string `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"`
Label string `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty"`
// contains filtered or unexported fields
}
func (*LocationIdentifier_LinkedLocation) Descriptor
deprecated
func (*LocationIdentifier_LinkedLocation) Descriptor() ([]byte, []int)
Deprecated: Use LocationIdentifier_LinkedLocation.ProtoReflect.Descriptor instead.
func (*LocationIdentifier_LinkedLocation) GetLabel ¶
func (x *LocationIdentifier_LinkedLocation) GetLabel() string
func (*LocationIdentifier_LinkedLocation) GetLocation ¶
func (x *LocationIdentifier_LinkedLocation) GetLocation() string
func (*LocationIdentifier_LinkedLocation) GetLocationLevel ¶
func (x *LocationIdentifier_LinkedLocation) GetLocationLevel() LocationLevel
func (*LocationIdentifier_LinkedLocation) ProtoMessage ¶
func (*LocationIdentifier_LinkedLocation) ProtoMessage()
func (*LocationIdentifier_LinkedLocation) ProtoReflect ¶
func (x *LocationIdentifier_LinkedLocation) ProtoReflect() protoreflect.Message
func (*LocationIdentifier_LinkedLocation) Reset ¶
func (x *LocationIdentifier_LinkedLocation) Reset()
func (*LocationIdentifier_LinkedLocation) String ¶
func (x *LocationIdentifier_LinkedLocation) String() string
type LocationLevel ¶
type LocationLevel int32
The level of the Google Cloud Platform location.
const ( // Location level is unspecified. LocationLevel_LOCATION_LEVEL_UNSPECIFIED LocationLevel = 0 // Cloud region. LocationLevel_REGION LocationLevel = 1 // Cloud zone. LocationLevel_ZONE LocationLevel = 2 // Globally. LocationLevel_GLOBAL LocationLevel = 3 // A metro. LocationLevel_METRO LocationLevel = 4 // Dual region pair. LocationLevel_DUAL_REGION LocationLevel = 5 // Multiple regions. LocationLevel_MULTI_REGION LocationLevel = 6 )
func (LocationLevel) Descriptor ¶
func (LocationLevel) Descriptor() protoreflect.EnumDescriptor
func (LocationLevel) Enum ¶
func (x LocationLevel) Enum() *LocationLevel
func (LocationLevel) EnumDescriptor
deprecated
func (LocationLevel) EnumDescriptor() ([]byte, []int)
Deprecated: Use LocationLevel.Descriptor instead.
func (LocationLevel) Number ¶
func (x LocationLevel) Number() protoreflect.EnumNumber
func (LocationLevel) String ¶
func (x LocationLevel) String() string
func (LocationLevel) Type ¶
func (LocationLevel) Type() protoreflect.EnumType
type MachineShape ¶
type MachineShape struct {
// Optional. The VM family.
MachineFamily string `protobuf:"bytes,1,opt,name=machine_family,json=machineFamily,proto3" json:"machine_family,omitempty"`
// Optional. The characteristics of the sampled VM expressed as a string.
MachineType string `protobuf:"bytes,2,opt,name=machine_type,json=machineType,proto3" json:"machine_type,omitempty"`
// Optional. The customer visible string representing the type of VM.
MachineShape string `protobuf:"bytes,3,opt,name=machine_shape,json=machineShape,proto3" json:"machine_shape,omitempty"`
// Optional. Number of CPU cores per VM.
CpuCores float64 `protobuf:"fixed64,4,opt,name=cpu_cores,json=cpuCores,proto3" json:"cpu_cores,omitempty"`
// Optional. The type of GPU with the VM.
GpuType string `protobuf:"bytes,5,opt,name=gpu_type,json=gpuType,proto3" json:"gpu_type,omitempty"`
// Optional. The GPU name recognized by Compute Engine APIs.
GpuComputeType string `protobuf:"bytes,10,opt,name=gpu_compute_type,json=gpuComputeType,proto3" json:"gpu_compute_type,omitempty"`
// Optional. The number of GPU cores per VM.
GpuCores int64 `protobuf:"varint,6,opt,name=gpu_cores,json=gpuCores,proto3" json:"gpu_cores,omitempty"`
// Optional. The number of local SSD partitions per VM.
LocalSsdPartitions int64 `protobuf:"varint,7,opt,name=local_ssd_partitions,json=localSsdPartitions,proto3" json:"local_ssd_partitions,omitempty"`
// Optional. Total amount of local SSD storage.
LocalSsdGb float64 `protobuf:"fixed64,8,opt,name=local_ssd_gb,json=localSsdGb,proto3" json:"local_ssd_gb,omitempty"`
// Optional. Total amount of memory with the VM.
MemoryGb float64 `protobuf:"fixed64,9,opt,name=memory_gb,json=memoryGb,proto3" json:"memory_gb,omitempty"`
// Optional. The local SSD interface used such as nvme or scsi
LocalSsdInterface string `protobuf:"bytes,11,opt,name=local_ssd_interface,json=localSsdInterface,proto3" json:"local_ssd_interface,omitempty"`
// Optional. The Min-cpu platform used such as icelake
MinCpuPlatform string `protobuf:"bytes,12,opt,name=min_cpu_platform,json=minCpuPlatform,proto3" json:"min_cpu_platform,omitempty"`
// contains filtered or unexported fields
}
Machine shape details Next : 13
func (*MachineShape) Descriptor
deprecated
func (*MachineShape) Descriptor() ([]byte, []int)
Deprecated: Use MachineShape.ProtoReflect.Descriptor instead.
func (*MachineShape) GetCpuCores ¶
func (x *MachineShape) GetCpuCores() float64
func (*MachineShape) GetGpuComputeType ¶
func (x *MachineShape) GetGpuComputeType() string
func (*MachineShape) GetGpuCores ¶
func (x *MachineShape) GetGpuCores() int64
func (*MachineShape) GetGpuType ¶
func (x *MachineShape) GetGpuType() string
func (*MachineShape) GetLocalSsdGb ¶
func (x *MachineShape) GetLocalSsdGb() float64
func (*MachineShape) GetLocalSsdInterface ¶
func (x *MachineShape) GetLocalSsdInterface() string
func (*MachineShape) GetLocalSsdPartitions ¶
func (x *MachineShape) GetLocalSsdPartitions() int64
func (*MachineShape) GetMachineFamily ¶
func (x *MachineShape) GetMachineFamily() string
func (*MachineShape) GetMachineShape ¶
func (x *MachineShape) GetMachineShape() string
func (*MachineShape) GetMachineType ¶
func (x *MachineShape) GetMachineType() string
func (*MachineShape) GetMemoryGb ¶
func (x *MachineShape) GetMemoryGb() float64
func (*MachineShape) GetMinCpuPlatform ¶
func (x *MachineShape) GetMinCpuPlatform() string
func (*MachineShape) ProtoMessage ¶
func (*MachineShape) ProtoMessage()
func (*MachineShape) ProtoReflect ¶
func (x *MachineShape) ProtoReflect() protoreflect.Message
func (*MachineShape) Reset ¶
func (x *MachineShape) Reset()
func (*MachineShape) String ¶
func (x *MachineShape) String() string
type OperationMetadata ¶
type OperationMetadata struct {
// Output only. The time the operation was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The time the operation finished running.
EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
// contains filtered or unexported fields
}
Represents the metadata of a long-running operation.
func (*OperationMetadata) Descriptor
deprecated
func (*OperationMetadata) Descriptor() ([]byte, []int)
Deprecated: Use OperationMetadata.ProtoReflect.Descriptor instead.
func (*OperationMetadata) GetCreateTime ¶
func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp
func (*OperationMetadata) GetEndTime ¶
func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp
func (*OperationMetadata) ProtoMessage ¶
func (*OperationMetadata) ProtoMessage()
func (*OperationMetadata) ProtoReflect ¶
func (x *OperationMetadata) ProtoReflect() protoreflect.Message
func (*OperationMetadata) Reset ¶
func (x *OperationMetadata) Reset()
func (*OperationMetadata) String ¶
func (x *OperationMetadata) String() string
type OutputConfig ¶
type OutputConfig struct {
// Export destination.
//
// Types that are valid to be assigned to Destination:
//
// *OutputConfig_GcsDestination
// *OutputConfig_BigqueryDestination
Destination isOutputConfig_Destination `protobuf_oneof:"destination"`
// contains filtered or unexported fields
}
Output configuration for export destination.
func (*OutputConfig) Descriptor
deprecated
func (*OutputConfig) Descriptor() ([]byte, []int)
Deprecated: Use OutputConfig.ProtoReflect.Descriptor instead.
func (*OutputConfig) GetBigqueryDestination ¶
func (x *OutputConfig) GetBigqueryDestination() *BigQueryDestination
func (*OutputConfig) GetDestination ¶
func (x *OutputConfig) GetDestination() isOutputConfig_Destination
func (*OutputConfig) GetGcsDestination ¶
func (x *OutputConfig) GetGcsDestination() *GcsDestination
func (*OutputConfig) ProtoMessage ¶
func (*OutputConfig) ProtoMessage()
func (*OutputConfig) ProtoReflect ¶
func (x *OutputConfig) ProtoReflect() protoreflect.Message
func (*OutputConfig) Reset ¶
func (x *OutputConfig) Reset()
func (*OutputConfig) String ¶
func (x *OutputConfig) String() string
type OutputConfig_BigqueryDestination ¶
type OutputConfig_BigqueryDestination struct {
// Destination on BigQuery.
BigqueryDestination *BigQueryDestination `protobuf:"bytes,2,opt,name=bigquery_destination,json=bigqueryDestination,proto3,oneof"`
}
type OutputConfig_GcsDestination ¶
type OutputConfig_GcsDestination struct {
// Destination on Cloud Storage.
GcsDestination *GcsDestination `protobuf:"bytes,1,opt,name=gcs_destination,json=gcsDestination,proto3,oneof"`
}
type Point ¶
type Point struct {
// The time which the data point applies.
EventTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=event_time,json=eventTime,proto3" json:"event_time,omitempty"`
// The value of the data point.
Value float64 `protobuf:"fixed64,2,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
A single data point in a time series.
func (*Point) Descriptor
deprecated
func (*Point) GetEventTime ¶
func (x *Point) GetEventTime() *timestamppb.Timestamp
func (*Point) ProtoMessage ¶
func (*Point) ProtoMessage()
func (*Point) ProtoReflect ¶
func (x *Point) ProtoReflect() protoreflect.Message
type QueryForecastsRequest ¶
type QueryForecastsRequest struct {
// Required. The compute engine resource and location for the time series
// values to return. The format is:
//
// projects/{project}/locations/{location} or
// organizations/{organization}/locations/{location} or
// folders/{folder}/locations/{location}
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The machine family to use to select the `Forecast` values to return.
// Possible values include "n1", and "n2d".
// Empty machine_family will return results matching all machine families.
MachineFamily string `protobuf:"bytes,2,opt,name=machine_family,json=machineFamily,proto3" json:"machine_family,omitempty"`
// Optional. The machine shape for the time series values to return.
MachineShape *MachineShape `protobuf:"bytes,12,opt,name=machine_shape,json=machineShape,proto3" json:"machine_shape,omitempty"`
// Optional. The disk_type for the `Forecast` values to return with request
// persistent-disk cloud_resource_type.
// Empty disk_type will return results matching all disk types.
DiskType string `protobuf:"bytes,9,opt,name=disk_type,json=diskType,proto3" json:"disk_type,omitempty"`
// Optional. Whether the persistent disk is in confidential mode.
ConfidentialMode bool `protobuf:"varint,13,opt,name=confidential_mode,json=confidentialMode,proto3" json:"confidential_mode,omitempty"`
// Optional. The GPU type for the `Forecast` values to return. Sample values
// are "nvidia-tesla-t4", and "nvidia-tesla-a100". See
// https://cloud.google.com/compute/docs/gpus for a list. Empty gpu_type
// will return results matching all GPUs.
GpuType string `protobuf:"bytes,10,opt,name=gpu_type,json=gpuType,proto3" json:"gpu_type,omitempty"`
// Optional. The TPU type for the `Forecast` values to return. Empty tpu_type
// will return results matching all TPUs.
TpuType string `protobuf:"bytes,11,opt,name=tpu_type,json=tpuType,proto3" json:"tpu_type,omitempty"`
// Required. The resource for the `Forecast` values to return. Possible values
// include "gce-vcpus", "gce-ram", "gce-local-ssd", "gce-persistent-disk",
// "gce-gpu" and "gce-tpu". Empty cloud_resource_type will return results
// matching all resources.
CloudResourceType string `protobuf:"bytes,3,opt,name=cloud_resource_type,json=cloudResourceType,proto3" json:"cloud_resource_type,omitempty"`
// The type of forecast to use to select the `Forecast` values to return.
// FORECAST_TYPE_UNSPECIFIED will return results matching all the forecast
// types.
ForecastType Forecast_ForecastType `` /* 161-byte string literal not displayed */
// The prediction interval to use to select the `Forecast` values to return.
// PREDICTION_INTERVAL_UNSPECIFIED will return results matching all prediction
// intervals.
PredictionInterval Forecast_PredictionInterval `` /* 185-byte string literal not displayed */
// Aggregation Method of the historical usage for which the forecast is
// generated
AggregationMethod UsageHistory_AggregationMethod `` /* 185-byte string literal not displayed */
// contains filtered or unexported fields
}
The `QueryForecasts` request. Next : 14
func (*QueryForecastsRequest) Descriptor
deprecated
func (*QueryForecastsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryForecastsRequest.ProtoReflect.Descriptor instead.
func (*QueryForecastsRequest) GetAggregationMethod ¶
func (x *QueryForecastsRequest) GetAggregationMethod() UsageHistory_AggregationMethod
func (*QueryForecastsRequest) GetCloudResourceType ¶
func (x *QueryForecastsRequest) GetCloudResourceType() string
func (*QueryForecastsRequest) GetConfidentialMode ¶
func (x *QueryForecastsRequest) GetConfidentialMode() bool
func (*QueryForecastsRequest) GetDiskType ¶
func (x *QueryForecastsRequest) GetDiskType() string
func (*QueryForecastsRequest) GetForecastType ¶
func (x *QueryForecastsRequest) GetForecastType() Forecast_ForecastType
func (*QueryForecastsRequest) GetGpuType ¶
func (x *QueryForecastsRequest) GetGpuType() string
func (*QueryForecastsRequest) GetMachineFamily ¶
func (x *QueryForecastsRequest) GetMachineFamily() string
func (*QueryForecastsRequest) GetMachineShape ¶
func (x *QueryForecastsRequest) GetMachineShape() *MachineShape
func (*QueryForecastsRequest) GetParent ¶
func (x *QueryForecastsRequest) GetParent() string
func (*QueryForecastsRequest) GetPredictionInterval ¶
func (x *QueryForecastsRequest) GetPredictionInterval() Forecast_PredictionInterval
func (*QueryForecastsRequest) GetTpuType ¶
func (x *QueryForecastsRequest) GetTpuType() string
func (*QueryForecastsRequest) ProtoMessage ¶
func (*QueryForecastsRequest) ProtoMessage()
func (*QueryForecastsRequest) ProtoReflect ¶
func (x *QueryForecastsRequest) ProtoReflect() protoreflect.Message
func (*QueryForecastsRequest) Reset ¶
func (x *QueryForecastsRequest) Reset()
func (*QueryForecastsRequest) String ¶
func (x *QueryForecastsRequest) String() string
type QueryForecastsResponse ¶
type QueryForecastsResponse struct {
// The forecasts that match the request.
Forecasts []*Forecast `protobuf:"bytes,1,rep,name=forecasts,proto3" json:"forecasts,omitempty"`
// contains filtered or unexported fields
}
The `QueryForecasts` response.
func (*QueryForecastsResponse) Descriptor
deprecated
func (*QueryForecastsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryForecastsResponse.ProtoReflect.Descriptor instead.
func (*QueryForecastsResponse) GetForecasts ¶
func (x *QueryForecastsResponse) GetForecasts() []*Forecast
func (*QueryForecastsResponse) ProtoMessage ¶
func (*QueryForecastsResponse) ProtoMessage()
func (*QueryForecastsResponse) ProtoReflect ¶
func (x *QueryForecastsResponse) ProtoReflect() protoreflect.Message
func (*QueryForecastsResponse) Reset ¶
func (x *QueryForecastsResponse) Reset()
func (*QueryForecastsResponse) String ¶
func (x *QueryForecastsResponse) String() string
type QueryReservationsRequest ¶
type QueryReservationsRequest struct {
// Required. The compute engine resource and location for the time series
// values to return. The format is:
//
// projects/{project}/locations/{location} or
// organizations/{organization}/locations/{location} or
// folders/{folder}/locations/{location}
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The location level of the reservations usage timeseries.
LocationLevel TimeSeries_LocationType `` /* 167-byte string literal not displayed */
// Optional. The machine family to use to select the aggregate reserved values
// to return. Possible values include "n1", and "n2d" etc. Empty
// machine_family will return results matching all machine families.
MachineFamily string `protobuf:"bytes,2,opt,name=machine_family,json=machineFamily,proto3" json:"machine_family,omitempty"`
// Optional. The machine_shape as a filter to select matching reservations.
MachineShape *MachineShape `protobuf:"bytes,11,opt,name=machine_shape,json=machineShape,proto3" json:"machine_shape,omitempty"`
// Optional. The GPU type for the reserved values to return. Sample values
// are "nvidia-tesla-t4", and "nvidia-tesla-a100". See
// https://cloud.google.com/compute/docs/gpus for a list. Empty gpu_type
// will return results matching all GPUs.
GpuType string `protobuf:"bytes,3,opt,name=gpu_type,json=gpuType,proto3" json:"gpu_type,omitempty"`
// Required. The resource for the reserved values to return. Possible values
// include "gce-vcpus", "gce-ram", "gce-local-ssd", "gce-gpu" and "gce-vm".
CloudResourceType string `protobuf:"bytes,4,opt,name=cloud_resource_type,json=cloudResourceType,proto3" json:"cloud_resource_type,omitempty"`
// Required. The Reservation type for example, future reservation request and
// allocation. If unspecified, all types are
// included.
ReservationType QueryReservationsRequest_ReservationType `` /* 189-byte string literal not displayed */
// unspecified, all types are included.
ShareType QueryReservationsRequest_ShareType `` /* 165-byte string literal not displayed */
// Optional. Types of ownerships to filter reservations based on.
// In case of OWNED, it filters reservations which are owned by selected
// parent project/folder/organization. If unspecified, all types are
// included.
OwnershipType QueryReservationsRequest_OwnershipType `` /* 181-byte string literal not displayed */
// Required. Reservations output data format.
ReservationDataLevel QueryReservationsRequest_ReservationDataLevel `` /* 211-byte string literal not displayed */
// Optional. Whether to include pending for approval reservations in the
// response. This field is only applicable for future reservations.
IncludeUnapprovedReservations bool `` /* 152-byte string literal not displayed */
// Optional. Aggregation Method of the historical reservation usage
AggregationMethod UsageHistory_AggregationMethod `` /* 186-byte string literal not displayed */
// Optional. The start date of reservations usage.
StartDate *date.Date `protobuf:"bytes,14,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"`
// Optional. The end date of reservations usage.
EndDate *date.Date `protobuf:"bytes,15,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"`
// contains filtered or unexported fields
}
The `QueryReservations` request.
func (*QueryReservationsRequest) Descriptor
deprecated
func (*QueryReservationsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryReservationsRequest.ProtoReflect.Descriptor instead.
func (*QueryReservationsRequest) GetAggregationMethod ¶
func (x *QueryReservationsRequest) GetAggregationMethod() UsageHistory_AggregationMethod
func (*QueryReservationsRequest) GetCloudResourceType ¶
func (x *QueryReservationsRequest) GetCloudResourceType() string
func (*QueryReservationsRequest) GetEndDate ¶
func (x *QueryReservationsRequest) GetEndDate() *date.Date
func (*QueryReservationsRequest) GetGpuType ¶
func (x *QueryReservationsRequest) GetGpuType() string
func (*QueryReservationsRequest) GetIncludeUnapprovedReservations ¶
func (x *QueryReservationsRequest) GetIncludeUnapprovedReservations() bool
func (*QueryReservationsRequest) GetLocationLevel ¶
func (x *QueryReservationsRequest) GetLocationLevel() TimeSeries_LocationType
func (*QueryReservationsRequest) GetMachineFamily ¶
func (x *QueryReservationsRequest) GetMachineFamily() string
func (*QueryReservationsRequest) GetMachineShape ¶
func (x *QueryReservationsRequest) GetMachineShape() *MachineShape
func (*QueryReservationsRequest) GetOwnershipType ¶
func (x *QueryReservationsRequest) GetOwnershipType() QueryReservationsRequest_OwnershipType
func (*QueryReservationsRequest) GetParent ¶
func (x *QueryReservationsRequest) GetParent() string
func (*QueryReservationsRequest) GetReservationDataLevel ¶
func (x *QueryReservationsRequest) GetReservationDataLevel() QueryReservationsRequest_ReservationDataLevel
func (*QueryReservationsRequest) GetReservationType ¶
func (x *QueryReservationsRequest) GetReservationType() QueryReservationsRequest_ReservationType
func (*QueryReservationsRequest) GetShareType ¶
func (x *QueryReservationsRequest) GetShareType() QueryReservationsRequest_ShareType
func (*QueryReservationsRequest) GetStartDate ¶
func (x *QueryReservationsRequest) GetStartDate() *date.Date
func (*QueryReservationsRequest) ProtoMessage ¶
func (*QueryReservationsRequest) ProtoMessage()
func (*QueryReservationsRequest) ProtoReflect ¶
func (x *QueryReservationsRequest) ProtoReflect() protoreflect.Message
func (*QueryReservationsRequest) Reset ¶
func (x *QueryReservationsRequest) Reset()
func (*QueryReservationsRequest) String ¶
func (x *QueryReservationsRequest) String() string
type QueryReservationsRequest_OwnershipType ¶
type QueryReservationsRequest_OwnershipType int32
Reservation ownership status to provide distinction for Capacity Planning.
const ( // No ownership status specified. QueryReservationsRequest_OWNERSHIP_TYPE_UNSPECIFIED QueryReservationsRequest_OwnershipType = 0 // For the reservations owned within selected Google Cloud Platform Resource // Container (project/folder/organization). QueryReservationsRequest_OWNERSHIP_TYPE_OWNED QueryReservationsRequest_OwnershipType = 1 // For the reservations consumable within selected Google Cloud Platform // Resource Container (project/folder/organization), but not owned by them. QueryReservationsRequest_OWNERSHIP_TYPE_SHARED_BY_OTHERS QueryReservationsRequest_OwnershipType = 2 )
func (QueryReservationsRequest_OwnershipType) Descriptor ¶
func (QueryReservationsRequest_OwnershipType) Descriptor() protoreflect.EnumDescriptor
func (QueryReservationsRequest_OwnershipType) EnumDescriptor
deprecated
func (QueryReservationsRequest_OwnershipType) EnumDescriptor() ([]byte, []int)
Deprecated: Use QueryReservationsRequest_OwnershipType.Descriptor instead.
func (QueryReservationsRequest_OwnershipType) Number ¶
func (x QueryReservationsRequest_OwnershipType) Number() protoreflect.EnumNumber
func (QueryReservationsRequest_OwnershipType) String ¶
func (x QueryReservationsRequest_OwnershipType) String() string
func (QueryReservationsRequest_OwnershipType) Type ¶
func (QueryReservationsRequest_OwnershipType) Type() protoreflect.EnumType
type QueryReservationsRequest_ReservationDataLevel ¶
type QueryReservationsRequest_ReservationDataLevel int32
The form in which data of reservations should be returned. In case of AGGREGATED, timeseries for selected reservations is returned. If unspecified, all levels are included.
const ( // No reservation data level specified. QueryReservationsRequest_RESERVATION_DATA_LEVEL_UNSPECIFIED QueryReservationsRequest_ReservationDataLevel = 0 // aggregated reservations data in a timeseries or aggregation over // timeseries. QueryReservationsRequest_RESERVATION_DATA_LEVEL_AGGREGATED QueryReservationsRequest_ReservationDataLevel = 1 // per reservation detail which is equivalent of Arcus Future Reservation or // Allocation with only limited fields which are useful for Capacity // Planning. QueryReservationsRequest_RESERVATION_DATA_LEVEL_PER_RESERVATION QueryReservationsRequest_ReservationDataLevel = 2 )
func (QueryReservationsRequest_ReservationDataLevel) Descriptor ¶
func (QueryReservationsRequest_ReservationDataLevel) Descriptor() protoreflect.EnumDescriptor
func (QueryReservationsRequest_ReservationDataLevel) EnumDescriptor
deprecated
func (QueryReservationsRequest_ReservationDataLevel) EnumDescriptor() ([]byte, []int)
Deprecated: Use QueryReservationsRequest_ReservationDataLevel.Descriptor instead.
func (QueryReservationsRequest_ReservationDataLevel) Number ¶
func (x QueryReservationsRequest_ReservationDataLevel) Number() protoreflect.EnumNumber
func (QueryReservationsRequest_ReservationDataLevel) String ¶
func (x QueryReservationsRequest_ReservationDataLevel) String() string
type QueryReservationsRequest_ReservationType ¶
type QueryReservationsRequest_ReservationType int32
Type of the reservation
const ( // No reservation type specified. QueryReservationsRequest_RESERVATION_TYPE_UNSPECIFIED QueryReservationsRequest_ReservationType = 0 // Allocation refers to realized reservation either auto created or created // by the users on demand. QueryReservationsRequest_RESERVATION_TYPE_ALLOCATION QueryReservationsRequest_ReservationType = 1 // Future Reservation requests created by users. QueryReservationsRequest_RESERVATION_TYPE_FUTURE_RESERVATION QueryReservationsRequest_ReservationType = 2 // All reservations. QueryReservationsRequest_RESERVATION_TYPE_ALL QueryReservationsRequest_ReservationType = 3 )
func (QueryReservationsRequest_ReservationType) Descriptor ¶
func (QueryReservationsRequest_ReservationType) Descriptor() protoreflect.EnumDescriptor
func (QueryReservationsRequest_ReservationType) EnumDescriptor
deprecated
func (QueryReservationsRequest_ReservationType) EnumDescriptor() ([]byte, []int)
Deprecated: Use QueryReservationsRequest_ReservationType.Descriptor instead.
func (QueryReservationsRequest_ReservationType) Number ¶
func (x QueryReservationsRequest_ReservationType) Number() protoreflect.EnumNumber
func (QueryReservationsRequest_ReservationType) String ¶
func (x QueryReservationsRequest_ReservationType) String() string
func (QueryReservationsRequest_ReservationType) Type ¶
func (QueryReservationsRequest_ReservationType) Type() protoreflect.EnumType
type QueryReservationsRequest_ShareType ¶
type QueryReservationsRequest_ShareType int32
Possible scope in which the reservation can be shared.
const ( // No share type specified. QueryReservationsRequest_SHARE_TYPE_UNSPECIFIED QueryReservationsRequest_ShareType = 0 // Default value, for which reservation is open to only owner project. QueryReservationsRequest_SHARE_TYPE_LOCAL QueryReservationsRequest_ShareType = 1 // Shared-reservation is open to specific projects. QueryReservationsRequest_SHARE_TYPE_SPECIFIC_PROJECTS QueryReservationsRequest_ShareType = 2 )
func (QueryReservationsRequest_ShareType) Descriptor ¶
func (QueryReservationsRequest_ShareType) Descriptor() protoreflect.EnumDescriptor
func (QueryReservationsRequest_ShareType) Enum ¶
func (x QueryReservationsRequest_ShareType) Enum() *QueryReservationsRequest_ShareType
func (QueryReservationsRequest_ShareType) EnumDescriptor
deprecated
func (QueryReservationsRequest_ShareType) EnumDescriptor() ([]byte, []int)
Deprecated: Use QueryReservationsRequest_ShareType.Descriptor instead.
func (QueryReservationsRequest_ShareType) Number ¶
func (x QueryReservationsRequest_ShareType) Number() protoreflect.EnumNumber
func (QueryReservationsRequest_ShareType) String ¶
func (x QueryReservationsRequest_ShareType) String() string
func (QueryReservationsRequest_ShareType) Type ¶
func (QueryReservationsRequest_ShareType) Type() protoreflect.EnumType
type QueryReservationsResponse ¶
type QueryReservationsResponse struct {
// The reservations data that match the request.
Reservations []*ReservationData `protobuf:"bytes,1,rep,name=reservations,proto3" json:"reservations,omitempty"`
// contains filtered or unexported fields
}
The `QueryReservations` response.
func (*QueryReservationsResponse) Descriptor
deprecated
func (*QueryReservationsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryReservationsResponse.ProtoReflect.Descriptor instead.
func (*QueryReservationsResponse) GetReservations ¶
func (x *QueryReservationsResponse) GetReservations() []*ReservationData
func (*QueryReservationsResponse) ProtoMessage ¶
func (*QueryReservationsResponse) ProtoMessage()
func (*QueryReservationsResponse) ProtoReflect ¶
func (x *QueryReservationsResponse) ProtoReflect() protoreflect.Message
func (*QueryReservationsResponse) Reset ¶
func (x *QueryReservationsResponse) Reset()
func (*QueryReservationsResponse) String ¶
func (x *QueryReservationsResponse) String() string
type QueryUsageHistoriesRequest ¶
type QueryUsageHistoriesRequest struct {
// Required. The compute engine resource and location for the time series
// values to return. The format is:
//
// projects/{project}/locations/{location} or
// organizations/{organization}/locations/{location} or
// folders/{folder}/locations/{location}
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The location level of the reservations usage timeseries.
LocationLevel TimeSeries_LocationType `` /* 167-byte string literal not displayed */
// Optional. The is_spot flag is used to fetch the usage data for preemptible
// Resources.
IsSpot bool `protobuf:"varint,14,opt,name=is_spot,json=isSpot,proto3" json:"is_spot,omitempty"`
// The machine family for the `UsageHistory` values to return. Possible values
// include "n1", and "n2d". See
// https://cloud.google.com/compute/docs/machine-types for more examples.
// Empty machine_family will return results matching all machine families.
MachineFamily string `protobuf:"bytes,2,opt,name=machine_family,json=machineFamily,proto3" json:"machine_family,omitempty"`
// Optional. The machine shape for the `UsageHistory` values to return.
MachineShape *MachineShape `protobuf:"bytes,13,opt,name=machine_shape,json=machineShape,proto3" json:"machine_shape,omitempty"`
// Optional. The disk_type for the `UsageHistory` values to return request
// with persistent-disk cloud_resource_type. Empty disk_type will return
// results matching all disk types.
DiskType string `protobuf:"bytes,7,opt,name=disk_type,json=diskType,proto3" json:"disk_type,omitempty"`
// Optional. Whether the persistent disk is in confidential mode.
ConfidentialMode bool `protobuf:"varint,15,opt,name=confidential_mode,json=confidentialMode,proto3" json:"confidential_mode,omitempty"`
// Optional. The GPU type for the `UsageHistory` values to return. Sample
// values are "nvidia-tesla-t4", and "nvidia-tesla-a100". See
// https://cloud.google.com/compute/docs/gpus for a list. Empty gpu_type
// will return results matching all GPUs.
GpuType string `protobuf:"bytes,8,opt,name=gpu_type,json=gpuType,proto3" json:"gpu_type,omitempty"`
// Optional. The TPU type for the `UsageHistory` values to return. Empty
// tpu_type will return results matching all TPUs.
TpuType string `protobuf:"bytes,12,opt,name=tpu_type,json=tpuType,proto3" json:"tpu_type,omitempty"`
// Required. The resource for the `UsageHistory` values to return. Possible
// values include "gce-vcpus", "gce-ram", "gce-local-ssd",
// "gce-persistent-disk", "gce-gpu" and "gce-tpu". Empty cloud_resource_type
// will return results matching all resources.
CloudResourceType string `protobuf:"bytes,3,opt,name=cloud_resource_type,json=cloudResourceType,proto3" json:"cloud_resource_type,omitempty"`
// The method that should be used to convert sampled usage data to daily
// usage values.
// AGGREGATION_METHOD_UNSPECIFIED will return results matching all the
// aggregation methods.
UsageAggregationMethod UsageHistory_AggregationMethod `` /* 202-byte string literal not displayed */
// Optional. The start date of reservations usage.
StartDate *date.Date `protobuf:"bytes,9,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"`
// Optional. The end date of reservations usage.
EndDate *date.Date `protobuf:"bytes,10,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"`
// contains filtered or unexported fields
}
The `QueryUsageHistories` request. Next : 16
func (*QueryUsageHistoriesRequest) Descriptor
deprecated
func (*QueryUsageHistoriesRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryUsageHistoriesRequest.ProtoReflect.Descriptor instead.
func (*QueryUsageHistoriesRequest) GetCloudResourceType ¶
func (x *QueryUsageHistoriesRequest) GetCloudResourceType() string
func (*QueryUsageHistoriesRequest) GetConfidentialMode ¶
func (x *QueryUsageHistoriesRequest) GetConfidentialMode() bool
func (*QueryUsageHistoriesRequest) GetDiskType ¶
func (x *QueryUsageHistoriesRequest) GetDiskType() string
func (*QueryUsageHistoriesRequest) GetEndDate ¶
func (x *QueryUsageHistoriesRequest) GetEndDate() *date.Date
func (*QueryUsageHistoriesRequest) GetGpuType ¶
func (x *QueryUsageHistoriesRequest) GetGpuType() string
func (*QueryUsageHistoriesRequest) GetIsSpot ¶
func (x *QueryUsageHistoriesRequest) GetIsSpot() bool
func (*QueryUsageHistoriesRequest) GetLocationLevel ¶
func (x *QueryUsageHistoriesRequest) GetLocationLevel() TimeSeries_LocationType
func (*QueryUsageHistoriesRequest) GetMachineFamily ¶
func (x *QueryUsageHistoriesRequest) GetMachineFamily() string
func (*QueryUsageHistoriesRequest) GetMachineShape ¶
func (x *QueryUsageHistoriesRequest) GetMachineShape() *MachineShape
func (*QueryUsageHistoriesRequest) GetParent ¶
func (x *QueryUsageHistoriesRequest) GetParent() string
func (*QueryUsageHistoriesRequest) GetStartDate ¶
func (x *QueryUsageHistoriesRequest) GetStartDate() *date.Date
func (*QueryUsageHistoriesRequest) GetTpuType ¶
func (x *QueryUsageHistoriesRequest) GetTpuType() string
func (*QueryUsageHistoriesRequest) GetUsageAggregationMethod ¶
func (x *QueryUsageHistoriesRequest) GetUsageAggregationMethod() UsageHistory_AggregationMethod
func (*QueryUsageHistoriesRequest) ProtoMessage ¶
func (*QueryUsageHistoriesRequest) ProtoMessage()
func (*QueryUsageHistoriesRequest) ProtoReflect ¶
func (x *QueryUsageHistoriesRequest) ProtoReflect() protoreflect.Message
func (*QueryUsageHistoriesRequest) Reset ¶
func (x *QueryUsageHistoriesRequest) Reset()
func (*QueryUsageHistoriesRequest) String ¶
func (x *QueryUsageHistoriesRequest) String() string
type QueryUsageHistoriesResponse ¶
type QueryUsageHistoriesResponse struct {
// The usage histories that match the request.
UsageHistories []*UsageHistory `protobuf:"bytes,1,rep,name=usage_histories,json=usageHistories,proto3" json:"usage_histories,omitempty"`
// contains filtered or unexported fields
}
The `QueryUsageHistories` response.
func (*QueryUsageHistoriesResponse) Descriptor
deprecated
func (*QueryUsageHistoriesResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryUsageHistoriesResponse.ProtoReflect.Descriptor instead.
func (*QueryUsageHistoriesResponse) GetUsageHistories ¶
func (x *QueryUsageHistoriesResponse) GetUsageHistories() []*UsageHistory
func (*QueryUsageHistoriesResponse) ProtoMessage ¶
func (*QueryUsageHistoriesResponse) ProtoMessage()
func (*QueryUsageHistoriesResponse) ProtoReflect ¶
func (x *QueryUsageHistoriesResponse) ProtoReflect() protoreflect.Message
func (*QueryUsageHistoriesResponse) Reset ¶
func (x *QueryUsageHistoriesResponse) Reset()
func (*QueryUsageHistoriesResponse) String ¶
func (x *QueryUsageHistoriesResponse) String() string
type ReservationData ¶
type ReservationData struct {
// Identifier. The resource name of the connection in the form of:
// `projects/{project_id}/locations/{location_id}/reservations/{reservation_id}`
// or
// `organizations/{organization_id}/locations/{location_id}/reservations/{reservation_id}`
// or
// `folders/{folder_id}/locations/{location_id}/reservations/{reservation_id}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The collection of data points that represent the aggregated reserved value
// for reservations filtered by the criteria.
TimeSeries *TimeSeries `protobuf:"bytes,2,opt,name=time_series,json=timeSeries,proto3" json:"time_series,omitempty"`
// The collection of data points that represent the aggregated used value for
// reservations filtered by the criteria.
UsedReservationValues *TimeSeries `` /* 126-byte string literal not displayed */
// Future reservations filtered by the criteria.
FutureReservations []*FutureReservation `protobuf:"bytes,3,rep,name=future_reservations,json=futureReservations,proto3" json:"future_reservations,omitempty"`
// Allocations filtered by the criteria.
Allocations []*Allocation `protobuf:"bytes,4,rep,name=allocations,proto3" json:"allocations,omitempty"`
// contains filtered or unexported fields
}
Response entity for reservations data.
func (*ReservationData) Descriptor
deprecated
func (*ReservationData) Descriptor() ([]byte, []int)
Deprecated: Use ReservationData.ProtoReflect.Descriptor instead.
func (*ReservationData) GetAllocations ¶
func (x *ReservationData) GetAllocations() []*Allocation
func (*ReservationData) GetFutureReservations ¶
func (x *ReservationData) GetFutureReservations() []*FutureReservation
func (*ReservationData) GetName ¶
func (x *ReservationData) GetName() string
func (*ReservationData) GetTimeSeries ¶
func (x *ReservationData) GetTimeSeries() *TimeSeries
func (*ReservationData) GetUsedReservationValues ¶
func (x *ReservationData) GetUsedReservationValues() *TimeSeries
func (*ReservationData) ProtoMessage ¶
func (*ReservationData) ProtoMessage()
func (*ReservationData) ProtoReflect ¶
func (x *ReservationData) ProtoReflect() protoreflect.Message
func (*ReservationData) Reset ¶
func (x *ReservationData) Reset()
func (*ReservationData) String ¶
func (x *ReservationData) String() string
type ResourceAttribute ¶
type ResourceAttribute struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Value *ResourceValue `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
An attribute of a Google Cloud Platform resource.
func (*ResourceAttribute) Descriptor
deprecated
func (*ResourceAttribute) Descriptor() ([]byte, []int)
Deprecated: Use ResourceAttribute.ProtoReflect.Descriptor instead.
func (*ResourceAttribute) GetKey ¶
func (x *ResourceAttribute) GetKey() string
func (*ResourceAttribute) GetValue ¶
func (x *ResourceAttribute) GetValue() *ResourceValue
func (*ResourceAttribute) ProtoMessage ¶
func (*ResourceAttribute) ProtoMessage()
func (*ResourceAttribute) ProtoReflect ¶
func (x *ResourceAttribute) ProtoReflect() protoreflect.Message
func (*ResourceAttribute) Reset ¶
func (x *ResourceAttribute) Reset()
func (*ResourceAttribute) String ¶
func (x *ResourceAttribute) String() string
type ResourceContainer ¶
type ResourceContainer struct {
Type ResourceContainer_Type `` /* 126-byte string literal not displayed */
// Required. Identifier of the resource container. For example, project number
// for project type.
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
The resource container of Google Cloud Platform hierarchy such as a project.
func (*ResourceContainer) Descriptor
deprecated
func (*ResourceContainer) Descriptor() ([]byte, []int)
Deprecated: Use ResourceContainer.ProtoReflect.Descriptor instead.
func (*ResourceContainer) GetId ¶
func (x *ResourceContainer) GetId() string
func (*ResourceContainer) GetType ¶
func (x *ResourceContainer) GetType() ResourceContainer_Type
func (*ResourceContainer) ProtoMessage ¶
func (*ResourceContainer) ProtoMessage()
func (*ResourceContainer) ProtoReflect ¶
func (x *ResourceContainer) ProtoReflect() protoreflect.Message
func (*ResourceContainer) Reset ¶
func (x *ResourceContainer) Reset()
func (*ResourceContainer) String ¶
func (x *ResourceContainer) String() string
type ResourceContainer_Type ¶
type ResourceContainer_Type int32
const ( ResourceContainer_TYPE_UNSPECIFIED ResourceContainer_Type = 0 ResourceContainer_PROJECT ResourceContainer_Type = 1 ResourceContainer_FOLDER ResourceContainer_Type = 2 ResourceContainer_ORG ResourceContainer_Type = 3 )
func (ResourceContainer_Type) Descriptor ¶
func (ResourceContainer_Type) Descriptor() protoreflect.EnumDescriptor
func (ResourceContainer_Type) Enum ¶
func (x ResourceContainer_Type) Enum() *ResourceContainer_Type
func (ResourceContainer_Type) EnumDescriptor
deprecated
func (ResourceContainer_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use ResourceContainer_Type.Descriptor instead.
func (ResourceContainer_Type) Number ¶
func (x ResourceContainer_Type) Number() protoreflect.EnumNumber
func (ResourceContainer_Type) String ¶
func (x ResourceContainer_Type) String() string
func (ResourceContainer_Type) Type ¶
func (ResourceContainer_Type) Type() protoreflect.EnumType
type ResourceIdKey ¶
type ResourceIdKey struct {
// Demand fields for the resource.
//
// Types that are valid to be assigned to DemandFields:
//
// *ResourceIdKey_ResourceCode
DemandFields isResourceIdKey_DemandFields `protobuf_oneof:"demand_fields"`
// Required. Id of the resource.
ResourceId *ResourceIdentifier `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
// contains filtered or unexported fields
}
The id for a Google Cloud Platform resource key.
func (*ResourceIdKey) Descriptor
deprecated
func (*ResourceIdKey) Descriptor() ([]byte, []int)
Deprecated: Use ResourceIdKey.ProtoReflect.Descriptor instead.
func (*ResourceIdKey) GetDemandFields ¶
func (x *ResourceIdKey) GetDemandFields() isResourceIdKey_DemandFields
func (*ResourceIdKey) GetResourceCode ¶
func (x *ResourceIdKey) GetResourceCode() string
func (*ResourceIdKey) GetResourceId ¶
func (x *ResourceIdKey) GetResourceId() *ResourceIdentifier
func (*ResourceIdKey) ProtoMessage ¶
func (*ResourceIdKey) ProtoMessage()
func (*ResourceIdKey) ProtoReflect ¶
func (x *ResourceIdKey) ProtoReflect() protoreflect.Message
func (*ResourceIdKey) Reset ¶
func (x *ResourceIdKey) Reset()
func (*ResourceIdKey) String ¶
func (x *ResourceIdKey) String() string
type ResourceIdKey_ResourceCode ¶
type ResourceIdKey_ResourceCode struct {
// Required. resource_code for the resource. eg: gce-ram, gce-vcpus,
// gce-gpu, gce-tpu, gce-vm, gce-persistent-disk, gce-local-ssd.
ResourceCode string `protobuf:"bytes,2,opt,name=resource_code,json=resourceCode,proto3,oneof"`
}
type ResourceIdentifier ¶
type ResourceIdentifier struct {
ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
ResourceName string `protobuf:"bytes,2,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
ResourceAttributes []*ResourceAttribute `protobuf:"bytes,3,rep,name=resource_attributes,json=resourceAttributes,proto3" json:"resource_attributes,omitempty"`
// contains filtered or unexported fields
}
The identifier for a Google Cloud Platform resource.
func (*ResourceIdentifier) Descriptor
deprecated
func (*ResourceIdentifier) Descriptor() ([]byte, []int)
Deprecated: Use ResourceIdentifier.ProtoReflect.Descriptor instead.
func (*ResourceIdentifier) GetResourceAttributes ¶
func (x *ResourceIdentifier) GetResourceAttributes() []*ResourceAttribute
func (*ResourceIdentifier) GetResourceName ¶
func (x *ResourceIdentifier) GetResourceName() string
func (*ResourceIdentifier) GetServiceName ¶
func (x *ResourceIdentifier) GetServiceName() string
func (*ResourceIdentifier) ProtoMessage ¶
func (*ResourceIdentifier) ProtoMessage()
func (*ResourceIdentifier) ProtoReflect ¶
func (x *ResourceIdentifier) ProtoReflect() protoreflect.Message
func (*ResourceIdentifier) Reset ¶
func (x *ResourceIdentifier) Reset()
func (*ResourceIdentifier) String ¶
func (x *ResourceIdentifier) String() string
type ResourceValue ¶
type ResourceValue struct {
Unit Unit `protobuf:"varint,1,opt,name=unit,proto3,enum=google.cloud.capacityplanner.v1beta.Unit" json:"unit,omitempty"`
Value *Value `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
func (*ResourceValue) Descriptor
deprecated
func (*ResourceValue) Descriptor() ([]byte, []int)
Deprecated: Use ResourceValue.ProtoReflect.Descriptor instead.
func (*ResourceValue) GetUnit ¶
func (x *ResourceValue) GetUnit() Unit
func (*ResourceValue) GetValue ¶
func (x *ResourceValue) GetValue() *Value
func (*ResourceValue) ProtoMessage ¶
func (*ResourceValue) ProtoMessage()
func (*ResourceValue) ProtoReflect ¶
func (x *ResourceValue) ProtoReflect() protoreflect.Message
func (*ResourceValue) Reset ¶
func (x *ResourceValue) Reset()
func (*ResourceValue) String ¶
func (x *ResourceValue) String() string
type TimeSeries ¶
type TimeSeries struct {
// Required. The type of location that the time series is summarizing.
LocationType TimeSeries_LocationType `` /* 163-byte string literal not displayed */
// Optional. The location of the usage data in time series.
Location string `protobuf:"bytes,9,opt,name=location,proto3" json:"location,omitempty"`
// Optional. The location of the usage data in time series.
IsSpot bool `protobuf:"varint,11,opt,name=is_spot,json=isSpot,proto3" json:"is_spot,omitempty"`
// The machine family for the time series values to return. Possible values
// include "n1" and "n2d".
MachineFamily string `protobuf:"bytes,2,opt,name=machine_family,json=machineFamily,proto3" json:"machine_family,omitempty"`
// The disk type for the time series values to return.
DiskType string `protobuf:"bytes,6,opt,name=disk_type,json=diskType,proto3" json:"disk_type,omitempty"`
// Optional. The confidential mode for disk.
ConfidentialMode bool `protobuf:"varint,12,opt,name=confidential_mode,json=confidentialMode,proto3" json:"confidential_mode,omitempty"`
// The GPU type of the time series.
GpuType string `protobuf:"bytes,7,opt,name=gpu_type,json=gpuType,proto3" json:"gpu_type,omitempty"`
// The TPU type of the time series.
TpuType string `protobuf:"bytes,10,opt,name=tpu_type,json=tpuType,proto3" json:"tpu_type,omitempty"`
// The machine shape of the time series.
MachineShape *MachineShape `protobuf:"bytes,8,opt,name=machine_shape,json=machineShape,proto3" json:"machine_shape,omitempty"`
// The resource for the time series values to return. Possible values include
// "gce-vcpus", "gce-ram", "gce-local-ssd", "gce-persistent-disk", "gce-gpu",
// "gce-tpu" and "gce-vm".
CloudResourceType string `protobuf:"bytes,3,opt,name=cloud_resource_type,json=cloudResourceType,proto3" json:"cloud_resource_type,omitempty"`
// The data points of this time series. When listing time series, points are
// returned in chronological order.
Points []*Point `protobuf:"bytes,4,rep,name=points,proto3" json:"points,omitempty"`
// The units in which the values are reported.
Unit string `protobuf:"bytes,5,opt,name=unit,proto3" json:"unit,omitempty"`
// contains filtered or unexported fields
}
A collection of data points that describes the time-varying values of a resource. A time series is identified by its ID. Next : 13
func (*TimeSeries) Descriptor
deprecated
func (*TimeSeries) Descriptor() ([]byte, []int)
Deprecated: Use TimeSeries.ProtoReflect.Descriptor instead.
func (*TimeSeries) GetCloudResourceType ¶
func (x *TimeSeries) GetCloudResourceType() string
func (*TimeSeries) GetConfidentialMode ¶
func (x *TimeSeries) GetConfidentialMode() bool
func (*TimeSeries) GetDiskType ¶
func (x *TimeSeries) GetDiskType() string
func (*TimeSeries) GetGpuType ¶
func (x *TimeSeries) GetGpuType() string
func (*TimeSeries) GetIsSpot ¶
func (x *TimeSeries) GetIsSpot() bool
func (*TimeSeries) GetLocation ¶
func (x *TimeSeries) GetLocation() string
func (*TimeSeries) GetLocationType ¶
func (x *TimeSeries) GetLocationType() TimeSeries_LocationType
func (*TimeSeries) GetMachineFamily ¶
func (x *TimeSeries) GetMachineFamily() string
func (*TimeSeries) GetMachineShape ¶
func (x *TimeSeries) GetMachineShape() *MachineShape
func (*TimeSeries) GetPoints ¶
func (x *TimeSeries) GetPoints() []*Point
func (*TimeSeries) GetTpuType ¶
func (x *TimeSeries) GetTpuType() string
func (*TimeSeries) GetUnit ¶
func (x *TimeSeries) GetUnit() string
func (*TimeSeries) ProtoMessage ¶
func (*TimeSeries) ProtoMessage()
func (*TimeSeries) ProtoReflect ¶
func (x *TimeSeries) ProtoReflect() protoreflect.Message
func (*TimeSeries) Reset ¶
func (x *TimeSeries) Reset()
func (*TimeSeries) String ¶
func (x *TimeSeries) String() string
type TimeSeries_LocationType ¶
type TimeSeries_LocationType int32
The type of location that the time series is summarizing.
const ( // No location type was specified. TimeSeries_LOCATION_TYPE_UNSPECIFIED TimeSeries_LocationType = 0 // Time series values represent usage aggregated at the region level. TimeSeries_REGIONAL TimeSeries_LocationType = 1 // Time series values represent usage aggregated at the zone level. TimeSeries_ZONAL TimeSeries_LocationType = 2 )
func (TimeSeries_LocationType) Descriptor ¶
func (TimeSeries_LocationType) Descriptor() protoreflect.EnumDescriptor
func (TimeSeries_LocationType) Enum ¶
func (x TimeSeries_LocationType) Enum() *TimeSeries_LocationType
func (TimeSeries_LocationType) EnumDescriptor
deprecated
func (TimeSeries_LocationType) EnumDescriptor() ([]byte, []int)
Deprecated: Use TimeSeries_LocationType.Descriptor instead.
func (TimeSeries_LocationType) Number ¶
func (x TimeSeries_LocationType) Number() protoreflect.EnumNumber
func (TimeSeries_LocationType) String ¶
func (x TimeSeries_LocationType) String() string
func (TimeSeries_LocationType) Type ¶
func (TimeSeries_LocationType) Type() protoreflect.EnumType
type UnimplementedUsageServiceServer ¶
type UnimplementedUsageServiceServer struct {
}
UnimplementedUsageServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedUsageServiceServer) ExportForecasts ¶
func (UnimplementedUsageServiceServer) ExportForecasts(context.Context, *ExportForecastsRequest) (*longrunningpb.Operation, error)
func (UnimplementedUsageServiceServer) ExportReservationsUsage ¶
func (UnimplementedUsageServiceServer) ExportReservationsUsage(context.Context, *ExportReservationsUsageRequest) (*longrunningpb.Operation, error)
func (UnimplementedUsageServiceServer) ExportUsageHistories ¶
func (UnimplementedUsageServiceServer) ExportUsageHistories(context.Context, *ExportUsageHistoriesRequest) (*longrunningpb.Operation, error)
func (UnimplementedUsageServiceServer) QueryForecasts ¶
func (UnimplementedUsageServiceServer) QueryForecasts(context.Context, *QueryForecastsRequest) (*QueryForecastsResponse, error)
func (UnimplementedUsageServiceServer) QueryReservations ¶
func (UnimplementedUsageServiceServer) QueryReservations(context.Context, *QueryReservationsRequest) (*QueryReservationsResponse, error)
func (UnimplementedUsageServiceServer) QueryUsageHistories ¶
func (UnimplementedUsageServiceServer) QueryUsageHistories(context.Context, *QueryUsageHistoriesRequest) (*QueryUsageHistoriesResponse, error)
type Unit ¶
type Unit int32
const ( Unit_UNIT_UNSPECIFIED Unit = 0 Unit_UNIT_COUNT Unit = 1 // Kilobytes (10^3 bytes) Unit_KB Unit = 2 // Gigabytes (10^9 bytes) Unit_GB Unit = 3 // Terabytes (10^12 bytes) Unit_TB Unit = 4 // Mebibytes (2^20 bytes) Unit_MIB Unit = 17 // Gibibytes (2^30 bytes) Unit_GIB Unit = 5 // Tebibytes (2^40 bytes) Unit_TIB Unit = 6 // Queries per second Unit_QPS Unit = 7 // Megabytes (10^6 bytes) Unit_MB Unit = 8 // Pebibytes (2^50 bytes) Unit_PIB Unit = 9 // Terabits (10^12 bits) per second // // Deprecated: Marked as deprecated in google/cloud/capacityplanner/v1beta/resource.proto. Unit_TBPS Unit = 10 Unit_GBPS_BITS Unit = 11 Unit_GIB_BITS Unit = 12 Unit_MBPS_BITS Unit = 13 Unit_MBPS_BYTES Unit = 14 Unit_TBPS_BITS Unit = 15 Unit_TBPS_BYTES Unit = 16 Unit_KOPS Unit = 18 )
func (Unit) Descriptor ¶
func (Unit) Descriptor() protoreflect.EnumDescriptor
func (Unit) EnumDescriptor
deprecated
func (Unit) Number ¶
func (x Unit) Number() protoreflect.EnumNumber
func (Unit) Type ¶
func (Unit) Type() protoreflect.EnumType
type UnsafeUsageServiceServer ¶ added in v0.2.0
type UnsafeUsageServiceServer interface {
// contains filtered or unexported methods
}
UnsafeUsageServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UsageServiceServer will result in compilation errors.
type UsageHistory ¶
type UsageHistory struct {
// The collection of data points that represent the historical values.
TimeSeries *TimeSeries `protobuf:"bytes,1,opt,name=time_series,json=timeSeries,proto3" json:"time_series,omitempty"`
// Method used to convert sampled usage data to time series values.
AggregationMethod UsageHistory_AggregationMethod `` /* 185-byte string literal not displayed */
// contains filtered or unexported fields
}
A collection of data points that describes the historical time-varying values of a resource.
func (*UsageHistory) Descriptor
deprecated
func (*UsageHistory) Descriptor() ([]byte, []int)
Deprecated: Use UsageHistory.ProtoReflect.Descriptor instead.
func (*UsageHistory) GetAggregationMethod ¶
func (x *UsageHistory) GetAggregationMethod() UsageHistory_AggregationMethod
func (*UsageHistory) GetTimeSeries ¶
func (x *UsageHistory) GetTimeSeries() *TimeSeries
func (*UsageHistory) ProtoMessage ¶
func (*UsageHistory) ProtoMessage()
func (*UsageHistory) ProtoReflect ¶
func (x *UsageHistory) ProtoReflect() protoreflect.Message
func (*UsageHistory) Reset ¶
func (x *UsageHistory) Reset()
func (*UsageHistory) String ¶
func (x *UsageHistory) String() string
type UsageHistory_AggregationMethod ¶
type UsageHistory_AggregationMethod int32
Methods for converting sampled data to time series values.
const ( // No aggregation method is specified. UsageHistory_AGGREGATION_METHOD_UNSPECIFIED UsageHistory_AggregationMethod = 0 UsageHistory_MEDIAN UsageHistory_AggregationMethod = 1 // Time series values represent the 99th percentile of the sampled values. UsageHistory_PEAK UsageHistory_AggregationMethod = 2 // Time series values represent the 50th(median) percentile of the sampled // values. UsageHistory_P50 UsageHistory_AggregationMethod = 3 // Time series values represent the 75th percentile of the sampled values. UsageHistory_P75 UsageHistory_AggregationMethod = 4 // Time series values represent the 99th percentile of the sampled values. UsageHistory_P99 UsageHistory_AggregationMethod = 5 )
func (UsageHistory_AggregationMethod) Descriptor ¶
func (UsageHistory_AggregationMethod) Descriptor() protoreflect.EnumDescriptor
func (UsageHistory_AggregationMethod) Enum ¶
func (x UsageHistory_AggregationMethod) Enum() *UsageHistory_AggregationMethod
func (UsageHistory_AggregationMethod) EnumDescriptor
deprecated
func (UsageHistory_AggregationMethod) EnumDescriptor() ([]byte, []int)
Deprecated: Use UsageHistory_AggregationMethod.Descriptor instead.
func (UsageHistory_AggregationMethod) Number ¶
func (x UsageHistory_AggregationMethod) Number() protoreflect.EnumNumber
func (UsageHistory_AggregationMethod) String ¶
func (x UsageHistory_AggregationMethod) String() string
func (UsageHistory_AggregationMethod) Type ¶
func (UsageHistory_AggregationMethod) Type() protoreflect.EnumType
type UsageServiceClient ¶
type UsageServiceClient interface {
// Returns a list of the usage histories that are in the parent parameter
// and match your specified filters.
QueryUsageHistories(ctx context.Context, in *QueryUsageHistoriesRequest, opts ...grpc.CallOption) (*QueryUsageHistoriesResponse, error)
// Returns a list of the forecasts that are in the parent parameter
// and match your specified filters.
QueryForecasts(ctx context.Context, in *QueryForecastsRequest, opts ...grpc.CallOption) (*QueryForecastsResponse, error)
// Returns a list of the reservations that are in the parent parameter
// and match your specified filters.
QueryReservations(ctx context.Context, in *QueryReservationsRequest, opts ...grpc.CallOption) (*QueryReservationsResponse, error)
// Exports historical usage data requested by user into either an existing
// Cloud Storage bucket or a BigQuery table.
ExportUsageHistories(ctx context.Context, in *ExportUsageHistoriesRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Exports forecasted usage data requested by user into either an existing
// Cloud Storage bucket or a BigQuery table.
ExportForecasts(ctx context.Context, in *ExportForecastsRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Exports reservations usage data requested by user into either an existing
// Cloud Storage bucket or a new/existing BigQuery table.
ExportReservationsUsage(ctx context.Context, in *ExportReservationsUsageRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
}
UsageServiceClient is the client API for UsageService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewUsageServiceClient ¶
func NewUsageServiceClient(cc grpc.ClientConnInterface) UsageServiceClient
type UsageServiceServer ¶
type UsageServiceServer interface {
// Returns a list of the usage histories that are in the parent parameter
// and match your specified filters.
QueryUsageHistories(context.Context, *QueryUsageHistoriesRequest) (*QueryUsageHistoriesResponse, error)
// Returns a list of the forecasts that are in the parent parameter
// and match your specified filters.
QueryForecasts(context.Context, *QueryForecastsRequest) (*QueryForecastsResponse, error)
// Returns a list of the reservations that are in the parent parameter
// and match your specified filters.
QueryReservations(context.Context, *QueryReservationsRequest) (*QueryReservationsResponse, error)
// Exports historical usage data requested by user into either an existing
// Cloud Storage bucket or a BigQuery table.
ExportUsageHistories(context.Context, *ExportUsageHistoriesRequest) (*longrunningpb.Operation, error)
// Exports forecasted usage data requested by user into either an existing
// Cloud Storage bucket or a BigQuery table.
ExportForecasts(context.Context, *ExportForecastsRequest) (*longrunningpb.Operation, error)
// Exports reservations usage data requested by user into either an existing
// Cloud Storage bucket or a new/existing BigQuery table.
ExportReservationsUsage(context.Context, *ExportReservationsUsageRequest) (*longrunningpb.Operation, error)
}
UsageServiceServer is the server API for UsageService service. All implementations should embed UnimplementedUsageServiceServer for forward compatibility
type Value ¶
type Value struct {
// Types that are valid to be assigned to Value:
//
// *Value_Int64Value
// *Value_StringValue
// *Value_DoubleValue
// *Value_BoolValue
Value isValue_Value `protobuf_oneof:"value"`
// contains filtered or unexported fields
}
func (*Value) Descriptor
deprecated
func (*Value) GetBoolValue ¶
func (*Value) GetDoubleValue ¶
func (*Value) GetInt64Value ¶
func (*Value) GetStringValue ¶
func (*Value) ProtoMessage ¶
func (*Value) ProtoMessage()
func (*Value) ProtoReflect ¶
func (x *Value) ProtoReflect() protoreflect.Message
type Value_BoolValue ¶
type Value_BoolValue struct {
BoolValue bool `protobuf:"varint,4,opt,name=bool_value,json=boolValue,proto3,oneof"`
}
type Value_DoubleValue ¶
type Value_DoubleValue struct {
DoubleValue float64 `protobuf:"fixed64,3,opt,name=double_value,json=doubleValue,proto3,oneof"`
}
type Value_Int64Value ¶
type Value_Int64Value struct {
Int64Value int64 `protobuf:"varint,1,opt,name=int64_value,json=int64Value,proto3,oneof"`
}
type Value_StringValue ¶
type Value_StringValue struct {
StringValue string `protobuf:"bytes,2,opt,name=string_value,json=stringValue,proto3,oneof"`
}