Constants
CloudQuotas_ListQuotaInfos_FullMethodName, CloudQuotas_GetQuotaInfo_FullMethodName, CloudQuotas_ListQuotaPreferences_FullMethodName, CloudQuotas_GetQuotaPreference_FullMethodName, CloudQuotas_CreateQuotaPreference_FullMethodName, CloudQuotas_UpdateQuotaPreference_FullMethodName
const (
CloudQuotas_ListQuotaInfos_FullMethodName = "/google.api.cloudquotas.v1beta.CloudQuotas/ListQuotaInfos"
CloudQuotas_GetQuotaInfo_FullMethodName = "/google.api.cloudquotas.v1beta.CloudQuotas/GetQuotaInfo"
CloudQuotas_ListQuotaPreferences_FullMethodName = "/google.api.cloudquotas.v1beta.CloudQuotas/ListQuotaPreferences"
CloudQuotas_GetQuotaPreference_FullMethodName = "/google.api.cloudquotas.v1beta.CloudQuotas/GetQuotaPreference"
CloudQuotas_CreateQuotaPreference_FullMethodName = "/google.api.cloudquotas.v1beta.CloudQuotas/CreateQuotaPreference"
CloudQuotas_UpdateQuotaPreference_FullMethodName = "/google.api.cloudquotas.v1beta.CloudQuotas/UpdateQuotaPreference"
)QuotaAdjusterSettingsManager_UpdateQuotaAdjusterSettings_FullMethodName, QuotaAdjusterSettingsManager_GetQuotaAdjusterSettings_FullMethodName
const (
QuotaAdjusterSettingsManager_UpdateQuotaAdjusterSettings_FullMethodName = "/google.api.cloudquotas.v1beta.QuotaAdjusterSettingsManager/UpdateQuotaAdjusterSettings"
QuotaAdjusterSettingsManager_GetQuotaAdjusterSettings_FullMethodName = "/google.api.cloudquotas.v1beta.QuotaAdjusterSettingsManager/GetQuotaAdjusterSettings"
)Variables
QuotaAdjusterSettings_Enablement_name, QuotaAdjusterSettings_Enablement_value
var (
QuotaAdjusterSettings_Enablement_name = map[int32]string{
0: "ENABLEMENT_UNSPECIFIED",
2: "ENABLED",
3: "DISABLED",
}
QuotaAdjusterSettings_Enablement_value = map[string]int32{
"ENABLEMENT_UNSPECIFIED": 0,
"ENABLED": 2,
"DISABLED": 3,
}
)Enum value maps for QuotaAdjusterSettings_Enablement.
QuotaSafetyCheck_name, QuotaSafetyCheck_value
var (
QuotaSafetyCheck_name = map[int32]string{
0: "QUOTA_SAFETY_CHECK_UNSPECIFIED",
1: "QUOTA_DECREASE_BELOW_USAGE",
2: "QUOTA_DECREASE_PERCENTAGE_TOO_HIGH",
}
QuotaSafetyCheck_value = map[string]int32{
"QUOTA_SAFETY_CHECK_UNSPECIFIED": 0,
"QUOTA_DECREASE_BELOW_USAGE": 1,
"QUOTA_DECREASE_PERCENTAGE_TOO_HIGH": 2,
}
)Enum value maps for QuotaSafetyCheck.
QuotaInfo_ContainerType_name, QuotaInfo_ContainerType_value
var (
QuotaInfo_ContainerType_name = map[int32]string{
0: "CONTAINER_TYPE_UNSPECIFIED",
1: "PROJECT",
2: "FOLDER",
3: "ORGANIZATION",
}
QuotaInfo_ContainerType_value = map[string]int32{
"CONTAINER_TYPE_UNSPECIFIED": 0,
"PROJECT": 1,
"FOLDER": 2,
"ORGANIZATION": 3,
}
)Enum value maps for QuotaInfo_ContainerType.
QuotaIncreaseEligibility_IneligibilityReason_name, QuotaIncreaseEligibility_IneligibilityReason_value
var (
QuotaIncreaseEligibility_IneligibilityReason_name = map[int32]string{
0: "INELIGIBILITY_REASON_UNSPECIFIED",
1: "NO_VALID_BILLING_ACCOUNT",
3: "NOT_SUPPORTED",
4: "NOT_ENOUGH_USAGE_HISTORY",
2: "OTHER",
}
QuotaIncreaseEligibility_IneligibilityReason_value = map[string]int32{
"INELIGIBILITY_REASON_UNSPECIFIED": 0,
"NO_VALID_BILLING_ACCOUNT": 1,
"NOT_SUPPORTED": 3,
"NOT_ENOUGH_USAGE_HISTORY": 4,
"OTHER": 2,
}
)Enum value maps for QuotaIncreaseEligibility_IneligibilityReason.
QuotaConfig_Origin_name, QuotaConfig_Origin_value
var (
QuotaConfig_Origin_name = map[int32]string{
0: "ORIGIN_UNSPECIFIED",
1: "CLOUD_CONSOLE",
2: "AUTO_ADJUSTER",
}
QuotaConfig_Origin_value = map[string]int32{
"ORIGIN_UNSPECIFIED": 0,
"CLOUD_CONSOLE": 1,
"AUTO_ADJUSTER": 2,
}
)Enum value maps for QuotaConfig_Origin.
CloudQuotas_ServiceDesc
var CloudQuotas_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.api.cloudquotas.v1beta.CloudQuotas",
HandlerType: (*CloudQuotasServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ListQuotaInfos",
Handler: _CloudQuotas_ListQuotaInfos_Handler,
},
{
MethodName: "GetQuotaInfo",
Handler: _CloudQuotas_GetQuotaInfo_Handler,
},
{
MethodName: "ListQuotaPreferences",
Handler: _CloudQuotas_ListQuotaPreferences_Handler,
},
{
MethodName: "GetQuotaPreference",
Handler: _CloudQuotas_GetQuotaPreference_Handler,
},
{
MethodName: "CreateQuotaPreference",
Handler: _CloudQuotas_CreateQuotaPreference_Handler,
},
{
MethodName: "UpdateQuotaPreference",
Handler: _CloudQuotas_UpdateQuotaPreference_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/api/cloudquotas/v1beta/cloudquotas.proto",
}CloudQuotas_ServiceDesc is the grpc.ServiceDesc for CloudQuotas service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
File_google_api_cloudquotas_v1beta_cloudquotas_proto
var File_google_api_cloudquotas_v1beta_cloudquotas_proto protoreflect.FileDescriptorFile_google_api_cloudquotas_v1beta_quota_adjuster_settings_proto
var File_google_api_cloudquotas_v1beta_quota_adjuster_settings_proto protoreflect.FileDescriptorFile_google_api_cloudquotas_v1beta_resources_proto
var File_google_api_cloudquotas_v1beta_resources_proto protoreflect.FileDescriptorQuotaAdjusterSettingsManager_ServiceDesc
var QuotaAdjusterSettingsManager_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.api.cloudquotas.v1beta.QuotaAdjusterSettingsManager",
HandlerType: (*QuotaAdjusterSettingsManagerServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "UpdateQuotaAdjusterSettings",
Handler: _QuotaAdjusterSettingsManager_UpdateQuotaAdjusterSettings_Handler,
},
{
MethodName: "GetQuotaAdjusterSettings",
Handler: _QuotaAdjusterSettingsManager_GetQuotaAdjusterSettings_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/api/cloudquotas/v1beta/quota_adjuster_settings.proto",
}QuotaAdjusterSettingsManager_ServiceDesc is the grpc.ServiceDesc for QuotaAdjusterSettingsManager service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions
func RegisterCloudQuotasServer
func RegisterCloudQuotasServer(s grpc.ServiceRegistrar, srv CloudQuotasServer)func RegisterQuotaAdjusterSettingsManagerServer
func RegisterQuotaAdjusterSettingsManagerServer(s grpc.ServiceRegistrar, srv QuotaAdjusterSettingsManagerServer)CloudQuotasClient
type CloudQuotasClient interface {
// Lists QuotaInfos of all quotas for a given project, folder or organization.
ListQuotaInfos(ctx context.Context, in *ListQuotaInfosRequest, opts ...grpc.CallOption) (*ListQuotaInfosResponse, error)
// Retrieve the QuotaInfo of a quota for a project, folder or organization.
GetQuotaInfo(ctx context.Context, in *GetQuotaInfoRequest, opts ...grpc.CallOption) (*QuotaInfo, error)
// Lists QuotaPreferences in a given project, folder or organization.
ListQuotaPreferences(ctx context.Context, in *ListQuotaPreferencesRequest, opts ...grpc.CallOption) (*ListQuotaPreferencesResponse, error)
// Gets details of a single QuotaPreference.
GetQuotaPreference(ctx context.Context, in *GetQuotaPreferenceRequest, opts ...grpc.CallOption) (*QuotaPreference, error)
// Creates a new QuotaPreference that declares the desired value for a quota.
CreateQuotaPreference(ctx context.Context, in *CreateQuotaPreferenceRequest, opts ...grpc.CallOption) (*QuotaPreference, error)
// Updates the parameters of a single QuotaPreference. It can updates the
// config in any states, not just the ones pending approval.
UpdateQuotaPreference(ctx context.Context, in *UpdateQuotaPreferenceRequest, opts ...grpc.CallOption) (*QuotaPreference, error)
}CloudQuotasClient is the client API for CloudQuotas 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 NewCloudQuotasClient
func NewCloudQuotasClient(cc grpc.ClientConnInterface) CloudQuotasClientCloudQuotasServer
type CloudQuotasServer interface {
// Lists QuotaInfos of all quotas for a given project, folder or organization.
ListQuotaInfos(context.Context, *ListQuotaInfosRequest) (*ListQuotaInfosResponse, error)
// Retrieve the QuotaInfo of a quota for a project, folder or organization.
GetQuotaInfo(context.Context, *GetQuotaInfoRequest) (*QuotaInfo, error)
// Lists QuotaPreferences in a given project, folder or organization.
ListQuotaPreferences(context.Context, *ListQuotaPreferencesRequest) (*ListQuotaPreferencesResponse, error)
// Gets details of a single QuotaPreference.
GetQuotaPreference(context.Context, *GetQuotaPreferenceRequest) (*QuotaPreference, error)
// Creates a new QuotaPreference that declares the desired value for a quota.
CreateQuotaPreference(context.Context, *CreateQuotaPreferenceRequest) (*QuotaPreference, error)
// Updates the parameters of a single QuotaPreference. It can updates the
// config in any states, not just the ones pending approval.
UpdateQuotaPreference(context.Context, *UpdateQuotaPreferenceRequest) (*QuotaPreference, error)
}CloudQuotasServer is the server API for CloudQuotas service. All implementations should embed UnimplementedCloudQuotasServer for forward compatibility
CreateQuotaPreferenceRequest
type CreateQuotaPreferenceRequest struct {
// Required. Value for parent.
//
// Example:
// `projects/123/locations/global`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. Id of the requesting object, must be unique under its parent.
// If client does not set this field, the service will generate one.
QuotaPreferenceId string `protobuf:"bytes,2,opt,name=quota_preference_id,json=quotaPreferenceId,proto3" json:"quota_preference_id,omitempty"`
// Required. The resource being created
QuotaPreference *QuotaPreference `protobuf:"bytes,3,opt,name=quota_preference,json=quotaPreference,proto3" json:"quota_preference,omitempty"`
// The list of quota safety checks to be ignored.
IgnoreSafetyChecks []QuotaSafetyCheck `protobuf:"varint,4,rep,packed,name=ignore_safety_checks,json=ignoreSafetyChecks,proto3,enum=google.api.cloudquotas.v1beta.QuotaSafetyCheck" json:"ignore_safety_checks,omitempty"`
// contains filtered or unexported fields
}Message for creating a QuotaPreference
func (*CreateQuotaPreferenceRequest) Descriptor
func (*CreateQuotaPreferenceRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateQuotaPreferenceRequest.ProtoReflect.Descriptor instead.
func (*CreateQuotaPreferenceRequest) GetIgnoreSafetyChecks
func (x *CreateQuotaPreferenceRequest) GetIgnoreSafetyChecks() []QuotaSafetyCheckfunc (*CreateQuotaPreferenceRequest) GetParent
func (x *CreateQuotaPreferenceRequest) GetParent() stringfunc (*CreateQuotaPreferenceRequest) GetQuotaPreference
func (x *CreateQuotaPreferenceRequest) GetQuotaPreference() *QuotaPreferencefunc (*CreateQuotaPreferenceRequest) GetQuotaPreferenceId
func (x *CreateQuotaPreferenceRequest) GetQuotaPreferenceId() stringfunc (*CreateQuotaPreferenceRequest) ProtoMessage
func (*CreateQuotaPreferenceRequest) ProtoMessage()func (*CreateQuotaPreferenceRequest) ProtoReflect
func (x *CreateQuotaPreferenceRequest) ProtoReflect() protoreflect.Messagefunc (*CreateQuotaPreferenceRequest) Reset
func (x *CreateQuotaPreferenceRequest) Reset()func (*CreateQuotaPreferenceRequest) String
func (x *CreateQuotaPreferenceRequest) String() stringDimensionsInfo
type DimensionsInfo struct {
// The map of dimensions in key-value pairs. The key of a map entry
// is "region", "zone", or the name of a service-specific dimension, and the
// value of a map entry is the value of the dimension. If a dimension does
// not appear in the map of dimensions, the dimensions info applies to all
// the dimension values except for those that have another DimensionInfo
// instance configured for the specific value.
// For example: `{"provider" : "Example Organization"}` where `provider` is a
// service-specific quota dimension and `Example Organization` is the provider
// name.
Dimensions map[string]string `protobuf:"bytes,1,rep,name=dimensions,proto3" json:"dimensions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Quota details for the specified dimensions.
Details *QuotaDetails `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"`
// The applicable regions or zones of this dimension. The field is
// set to ['global'] for quotas that are not per region or per zone.
// Otherwise, it will be set to the list of locations this dimension info is
// applicable to.
ApplicableLocations []string `protobuf:"bytes,3,rep,name=applicable_locations,json=applicableLocations,proto3" json:"applicable_locations,omitempty"`
// contains filtered or unexported fields
}The detailed quota information such as effective quota value for a combination of dimensions.
func (*DimensionsInfo) Descriptor
func (*DimensionsInfo) Descriptor() ([]byte, []int)Deprecated: Use DimensionsInfo.ProtoReflect.Descriptor instead.
func (*DimensionsInfo) GetApplicableLocations
func (x *DimensionsInfo) GetApplicableLocations() []stringfunc (*DimensionsInfo) GetDetails
func (x *DimensionsInfo) GetDetails() *QuotaDetailsfunc (*DimensionsInfo) GetDimensions
func (x *DimensionsInfo) GetDimensions() map[string]stringfunc (*DimensionsInfo) ProtoMessage
func (*DimensionsInfo) ProtoMessage()func (*DimensionsInfo) ProtoReflect
func (x *DimensionsInfo) ProtoReflect() protoreflect.Messagefunc (*DimensionsInfo) Reset
func (x *DimensionsInfo) Reset()func (*DimensionsInfo) String
func (x *DimensionsInfo) String() stringGetQuotaAdjusterSettingsRequest
type GetQuotaAdjusterSettingsRequest struct {
// Required. Name of the `quotaAdjusterSettings` configuration. Only a single
// setting per project is supported.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request for getting QuotaAdjusterSettings
func (*GetQuotaAdjusterSettingsRequest) Descriptor
func (*GetQuotaAdjusterSettingsRequest) Descriptor() ([]byte, []int)Deprecated: Use GetQuotaAdjusterSettingsRequest.ProtoReflect.Descriptor instead.
func (*GetQuotaAdjusterSettingsRequest) GetName
func (x *GetQuotaAdjusterSettingsRequest) GetName() stringfunc (*GetQuotaAdjusterSettingsRequest) ProtoMessage
func (*GetQuotaAdjusterSettingsRequest) ProtoMessage()func (*GetQuotaAdjusterSettingsRequest) ProtoReflect
func (x *GetQuotaAdjusterSettingsRequest) ProtoReflect() protoreflect.Messagefunc (*GetQuotaAdjusterSettingsRequest) Reset
func (x *GetQuotaAdjusterSettingsRequest) Reset()func (*GetQuotaAdjusterSettingsRequest) String
func (x *GetQuotaAdjusterSettingsRequest) String() stringGetQuotaInfoRequest
type GetQuotaInfoRequest struct {
// Required. The resource name of the quota info.
//
// An example name:
// `projects/123/locations/global/services/compute.googleapis.com/quotaInfos/CpusPerProjectPerRegion`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Message for getting a QuotaInfo
func (*GetQuotaInfoRequest) Descriptor
func (*GetQuotaInfoRequest) Descriptor() ([]byte, []int)Deprecated: Use GetQuotaInfoRequest.ProtoReflect.Descriptor instead.
func (*GetQuotaInfoRequest) GetName
func (x *GetQuotaInfoRequest) GetName() stringfunc (*GetQuotaInfoRequest) ProtoMessage
func (*GetQuotaInfoRequest) ProtoMessage()func (*GetQuotaInfoRequest) ProtoReflect
func (x *GetQuotaInfoRequest) ProtoReflect() protoreflect.Messagefunc (*GetQuotaInfoRequest) Reset
func (x *GetQuotaInfoRequest) Reset()func (*GetQuotaInfoRequest) String
func (x *GetQuotaInfoRequest) String() stringGetQuotaPreferenceRequest
type GetQuotaPreferenceRequest struct {
// Required. Name of the resource
//
// Example name:
// `projects/123/locations/global/quota_preferences/my-config-for-us-east1`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Message for getting a QuotaPreference
func (*GetQuotaPreferenceRequest) Descriptor
func (*GetQuotaPreferenceRequest) Descriptor() ([]byte, []int)Deprecated: Use GetQuotaPreferenceRequest.ProtoReflect.Descriptor instead.
func (*GetQuotaPreferenceRequest) GetName
func (x *GetQuotaPreferenceRequest) GetName() stringfunc (*GetQuotaPreferenceRequest) ProtoMessage
func (*GetQuotaPreferenceRequest) ProtoMessage()func (*GetQuotaPreferenceRequest) ProtoReflect
func (x *GetQuotaPreferenceRequest) ProtoReflect() protoreflect.Messagefunc (*GetQuotaPreferenceRequest) Reset
func (x *GetQuotaPreferenceRequest) Reset()func (*GetQuotaPreferenceRequest) String
func (x *GetQuotaPreferenceRequest) String() stringListQuotaInfosRequest
type ListQuotaInfosRequest struct {
// Required. Parent value of QuotaInfo resources.
// Listing across different resource containers (such as 'projects/-') is not
// allowed.
//
// Example names:
// `projects/123/locations/global/services/compute.googleapis.com`
// `folders/234/locations/global/services/compute.googleapis.com`
// `organizations/345/locations/global/services/compute.googleapis.com`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. Requested page size. Server may return fewer items than
// requested. If unspecified, server will pick an appropriate default.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A token identifying a page of results the server should return.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}Message for requesting list of QuotaInfos
func (*ListQuotaInfosRequest) Descriptor
func (*ListQuotaInfosRequest) Descriptor() ([]byte, []int)Deprecated: Use ListQuotaInfosRequest.ProtoReflect.Descriptor instead.
func (*ListQuotaInfosRequest) GetPageSize
func (x *ListQuotaInfosRequest) GetPageSize() int32func (*ListQuotaInfosRequest) GetPageToken
func (x *ListQuotaInfosRequest) GetPageToken() stringfunc (*ListQuotaInfosRequest) GetParent
func (x *ListQuotaInfosRequest) GetParent() stringfunc (*ListQuotaInfosRequest) ProtoMessage
func (*ListQuotaInfosRequest) ProtoMessage()func (*ListQuotaInfosRequest) ProtoReflect
func (x *ListQuotaInfosRequest) ProtoReflect() protoreflect.Messagefunc (*ListQuotaInfosRequest) Reset
func (x *ListQuotaInfosRequest) Reset()func (*ListQuotaInfosRequest) String
func (x *ListQuotaInfosRequest) String() stringListQuotaInfosResponse
type ListQuotaInfosResponse struct {
// The list of QuotaInfo
QuotaInfos []*QuotaInfo `protobuf:"bytes,1,rep,name=quota_infos,json=quotaInfos,proto3" json:"quota_infos,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}Message for response to listing QuotaInfos
func (*ListQuotaInfosResponse) Descriptor
func (*ListQuotaInfosResponse) Descriptor() ([]byte, []int)Deprecated: Use ListQuotaInfosResponse.ProtoReflect.Descriptor instead.
func (*ListQuotaInfosResponse) GetNextPageToken
func (x *ListQuotaInfosResponse) GetNextPageToken() stringfunc (*ListQuotaInfosResponse) GetQuotaInfos
func (x *ListQuotaInfosResponse) GetQuotaInfos() []*QuotaInfofunc (*ListQuotaInfosResponse) ProtoMessage
func (*ListQuotaInfosResponse) ProtoMessage()func (*ListQuotaInfosResponse) ProtoReflect
func (x *ListQuotaInfosResponse) ProtoReflect() protoreflect.Messagefunc (*ListQuotaInfosResponse) Reset
func (x *ListQuotaInfosResponse) Reset()func (*ListQuotaInfosResponse) String
func (x *ListQuotaInfosResponse) String() stringListQuotaPreferencesRequest
type ListQuotaPreferencesRequest struct {
// Required. Parent value of QuotaPreference resources.
// Listing across different resource containers (such as 'projects/-') is not
// allowed.
//
// When the value starts with 'folders' or 'organizations', it lists the
// QuotaPreferences for org quotas in the container. It does not list the
// QuotaPreferences in the descendant projects of the container.
//
// Example parents:
// `projects/123/locations/global`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. Requested page size. Server may return fewer items than
// requested. If unspecified, server will pick an appropriate default.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A token identifying a page of results the server should return.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. Filter result QuotaPreferences by their state, type,
// create/update time range.
//
// Example filters:
// `reconciling=true AND request_type=CLOUD_CONSOLE`,
// `reconciling=true OR creation_time>2022-12-03T10:30:00`
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. How to order of the results. By default, the results are ordered
// by create time.
//
// Example orders:
// `quota_id`,
// `service, create_time`
OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
// contains filtered or unexported fields
}Message for requesting list of QuotaPreferences
func (*ListQuotaPreferencesRequest) Descriptor
func (*ListQuotaPreferencesRequest) Descriptor() ([]byte, []int)Deprecated: Use ListQuotaPreferencesRequest.ProtoReflect.Descriptor instead.
func (*ListQuotaPreferencesRequest) GetFilter
func (x *ListQuotaPreferencesRequest) GetFilter() stringfunc (*ListQuotaPreferencesRequest) GetOrderBy
func (x *ListQuotaPreferencesRequest) GetOrderBy() stringfunc (*ListQuotaPreferencesRequest) GetPageSize
func (x *ListQuotaPreferencesRequest) GetPageSize() int32func (*ListQuotaPreferencesRequest) GetPageToken
func (x *ListQuotaPreferencesRequest) GetPageToken() stringfunc (*ListQuotaPreferencesRequest) GetParent
func (x *ListQuotaPreferencesRequest) GetParent() stringfunc (*ListQuotaPreferencesRequest) ProtoMessage
func (*ListQuotaPreferencesRequest) ProtoMessage()func (*ListQuotaPreferencesRequest) ProtoReflect
func (x *ListQuotaPreferencesRequest) ProtoReflect() protoreflect.Messagefunc (*ListQuotaPreferencesRequest) Reset
func (x *ListQuotaPreferencesRequest) Reset()func (*ListQuotaPreferencesRequest) String
func (x *ListQuotaPreferencesRequest) String() stringListQuotaPreferencesResponse
type ListQuotaPreferencesResponse struct {
// The list of QuotaPreference
QuotaPreferences []*QuotaPreference `protobuf:"bytes,1,rep,name=quota_preferences,json=quotaPreferences,proto3" json:"quota_preferences,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// Locations that could not be reached.
Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"`
// contains filtered or unexported fields
}Message for response to listing QuotaPreferences
func (*ListQuotaPreferencesResponse) Descriptor
func (*ListQuotaPreferencesResponse) Descriptor() ([]byte, []int)Deprecated: Use ListQuotaPreferencesResponse.ProtoReflect.Descriptor instead.
func (*ListQuotaPreferencesResponse) GetNextPageToken
func (x *ListQuotaPreferencesResponse) GetNextPageToken() stringfunc (*ListQuotaPreferencesResponse) GetQuotaPreferences
func (x *ListQuotaPreferencesResponse) GetQuotaPreferences() []*QuotaPreferencefunc (*ListQuotaPreferencesResponse) GetUnreachable
func (x *ListQuotaPreferencesResponse) GetUnreachable() []stringfunc (*ListQuotaPreferencesResponse) ProtoMessage
func (*ListQuotaPreferencesResponse) ProtoMessage()func (*ListQuotaPreferencesResponse) ProtoReflect
func (x *ListQuotaPreferencesResponse) ProtoReflect() protoreflect.Messagefunc (*ListQuotaPreferencesResponse) Reset
func (x *ListQuotaPreferencesResponse) Reset()func (*ListQuotaPreferencesResponse) String
func (x *ListQuotaPreferencesResponse) String() stringQuotaAdjusterSettings
type QuotaAdjusterSettings struct {
// Identifier. Name of the config would be of the format:
//
// projects/PROJECT_NUMBER/locations/global/quotaAdjusterSettings
// folders/FOLDER_NUMBER/locations/global/quotaAdjusterSettings
// organizations/ORGANIZATION_NUMBER/locations/global/quotaAdjusterSettings
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. The configured value of the enablement at the given resource.
Enablement QuotaAdjusterSettings_Enablement `protobuf:"varint,2,opt,name=enablement,proto3,enum=google.api.cloudquotas.v1beta.QuotaAdjusterSettings_Enablement" json:"enablement,omitempty"`
// Output only. The timestamp when the QuotaAdjusterSettings resource was last
// updated.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Optional. The current ETag of the QuotaAdjusterSettings. If an ETag is
// provided on update and does not match the current server's ETag in the
// QuotaAdjusterSettings, the request is blocked and returns an ABORTED error.
// See https://google.aip.dev/134#etags for more details on ETags.
Etag string `protobuf:"bytes,6,opt,name=etag,proto3" json:"etag,omitempty"`
// Optional. Indicates whether the setting is inherited or explicitly
// specified.
Inherited bool `protobuf:"varint,7,opt,name=inherited,proto3" json:"inherited,omitempty"`
// Output only. The resource container from which the setting is inherited.
// This refers to the nearest ancestor with enablement set (either ENABLED or
// DISABLED). The value can be an organizations/{organization_id},
// folders/{folder_id}, or can be 'default' if no ancestor exists with
// enablement set. The value will be empty when enablement is directly set on
// this container.
InheritedFrom string `protobuf:"bytes,8,opt,name=inherited_from,json=inheritedFrom,proto3" json:"inherited_from,omitempty"`
// contains filtered or unexported fields
}The QuotaAdjusterSettings resource defines the settings for the Quota Adjuster.
func (*QuotaAdjusterSettings) Descriptor
func (*QuotaAdjusterSettings) Descriptor() ([]byte, []int)Deprecated: Use QuotaAdjusterSettings.ProtoReflect.Descriptor instead.
func (*QuotaAdjusterSettings) GetEnablement
func (x *QuotaAdjusterSettings) GetEnablement() QuotaAdjusterSettings_Enablementfunc (*QuotaAdjusterSettings) GetEtag
func (x *QuotaAdjusterSettings) GetEtag() stringfunc (*QuotaAdjusterSettings) GetInherited
func (x *QuotaAdjusterSettings) GetInherited() boolfunc (*QuotaAdjusterSettings) GetInheritedFrom
func (x *QuotaAdjusterSettings) GetInheritedFrom() stringfunc (*QuotaAdjusterSettings) GetName
func (x *QuotaAdjusterSettings) GetName() stringfunc (*QuotaAdjusterSettings) GetUpdateTime
func (x *QuotaAdjusterSettings) GetUpdateTime() *timestamppb.Timestampfunc (*QuotaAdjusterSettings) ProtoMessage
func (*QuotaAdjusterSettings) ProtoMessage()func (*QuotaAdjusterSettings) ProtoReflect
func (x *QuotaAdjusterSettings) ProtoReflect() protoreflect.Messagefunc (*QuotaAdjusterSettings) Reset
func (x *QuotaAdjusterSettings) Reset()func (*QuotaAdjusterSettings) String
func (x *QuotaAdjusterSettings) String() stringQuotaAdjusterSettingsManagerClient
type QuotaAdjusterSettingsManagerClient interface {
// RPC Method for updating QuotaAdjusterSettings based on the request
UpdateQuotaAdjusterSettings(ctx context.Context, in *UpdateQuotaAdjusterSettingsRequest, opts ...grpc.CallOption) (*QuotaAdjusterSettings, error)
// RPC Method for getting QuotaAdjusterSettings based on the request
GetQuotaAdjusterSettings(ctx context.Context, in *GetQuotaAdjusterSettingsRequest, opts ...grpc.CallOption) (*QuotaAdjusterSettings, error)
}QuotaAdjusterSettingsManagerClient is the client API for QuotaAdjusterSettingsManager 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 NewQuotaAdjusterSettingsManagerClient
func NewQuotaAdjusterSettingsManagerClient(cc grpc.ClientConnInterface) QuotaAdjusterSettingsManagerClientQuotaAdjusterSettingsManagerServer
type QuotaAdjusterSettingsManagerServer interface {
// RPC Method for updating QuotaAdjusterSettings based on the request
UpdateQuotaAdjusterSettings(context.Context, *UpdateQuotaAdjusterSettingsRequest) (*QuotaAdjusterSettings, error)
// RPC Method for getting QuotaAdjusterSettings based on the request
GetQuotaAdjusterSettings(context.Context, *GetQuotaAdjusterSettingsRequest) (*QuotaAdjusterSettings, error)
}QuotaAdjusterSettingsManagerServer is the server API for QuotaAdjusterSettingsManager service. All implementations should embed UnimplementedQuotaAdjusterSettingsManagerServer for forward compatibility
QuotaAdjusterSettings_Enablement
type QuotaAdjusterSettings_Enablement int32The enablement status of the quota adjuster.
QuotaAdjusterSettings_ENABLEMENT_UNSPECIFIED, QuotaAdjusterSettings_ENABLED, QuotaAdjusterSettings_DISABLED
const (
// The quota adjuster is in an unknown state.
QuotaAdjusterSettings_ENABLEMENT_UNSPECIFIED QuotaAdjusterSettings_Enablement = 0
// The quota adjuster is enabled.
QuotaAdjusterSettings_ENABLED QuotaAdjusterSettings_Enablement = 2
// The quota adjuster is disabled.
QuotaAdjusterSettings_DISABLED QuotaAdjusterSettings_Enablement = 3
)func (QuotaAdjusterSettings_Enablement) Descriptor
func (QuotaAdjusterSettings_Enablement) Descriptor() protoreflect.EnumDescriptorfunc (QuotaAdjusterSettings_Enablement) Enum
func (x QuotaAdjusterSettings_Enablement) Enum() *QuotaAdjusterSettings_Enablementfunc (QuotaAdjusterSettings_Enablement) EnumDescriptor
func (QuotaAdjusterSettings_Enablement) EnumDescriptor() ([]byte, []int)Deprecated: Use QuotaAdjusterSettings_Enablement.Descriptor instead.
func (QuotaAdjusterSettings_Enablement) Number
func (x QuotaAdjusterSettings_Enablement) Number() protoreflect.EnumNumberfunc (QuotaAdjusterSettings_Enablement) String
func (x QuotaAdjusterSettings_Enablement) String() stringfunc (QuotaAdjusterSettings_Enablement) Type
func (QuotaAdjusterSettings_Enablement) Type() protoreflect.EnumTypeQuotaConfig
type QuotaConfig struct {
// Required. The preferred value. Must be greater than or equal to -1. If set
// to -1, it means the value is "unlimited".
PreferredValue int64 `protobuf:"varint,1,opt,name=preferred_value,json=preferredValue,proto3" json:"preferred_value,omitempty"`
// Output only. Optional details about the state of this quota preference.
StateDetail string `protobuf:"bytes,2,opt,name=state_detail,json=stateDetail,proto3" json:"state_detail,omitempty"`
// Output only. Granted quota value.
GrantedValue *wrapperspb.Int64Value `protobuf:"bytes,3,opt,name=granted_value,json=grantedValue,proto3" json:"granted_value,omitempty"`
// Output only. The trace id that the Google Cloud uses to provision the
// requested quota. This trace id may be used by the client to contact Cloud
// support to track the state of a quota preference request. The trace id is
// only produced for increase requests and is unique for each request. The
// quota decrease requests do not have a trace id.
TraceId string `protobuf:"bytes,4,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"`
// Optional. The annotations map for clients to store small amounts of
// arbitrary data. Do not put PII or other sensitive information here. See
// https://google.aip.dev/128#annotations
Annotations map[string]string `protobuf:"bytes,5,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Output only. The origin of the quota preference request.
RequestOrigin QuotaConfig_Origin `protobuf:"varint,6,opt,name=request_origin,json=requestOrigin,proto3,enum=google.api.cloudquotas.v1beta.QuotaConfig_Origin" json:"request_origin,omitempty"`
// contains filtered or unexported fields
}The preferred quota configuration.
func (*QuotaConfig) Descriptor
func (*QuotaConfig) Descriptor() ([]byte, []int)Deprecated: Use QuotaConfig.ProtoReflect.Descriptor instead.
func (*QuotaConfig) GetAnnotations
func (x *QuotaConfig) GetAnnotations() map[string]stringfunc (*QuotaConfig) GetGrantedValue
func (x *QuotaConfig) GetGrantedValue() *wrapperspb.Int64Valuefunc (*QuotaConfig) GetPreferredValue
func (x *QuotaConfig) GetPreferredValue() int64func (*QuotaConfig) GetRequestOrigin
func (x *QuotaConfig) GetRequestOrigin() QuotaConfig_Originfunc (*QuotaConfig) GetStateDetail
func (x *QuotaConfig) GetStateDetail() stringfunc (*QuotaConfig) GetTraceId
func (x *QuotaConfig) GetTraceId() stringfunc (*QuotaConfig) ProtoMessage
func (*QuotaConfig) ProtoMessage()func (*QuotaConfig) ProtoReflect
func (x *QuotaConfig) ProtoReflect() protoreflect.Messagefunc (*QuotaConfig) Reset
func (x *QuotaConfig) Reset()func (*QuotaConfig) String
func (x *QuotaConfig) String() stringQuotaConfig_Origin
type QuotaConfig_Origin int32The enumeration of the origins of quota preference requests.
QuotaConfig_ORIGIN_UNSPECIFIED, QuotaConfig_CLOUD_CONSOLE, QuotaConfig_AUTO_ADJUSTER
const (
// The unspecified value.
QuotaConfig_ORIGIN_UNSPECIFIED QuotaConfig_Origin = 0
// Created through Cloud Console.
QuotaConfig_CLOUD_CONSOLE QuotaConfig_Origin = 1
// Generated by automatic quota adjustment.
QuotaConfig_AUTO_ADJUSTER QuotaConfig_Origin = 2
)func (QuotaConfig_Origin) Descriptor
func (QuotaConfig_Origin) Descriptor() protoreflect.EnumDescriptorfunc (QuotaConfig_Origin) Enum
func (x QuotaConfig_Origin) Enum() *QuotaConfig_Originfunc (QuotaConfig_Origin) EnumDescriptor
func (QuotaConfig_Origin) EnumDescriptor() ([]byte, []int)Deprecated: Use QuotaConfig_Origin.Descriptor instead.
func (QuotaConfig_Origin) Number
func (x QuotaConfig_Origin) Number() protoreflect.EnumNumberfunc (QuotaConfig_Origin) String
func (x QuotaConfig_Origin) String() stringfunc (QuotaConfig_Origin) Type
func (QuotaConfig_Origin) Type() protoreflect.EnumTypeQuotaDetails
type QuotaDetails struct {
// The value currently in effect and being enforced.
Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
// Rollout information of this quota.
// This field is present only if the effective limit will change due to the
// ongoing rollout of the service config.
RolloutInfo *RolloutInfo `protobuf:"bytes,3,opt,name=rollout_info,json=rolloutInfo,proto3" json:"rollout_info,omitempty"`
// contains filtered or unexported fields
}The quota details for a map of dimensions.
func (*QuotaDetails) Descriptor
func (*QuotaDetails) Descriptor() ([]byte, []int)Deprecated: Use QuotaDetails.ProtoReflect.Descriptor instead.
func (*QuotaDetails) GetRolloutInfo
func (x *QuotaDetails) GetRolloutInfo() *RolloutInfofunc (*QuotaDetails) GetValue
func (x *QuotaDetails) GetValue() int64func (*QuotaDetails) ProtoMessage
func (*QuotaDetails) ProtoMessage()func (*QuotaDetails) ProtoReflect
func (x *QuotaDetails) ProtoReflect() protoreflect.Messagefunc (*QuotaDetails) Reset
func (x *QuotaDetails) Reset()func (*QuotaDetails) String
func (x *QuotaDetails) String() stringQuotaIncreaseEligibility
type QuotaIncreaseEligibility struct {
// Whether a higher quota value can be requested for the quota.
IsEligible bool `protobuf:"varint,1,opt,name=is_eligible,json=isEligible,proto3" json:"is_eligible,omitempty"`
// The reason of why it is ineligible to request increased value of the quota.
// If the is_eligible field is true, it defaults to
// INELIGIBILITY_REASON_UNSPECIFIED.
IneligibilityReason QuotaIncreaseEligibility_IneligibilityReason `protobuf:"varint,2,opt,name=ineligibility_reason,json=ineligibilityReason,proto3,enum=google.api.cloudquotas.v1beta.QuotaIncreaseEligibility_IneligibilityReason" json:"ineligibility_reason,omitempty"`
// contains filtered or unexported fields
}Eligibility information regarding requesting increase adjustment of a quota.
func (*QuotaIncreaseEligibility) Descriptor
func (*QuotaIncreaseEligibility) Descriptor() ([]byte, []int)Deprecated: Use QuotaIncreaseEligibility.ProtoReflect.Descriptor instead.
func (*QuotaIncreaseEligibility) GetIneligibilityReason
func (x *QuotaIncreaseEligibility) GetIneligibilityReason() QuotaIncreaseEligibility_IneligibilityReasonfunc (*QuotaIncreaseEligibility) GetIsEligible
func (x *QuotaIncreaseEligibility) GetIsEligible() boolfunc (*QuotaIncreaseEligibility) ProtoMessage
func (*QuotaIncreaseEligibility) ProtoMessage()func (*QuotaIncreaseEligibility) ProtoReflect
func (x *QuotaIncreaseEligibility) ProtoReflect() protoreflect.Messagefunc (*QuotaIncreaseEligibility) Reset
func (x *QuotaIncreaseEligibility) Reset()func (*QuotaIncreaseEligibility) String
func (x *QuotaIncreaseEligibility) String() stringQuotaIncreaseEligibility_IneligibilityReason
type QuotaIncreaseEligibility_IneligibilityReason int32The enumeration of reasons when it is ineligible to request increase adjustment.
QuotaIncreaseEligibility_INELIGIBILITY_REASON_UNSPECIFIED, QuotaIncreaseEligibility_NO_VALID_BILLING_ACCOUNT, QuotaIncreaseEligibility_NOT_SUPPORTED, QuotaIncreaseEligibility_NOT_ENOUGH_USAGE_HISTORY, QuotaIncreaseEligibility_OTHER
const (
// Default value when is_eligible is true.
QuotaIncreaseEligibility_INELIGIBILITY_REASON_UNSPECIFIED QuotaIncreaseEligibility_IneligibilityReason = 0
// The container is not linked with a valid billing account.
QuotaIncreaseEligibility_NO_VALID_BILLING_ACCOUNT QuotaIncreaseEligibility_IneligibilityReason = 1
// Quota increase is not supported for the quota.
QuotaIncreaseEligibility_NOT_SUPPORTED QuotaIncreaseEligibility_IneligibilityReason = 3
// There is not enough usage history to determine the eligibility.
QuotaIncreaseEligibility_NOT_ENOUGH_USAGE_HISTORY QuotaIncreaseEligibility_IneligibilityReason = 4
// Other reasons.
QuotaIncreaseEligibility_OTHER QuotaIncreaseEligibility_IneligibilityReason = 2
)func (QuotaIncreaseEligibility_IneligibilityReason) Descriptor
func (QuotaIncreaseEligibility_IneligibilityReason) Descriptor() protoreflect.EnumDescriptorfunc (QuotaIncreaseEligibility_IneligibilityReason) Enum
func (x QuotaIncreaseEligibility_IneligibilityReason) Enum() *QuotaIncreaseEligibility_IneligibilityReasonfunc (QuotaIncreaseEligibility_IneligibilityReason) EnumDescriptor
func (QuotaIncreaseEligibility_IneligibilityReason) EnumDescriptor() ([]byte, []int)Deprecated: Use QuotaIncreaseEligibility_IneligibilityReason.Descriptor instead.
func (QuotaIncreaseEligibility_IneligibilityReason) Number
func (x QuotaIncreaseEligibility_IneligibilityReason) Number() protoreflect.EnumNumberfunc (QuotaIncreaseEligibility_IneligibilityReason) String
func (x QuotaIncreaseEligibility_IneligibilityReason) String() stringfunc (QuotaIncreaseEligibility_IneligibilityReason) Type
func (QuotaIncreaseEligibility_IneligibilityReason) Type() protoreflect.EnumTypeQuotaInfo
type QuotaInfo struct {
// Resource name of this QuotaInfo.
// The ID component following "locations/" must be "global".
// For example,
// `projects/123/locations/global/services/compute.googleapis.com/quotaInfos/CpusPerProjectPerRegion`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The id of the quota, which is unquie within the service.
// For example, `CpusPerProjectPerRegion`
QuotaId string `protobuf:"bytes,2,opt,name=quota_id,json=quotaId,proto3" json:"quota_id,omitempty"`
// The metric of the quota. It specifies the resources consumption the quota
// is defined for.
// For example, `compute.googleapis.com/cpus`
Metric string `protobuf:"bytes,3,opt,name=metric,proto3" json:"metric,omitempty"`
// The name of the service in which the quota is defined.
// For example, `compute.googleapis.com`
Service string `protobuf:"bytes,4,opt,name=service,proto3" json:"service,omitempty"`
// Whether this is a precise quota. A precise quota is tracked with absolute
// precision. In contrast, an imprecise quota is not tracked with precision.
IsPrecise bool `protobuf:"varint,5,opt,name=is_precise,json=isPrecise,proto3" json:"is_precise,omitempty"`
// The reset time interval for the quota. Refresh interval applies to rate
// quota only.
// For example, "minute" for per minute, "day" for per day, or "10 seconds"
// for every 10 seconds.
RefreshInterval string `protobuf:"bytes,6,opt,name=refresh_interval,json=refreshInterval,proto3" json:"refresh_interval,omitempty"`
// The container type of the QuotaInfo.
ContainerType QuotaInfo_ContainerType `protobuf:"varint,7,opt,name=container_type,json=containerType,proto3,enum=google.api.cloudquotas.v1beta.QuotaInfo_ContainerType" json:"container_type,omitempty"`
// The dimensions the quota is defined on.
Dimensions []string `protobuf:"bytes,8,rep,name=dimensions,proto3" json:"dimensions,omitempty"`
// The display name of the quota metric
MetricDisplayName string `protobuf:"bytes,9,opt,name=metric_display_name,json=metricDisplayName,proto3" json:"metric_display_name,omitempty"`
// The display name of the quota.
QuotaDisplayName string `protobuf:"bytes,10,opt,name=quota_display_name,json=quotaDisplayName,proto3" json:"quota_display_name,omitempty"`
// The unit in which the metric value is reported, e.g., "MByte".
MetricUnit string `protobuf:"bytes,11,opt,name=metric_unit,json=metricUnit,proto3" json:"metric_unit,omitempty"`
// Whether it is eligible to request a higher quota value for this quota.
QuotaIncreaseEligibility *QuotaIncreaseEligibility `protobuf:"bytes,12,opt,name=quota_increase_eligibility,json=quotaIncreaseEligibility,proto3" json:"quota_increase_eligibility,omitempty"`
// Whether the quota value is fixed or adjustable
IsFixed bool `protobuf:"varint,13,opt,name=is_fixed,json=isFixed,proto3" json:"is_fixed,omitempty"`
// The collection of dimensions info ordered by their dimensions from more
// specific ones to less specific ones.
DimensionsInfos []*DimensionsInfo `protobuf:"bytes,14,rep,name=dimensions_infos,json=dimensionsInfos,proto3" json:"dimensions_infos,omitempty"`
// Whether the quota is a concurrent quota. Concurrent quotas are enforced
// on the total number of concurrent operations in flight at any given time.
IsConcurrent bool `protobuf:"varint,15,opt,name=is_concurrent,json=isConcurrent,proto3" json:"is_concurrent,omitempty"`
// URI to the page where users can request more quota for the cloud
// service—for example,
// https://console.cloud.google.com/iam-admin/quotas.
ServiceRequestQuotaUri string `protobuf:"bytes,17,opt,name=service_request_quota_uri,json=serviceRequestQuotaUri,proto3" json:"service_request_quota_uri,omitempty"`
// contains filtered or unexported fields
}QuotaInfo represents information about a particular quota for a given project, folder or organization.
func (*QuotaInfo) Descriptor
Deprecated: Use QuotaInfo.ProtoReflect.Descriptor instead.
func (*QuotaInfo) GetContainerType
func (x *QuotaInfo) GetContainerType() QuotaInfo_ContainerTypefunc (*QuotaInfo) GetDimensions
func (*QuotaInfo) GetDimensionsInfos
func (x *QuotaInfo) GetDimensionsInfos() []*DimensionsInfofunc (*QuotaInfo) GetIsConcurrent
func (*QuotaInfo) GetIsFixed
func (*QuotaInfo) GetIsPrecise
func (*QuotaInfo) GetMetric
func (*QuotaInfo) GetMetricDisplayName
func (*QuotaInfo) GetMetricUnit
func (*QuotaInfo) GetName
func (*QuotaInfo) GetQuotaDisplayName
func (*QuotaInfo) GetQuotaId
func (*QuotaInfo) GetQuotaIncreaseEligibility
func (x *QuotaInfo) GetQuotaIncreaseEligibility() *QuotaIncreaseEligibilityfunc (*QuotaInfo) GetRefreshInterval
func (*QuotaInfo) GetService
func (*QuotaInfo) GetServiceRequestQuotaUri
func (*QuotaInfo) ProtoMessage
func (*QuotaInfo) ProtoMessage()func (*QuotaInfo) ProtoReflect
func (x *QuotaInfo) ProtoReflect() protoreflect.Messagefunc (*QuotaInfo) Reset
func (x *QuotaInfo) Reset()func (*QuotaInfo) String
QuotaInfo_ContainerType
type QuotaInfo_ContainerType int32The enumeration of the types of a cloud resource container.
QuotaInfo_CONTAINER_TYPE_UNSPECIFIED, QuotaInfo_PROJECT, QuotaInfo_FOLDER, QuotaInfo_ORGANIZATION
const (
// Unspecified container type.
QuotaInfo_CONTAINER_TYPE_UNSPECIFIED QuotaInfo_ContainerType = 0
// consumer project
QuotaInfo_PROJECT QuotaInfo_ContainerType = 1
// folder
QuotaInfo_FOLDER QuotaInfo_ContainerType = 2
// organization
QuotaInfo_ORGANIZATION QuotaInfo_ContainerType = 3
)func (QuotaInfo_ContainerType) Descriptor
func (QuotaInfo_ContainerType) Descriptor() protoreflect.EnumDescriptorfunc (QuotaInfo_ContainerType) Enum
func (x QuotaInfo_ContainerType) Enum() *QuotaInfo_ContainerTypefunc (QuotaInfo_ContainerType) EnumDescriptor
func (QuotaInfo_ContainerType) EnumDescriptor() ([]byte, []int)Deprecated: Use QuotaInfo_ContainerType.Descriptor instead.
func (QuotaInfo_ContainerType) Number
func (x QuotaInfo_ContainerType) Number() protoreflect.EnumNumberfunc (QuotaInfo_ContainerType) String
func (x QuotaInfo_ContainerType) String() stringfunc (QuotaInfo_ContainerType) Type
func (QuotaInfo_ContainerType) Type() protoreflect.EnumTypeQuotaPreference
type QuotaPreference struct {
// Required except in the CREATE requests.
// The resource name of the quota preference.
// The path that follows `/locations` must be `/global`.
// For example:
// `projects/123/locations/global/quotaPreferences/my-config-for-us-east1`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Immutable. The dimensions that this quota preference applies to. The key of
// the map entry is the name of a dimension, such as `region`, `zone`,
// `network_id`, and the value of the map entry is the dimension value.
//
// If a dimension is missing from the map of dimensions, the quota preference
// applies to all the dimension values except for those that have other quota
// preferences configured for the specific value.
//
// Note: QuotaPreferences can only be applied across all values of `user` and
// `resource` dimension. Do not set values for `user` or `resource` in the
// dimension map.
//
// For example: `{"provider" : "Example Organization"}` where `provider` is a
// service-specific quota dimension and `Example Organization` is the provider
// name.
Dimensions map[string]string `protobuf:"bytes,2,rep,name=dimensions,proto3" json:"dimensions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Required. Preferred quota configuration.
QuotaConfig *QuotaConfig `protobuf:"bytes,3,opt,name=quota_config,json=quotaConfig,proto3" json:"quota_config,omitempty"`
// Optional. The current etag of the quota preference. If an etag is provided
// on update and does not match the current server's etag of the quota
// preference, the request will be blocked and an ABORTED error will be
// returned. See https://google.aip.dev/134#etags for more details on etags.
Etag string `protobuf:"bytes,4,opt,name=etag,proto3" json:"etag,omitempty"`
// Output only. Create time stamp
CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. Update time stamp
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Required. The name of the service to which the quota preference is applied.
Service string `protobuf:"bytes,7,opt,name=service,proto3" json:"service,omitempty"`
// Required. The id of the quota to which the quota preference is applied. A
// quota name is unique in the service. For example, `CpusPerProjectPerRegion`
QuotaId string `protobuf:"bytes,8,opt,name=quota_id,json=quotaId,proto3" json:"quota_id,omitempty"`
// Output only. Is the quota preference pending Google Cloud approval and
// fulfillment.
Reconciling bool `protobuf:"varint,10,opt,name=reconciling,proto3" json:"reconciling,omitempty"`
// The reason / justification for this quota preference.
Justification string `protobuf:"bytes,11,opt,name=justification,proto3" json:"justification,omitempty"`
// Input only. An email address that can be used to contact the user, in case
// Google Cloud needs more information to make a decision before additional
// quota can be granted.
//
// When requesting a quota increase, the email address is required.
// When requesting a quota decrease, the email address is optional.
// For example, the email address is optional when the
// `QuotaConfig.preferred_value` is smaller than the
// `QuotaDetails.reset_value`.
ContactEmail string `protobuf:"bytes,12,opt,name=contact_email,json=contactEmail,proto3" json:"contact_email,omitempty"`
// contains filtered or unexported fields
}QuotaPreference represents the preferred quota configuration specified for a project, folder or organization. There is only one QuotaPreference resource for a quota value targeting a unique set of dimensions.
func (*QuotaPreference) Descriptor
func (*QuotaPreference) Descriptor() ([]byte, []int)Deprecated: Use QuotaPreference.ProtoReflect.Descriptor instead.
func (*QuotaPreference) GetContactEmail
func (x *QuotaPreference) GetContactEmail() stringfunc (*QuotaPreference) GetCreateTime
func (x *QuotaPreference) GetCreateTime() *timestamppb.Timestampfunc (*QuotaPreference) GetDimensions
func (x *QuotaPreference) GetDimensions() map[string]stringfunc (*QuotaPreference) GetEtag
func (x *QuotaPreference) GetEtag() stringfunc (*QuotaPreference) GetJustification
func (x *QuotaPreference) GetJustification() stringfunc (*QuotaPreference) GetName
func (x *QuotaPreference) GetName() stringfunc (*QuotaPreference) GetQuotaConfig
func (x *QuotaPreference) GetQuotaConfig() *QuotaConfigfunc (*QuotaPreference) GetQuotaId
func (x *QuotaPreference) GetQuotaId() stringfunc (*QuotaPreference) GetReconciling
func (x *QuotaPreference) GetReconciling() boolfunc (*QuotaPreference) GetService
func (x *QuotaPreference) GetService() stringfunc (*QuotaPreference) GetUpdateTime
func (x *QuotaPreference) GetUpdateTime() *timestamppb.Timestampfunc (*QuotaPreference) ProtoMessage
func (*QuotaPreference) ProtoMessage()func (*QuotaPreference) ProtoReflect
func (x *QuotaPreference) ProtoReflect() protoreflect.Messagefunc (*QuotaPreference) Reset
func (x *QuotaPreference) Reset()func (*QuotaPreference) String
func (x *QuotaPreference) String() stringQuotaSafetyCheck
type QuotaSafetyCheck int32Enumerations of quota safety checks.
QuotaSafetyCheck_QUOTA_SAFETY_CHECK_UNSPECIFIED, QuotaSafetyCheck_QUOTA_DECREASE_BELOW_USAGE, QuotaSafetyCheck_QUOTA_DECREASE_PERCENTAGE_TOO_HIGH
const (
// Unspecified quota safety check.
QuotaSafetyCheck_QUOTA_SAFETY_CHECK_UNSPECIFIED QuotaSafetyCheck = 0
// Validates that a quota mutation would not cause the consumer's effective
// limit to be lower than the consumer's quota usage.
QuotaSafetyCheck_QUOTA_DECREASE_BELOW_USAGE QuotaSafetyCheck = 1
// Validates that a quota mutation would not cause the consumer's effective
// limit to decrease by more than 10 percent.
QuotaSafetyCheck_QUOTA_DECREASE_PERCENTAGE_TOO_HIGH QuotaSafetyCheck = 2
)func (QuotaSafetyCheck) Descriptor
func (QuotaSafetyCheck) Descriptor() protoreflect.EnumDescriptorfunc (QuotaSafetyCheck) Enum
func (x QuotaSafetyCheck) Enum() *QuotaSafetyCheckfunc (QuotaSafetyCheck) EnumDescriptor
func (QuotaSafetyCheck) EnumDescriptor() ([]byte, []int)Deprecated: Use QuotaSafetyCheck.Descriptor instead.
func (QuotaSafetyCheck) Number
func (x QuotaSafetyCheck) Number() protoreflect.EnumNumberfunc (QuotaSafetyCheck) String
func (x QuotaSafetyCheck) String() stringfunc (QuotaSafetyCheck) Type
func (QuotaSafetyCheck) Type() protoreflect.EnumTypeRolloutInfo
type RolloutInfo struct {
// Whether there is an ongoing rollout for a quota or not.
OngoingRollout bool `protobuf:"varint,1,opt,name=ongoing_rollout,json=ongoingRollout,proto3" json:"ongoing_rollout,omitempty"`
// contains filtered or unexported fields
}[Output only] Rollout information of a quota.
func (*RolloutInfo) Descriptor
func (*RolloutInfo) Descriptor() ([]byte, []int)Deprecated: Use RolloutInfo.ProtoReflect.Descriptor instead.
func (*RolloutInfo) GetOngoingRollout
func (x *RolloutInfo) GetOngoingRollout() boolfunc (*RolloutInfo) ProtoMessage
func (*RolloutInfo) ProtoMessage()func (*RolloutInfo) ProtoReflect
func (x *RolloutInfo) ProtoReflect() protoreflect.Messagefunc (*RolloutInfo) Reset
func (x *RolloutInfo) Reset()func (*RolloutInfo) String
func (x *RolloutInfo) String() stringUnimplementedCloudQuotasServer
type UnimplementedCloudQuotasServer struct {
}UnimplementedCloudQuotasServer should be embedded to have forward compatible implementations.
func (UnimplementedCloudQuotasServer) CreateQuotaPreference
func (UnimplementedCloudQuotasServer) CreateQuotaPreference(context.Context, *CreateQuotaPreferenceRequest) (*QuotaPreference, error)func (UnimplementedCloudQuotasServer) GetQuotaInfo
func (UnimplementedCloudQuotasServer) GetQuotaInfo(context.Context, *GetQuotaInfoRequest) (*QuotaInfo, error)func (UnimplementedCloudQuotasServer) GetQuotaPreference
func (UnimplementedCloudQuotasServer) GetQuotaPreference(context.Context, *GetQuotaPreferenceRequest) (*QuotaPreference, error)func (UnimplementedCloudQuotasServer) ListQuotaInfos
func (UnimplementedCloudQuotasServer) ListQuotaInfos(context.Context, *ListQuotaInfosRequest) (*ListQuotaInfosResponse, error)func (UnimplementedCloudQuotasServer) ListQuotaPreferences
func (UnimplementedCloudQuotasServer) ListQuotaPreferences(context.Context, *ListQuotaPreferencesRequest) (*ListQuotaPreferencesResponse, error)func (UnimplementedCloudQuotasServer) UpdateQuotaPreference
func (UnimplementedCloudQuotasServer) UpdateQuotaPreference(context.Context, *UpdateQuotaPreferenceRequest) (*QuotaPreference, error)UnimplementedQuotaAdjusterSettingsManagerServer
type UnimplementedQuotaAdjusterSettingsManagerServer struct {
}UnimplementedQuotaAdjusterSettingsManagerServer should be embedded to have forward compatible implementations.
func (UnimplementedQuotaAdjusterSettingsManagerServer) GetQuotaAdjusterSettings
func (UnimplementedQuotaAdjusterSettingsManagerServer) GetQuotaAdjusterSettings(context.Context, *GetQuotaAdjusterSettingsRequest) (*QuotaAdjusterSettings, error)func (UnimplementedQuotaAdjusterSettingsManagerServer) UpdateQuotaAdjusterSettings
func (UnimplementedQuotaAdjusterSettingsManagerServer) UpdateQuotaAdjusterSettings(context.Context, *UpdateQuotaAdjusterSettingsRequest) (*QuotaAdjusterSettings, error)UnsafeCloudQuotasServer
type UnsafeCloudQuotasServer interface {
// contains filtered or unexported methods
}UnsafeCloudQuotasServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CloudQuotasServer will result in compilation errors.
UnsafeQuotaAdjusterSettingsManagerServer
type UnsafeQuotaAdjusterSettingsManagerServer interface {
// contains filtered or unexported methods
}UnsafeQuotaAdjusterSettingsManagerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QuotaAdjusterSettingsManagerServer will result in compilation errors.
UpdateQuotaAdjusterSettingsRequest
type UpdateQuotaAdjusterSettingsRequest struct {
// Required. The QuotaAdjusterSettings to update.
QuotaAdjusterSettings *QuotaAdjusterSettings `protobuf:"bytes,1,opt,name=quota_adjuster_settings,json=quotaAdjusterSettings,proto3" json:"quota_adjuster_settings,omitempty"`
// Optional. The list of fields to update.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// Optional. If set to true, checks the syntax of the request but doesn't
// update the quota adjuster settings value. Note that although a request can
// be valid, that doesn't guarantee that the request will be fulfilled.
ValidateOnly bool `protobuf:"varint,3,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
// contains filtered or unexported fields
}Request for updating QuotaAdjusterSettings
func (*UpdateQuotaAdjusterSettingsRequest) Descriptor
func (*UpdateQuotaAdjusterSettingsRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateQuotaAdjusterSettingsRequest.ProtoReflect.Descriptor instead.
func (*UpdateQuotaAdjusterSettingsRequest) GetQuotaAdjusterSettings
func (x *UpdateQuotaAdjusterSettingsRequest) GetQuotaAdjusterSettings() *QuotaAdjusterSettingsfunc (*UpdateQuotaAdjusterSettingsRequest) GetUpdateMask
func (x *UpdateQuotaAdjusterSettingsRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateQuotaAdjusterSettingsRequest) GetValidateOnly
func (x *UpdateQuotaAdjusterSettingsRequest) GetValidateOnly() boolfunc (*UpdateQuotaAdjusterSettingsRequest) ProtoMessage
func (*UpdateQuotaAdjusterSettingsRequest) ProtoMessage()func (*UpdateQuotaAdjusterSettingsRequest) ProtoReflect
func (x *UpdateQuotaAdjusterSettingsRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateQuotaAdjusterSettingsRequest) Reset
func (x *UpdateQuotaAdjusterSettingsRequest) Reset()func (*UpdateQuotaAdjusterSettingsRequest) String
func (x *UpdateQuotaAdjusterSettingsRequest) String() stringUpdateQuotaPreferenceRequest
type UpdateQuotaPreferenceRequest struct {
// Optional. Field mask is used to specify the fields to be overwritten in the
// QuotaPreference resource by the update.
// The fields specified in the update_mask are relative to the resource, not
// the full request. A field will be overwritten if it is in the mask. If the
// user does not provide a mask then all fields will be overwritten.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// Required. The resource being updated
QuotaPreference *QuotaPreference `protobuf:"bytes,2,opt,name=quota_preference,json=quotaPreference,proto3" json:"quota_preference,omitempty"`
// Optional. If set to true, and the quota preference is not found, a new one
// will be created. In this situation, `update_mask` is ignored.
AllowMissing bool `protobuf:"varint,3,opt,name=allow_missing,json=allowMissing,proto3" json:"allow_missing,omitempty"`
// Optional. If set to true, validate the request, but do not actually update.
// Note that a request being valid does not mean that the request is
// guaranteed to be fulfilled.
ValidateOnly bool `protobuf:"varint,4,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"`
// The list of quota safety checks to be ignored.
IgnoreSafetyChecks []QuotaSafetyCheck `protobuf:"varint,5,rep,packed,name=ignore_safety_checks,json=ignoreSafetyChecks,proto3,enum=google.api.cloudquotas.v1beta.QuotaSafetyCheck" json:"ignore_safety_checks,omitempty"`
// contains filtered or unexported fields
}Message for updating a QuotaPreference
func (*UpdateQuotaPreferenceRequest) Descriptor
func (*UpdateQuotaPreferenceRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateQuotaPreferenceRequest.ProtoReflect.Descriptor instead.
func (*UpdateQuotaPreferenceRequest) GetAllowMissing
func (x *UpdateQuotaPreferenceRequest) GetAllowMissing() boolfunc (*UpdateQuotaPreferenceRequest) GetIgnoreSafetyChecks
func (x *UpdateQuotaPreferenceRequest) GetIgnoreSafetyChecks() []QuotaSafetyCheckfunc (*UpdateQuotaPreferenceRequest) GetQuotaPreference
func (x *UpdateQuotaPreferenceRequest) GetQuotaPreference() *QuotaPreferencefunc (*UpdateQuotaPreferenceRequest) GetUpdateMask
func (x *UpdateQuotaPreferenceRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateQuotaPreferenceRequest) GetValidateOnly
func (x *UpdateQuotaPreferenceRequest) GetValidateOnly() boolfunc (*UpdateQuotaPreferenceRequest) ProtoMessage
func (*UpdateQuotaPreferenceRequest) ProtoMessage()func (*UpdateQuotaPreferenceRequest) ProtoReflect
func (x *UpdateQuotaPreferenceRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateQuotaPreferenceRequest) Reset
func (x *UpdateQuotaPreferenceRequest) Reset()func (*UpdateQuotaPreferenceRequest) String
func (x *UpdateQuotaPreferenceRequest) String() string