Documentation ¶
Overview ¶
Package quotas contains quota definitions.
Index ¶
- Variables
- type AssignedQuota
- func (*AssignedQuota) Descriptor() ([]byte, []int)deprecated
- func (x *AssignedQuota) GetLimits() []*AssignedQuotaLimit
- func (x *AssignedQuota) GetProject() string
- func (x *AssignedQuota) GetResourceGroup() string
- func (x *AssignedQuota) GetTotalCpus() int32
- func (x *AssignedQuota) GetTotalVms() int32
- func (*AssignedQuota) ProtoMessage()
- func (x *AssignedQuota) ProtoReflect() protoreflect.Message
- func (x *AssignedQuota) Reset()
- func (x *AssignedQuota) String() string
- type AssignedQuotaLimit
- func (*AssignedQuotaLimit) Descriptor() ([]byte, []int)deprecated
- func (x *AssignedQuotaLimit) GetName() string
- func (x *AssignedQuotaLimit) GetType() string
- func (x *AssignedQuotaLimit) GetValue() float32
- func (*AssignedQuotaLimit) ProtoMessage()
- func (x *AssignedQuotaLimit) ProtoReflect() protoreflect.Message
- func (x *AssignedQuotaLimit) Reset()
- func (x *AssignedQuotaLimit) String() string
- type Quotas
Constants ¶
This section is empty.
Variables ¶
View Source
var File_go_chromium_org_luci_gce_api_quotas_v1_quotas_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AssignedQuota ¶
type AssignedQuota struct { // The name of a GCP project. Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` // The name of a resource-group. ResourceGroup string `protobuf:"bytes,2,opt,name=resource_group,json=resourceGroup,proto3" json:"resource_group,omitempty"` // Quota for count of created VM. TotalVms int32 `protobuf:"varint,3,opt,name=total_vms,json=totalVms,proto3" json:"total_vms,omitempty"` // Quota Allowed total CPUs. TotalCpus int32 `protobuf:"varint,4,opt,name=total_cpus,json=totalCpus,proto3" json:"total_cpus,omitempty"` // List of quota limits. Limits []*AssignedQuotaLimit `protobuf:"bytes,5,rep,name=limits,proto3" json:"limits,omitempty"` // contains filtered or unexported fields }
A description of an assigned quota for each resource-group.
func (*AssignedQuota) Descriptor
deprecated
func (*AssignedQuota) Descriptor() ([]byte, []int)
Deprecated: Use AssignedQuota.ProtoReflect.Descriptor instead.
func (*AssignedQuota) GetLimits ¶
func (x *AssignedQuota) GetLimits() []*AssignedQuotaLimit
func (*AssignedQuota) GetProject ¶
func (x *AssignedQuota) GetProject() string
func (*AssignedQuota) GetResourceGroup ¶
func (x *AssignedQuota) GetResourceGroup() string
func (*AssignedQuota) GetTotalCpus ¶
func (x *AssignedQuota) GetTotalCpus() int32
func (*AssignedQuota) GetTotalVms ¶
func (x *AssignedQuota) GetTotalVms() int32
func (*AssignedQuota) ProtoMessage ¶
func (*AssignedQuota) ProtoMessage()
func (*AssignedQuota) ProtoReflect ¶
func (x *AssignedQuota) ProtoReflect() protoreflect.Message
func (*AssignedQuota) Reset ¶
func (x *AssignedQuota) Reset()
func (*AssignedQuota) String ¶
func (x *AssignedQuota) String() string
type AssignedQuotaLimit ¶
type AssignedQuotaLimit struct { // Quota names like CPUS, C2_CPUS which assosiated with machine-famalies. // // Details: // CPUS for e2, f1, g1, n1 // C2_CPUS for c2 // C2D_CPUS for c2d // C3_CPUS for c3 // N2_CPUS for n2 // N2D_CPUS for n2d // T2D_CPUS for t2d // T2A_CPUS for t2a // pd-ssd, pd-standart and local-ssd for storages. // and more https://cloud.google.com/compute/resource-usage#cpu_quota. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Type of quota. // Expected values: 'cpu', 'storage'. Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` // Value of the limit. // Using flowtigng value as we have instances like g1 which os 0.5 CPUS. Value float32 `protobuf:"fixed32,3,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
A description of single quota limit.
func (*AssignedQuotaLimit) Descriptor
deprecated
func (*AssignedQuotaLimit) Descriptor() ([]byte, []int)
Deprecated: Use AssignedQuotaLimit.ProtoReflect.Descriptor instead.
func (*AssignedQuotaLimit) GetName ¶
func (x *AssignedQuotaLimit) GetName() string
func (*AssignedQuotaLimit) GetType ¶
func (x *AssignedQuotaLimit) GetType() string
func (*AssignedQuotaLimit) GetValue ¶
func (x *AssignedQuotaLimit) GetValue() float32
func (*AssignedQuotaLimit) ProtoMessage ¶
func (*AssignedQuotaLimit) ProtoMessage()
func (*AssignedQuotaLimit) ProtoReflect ¶
func (x *AssignedQuotaLimit) ProtoReflect() protoreflect.Message
func (*AssignedQuotaLimit) Reset ¶
func (x *AssignedQuotaLimit) Reset()
func (*AssignedQuotaLimit) String ¶
func (x *AssignedQuotaLimit) String() string
type Quotas ¶
type Quotas struct { // list of known assigned quotas. AssignedQuotas []*AssignedQuota `protobuf:"bytes,1,rep,name=assigned_quotas,json=assignedQuotas,proto3" json:"assigned_quotas,omitempty"` // contains filtered or unexported fields }
Hold known quotas.
func (*Quotas) Descriptor
deprecated
func (*Quotas) GetAssignedQuotas ¶
func (x *Quotas) GetAssignedQuotas() []*AssignedQuota
func (*Quotas) ProtoMessage ¶
func (*Quotas) ProtoMessage()
func (*Quotas) ProtoReflect ¶
func (x *Quotas) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.