Documentation ¶
Overview ¶
Package billing is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterBillingHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterBillingHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BillingClient) error
- func RegisterBillingHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterBillingHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BillingServer) error
- func RegisterBillingServer(s grpc.ServiceRegistrar, srv BillingServer)
- type AccessGroup
- func (*AccessGroup) Descriptor() ([]byte, []int)deprecated
- func (x *AccessGroup) GetAccessGroupDescription() string
- func (x *AccessGroup) GetAccessGroupId() string
- func (x *AccessGroup) GetAccessGroupName() string
- func (x *AccessGroup) GetBillingGroups() []*BillingGroup
- func (*AccessGroup) ProtoMessage()
- func (x *AccessGroup) ProtoReflect() protoreflect.Message
- func (x *AccessGroup) Reset()
- func (x *AccessGroup) String() string
- type AwsCalculationHistory
- func (*AwsCalculationHistory) Descriptor() ([]byte, []int)deprecated
- func (x *AwsCalculationHistory) GetAccounts() []*AwsCalculationHistory_Account
- func (x *AwsCalculationHistory) GetBillingGroupId() string
- func (x *AwsCalculationHistory) GetBillingInternalId() string
- func (x *AwsCalculationHistory) GetMonth() string
- func (*AwsCalculationHistory) ProtoMessage()
- func (x *AwsCalculationHistory) ProtoReflect() protoreflect.Message
- func (x *AwsCalculationHistory) Reset()
- func (x *AwsCalculationHistory) String() string
- type AwsCalculationHistory_Account
- func (*AwsCalculationHistory_Account) Descriptor() ([]byte, []int)deprecated
- func (x *AwsCalculationHistory_Account) GetAccountId() string
- func (x *AwsCalculationHistory_Account) GetHistory() []*AwsCalculationHistory_Account_History
- func (*AwsCalculationHistory_Account) ProtoMessage()
- func (x *AwsCalculationHistory_Account) ProtoReflect() protoreflect.Message
- func (x *AwsCalculationHistory_Account) Reset()
- func (x *AwsCalculationHistory_Account) String() string
- type AwsCalculationHistory_Account_History
- func (*AwsCalculationHistory_Account_History) Descriptor() ([]byte, []int)deprecated
- func (x *AwsCalculationHistory_Account_History) GetTimestamp() string
- func (x *AwsCalculationHistory_Account_History) GetTrigger() string
- func (*AwsCalculationHistory_Account_History) ProtoMessage()
- func (x *AwsCalculationHistory_Account_History) ProtoReflect() protoreflect.Message
- func (x *AwsCalculationHistory_Account_History) Reset()
- func (x *AwsCalculationHistory_Account_History) String() string
- type BillingClient
- type BillingGroup
- func (*BillingGroup) Descriptor() ([]byte, []int)deprecated
- func (x *BillingGroup) GetAccounts() []*api.Account
- func (x *BillingGroup) GetBillingGroupId() string
- func (x *BillingGroup) GetBillingGroupName() string
- func (x *BillingGroup) GetBillingInternalId() string
- func (x *BillingGroup) GetInvoiceSettings() *BillingGroupInvoiceSettings
- func (*BillingGroup) ProtoMessage()
- func (x *BillingGroup) ProtoReflect() protoreflect.Message
- func (x *BillingGroup) Reset()
- func (x *BillingGroup) String() string
- type BillingGroupInvoiceSettings
- func (*BillingGroupInvoiceSettings) Descriptor() ([]byte, []int)deprecated
- func (x *BillingGroupInvoiceSettings) GetAws() *BillingGroupVendoredInvoiceSetting
- func (x *BillingGroupInvoiceSettings) GetAzure() *BillingGroupVendoredInvoiceSetting
- func (x *BillingGroupInvoiceSettings) GetGcp() *BillingGroupVendoredInvoiceSetting
- func (*BillingGroupInvoiceSettings) ProtoMessage()
- func (x *BillingGroupInvoiceSettings) ProtoReflect() protoreflect.Message
- func (x *BillingGroupInvoiceSettings) Reset()
- func (x *BillingGroupInvoiceSettings) String() string
- type BillingGroupVendoredInvoiceSetting
- func (*BillingGroupVendoredInvoiceSetting) Descriptor() ([]byte, []int)deprecated
- func (x *BillingGroupVendoredInvoiceSetting) GetCalcType() string
- func (x *BillingGroupVendoredInvoiceSetting) GetCurrency() string
- func (x *BillingGroupVendoredInvoiceSetting) GetDiscountCalcLogic() string
- func (x *BillingGroupVendoredInvoiceSetting) GetDiscountRate() float64
- func (x *BillingGroupVendoredInvoiceSetting) GetDiscountTargetUsage() string
- func (x *BillingGroupVendoredInvoiceSetting) GetSubstitutionFee() string
- func (x *BillingGroupVendoredInvoiceSetting) GetSubstitutionFeeCalcTarget() string
- func (x *BillingGroupVendoredInvoiceSetting) GetSubstitutionFeeCalcType() string
- func (x *BillingGroupVendoredInvoiceSetting) GetSubstitutionFeeTargetUsage() string
- func (x *BillingGroupVendoredInvoiceSetting) GetSubstitutionFix() float64
- func (x *BillingGroupVendoredInvoiceSetting) GetSubstitutionRate() float64
- func (x *BillingGroupVendoredInvoiceSetting) GetSupportAmountTarget() string
- func (x *BillingGroupVendoredInvoiceSetting) GetSupportFee() string
- func (x *BillingGroupVendoredInvoiceSetting) GetSupportFeeCalcTarget() string
- func (x *BillingGroupVendoredInvoiceSetting) GetSupportFix() float64
- func (x *BillingGroupVendoredInvoiceSetting) GetSupportRate() float64
- func (x *BillingGroupVendoredInvoiceSetting) GetTaxRate() float64
- func (*BillingGroupVendoredInvoiceSetting) ProtoMessage()
- func (x *BillingGroupVendoredInvoiceSetting) ProtoReflect() protoreflect.Message
- func (x *BillingGroupVendoredInvoiceSetting) Reset()
- func (x *BillingGroupVendoredInvoiceSetting) String() string
- type BillingServer
- type Billing_ListAwsCalculationHistoryClient
- type Billing_ListAwsCalculationHistoryServer
- type Billing_ListBillingGroupsClient
- type Billing_ListBillingGroupsServer
- type Billing_ListUsageCostsDriftClient
- type Billing_ListUsageCostsDriftServer
- type ClientOptions
- type CreateBillingGroupRequest
- func (*CreateBillingGroupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateBillingGroupRequest) GetAddress() string
- func (x *CreateBillingGroupRequest) GetBillingGroupId() string
- func (x *CreateBillingGroupRequest) GetBillingGroupName() string
- func (x *CreateBillingGroupRequest) GetBillingTitle() string
- func (x *CreateBillingGroupRequest) GetCompanyName() string
- func (x *CreateBillingGroupRequest) GetDisplayCost() string
- func (x *CreateBillingGroupRequest) GetExchangeRateType() string
- func (x *CreateBillingGroupRequest) GetInvoices() *CreateBillingGroupRequestInvoice
- func (x *CreateBillingGroupRequest) GetLanguage() string
- func (x *CreateBillingGroupRequest) GetPersonal() string
- func (x *CreateBillingGroupRequest) GetPhoneNumber() string
- func (x *CreateBillingGroupRequest) GetPostalCode() string
- func (x *CreateBillingGroupRequest) GetProjectId() string
- func (x *CreateBillingGroupRequest) GetRemarks() string
- func (*CreateBillingGroupRequest) ProtoMessage()
- func (x *CreateBillingGroupRequest) ProtoReflect() protoreflect.Message
- func (x *CreateBillingGroupRequest) Reset()
- func (x *CreateBillingGroupRequest) String() string
- type CreateBillingGroupRequestInvoice
- func (*CreateBillingGroupRequestInvoice) Descriptor() ([]byte, []int)deprecated
- func (x *CreateBillingGroupRequestInvoice) GetAws() *CreateBillingGroupRequestInvoiceVendor
- func (x *CreateBillingGroupRequestInvoice) GetAzure() *CreateBillingGroupRequestInvoiceVendor
- func (x *CreateBillingGroupRequestInvoice) GetGcp() *CreateBillingGroupRequestInvoiceVendor
- func (*CreateBillingGroupRequestInvoice) ProtoMessage()
- func (x *CreateBillingGroupRequestInvoice) ProtoReflect() protoreflect.Message
- func (x *CreateBillingGroupRequestInvoice) Reset()
- func (x *CreateBillingGroupRequestInvoice) String() string
- type CreateBillingGroupRequestInvoiceVendor
- func (*CreateBillingGroupRequestInvoiceVendor) Descriptor() ([]byte, []int)deprecated
- func (x *CreateBillingGroupRequestInvoiceVendor) GetCalcType() string
- func (x *CreateBillingGroupRequestInvoiceVendor) GetCurrency() string
- func (x *CreateBillingGroupRequestInvoiceVendor) GetDiscountCalcLogic() string
- func (x *CreateBillingGroupRequestInvoiceVendor) GetDiscountRate() float64
- func (x *CreateBillingGroupRequestInvoiceVendor) GetDiscountTargetUsage() string
- func (x *CreateBillingGroupRequestInvoiceVendor) GetSubstitutionFee() string
- func (x *CreateBillingGroupRequestInvoiceVendor) GetSubstitutionFeeCalcTarget() string
- func (x *CreateBillingGroupRequestInvoiceVendor) GetSubstitutionFeeCalcType() string
- func (x *CreateBillingGroupRequestInvoiceVendor) GetSubstitutionFeeTargetUsage() string
- func (x *CreateBillingGroupRequestInvoiceVendor) GetSubstitutionFix() float64
- func (x *CreateBillingGroupRequestInvoiceVendor) GetSubstitutionRate() float64
- func (x *CreateBillingGroupRequestInvoiceVendor) GetSupportAmountTarget() string
- func (x *CreateBillingGroupRequestInvoiceVendor) GetSupportFee() string
- func (x *CreateBillingGroupRequestInvoiceVendor) GetSupportFeeCalcTarget() string
- func (x *CreateBillingGroupRequestInvoiceVendor) GetSupportFix() float64
- func (x *CreateBillingGroupRequestInvoiceVendor) GetSupportRate() float64
- func (x *CreateBillingGroupRequestInvoiceVendor) GetTaxRate() float64
- func (*CreateBillingGroupRequestInvoiceVendor) ProtoMessage()
- func (x *CreateBillingGroupRequestInvoiceVendor) ProtoReflect() protoreflect.Message
- func (x *CreateBillingGroupRequestInvoiceVendor) Reset()
- func (x *CreateBillingGroupRequestInvoiceVendor) String() string
- type GetAccessGroupRequest
- func (*GetAccessGroupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAccessGroupRequest) GetAccessGroupId() string
- func (*GetAccessGroupRequest) ProtoMessage()
- func (x *GetAccessGroupRequest) ProtoReflect() protoreflect.Message
- func (x *GetAccessGroupRequest) Reset()
- func (x *GetAccessGroupRequest) String() string
- type GetAccessGroupResponse
- func (*GetAccessGroupResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAccessGroupResponse) GetAccessGroup() *AccessGroup
- func (*GetAccessGroupResponse) ProtoMessage()
- func (x *GetAccessGroupResponse) ProtoReflect() protoreflect.Message
- func (x *GetAccessGroupResponse) Reset()
- func (x *GetAccessGroupResponse) String() string
- type GetBillingGroupRequest
- func (*GetBillingGroupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetBillingGroupRequest) GetBillingInternalId() string
- func (*GetBillingGroupRequest) ProtoMessage()
- func (x *GetBillingGroupRequest) ProtoReflect() protoreflect.Message
- func (x *GetBillingGroupRequest) Reset()
- func (x *GetBillingGroupRequest) String() string
- type GetBillingGroupResponse
- func (*GetBillingGroupResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetBillingGroupResponse) GetBillingGroup() *BillingGroup
- func (*GetBillingGroupResponse) ProtoMessage()
- func (x *GetBillingGroupResponse) ProtoReflect() protoreflect.Message
- func (x *GetBillingGroupResponse) Reset()
- func (x *GetBillingGroupResponse) String() string
- type GrpcClient
- type ListAwsCalculationHistoryRequest
- func (*ListAwsCalculationHistoryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListAwsCalculationHistoryRequest) GetMonth() string
- func (*ListAwsCalculationHistoryRequest) ProtoMessage()
- func (x *ListAwsCalculationHistoryRequest) ProtoReflect() protoreflect.Message
- func (x *ListAwsCalculationHistoryRequest) Reset()
- func (x *ListAwsCalculationHistoryRequest) String() string
- type ListBillingGroupsRequest
- type ListUsageCostsDriftRequest
- func (*ListUsageCostsDriftRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListUsageCostsDriftRequest) GetBillingInternalId() string
- func (x *ListUsageCostsDriftRequest) GetMonth() string
- func (x *ListUsageCostsDriftRequest) GetVendor() string
- func (*ListUsageCostsDriftRequest) ProtoMessage()
- func (x *ListUsageCostsDriftRequest) ProtoReflect() protoreflect.Message
- func (x *ListUsageCostsDriftRequest) Reset()
- func (x *ListUsageCostsDriftRequest) String() string
- type UnimplementedBillingServer
- func (UnimplementedBillingServer) CreateBillingGroup(context.Context, *CreateBillingGroupRequest) (*BillingGroup, error)
- func (UnimplementedBillingServer) GetAccessGroup(context.Context, *GetAccessGroupRequest) (*GetAccessGroupResponse, error)
- func (UnimplementedBillingServer) GetBillingGroup(context.Context, *GetBillingGroupRequest) (*GetBillingGroupResponse, error)
- func (UnimplementedBillingServer) ListAwsCalculationHistory(*ListAwsCalculationHistoryRequest, Billing_ListAwsCalculationHistoryServer) error
- func (UnimplementedBillingServer) ListBillingGroups(*ListBillingGroupsRequest, Billing_ListBillingGroupsServer) error
- func (UnimplementedBillingServer) ListUsageCostsDrift(*ListUsageCostsDriftRequest, Billing_ListUsageCostsDriftServer) error
- type UnsafeBillingServer
- type UsageCostsDrift
- func (*UsageCostsDrift) Descriptor() ([]byte, []int)deprecated
- func (x *UsageCostsDrift) GetAccount() string
- func (x *UsageCostsDrift) GetBillingGroupId() string
- func (x *UsageCostsDrift) GetBillingInternalId() string
- func (x *UsageCostsDrift) GetCurrent() float64
- func (x *UsageCostsDrift) GetDiff() float64
- func (x *UsageCostsDrift) GetSnapshot() float64
- func (*UsageCostsDrift) ProtoMessage()
- func (x *UsageCostsDrift) ProtoReflect() protoreflect.Message
- func (x *UsageCostsDrift) Reset()
- func (x *UsageCostsDrift) String() string
Constants ¶
This section is empty.
Variables ¶
var Billing_ServiceDesc = grpc.ServiceDesc{ ServiceName: "blueapi.billing.v1.Billing", HandlerType: (*BillingServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateBillingGroup", Handler: _Billing_CreateBillingGroup_Handler, }, { MethodName: "GetBillingGroup", Handler: _Billing_GetBillingGroup_Handler, }, { MethodName: "GetAccessGroup", Handler: _Billing_GetAccessGroup_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "ListBillingGroups", Handler: _Billing_ListBillingGroups_Handler, ServerStreams: true, }, { StreamName: "ListAwsCalculationHistory", Handler: _Billing_ListAwsCalculationHistory_Handler, ServerStreams: true, }, { StreamName: "ListUsageCostsDrift", Handler: _Billing_ListUsageCostsDrift_Handler, ServerStreams: true, }, }, Metadata: "billing/v1/billing.proto", }
Billing_ServiceDesc is the grpc.ServiceDesc for Billing service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_billing_v1_billing_proto protoreflect.FileDescriptor
Functions ¶
func RegisterBillingHandler ¶
func RegisterBillingHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterBillingHandler registers the http handlers for service Billing to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterBillingHandlerClient ¶
func RegisterBillingHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BillingClient) error
RegisterBillingHandlerClient registers the http handlers for service Billing to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "BillingClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "BillingClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "BillingClient" to call the correct interceptors.
func RegisterBillingHandlerFromEndpoint ¶
func RegisterBillingHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterBillingHandlerFromEndpoint is same as RegisterBillingHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterBillingHandlerServer ¶
func RegisterBillingHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BillingServer) error
RegisterBillingHandlerServer registers the http handlers for service Billing to "mux". UnaryRPC :call BillingServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterBillingHandlerFromEndpoint instead.
func RegisterBillingServer ¶
func RegisterBillingServer(s grpc.ServiceRegistrar, srv BillingServer)
Types ¶
type AccessGroup ¶ added in v0.51.8
type AccessGroup struct { // The ID of the access group. AccessGroupId string `protobuf:"bytes,1,opt,name=accessGroupId,proto3" json:"accessGroupId,omitempty"` // The name of the access group. AccessGroupName string `protobuf:"bytes,2,opt,name=accessGroupName,proto3" json:"accessGroupName,omitempty"` // A description of the access group. AccessGroupDescription string `protobuf:"bytes,3,opt,name=accessGroupDescription,proto3" json:"accessGroupDescription,omitempty"` // A list of billing groups contained in the access group. BillingGroups []*BillingGroup `protobuf:"bytes,4,rep,name=billingGroups,proto3" json:"billingGroups,omitempty"` // contains filtered or unexported fields }
Defines the fields associated with a Wave access group.
func (*AccessGroup) Descriptor
deprecated
added in
v0.51.8
func (*AccessGroup) Descriptor() ([]byte, []int)
Deprecated: Use AccessGroup.ProtoReflect.Descriptor instead.
func (*AccessGroup) GetAccessGroupDescription ¶ added in v0.51.8
func (x *AccessGroup) GetAccessGroupDescription() string
func (*AccessGroup) GetAccessGroupId ¶ added in v0.51.8
func (x *AccessGroup) GetAccessGroupId() string
func (*AccessGroup) GetAccessGroupName ¶ added in v0.51.8
func (x *AccessGroup) GetAccessGroupName() string
func (*AccessGroup) GetBillingGroups ¶ added in v0.51.8
func (x *AccessGroup) GetBillingGroups() []*BillingGroup
func (*AccessGroup) ProtoMessage ¶ added in v0.51.8
func (*AccessGroup) ProtoMessage()
func (*AccessGroup) ProtoReflect ¶ added in v0.51.8
func (x *AccessGroup) ProtoReflect() protoreflect.Message
func (*AccessGroup) Reset ¶ added in v0.51.8
func (x *AccessGroup) Reset()
func (*AccessGroup) String ¶ added in v0.51.8
func (x *AccessGroup) String() string
type AwsCalculationHistory ¶ added in v0.57.0
type AwsCalculationHistory struct { BillingInternalId string `protobuf:"bytes,1,opt,name=billingInternalId,proto3" json:"billingInternalId,omitempty"` BillingGroupId string `protobuf:"bytes,2,opt,name=billingGroupId,proto3" json:"billingGroupId,omitempty"` Month string `protobuf:"bytes,3,opt,name=month,proto3" json:"month,omitempty"` Accounts []*AwsCalculationHistory_Account `protobuf:"bytes,4,rep,name=accounts,proto3" json:"accounts,omitempty"` // contains filtered or unexported fields }
Streaming response message for the Billing.ListAwsCalculationHistory rpc.
func (*AwsCalculationHistory) Descriptor
deprecated
added in
v0.57.0
func (*AwsCalculationHistory) Descriptor() ([]byte, []int)
Deprecated: Use AwsCalculationHistory.ProtoReflect.Descriptor instead.
func (*AwsCalculationHistory) GetAccounts ¶ added in v0.57.0
func (x *AwsCalculationHistory) GetAccounts() []*AwsCalculationHistory_Account
func (*AwsCalculationHistory) GetBillingGroupId ¶ added in v0.57.1
func (x *AwsCalculationHistory) GetBillingGroupId() string
func (*AwsCalculationHistory) GetBillingInternalId ¶ added in v0.57.0
func (x *AwsCalculationHistory) GetBillingInternalId() string
func (*AwsCalculationHistory) GetMonth ¶ added in v0.57.0
func (x *AwsCalculationHistory) GetMonth() string
func (*AwsCalculationHistory) ProtoMessage ¶ added in v0.57.0
func (*AwsCalculationHistory) ProtoMessage()
func (*AwsCalculationHistory) ProtoReflect ¶ added in v0.57.0
func (x *AwsCalculationHistory) ProtoReflect() protoreflect.Message
func (*AwsCalculationHistory) Reset ¶ added in v0.57.0
func (x *AwsCalculationHistory) Reset()
func (*AwsCalculationHistory) String ¶ added in v0.57.0
func (x *AwsCalculationHistory) String() string
type AwsCalculationHistory_Account ¶ added in v0.57.0
type AwsCalculationHistory_Account struct { AccountId string `protobuf:"bytes,1,opt,name=accountId,proto3" json:"accountId,omitempty"` History []*AwsCalculationHistory_Account_History `protobuf:"bytes,2,rep,name=history,proto3" json:"history,omitempty"` // contains filtered or unexported fields }
func (*AwsCalculationHistory_Account) Descriptor
deprecated
added in
v0.57.0
func (*AwsCalculationHistory_Account) Descriptor() ([]byte, []int)
Deprecated: Use AwsCalculationHistory_Account.ProtoReflect.Descriptor instead.
func (*AwsCalculationHistory_Account) GetAccountId ¶ added in v0.57.0
func (x *AwsCalculationHistory_Account) GetAccountId() string
func (*AwsCalculationHistory_Account) GetHistory ¶ added in v0.57.0
func (x *AwsCalculationHistory_Account) GetHistory() []*AwsCalculationHistory_Account_History
func (*AwsCalculationHistory_Account) ProtoMessage ¶ added in v0.57.0
func (*AwsCalculationHistory_Account) ProtoMessage()
func (*AwsCalculationHistory_Account) ProtoReflect ¶ added in v0.57.0
func (x *AwsCalculationHistory_Account) ProtoReflect() protoreflect.Message
func (*AwsCalculationHistory_Account) Reset ¶ added in v0.57.0
func (x *AwsCalculationHistory_Account) Reset()
func (*AwsCalculationHistory_Account) String ¶ added in v0.57.0
func (x *AwsCalculationHistory_Account) String() string
type AwsCalculationHistory_Account_History ¶ added in v0.57.0
type AwsCalculationHistory_Account_History struct { // Calculation timestamp in UTC, RFC3339. Timestamp string `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Calculation trigger. Either `invoice` or `cur`. Trigger string `protobuf:"bytes,2,opt,name=trigger,proto3" json:"trigger,omitempty"` // contains filtered or unexported fields }
func (*AwsCalculationHistory_Account_History) Descriptor
deprecated
added in
v0.57.0
func (*AwsCalculationHistory_Account_History) Descriptor() ([]byte, []int)
Deprecated: Use AwsCalculationHistory_Account_History.ProtoReflect.Descriptor instead.
func (*AwsCalculationHistory_Account_History) GetTimestamp ¶ added in v0.57.0
func (x *AwsCalculationHistory_Account_History) GetTimestamp() string
func (*AwsCalculationHistory_Account_History) GetTrigger ¶ added in v0.57.0
func (x *AwsCalculationHistory_Account_History) GetTrigger() string
func (*AwsCalculationHistory_Account_History) ProtoMessage ¶ added in v0.57.0
func (*AwsCalculationHistory_Account_History) ProtoMessage()
func (*AwsCalculationHistory_Account_History) ProtoReflect ¶ added in v0.57.0
func (x *AwsCalculationHistory_Account_History) ProtoReflect() protoreflect.Message
func (*AwsCalculationHistory_Account_History) Reset ¶ added in v0.57.0
func (x *AwsCalculationHistory_Account_History) Reset()
func (*AwsCalculationHistory_Account_History) String ¶ added in v0.57.0
func (x *AwsCalculationHistory_Account_History) String() string
type BillingClient ¶
type BillingClient interface { // Lists all billing groups. ListBillingGroups(ctx context.Context, in *ListBillingGroupsRequest, opts ...grpc.CallOption) (Billing_ListBillingGroupsClient, error) // Registers a billing group. CreateBillingGroup(ctx context.Context, in *CreateBillingGroupRequest, opts ...grpc.CallOption) (*BillingGroup, error) // Gets a billing group. GetBillingGroup(ctx context.Context, in *GetBillingGroupRequest, opts ...grpc.CallOption) (*GetBillingGroupResponse, error) // WORK-IN-PROGRESS: Gets an access group. GetAccessGroup(ctx context.Context, in *GetAccessGroupRequest, opts ...grpc.CallOption) (*GetAccessGroupResponse, error) // Reads the calculation history of all accounts in your billing groups. Only available in Ripple. ListAwsCalculationHistory(ctx context.Context, in *ListAwsCalculationHistoryRequest, opts ...grpc.CallOption) (Billing_ListAwsCalculationHistoryClient, error) // WORK-IN-PROGRESS: Returns a list of accounts that have been updated after invoice along with the differences in costs, if any. Only available in Ripple. ListUsageCostsDrift(ctx context.Context, in *ListUsageCostsDriftRequest, opts ...grpc.CallOption) (Billing_ListUsageCostsDriftClient, error) }
BillingClient is the client API for Billing 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 NewBillingClient ¶
func NewBillingClient(cc grpc.ClientConnInterface) BillingClient
type BillingGroup ¶
type BillingGroup struct { // The billing group's internal id. BillingInternalId string `protobuf:"bytes,1,opt,name=billingInternalId,proto3" json:"billingInternalId,omitempty"` // The billing group id. BillingGroupId string `protobuf:"bytes,2,opt,name=billingGroupId,proto3" json:"billingGroupId,omitempty"` // The billing group name. BillingGroupName string `protobuf:"bytes,3,opt,name=billingGroupName,proto3" json:"billingGroupName,omitempty"` // List of all accounts Accounts []*api.Account `protobuf:"bytes,4,rep,name=accounts,proto3" json:"accounts,omitempty"` // The invoice settings for this billing group. InvoiceSettings *BillingGroupInvoiceSettings `protobuf:"bytes,5,opt,name=invoiceSettings,proto3" json:"invoiceSettings,omitempty"` // contains filtered or unexported fields }
func (*BillingGroup) Descriptor
deprecated
func (*BillingGroup) Descriptor() ([]byte, []int)
Deprecated: Use BillingGroup.ProtoReflect.Descriptor instead.
func (*BillingGroup) GetAccounts ¶ added in v0.36.3
func (x *BillingGroup) GetAccounts() []*api.Account
func (*BillingGroup) GetBillingGroupId ¶
func (x *BillingGroup) GetBillingGroupId() string
func (*BillingGroup) GetBillingGroupName ¶
func (x *BillingGroup) GetBillingGroupName() string
func (*BillingGroup) GetBillingInternalId ¶ added in v0.32.0
func (x *BillingGroup) GetBillingInternalId() string
func (*BillingGroup) GetInvoiceSettings ¶ added in v0.57.3
func (x *BillingGroup) GetInvoiceSettings() *BillingGroupInvoiceSettings
func (*BillingGroup) ProtoMessage ¶
func (*BillingGroup) ProtoMessage()
func (*BillingGroup) ProtoReflect ¶
func (x *BillingGroup) ProtoReflect() protoreflect.Message
func (*BillingGroup) Reset ¶
func (x *BillingGroup) Reset()
func (*BillingGroup) String ¶
func (x *BillingGroup) String() string
type BillingGroupInvoiceSettings ¶ added in v0.57.3
type BillingGroupInvoiceSettings struct { // AWS invoice settings Aws *BillingGroupVendoredInvoiceSetting `protobuf:"bytes,1,opt,name=aws,proto3" json:"aws,omitempty"` // Azure invoice settings Azure *BillingGroupVendoredInvoiceSetting `protobuf:"bytes,2,opt,name=azure,proto3" json:"azure,omitempty"` // GCP invoice settings Gcp *BillingGroupVendoredInvoiceSetting `protobuf:"bytes,3,opt,name=gcp,proto3" json:"gcp,omitempty"` // contains filtered or unexported fields }
Invoice settings for a billing group.
func (*BillingGroupInvoiceSettings) Descriptor
deprecated
added in
v0.57.3
func (*BillingGroupInvoiceSettings) Descriptor() ([]byte, []int)
Deprecated: Use BillingGroupInvoiceSettings.ProtoReflect.Descriptor instead.
func (*BillingGroupInvoiceSettings) GetAws ¶ added in v0.57.3
func (x *BillingGroupInvoiceSettings) GetAws() *BillingGroupVendoredInvoiceSetting
func (*BillingGroupInvoiceSettings) GetAzure ¶ added in v0.57.3
func (x *BillingGroupInvoiceSettings) GetAzure() *BillingGroupVendoredInvoiceSetting
func (*BillingGroupInvoiceSettings) GetGcp ¶ added in v0.57.3
func (x *BillingGroupInvoiceSettings) GetGcp() *BillingGroupVendoredInvoiceSetting
func (*BillingGroupInvoiceSettings) ProtoMessage ¶ added in v0.57.3
func (*BillingGroupInvoiceSettings) ProtoMessage()
func (*BillingGroupInvoiceSettings) ProtoReflect ¶ added in v0.57.3
func (x *BillingGroupInvoiceSettings) ProtoReflect() protoreflect.Message
func (*BillingGroupInvoiceSettings) Reset ¶ added in v0.57.3
func (x *BillingGroupInvoiceSettings) Reset()
func (*BillingGroupInvoiceSettings) String ¶ added in v0.57.3
func (x *BillingGroupInvoiceSettings) String() string
type BillingGroupVendoredInvoiceSetting ¶ added in v0.57.3
type BillingGroupVendoredInvoiceSetting struct { CalcType string `protobuf:"bytes,1,opt,name=calcType,proto3" json:"calcType,omitempty"` DiscountRate float64 `protobuf:"fixed64,2,opt,name=discountRate,proto3" json:"discountRate,omitempty"` SubstitutionFee string `protobuf:"bytes,3,opt,name=substitutionFee,proto3" json:"substitutionFee,omitempty"` SubstitutionFix float64 `protobuf:"fixed64,4,opt,name=substitutionFix,proto3" json:"substitutionFix,omitempty"` SubstitutionRate float64 `protobuf:"fixed64,5,opt,name=substitutionRate,proto3" json:"substitutionRate,omitempty"` SupportFee string `protobuf:"bytes,6,opt,name=supportFee,proto3" json:"supportFee,omitempty"` SupportRate float64 `protobuf:"fixed64,7,opt,name=supportRate,proto3" json:"supportRate,omitempty"` SupportFix float64 `protobuf:"fixed64,8,opt,name=supportFix,proto3" json:"supportFix,omitempty"` TaxRate float64 `protobuf:"fixed64,9,opt,name=taxRate,proto3" json:"taxRate,omitempty"` Currency string `protobuf:"bytes,10,opt,name=currency,proto3" json:"currency,omitempty"` DiscountTargetUsage string `protobuf:"bytes,11,opt,name=discountTargetUsage,proto3" json:"discountTargetUsage,omitempty"` SubstitutionFeeTargetUsage string `protobuf:"bytes,12,opt,name=substitutionFeeTargetUsage,proto3" json:"substitutionFeeTargetUsage,omitempty"` DiscountCalcLogic string `protobuf:"bytes,13,opt,name=discountCalcLogic,proto3" json:"discountCalcLogic,omitempty"` SubstitutionFeeCalcTarget string `protobuf:"bytes,14,opt,name=substitutionFeeCalcTarget,proto3" json:"substitutionFeeCalcTarget,omitempty"` SubstitutionFeeCalcType string `protobuf:"bytes,15,opt,name=substitutionFeeCalcType,proto3" json:"substitutionFeeCalcType,omitempty"` SupportAmountTarget string `protobuf:"bytes,16,opt,name=supportAmountTarget,proto3" json:"supportAmountTarget,omitempty"` SupportFeeCalcTarget string `protobuf:"bytes,17,opt,name=supportFeeCalcTarget,proto3" json:"supportFeeCalcTarget,omitempty"` // contains filtered or unexported fields }
Invoice settings that are vendor-specific for each billing group.
func (*BillingGroupVendoredInvoiceSetting) Descriptor
deprecated
added in
v0.57.3
func (*BillingGroupVendoredInvoiceSetting) Descriptor() ([]byte, []int)
Deprecated: Use BillingGroupVendoredInvoiceSetting.ProtoReflect.Descriptor instead.
func (*BillingGroupVendoredInvoiceSetting) GetCalcType ¶ added in v0.57.3
func (x *BillingGroupVendoredInvoiceSetting) GetCalcType() string
func (*BillingGroupVendoredInvoiceSetting) GetCurrency ¶ added in v0.57.3
func (x *BillingGroupVendoredInvoiceSetting) GetCurrency() string
func (*BillingGroupVendoredInvoiceSetting) GetDiscountCalcLogic ¶ added in v0.57.3
func (x *BillingGroupVendoredInvoiceSetting) GetDiscountCalcLogic() string
func (*BillingGroupVendoredInvoiceSetting) GetDiscountRate ¶ added in v0.57.3
func (x *BillingGroupVendoredInvoiceSetting) GetDiscountRate() float64
func (*BillingGroupVendoredInvoiceSetting) GetDiscountTargetUsage ¶ added in v0.57.3
func (x *BillingGroupVendoredInvoiceSetting) GetDiscountTargetUsage() string
func (*BillingGroupVendoredInvoiceSetting) GetSubstitutionFee ¶ added in v0.57.3
func (x *BillingGroupVendoredInvoiceSetting) GetSubstitutionFee() string
func (*BillingGroupVendoredInvoiceSetting) GetSubstitutionFeeCalcTarget ¶ added in v0.57.3
func (x *BillingGroupVendoredInvoiceSetting) GetSubstitutionFeeCalcTarget() string
func (*BillingGroupVendoredInvoiceSetting) GetSubstitutionFeeCalcType ¶ added in v0.57.3
func (x *BillingGroupVendoredInvoiceSetting) GetSubstitutionFeeCalcType() string
func (*BillingGroupVendoredInvoiceSetting) GetSubstitutionFeeTargetUsage ¶ added in v0.57.3
func (x *BillingGroupVendoredInvoiceSetting) GetSubstitutionFeeTargetUsage() string
func (*BillingGroupVendoredInvoiceSetting) GetSubstitutionFix ¶ added in v0.57.3
func (x *BillingGroupVendoredInvoiceSetting) GetSubstitutionFix() float64
func (*BillingGroupVendoredInvoiceSetting) GetSubstitutionRate ¶ added in v0.57.3
func (x *BillingGroupVendoredInvoiceSetting) GetSubstitutionRate() float64
func (*BillingGroupVendoredInvoiceSetting) GetSupportAmountTarget ¶ added in v0.57.3
func (x *BillingGroupVendoredInvoiceSetting) GetSupportAmountTarget() string
func (*BillingGroupVendoredInvoiceSetting) GetSupportFee ¶ added in v0.57.3
func (x *BillingGroupVendoredInvoiceSetting) GetSupportFee() string
func (*BillingGroupVendoredInvoiceSetting) GetSupportFeeCalcTarget ¶ added in v0.57.3
func (x *BillingGroupVendoredInvoiceSetting) GetSupportFeeCalcTarget() string
func (*BillingGroupVendoredInvoiceSetting) GetSupportFix ¶ added in v0.57.3
func (x *BillingGroupVendoredInvoiceSetting) GetSupportFix() float64
func (*BillingGroupVendoredInvoiceSetting) GetSupportRate ¶ added in v0.57.3
func (x *BillingGroupVendoredInvoiceSetting) GetSupportRate() float64
func (*BillingGroupVendoredInvoiceSetting) GetTaxRate ¶ added in v0.57.3
func (x *BillingGroupVendoredInvoiceSetting) GetTaxRate() float64
func (*BillingGroupVendoredInvoiceSetting) ProtoMessage ¶ added in v0.57.3
func (*BillingGroupVendoredInvoiceSetting) ProtoMessage()
func (*BillingGroupVendoredInvoiceSetting) ProtoReflect ¶ added in v0.57.3
func (x *BillingGroupVendoredInvoiceSetting) ProtoReflect() protoreflect.Message
func (*BillingGroupVendoredInvoiceSetting) Reset ¶ added in v0.57.3
func (x *BillingGroupVendoredInvoiceSetting) Reset()
func (*BillingGroupVendoredInvoiceSetting) String ¶ added in v0.57.3
func (x *BillingGroupVendoredInvoiceSetting) String() string
type BillingServer ¶
type BillingServer interface { // Lists all billing groups. ListBillingGroups(*ListBillingGroupsRequest, Billing_ListBillingGroupsServer) error // Registers a billing group. CreateBillingGroup(context.Context, *CreateBillingGroupRequest) (*BillingGroup, error) // Gets a billing group. GetBillingGroup(context.Context, *GetBillingGroupRequest) (*GetBillingGroupResponse, error) // WORK-IN-PROGRESS: Gets an access group. GetAccessGroup(context.Context, *GetAccessGroupRequest) (*GetAccessGroupResponse, error) // Reads the calculation history of all accounts in your billing groups. Only available in Ripple. ListAwsCalculationHistory(*ListAwsCalculationHistoryRequest, Billing_ListAwsCalculationHistoryServer) error // WORK-IN-PROGRESS: Returns a list of accounts that have been updated after invoice along with the differences in costs, if any. Only available in Ripple. ListUsageCostsDrift(*ListUsageCostsDriftRequest, Billing_ListUsageCostsDriftServer) error // contains filtered or unexported methods }
BillingServer is the server API for Billing service. All implementations must embed UnimplementedBillingServer for forward compatibility
type Billing_ListAwsCalculationHistoryClient ¶ added in v0.57.0
type Billing_ListAwsCalculationHistoryClient interface { Recv() (*AwsCalculationHistory, error) grpc.ClientStream }
type Billing_ListAwsCalculationHistoryServer ¶ added in v0.57.0
type Billing_ListAwsCalculationHistoryServer interface { Send(*AwsCalculationHistory) error grpc.ServerStream }
type Billing_ListBillingGroupsClient ¶
type Billing_ListBillingGroupsClient interface { Recv() (*BillingGroup, error) grpc.ClientStream }
type Billing_ListBillingGroupsServer ¶
type Billing_ListBillingGroupsServer interface { Send(*BillingGroup) error grpc.ServerStream }
type Billing_ListUsageCostsDriftClient ¶ added in v0.58.0
type Billing_ListUsageCostsDriftClient interface { Recv() (*UsageCostsDrift, error) grpc.ClientStream }
type Billing_ListUsageCostsDriftServer ¶ added in v0.58.0
type Billing_ListUsageCostsDriftServer interface { Send(*UsageCostsDrift) error grpc.ServerStream }
type ClientOptions ¶
type ClientOptions struct {
Conn *conn.GrpcClientConn
}
ClientOptions represents the optional options to NewClient.
type CreateBillingGroupRequest ¶ added in v0.35.11
type CreateBillingGroupRequest struct { // Required. The billing group's id. BillingGroupId string `protobuf:"bytes,1,opt,name=billingGroupId,proto3" json:"billingGroupId,omitempty"` // Required. The billing group's name. BillingGroupName string `protobuf:"bytes,2,opt,name=billingGroupName,proto3" json:"billingGroupName,omitempty"` // Required. Company’s name CompanyName string `protobuf:"bytes,3,opt,name=companyName,proto3" json:"companyName,omitempty"` // Optional. The title of the billing BillingTitle string `protobuf:"bytes,4,opt,name=billingTitle,proto3" json:"billingTitle,omitempty"` // Optional. Company’s phone number PhoneNumber string `protobuf:"bytes,5,opt,name=phoneNumber,proto3" json:"phoneNumber,omitempty"` // Optional. Company’s postal code PostalCode string `protobuf:"bytes,6,opt,name=postalCode,proto3" json:"postalCode,omitempty"` // Optional. Company’s address Address string `protobuf:"bytes,7,opt,name=address,proto3" json:"address,omitempty"` // Optional. Addressee Personal string `protobuf:"bytes,8,opt,name=personal,proto3" json:"personal,omitempty"` // Optional. Any remarks about the billing group Remarks string `protobuf:"bytes,9,opt,name=remarks,proto3" json:"remarks,omitempty"` // Optional. Project code ProjectId string `protobuf:"bytes,10,opt,name=projectId,proto3" json:"projectId,omitempty"` // Optional. Invoice language Language string `protobuf:"bytes,11,opt,name=language,proto3" json:"language,omitempty"` // Optional. Calculation type, true unblended or unblended DisplayCost string `protobuf:"bytes,12,opt,name=displayCost,proto3" json:"displayCost,omitempty"` // Optional. Exchange rate type, payer or billing group ExchangeRateType string `protobuf:"bytes,13,opt,name=exchangeRateType,proto3" json:"exchangeRateType,omitempty"` // Invoice settings Invoices *CreateBillingGroupRequestInvoice `protobuf:"bytes,14,opt,name=invoices,proto3" json:"invoices,omitempty"` // contains filtered or unexported fields }
Request message for the Billing.CreateBillingGroup rpc.
func (*CreateBillingGroupRequest) Descriptor
deprecated
added in
v0.35.11
func (*CreateBillingGroupRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateBillingGroupRequest.ProtoReflect.Descriptor instead.
func (*CreateBillingGroupRequest) GetAddress ¶ added in v0.35.11
func (x *CreateBillingGroupRequest) GetAddress() string
func (*CreateBillingGroupRequest) GetBillingGroupId ¶ added in v0.35.11
func (x *CreateBillingGroupRequest) GetBillingGroupId() string
func (*CreateBillingGroupRequest) GetBillingGroupName ¶ added in v0.35.11
func (x *CreateBillingGroupRequest) GetBillingGroupName() string
func (*CreateBillingGroupRequest) GetBillingTitle ¶ added in v0.35.11
func (x *CreateBillingGroupRequest) GetBillingTitle() string
func (*CreateBillingGroupRequest) GetCompanyName ¶ added in v0.35.11
func (x *CreateBillingGroupRequest) GetCompanyName() string
func (*CreateBillingGroupRequest) GetDisplayCost ¶ added in v0.35.11
func (x *CreateBillingGroupRequest) GetDisplayCost() string
func (*CreateBillingGroupRequest) GetExchangeRateType ¶ added in v0.35.11
func (x *CreateBillingGroupRequest) GetExchangeRateType() string
func (*CreateBillingGroupRequest) GetInvoices ¶ added in v0.35.13
func (x *CreateBillingGroupRequest) GetInvoices() *CreateBillingGroupRequestInvoice
func (*CreateBillingGroupRequest) GetLanguage ¶ added in v0.35.11
func (x *CreateBillingGroupRequest) GetLanguage() string
func (*CreateBillingGroupRequest) GetPersonal ¶ added in v0.35.11
func (x *CreateBillingGroupRequest) GetPersonal() string
func (*CreateBillingGroupRequest) GetPhoneNumber ¶ added in v0.35.11
func (x *CreateBillingGroupRequest) GetPhoneNumber() string
func (*CreateBillingGroupRequest) GetPostalCode ¶ added in v0.35.11
func (x *CreateBillingGroupRequest) GetPostalCode() string
func (*CreateBillingGroupRequest) GetProjectId ¶ added in v0.35.11
func (x *CreateBillingGroupRequest) GetProjectId() string
func (*CreateBillingGroupRequest) GetRemarks ¶ added in v0.35.11
func (x *CreateBillingGroupRequest) GetRemarks() string
func (*CreateBillingGroupRequest) ProtoMessage ¶ added in v0.35.11
func (*CreateBillingGroupRequest) ProtoMessage()
func (*CreateBillingGroupRequest) ProtoReflect ¶ added in v0.35.11
func (x *CreateBillingGroupRequest) ProtoReflect() protoreflect.Message
func (*CreateBillingGroupRequest) Reset ¶ added in v0.35.11
func (x *CreateBillingGroupRequest) Reset()
func (*CreateBillingGroupRequest) String ¶ added in v0.35.11
func (x *CreateBillingGroupRequest) String() string
type CreateBillingGroupRequestInvoice ¶ added in v0.35.13
type CreateBillingGroupRequestInvoice struct { // AWS invoice settings Aws *CreateBillingGroupRequestInvoiceVendor `protobuf:"bytes,1,opt,name=aws,proto3" json:"aws,omitempty"` // Azure invoice settings Azure *CreateBillingGroupRequestInvoiceVendor `protobuf:"bytes,2,opt,name=azure,proto3" json:"azure,omitempty"` // GCP invoice settings Gcp *CreateBillingGroupRequestInvoiceVendor `protobuf:"bytes,3,opt,name=gcp,proto3" json:"gcp,omitempty"` // contains filtered or unexported fields }
Vendor invoice setttings
func (*CreateBillingGroupRequestInvoice) Descriptor
deprecated
added in
v0.35.13
func (*CreateBillingGroupRequestInvoice) Descriptor() ([]byte, []int)
Deprecated: Use CreateBillingGroupRequestInvoice.ProtoReflect.Descriptor instead.
func (*CreateBillingGroupRequestInvoice) GetAws ¶ added in v0.35.13
func (x *CreateBillingGroupRequestInvoice) GetAws() *CreateBillingGroupRequestInvoiceVendor
func (*CreateBillingGroupRequestInvoice) GetAzure ¶ added in v0.35.13
func (x *CreateBillingGroupRequestInvoice) GetAzure() *CreateBillingGroupRequestInvoiceVendor
func (*CreateBillingGroupRequestInvoice) GetGcp ¶ added in v0.35.13
func (x *CreateBillingGroupRequestInvoice) GetGcp() *CreateBillingGroupRequestInvoiceVendor
func (*CreateBillingGroupRequestInvoice) ProtoMessage ¶ added in v0.35.13
func (*CreateBillingGroupRequestInvoice) ProtoMessage()
func (*CreateBillingGroupRequestInvoice) ProtoReflect ¶ added in v0.35.13
func (x *CreateBillingGroupRequestInvoice) ProtoReflect() protoreflect.Message
func (*CreateBillingGroupRequestInvoice) Reset ¶ added in v0.35.13
func (x *CreateBillingGroupRequestInvoice) Reset()
func (*CreateBillingGroupRequestInvoice) String ¶ added in v0.35.13
func (x *CreateBillingGroupRequestInvoice) String() string
type CreateBillingGroupRequestInvoiceVendor ¶ added in v0.35.13
type CreateBillingGroupRequestInvoiceVendor struct { CalcType string `protobuf:"bytes,1,opt,name=calcType,proto3" json:"calcType,omitempty"` DiscountRate float64 `protobuf:"fixed64,2,opt,name=discountRate,proto3" json:"discountRate,omitempty"` SubstitutionFee string `protobuf:"bytes,3,opt,name=substitutionFee,proto3" json:"substitutionFee,omitempty"` SubstitutionFix float64 `protobuf:"fixed64,4,opt,name=substitutionFix,proto3" json:"substitutionFix,omitempty"` SubstitutionRate float64 `protobuf:"fixed64,5,opt,name=substitutionRate,proto3" json:"substitutionRate,omitempty"` SupportFee string `protobuf:"bytes,6,opt,name=supportFee,proto3" json:"supportFee,omitempty"` SupportRate float64 `protobuf:"fixed64,7,opt,name=supportRate,proto3" json:"supportRate,omitempty"` SupportFix float64 `protobuf:"fixed64,8,opt,name=supportFix,proto3" json:"supportFix,omitempty"` TaxRate float64 `protobuf:"fixed64,9,opt,name=taxRate,proto3" json:"taxRate,omitempty"` Currency string `protobuf:"bytes,10,opt,name=currency,proto3" json:"currency,omitempty"` DiscountTargetUsage string `protobuf:"bytes,11,opt,name=discountTargetUsage,proto3" json:"discountTargetUsage,omitempty"` SubstitutionFeeTargetUsage string `protobuf:"bytes,12,opt,name=substitutionFeeTargetUsage,proto3" json:"substitutionFeeTargetUsage,omitempty"` DiscountCalcLogic string `protobuf:"bytes,13,opt,name=discountCalcLogic,proto3" json:"discountCalcLogic,omitempty"` SubstitutionFeeCalcTarget string `protobuf:"bytes,14,opt,name=substitutionFeeCalcTarget,proto3" json:"substitutionFeeCalcTarget,omitempty"` SubstitutionFeeCalcType string `protobuf:"bytes,15,opt,name=substitutionFeeCalcType,proto3" json:"substitutionFeeCalcType,omitempty"` SupportAmountTarget string `protobuf:"bytes,16,opt,name=supportAmountTarget,proto3" json:"supportAmountTarget,omitempty"` SupportFeeCalcTarget string `protobuf:"bytes,17,opt,name=supportFeeCalcTarget,proto3" json:"supportFeeCalcTarget,omitempty"` // contains filtered or unexported fields }
Specific settings per vendor
func (*CreateBillingGroupRequestInvoiceVendor) Descriptor
deprecated
added in
v0.35.13
func (*CreateBillingGroupRequestInvoiceVendor) Descriptor() ([]byte, []int)
Deprecated: Use CreateBillingGroupRequestInvoiceVendor.ProtoReflect.Descriptor instead.
func (*CreateBillingGroupRequestInvoiceVendor) GetCalcType ¶ added in v0.35.13
func (x *CreateBillingGroupRequestInvoiceVendor) GetCalcType() string
func (*CreateBillingGroupRequestInvoiceVendor) GetCurrency ¶ added in v0.35.13
func (x *CreateBillingGroupRequestInvoiceVendor) GetCurrency() string
func (*CreateBillingGroupRequestInvoiceVendor) GetDiscountCalcLogic ¶ added in v0.35.13
func (x *CreateBillingGroupRequestInvoiceVendor) GetDiscountCalcLogic() string
func (*CreateBillingGroupRequestInvoiceVendor) GetDiscountRate ¶ added in v0.35.13
func (x *CreateBillingGroupRequestInvoiceVendor) GetDiscountRate() float64
func (*CreateBillingGroupRequestInvoiceVendor) GetDiscountTargetUsage ¶ added in v0.35.13
func (x *CreateBillingGroupRequestInvoiceVendor) GetDiscountTargetUsage() string
func (*CreateBillingGroupRequestInvoiceVendor) GetSubstitutionFee ¶ added in v0.35.13
func (x *CreateBillingGroupRequestInvoiceVendor) GetSubstitutionFee() string
func (*CreateBillingGroupRequestInvoiceVendor) GetSubstitutionFeeCalcTarget ¶ added in v0.35.13
func (x *CreateBillingGroupRequestInvoiceVendor) GetSubstitutionFeeCalcTarget() string
func (*CreateBillingGroupRequestInvoiceVendor) GetSubstitutionFeeCalcType ¶ added in v0.35.13
func (x *CreateBillingGroupRequestInvoiceVendor) GetSubstitutionFeeCalcType() string
func (*CreateBillingGroupRequestInvoiceVendor) GetSubstitutionFeeTargetUsage ¶ added in v0.35.13
func (x *CreateBillingGroupRequestInvoiceVendor) GetSubstitutionFeeTargetUsage() string
func (*CreateBillingGroupRequestInvoiceVendor) GetSubstitutionFix ¶ added in v0.35.13
func (x *CreateBillingGroupRequestInvoiceVendor) GetSubstitutionFix() float64
func (*CreateBillingGroupRequestInvoiceVendor) GetSubstitutionRate ¶ added in v0.35.13
func (x *CreateBillingGroupRequestInvoiceVendor) GetSubstitutionRate() float64
func (*CreateBillingGroupRequestInvoiceVendor) GetSupportAmountTarget ¶ added in v0.35.13
func (x *CreateBillingGroupRequestInvoiceVendor) GetSupportAmountTarget() string
func (*CreateBillingGroupRequestInvoiceVendor) GetSupportFee ¶ added in v0.35.13
func (x *CreateBillingGroupRequestInvoiceVendor) GetSupportFee() string
func (*CreateBillingGroupRequestInvoiceVendor) GetSupportFeeCalcTarget ¶ added in v0.35.13
func (x *CreateBillingGroupRequestInvoiceVendor) GetSupportFeeCalcTarget() string
func (*CreateBillingGroupRequestInvoiceVendor) GetSupportFix ¶ added in v0.35.13
func (x *CreateBillingGroupRequestInvoiceVendor) GetSupportFix() float64
func (*CreateBillingGroupRequestInvoiceVendor) GetSupportRate ¶ added in v0.35.13
func (x *CreateBillingGroupRequestInvoiceVendor) GetSupportRate() float64
func (*CreateBillingGroupRequestInvoiceVendor) GetTaxRate ¶ added in v0.35.13
func (x *CreateBillingGroupRequestInvoiceVendor) GetTaxRate() float64
func (*CreateBillingGroupRequestInvoiceVendor) ProtoMessage ¶ added in v0.35.13
func (*CreateBillingGroupRequestInvoiceVendor) ProtoMessage()
func (*CreateBillingGroupRequestInvoiceVendor) ProtoReflect ¶ added in v0.35.13
func (x *CreateBillingGroupRequestInvoiceVendor) ProtoReflect() protoreflect.Message
func (*CreateBillingGroupRequestInvoiceVendor) Reset ¶ added in v0.35.13
func (x *CreateBillingGroupRequestInvoiceVendor) Reset()
func (*CreateBillingGroupRequestInvoiceVendor) String ¶ added in v0.35.13
func (x *CreateBillingGroupRequestInvoiceVendor) String() string
type GetAccessGroupRequest ¶ added in v0.51.8
type GetAccessGroupRequest struct { AccessGroupId string `protobuf:"bytes,1,opt,name=accessGroupId,proto3" json:"accessGroupId,omitempty"` // contains filtered or unexported fields }
Request message for the Billing.GetAccessGroup rpc.
func (*GetAccessGroupRequest) Descriptor
deprecated
added in
v0.51.8
func (*GetAccessGroupRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAccessGroupRequest.ProtoReflect.Descriptor instead.
func (*GetAccessGroupRequest) GetAccessGroupId ¶ added in v0.51.8
func (x *GetAccessGroupRequest) GetAccessGroupId() string
func (*GetAccessGroupRequest) ProtoMessage ¶ added in v0.51.8
func (*GetAccessGroupRequest) ProtoMessage()
func (*GetAccessGroupRequest) ProtoReflect ¶ added in v0.51.8
func (x *GetAccessGroupRequest) ProtoReflect() protoreflect.Message
func (*GetAccessGroupRequest) Reset ¶ added in v0.51.8
func (x *GetAccessGroupRequest) Reset()
func (*GetAccessGroupRequest) String ¶ added in v0.51.8
func (x *GetAccessGroupRequest) String() string
type GetAccessGroupResponse ¶ added in v0.51.8
type GetAccessGroupResponse struct { AccessGroup *AccessGroup `protobuf:"bytes,1,opt,name=accessGroup,proto3" json:"accessGroup,omitempty"` // contains filtered or unexported fields }
Response message for the Billing.GetAccessGroup rpc.
func (*GetAccessGroupResponse) Descriptor
deprecated
added in
v0.51.8
func (*GetAccessGroupResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAccessGroupResponse.ProtoReflect.Descriptor instead.
func (*GetAccessGroupResponse) GetAccessGroup ¶ added in v0.51.8
func (x *GetAccessGroupResponse) GetAccessGroup() *AccessGroup
func (*GetAccessGroupResponse) ProtoMessage ¶ added in v0.51.8
func (*GetAccessGroupResponse) ProtoMessage()
func (*GetAccessGroupResponse) ProtoReflect ¶ added in v0.51.8
func (x *GetAccessGroupResponse) ProtoReflect() protoreflect.Message
func (*GetAccessGroupResponse) Reset ¶ added in v0.51.8
func (x *GetAccessGroupResponse) Reset()
func (*GetAccessGroupResponse) String ¶ added in v0.51.8
func (x *GetAccessGroupResponse) String() string
type GetBillingGroupRequest ¶ added in v0.36.3
type GetBillingGroupRequest struct { BillingInternalId string `protobuf:"bytes,1,opt,name=billingInternalId,proto3" json:"billingInternalId,omitempty"` // contains filtered or unexported fields }
Request message for the Billing.GetBillingGroup rpc.
func (*GetBillingGroupRequest) Descriptor
deprecated
added in
v0.36.3
func (*GetBillingGroupRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBillingGroupRequest.ProtoReflect.Descriptor instead.
func (*GetBillingGroupRequest) GetBillingInternalId ¶ added in v0.36.3
func (x *GetBillingGroupRequest) GetBillingInternalId() string
func (*GetBillingGroupRequest) ProtoMessage ¶ added in v0.36.3
func (*GetBillingGroupRequest) ProtoMessage()
func (*GetBillingGroupRequest) ProtoReflect ¶ added in v0.36.3
func (x *GetBillingGroupRequest) ProtoReflect() protoreflect.Message
func (*GetBillingGroupRequest) Reset ¶ added in v0.36.3
func (x *GetBillingGroupRequest) Reset()
func (*GetBillingGroupRequest) String ¶ added in v0.36.3
func (x *GetBillingGroupRequest) String() string
type GetBillingGroupResponse ¶ added in v0.36.3
type GetBillingGroupResponse struct { BillingGroup *BillingGroup `protobuf:"bytes,1,opt,name=billingGroup,proto3" json:"billingGroup,omitempty"` // contains filtered or unexported fields }
Response message for the Billing.GetBillingGroup rpc.
func (*GetBillingGroupResponse) Descriptor
deprecated
added in
v0.36.3
func (*GetBillingGroupResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetBillingGroupResponse.ProtoReflect.Descriptor instead.
func (*GetBillingGroupResponse) GetBillingGroup ¶ added in v0.36.3
func (x *GetBillingGroupResponse) GetBillingGroup() *BillingGroup
func (*GetBillingGroupResponse) ProtoMessage ¶ added in v0.36.3
func (*GetBillingGroupResponse) ProtoMessage()
func (*GetBillingGroupResponse) ProtoReflect ¶ added in v0.36.3
func (x *GetBillingGroupResponse) ProtoReflect() protoreflect.Message
func (*GetBillingGroupResponse) Reset ¶ added in v0.36.3
func (x *GetBillingGroupResponse) Reset()
func (*GetBillingGroupResponse) String ¶ added in v0.36.3
func (x *GetBillingGroupResponse) String() string
type GrpcClient ¶
type GrpcClient struct { BillingClient // contains filtered or unexported fields }
func NewClient ¶
func NewClient(ctx context.Context, opts ...*ClientOptions) (*GrpcClient, error)
NewClient returns a client connection to the 'billing' service.
func (*GrpcClient) Close ¶
func (c *GrpcClient) Close()
type ListAwsCalculationHistoryRequest ¶ added in v0.57.0
type ListAwsCalculationHistoryRequest struct { // Optional. If empty, defaults to current UTC month. Format: yyyymm. Month string `protobuf:"bytes,1,opt,name=month,proto3" json:"month,omitempty"` // contains filtered or unexported fields }
Request message for the Billing.ListAwsCalculationHistory rpc.
func (*ListAwsCalculationHistoryRequest) Descriptor
deprecated
added in
v0.57.0
func (*ListAwsCalculationHistoryRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListAwsCalculationHistoryRequest.ProtoReflect.Descriptor instead.
func (*ListAwsCalculationHistoryRequest) GetMonth ¶ added in v0.57.0
func (x *ListAwsCalculationHistoryRequest) GetMonth() string
func (*ListAwsCalculationHistoryRequest) ProtoMessage ¶ added in v0.57.0
func (*ListAwsCalculationHistoryRequest) ProtoMessage()
func (*ListAwsCalculationHistoryRequest) ProtoReflect ¶ added in v0.57.0
func (x *ListAwsCalculationHistoryRequest) ProtoReflect() protoreflect.Message
func (*ListAwsCalculationHistoryRequest) Reset ¶ added in v0.57.0
func (x *ListAwsCalculationHistoryRequest) Reset()
func (*ListAwsCalculationHistoryRequest) String ¶ added in v0.57.0
func (x *ListAwsCalculationHistoryRequest) String() string
type ListBillingGroupsRequest ¶
type ListBillingGroupsRequest struct {
// contains filtered or unexported fields
}
Request message for the Billing.ListBillingGroups rpc.
func (*ListBillingGroupsRequest) Descriptor
deprecated
func (*ListBillingGroupsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListBillingGroupsRequest.ProtoReflect.Descriptor instead.
func (*ListBillingGroupsRequest) ProtoMessage ¶
func (*ListBillingGroupsRequest) ProtoMessage()
func (*ListBillingGroupsRequest) ProtoReflect ¶
func (x *ListBillingGroupsRequest) ProtoReflect() protoreflect.Message
func (*ListBillingGroupsRequest) Reset ¶
func (x *ListBillingGroupsRequest) Reset()
func (*ListBillingGroupsRequest) String ¶
func (x *ListBillingGroupsRequest) String() string
type ListUsageCostsDriftRequest ¶ added in v0.58.0
type ListUsageCostsDriftRequest struct { // Required. At the moment, only `aws` is supported. Vendor string `protobuf:"bytes,1,opt,name=vendor,proto3" json:"vendor,omitempty"` // Optional. If empty, returns all billing groups. BillingInternalId string `protobuf:"bytes,2,opt,name=billingInternalId,proto3" json:"billingInternalId,omitempty"` // Optional. If empty, defaults to current UTC month. Format: yyyymm. Month string `protobuf:"bytes,3,opt,name=month,proto3" json:"month,omitempty"` // contains filtered or unexported fields }
Request message for the Billing.ListUsageCostsDrift rpc.
func (*ListUsageCostsDriftRequest) Descriptor
deprecated
added in
v0.58.0
func (*ListUsageCostsDriftRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListUsageCostsDriftRequest.ProtoReflect.Descriptor instead.
func (*ListUsageCostsDriftRequest) GetBillingInternalId ¶ added in v0.58.0
func (x *ListUsageCostsDriftRequest) GetBillingInternalId() string
func (*ListUsageCostsDriftRequest) GetMonth ¶ added in v0.58.0
func (x *ListUsageCostsDriftRequest) GetMonth() string
func (*ListUsageCostsDriftRequest) GetVendor ¶ added in v0.58.0
func (x *ListUsageCostsDriftRequest) GetVendor() string
func (*ListUsageCostsDriftRequest) ProtoMessage ¶ added in v0.58.0
func (*ListUsageCostsDriftRequest) ProtoMessage()
func (*ListUsageCostsDriftRequest) ProtoReflect ¶ added in v0.58.0
func (x *ListUsageCostsDriftRequest) ProtoReflect() protoreflect.Message
func (*ListUsageCostsDriftRequest) Reset ¶ added in v0.58.0
func (x *ListUsageCostsDriftRequest) Reset()
func (*ListUsageCostsDriftRequest) String ¶ added in v0.58.0
func (x *ListUsageCostsDriftRequest) String() string
type UnimplementedBillingServer ¶
type UnimplementedBillingServer struct { }
UnimplementedBillingServer must be embedded to have forward compatible implementations.
func (UnimplementedBillingServer) CreateBillingGroup ¶ added in v0.35.11
func (UnimplementedBillingServer) CreateBillingGroup(context.Context, *CreateBillingGroupRequest) (*BillingGroup, error)
func (UnimplementedBillingServer) GetAccessGroup ¶ added in v0.51.8
func (UnimplementedBillingServer) GetAccessGroup(context.Context, *GetAccessGroupRequest) (*GetAccessGroupResponse, error)
func (UnimplementedBillingServer) GetBillingGroup ¶ added in v0.36.3
func (UnimplementedBillingServer) GetBillingGroup(context.Context, *GetBillingGroupRequest) (*GetBillingGroupResponse, error)
func (UnimplementedBillingServer) ListAwsCalculationHistory ¶ added in v0.57.0
func (UnimplementedBillingServer) ListAwsCalculationHistory(*ListAwsCalculationHistoryRequest, Billing_ListAwsCalculationHistoryServer) error
func (UnimplementedBillingServer) ListBillingGroups ¶
func (UnimplementedBillingServer) ListBillingGroups(*ListBillingGroupsRequest, Billing_ListBillingGroupsServer) error
func (UnimplementedBillingServer) ListUsageCostsDrift ¶ added in v0.58.0
func (UnimplementedBillingServer) ListUsageCostsDrift(*ListUsageCostsDriftRequest, Billing_ListUsageCostsDriftServer) error
type UnsafeBillingServer ¶
type UnsafeBillingServer interface {
// contains filtered or unexported methods
}
UnsafeBillingServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BillingServer will result in compilation errors.
type UsageCostsDrift ¶ added in v0.58.0
type UsageCostsDrift struct { BillingInternalId string `protobuf:"bytes,1,opt,name=billingInternalId,proto3" json:"billingInternalId,omitempty"` BillingGroupId string `protobuf:"bytes,2,opt,name=billingGroupId,proto3" json:"billingGroupId,omitempty"` Account string `protobuf:"bytes,3,opt,name=account,proto3" json:"account,omitempty"` // The total costs saved in your invoice. Snapshot float64 `protobuf:"fixed64,4,opt,name=snapshot,proto3" json:"snapshot,omitempty"` // The current total costs. Current float64 `protobuf:"fixed64,5,opt,name=current,proto3" json:"current,omitempty"` Diff float64 `protobuf:"fixed64,6,opt,name=diff,proto3" json:"diff,omitempty"` // contains filtered or unexported fields }
Streaming response message for the Billing.ListUsageCostsDrift rpc.
func (*UsageCostsDrift) Descriptor
deprecated
added in
v0.58.0
func (*UsageCostsDrift) Descriptor() ([]byte, []int)
Deprecated: Use UsageCostsDrift.ProtoReflect.Descriptor instead.
func (*UsageCostsDrift) GetAccount ¶ added in v0.58.3
func (x *UsageCostsDrift) GetAccount() string
func (*UsageCostsDrift) GetBillingGroupId ¶ added in v0.58.0
func (x *UsageCostsDrift) GetBillingGroupId() string
func (*UsageCostsDrift) GetBillingInternalId ¶ added in v0.58.0
func (x *UsageCostsDrift) GetBillingInternalId() string
func (*UsageCostsDrift) GetCurrent ¶ added in v0.58.0
func (x *UsageCostsDrift) GetCurrent() float64
func (*UsageCostsDrift) GetDiff ¶ added in v0.58.2
func (x *UsageCostsDrift) GetDiff() float64
func (*UsageCostsDrift) GetSnapshot ¶ added in v0.58.0
func (x *UsageCostsDrift) GetSnapshot() float64
func (*UsageCostsDrift) ProtoMessage ¶ added in v0.58.0
func (*UsageCostsDrift) ProtoMessage()
func (*UsageCostsDrift) ProtoReflect ¶ added in v0.58.0
func (x *UsageCostsDrift) ProtoReflect() protoreflect.Message
func (*UsageCostsDrift) Reset ¶ added in v0.58.0
func (x *UsageCostsDrift) Reset()
func (*UsageCostsDrift) String ¶ added in v0.58.0
func (x *UsageCostsDrift) String() string