genproto: google.golang.org/genproto/googleapis/cloud/billing/v1 Index | Files

package billing

import "google.golang.org/genproto/googleapis/cloud/billing/v1"

Index

Package Files

cloud_billing.pb.go cloud_catalog.pb.go

Variables

var (
    AggregationInfo_AggregationLevel_name = map[int32]string{
        0:  "AGGREGATION_LEVEL_UNSPECIFIED",
        1:  "ACCOUNT",
        2:  "PROJECT",
    }
    AggregationInfo_AggregationLevel_value = map[string]int32{
        "AGGREGATION_LEVEL_UNSPECIFIED": 0,
        "ACCOUNT":                       1,
        "PROJECT":                       2,
    }
)

Enum value maps for AggregationInfo_AggregationLevel.

var (
    AggregationInfo_AggregationInterval_name = map[int32]string{
        0:  "AGGREGATION_INTERVAL_UNSPECIFIED",
        1:  "DAILY",
        2:  "MONTHLY",
    }
    AggregationInfo_AggregationInterval_value = map[string]int32{
        "AGGREGATION_INTERVAL_UNSPECIFIED": 0,
        "DAILY":                            1,
        "MONTHLY":                          2,
    }
)

Enum value maps for AggregationInfo_AggregationInterval.

var File_google_cloud_billing_v1_cloud_billing_proto protoreflect.FileDescriptor
var File_google_cloud_billing_v1_cloud_catalog_proto protoreflect.FileDescriptor

func RegisterCloudBillingServer Uses

func RegisterCloudBillingServer(s *grpc.Server, srv CloudBillingServer)

func RegisterCloudCatalogServer Uses

func RegisterCloudCatalogServer(s *grpc.Server, srv CloudCatalogServer)

type AggregationInfo Uses

type AggregationInfo struct {
    AggregationLevel    AggregationInfo_AggregationLevel    `protobuf:"varint,1,opt,name=aggregation_level,json=aggregationLevel,proto3,enum=google.cloud.billing.v1.AggregationInfo_AggregationLevel" json:"aggregation_level,omitempty"`
    AggregationInterval AggregationInfo_AggregationInterval `protobuf:"varint,2,opt,name=aggregation_interval,json=aggregationInterval,proto3,enum=google.cloud.billing.v1.AggregationInfo_AggregationInterval" json:"aggregation_interval,omitempty"`
    // The number of intervals to aggregate over.
    // Example: If aggregation_level is "DAILY" and aggregation_count is 14,
    // aggregation will be over 14 days.
    AggregationCount int32 `protobuf:"varint,3,opt,name=aggregation_count,json=aggregationCount,proto3" json:"aggregation_count,omitempty"`
    // contains filtered or unexported fields
}

Represents the aggregation level and interval for pricing of a single SKU.

func (*AggregationInfo) Descriptor Uses

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

Deprecated: Use AggregationInfo.ProtoReflect.Descriptor instead.

func (*AggregationInfo) GetAggregationCount Uses

func (x *AggregationInfo) GetAggregationCount() int32

func (*AggregationInfo) GetAggregationInterval Uses

func (x *AggregationInfo) GetAggregationInterval() AggregationInfo_AggregationInterval

func (*AggregationInfo) GetAggregationLevel Uses

func (x *AggregationInfo) GetAggregationLevel() AggregationInfo_AggregationLevel

func (*AggregationInfo) ProtoMessage Uses

func (*AggregationInfo) ProtoMessage()

func (*AggregationInfo) ProtoReflect Uses

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

func (*AggregationInfo) Reset Uses

func (x *AggregationInfo) Reset()

func (*AggregationInfo) String Uses

func (x *AggregationInfo) String() string

type AggregationInfo_AggregationInterval Uses

type AggregationInfo_AggregationInterval int32

The interval at which usage is aggregated to compute cost. Example: "MONTHLY" aggregation interval indicates that usage for tiered pricing is aggregated every month.

const (
    AggregationInfo_AGGREGATION_INTERVAL_UNSPECIFIED AggregationInfo_AggregationInterval = 0
    AggregationInfo_DAILY                            AggregationInfo_AggregationInterval = 1
    AggregationInfo_MONTHLY                          AggregationInfo_AggregationInterval = 2
)

func (AggregationInfo_AggregationInterval) Descriptor Uses

func (AggregationInfo_AggregationInterval) Descriptor() protoreflect.EnumDescriptor

func (AggregationInfo_AggregationInterval) Enum Uses

func (x AggregationInfo_AggregationInterval) Enum() *AggregationInfo_AggregationInterval

func (AggregationInfo_AggregationInterval) EnumDescriptor Uses

func (AggregationInfo_AggregationInterval) EnumDescriptor() ([]byte, []int)

Deprecated: Use AggregationInfo_AggregationInterval.Descriptor instead.

func (AggregationInfo_AggregationInterval) Number Uses

func (x AggregationInfo_AggregationInterval) Number() protoreflect.EnumNumber

func (AggregationInfo_AggregationInterval) String Uses

func (x AggregationInfo_AggregationInterval) String() string

func (AggregationInfo_AggregationInterval) Type Uses

func (AggregationInfo_AggregationInterval) Type() protoreflect.EnumType

type AggregationInfo_AggregationLevel Uses

type AggregationInfo_AggregationLevel int32

The level at which usage is aggregated to compute cost. Example: "ACCOUNT" aggregation level indicates that usage for tiered pricing is aggregated across all projects in a single account.

const (
    AggregationInfo_AGGREGATION_LEVEL_UNSPECIFIED AggregationInfo_AggregationLevel = 0
    AggregationInfo_ACCOUNT                       AggregationInfo_AggregationLevel = 1
    AggregationInfo_PROJECT                       AggregationInfo_AggregationLevel = 2
)

func (AggregationInfo_AggregationLevel) Descriptor Uses

func (AggregationInfo_AggregationLevel) Descriptor() protoreflect.EnumDescriptor

func (AggregationInfo_AggregationLevel) Enum Uses

func (x AggregationInfo_AggregationLevel) Enum() *AggregationInfo_AggregationLevel

func (AggregationInfo_AggregationLevel) EnumDescriptor Uses

func (AggregationInfo_AggregationLevel) EnumDescriptor() ([]byte, []int)

Deprecated: Use AggregationInfo_AggregationLevel.Descriptor instead.

func (AggregationInfo_AggregationLevel) Number Uses

func (x AggregationInfo_AggregationLevel) Number() protoreflect.EnumNumber

func (AggregationInfo_AggregationLevel) String Uses

func (x AggregationInfo_AggregationLevel) String() string

func (AggregationInfo_AggregationLevel) Type Uses

func (AggregationInfo_AggregationLevel) Type() protoreflect.EnumType

type BillingAccount Uses

type BillingAccount struct {

    // The resource name of the billing account. The resource name has the form
    // `billingAccounts/{billing_account_id}`. For example,
    // `billingAccounts/012345-567890-ABCDEF` would be the resource name for
    // billing account `012345-567890-ABCDEF`.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // Output only. True if the billing account is open, and will therefore be charged for any
    // usage on associated projects. False if the billing account is closed, and
    // therefore projects associated with it will be unable to use paid services.
    Open bool `protobuf:"varint,2,opt,name=open,proto3" json:"open,omitempty"`
    // The display name given to the billing account, such as `My Billing
    // Account`. This name is displayed in the GCP Console.
    DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
    // If this account is a
    // [subaccount](https://cloud.google.com/billing/docs/concepts), then this
    // will be the resource name of the master billing account that it is being
    // resold through.
    // Otherwise this will be empty.
    MasterBillingAccount string `protobuf:"bytes,4,opt,name=master_billing_account,json=masterBillingAccount,proto3" json:"master_billing_account,omitempty"`
    // contains filtered or unexported fields
}

A billing account in [GCP Console](https://console.cloud.google.com/). You can assign a billing account to one or more projects.

func (*BillingAccount) Descriptor Uses

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

Deprecated: Use BillingAccount.ProtoReflect.Descriptor instead.

func (*BillingAccount) GetDisplayName Uses

func (x *BillingAccount) GetDisplayName() string

func (*BillingAccount) GetMasterBillingAccount Uses

func (x *BillingAccount) GetMasterBillingAccount() string

func (*BillingAccount) GetName Uses

func (x *BillingAccount) GetName() string

func (*BillingAccount) GetOpen Uses

func (x *BillingAccount) GetOpen() bool

func (*BillingAccount) ProtoMessage Uses

func (*BillingAccount) ProtoMessage()

func (*BillingAccount) ProtoReflect Uses

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

func (*BillingAccount) Reset Uses

func (x *BillingAccount) Reset()

func (*BillingAccount) String Uses

func (x *BillingAccount) String() string

type Category Uses

type Category struct {

    // The display name of the service this SKU belongs to.
    ServiceDisplayName string `protobuf:"bytes,1,opt,name=service_display_name,json=serviceDisplayName,proto3" json:"service_display_name,omitempty"`
    // The type of product the SKU refers to.
    // Example: "Compute", "Storage", "Network", "ApplicationServices" etc.
    ResourceFamily string `protobuf:"bytes,2,opt,name=resource_family,json=resourceFamily,proto3" json:"resource_family,omitempty"`
    // A group classification for related SKUs.
    // Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.
    ResourceGroup string `protobuf:"bytes,3,opt,name=resource_group,json=resourceGroup,proto3" json:"resource_group,omitempty"`
    // Represents how the SKU is consumed.
    // Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.
    UsageType string `protobuf:"bytes,4,opt,name=usage_type,json=usageType,proto3" json:"usage_type,omitempty"`
    // contains filtered or unexported fields
}

Represents the category hierarchy of a SKU.

func (*Category) Descriptor Uses

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

Deprecated: Use Category.ProtoReflect.Descriptor instead.

func (*Category) GetResourceFamily Uses

func (x *Category) GetResourceFamily() string

func (*Category) GetResourceGroup Uses

func (x *Category) GetResourceGroup() string

func (*Category) GetServiceDisplayName Uses

func (x *Category) GetServiceDisplayName() string

func (*Category) GetUsageType Uses

func (x *Category) GetUsageType() string

func (*Category) ProtoMessage Uses

func (*Category) ProtoMessage()

func (*Category) ProtoReflect Uses

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

func (*Category) Reset Uses

func (x *Category) Reset()

func (*Category) String Uses

func (x *Category) String() string

type CloudBillingClient Uses

type CloudBillingClient interface {
    // Gets information about a billing account. The current authenticated user
    // must be a [viewer of the billing
    // account](https://cloud.google.com/billing/docs/how-to/billing-access).
    GetBillingAccount(ctx context.Context, in *GetBillingAccountRequest, opts ...grpc.CallOption) (*BillingAccount, error)
    // Lists the billing accounts that the current authenticated user has
    // permission to
    // [view](https://cloud.google.com/billing/docs/how-to/billing-access).
    ListBillingAccounts(ctx context.Context, in *ListBillingAccountsRequest, opts ...grpc.CallOption) (*ListBillingAccountsResponse, error)
    // Updates a billing account's fields.
    // Currently the only field that can be edited is `display_name`.
    // The current authenticated user must have the `billing.accounts.update`
    // IAM permission, which is typically given to the
    // [administrator](https://cloud.google.com/billing/docs/how-to/billing-access)
    // of the billing account.
    UpdateBillingAccount(ctx context.Context, in *UpdateBillingAccountRequest, opts ...grpc.CallOption) (*BillingAccount, error)
    // Creates a billing account.
    // This method can only be used to create
    // [billing subaccounts](https://cloud.google.com/billing/docs/concepts)
    // by GCP resellers.
    // When creating a subaccount, the current authenticated user must have the
    // `billing.accounts.update` IAM permission on the master account, which is
    // typically given to billing account
    // [administrators](https://cloud.google.com/billing/docs/how-to/billing-access).
    // This method will return an error if the master account has not been
    // provisioned as a reseller account.
    CreateBillingAccount(ctx context.Context, in *CreateBillingAccountRequest, opts ...grpc.CallOption) (*BillingAccount, error)
    // Lists the projects associated with a billing account. The current
    // authenticated user must have the `billing.resourceAssociations.list` IAM
    // permission, which is often given to billing account
    // [viewers](https://cloud.google.com/billing/docs/how-to/billing-access).
    ListProjectBillingInfo(ctx context.Context, in *ListProjectBillingInfoRequest, opts ...grpc.CallOption) (*ListProjectBillingInfoResponse, error)
    // Gets the billing information for a project. The current authenticated user
    // must have [permission to view the
    // project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo
    // ).
    GetProjectBillingInfo(ctx context.Context, in *GetProjectBillingInfoRequest, opts ...grpc.CallOption) (*ProjectBillingInfo, error)
    // Sets or updates the billing account associated with a project. You specify
    // the new billing account by setting the `billing_account_name` in the
    // `ProjectBillingInfo` resource to the resource name of a billing account.
    // Associating a project with an open billing account enables billing on the
    // project and allows charges for resource usage. If the project already had a
    // billing account, this method changes the billing account used for resource
    // usage charges.
    //
    // *Note:* Incurred charges that have not yet been reported in the transaction
    // history of the GCP Console might be billed to the new billing
    // account, even if the charge occurred before the new billing account was
    // assigned to the project.
    //
    // The current authenticated user must have ownership privileges for both the
    // [project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo
    // ) and the [billing
    // account](https://cloud.google.com/billing/docs/how-to/billing-access).
    //
    // You can disable billing on the project by setting the
    // `billing_account_name` field to empty. This action disassociates the
    // current billing account from the project. Any billable activity of your
    // in-use services will stop, and your application could stop functioning as
    // expected. Any unbilled charges to date will be billed to the previously
    // associated account. The current authenticated user must be either an owner
    // of the project or an owner of the billing account for the project.
    //
    // Note that associating a project with a *closed* billing account will have
    // much the same effect as disabling billing on the project: any paid
    // resources used by the project will be shut down. Thus, unless you wish to
    // disable billing, you should always call this method with the name of an
    // *open* billing account.
    UpdateProjectBillingInfo(ctx context.Context, in *UpdateProjectBillingInfoRequest, opts ...grpc.CallOption) (*ProjectBillingInfo, error)
    // Gets the access control policy for a billing account.
    // The caller must have the `billing.accounts.getIamPolicy` permission on the
    // account, which is often given to billing account
    // [viewers](https://cloud.google.com/billing/docs/how-to/billing-access).
    GetIamPolicy(ctx context.Context, in *v1.GetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error)
    // Sets the access control policy for a billing account. Replaces any existing
    // policy.
    // The caller must have the `billing.accounts.setIamPolicy` permission on the
    // account, which is often given to billing account
    // [administrators](https://cloud.google.com/billing/docs/how-to/billing-access).
    SetIamPolicy(ctx context.Context, in *v1.SetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error)
    // Tests the access control policy for a billing account. This method takes
    // the resource and a set of permissions as input and returns the subset of
    // the input permissions that the caller is allowed for that resource.
    TestIamPermissions(ctx context.Context, in *v1.TestIamPermissionsRequest, opts ...grpc.CallOption) (*v1.TestIamPermissionsResponse, error)
}

CloudBillingClient is the client API for CloudBilling service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewCloudBillingClient Uses

func NewCloudBillingClient(cc grpc.ClientConnInterface) CloudBillingClient

type CloudBillingServer Uses

type CloudBillingServer interface {
    // Gets information about a billing account. The current authenticated user
    // must be a [viewer of the billing
    // account](https://cloud.google.com/billing/docs/how-to/billing-access).
    GetBillingAccount(context.Context, *GetBillingAccountRequest) (*BillingAccount, error)
    // Lists the billing accounts that the current authenticated user has
    // permission to
    // [view](https://cloud.google.com/billing/docs/how-to/billing-access).
    ListBillingAccounts(context.Context, *ListBillingAccountsRequest) (*ListBillingAccountsResponse, error)
    // Updates a billing account's fields.
    // Currently the only field that can be edited is `display_name`.
    // The current authenticated user must have the `billing.accounts.update`
    // IAM permission, which is typically given to the
    // [administrator](https://cloud.google.com/billing/docs/how-to/billing-access)
    // of the billing account.
    UpdateBillingAccount(context.Context, *UpdateBillingAccountRequest) (*BillingAccount, error)
    // Creates a billing account.
    // This method can only be used to create
    // [billing subaccounts](https://cloud.google.com/billing/docs/concepts)
    // by GCP resellers.
    // When creating a subaccount, the current authenticated user must have the
    // `billing.accounts.update` IAM permission on the master account, which is
    // typically given to billing account
    // [administrators](https://cloud.google.com/billing/docs/how-to/billing-access).
    // This method will return an error if the master account has not been
    // provisioned as a reseller account.
    CreateBillingAccount(context.Context, *CreateBillingAccountRequest) (*BillingAccount, error)
    // Lists the projects associated with a billing account. The current
    // authenticated user must have the `billing.resourceAssociations.list` IAM
    // permission, which is often given to billing account
    // [viewers](https://cloud.google.com/billing/docs/how-to/billing-access).
    ListProjectBillingInfo(context.Context, *ListProjectBillingInfoRequest) (*ListProjectBillingInfoResponse, error)
    // Gets the billing information for a project. The current authenticated user
    // must have [permission to view the
    // project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo
    // ).
    GetProjectBillingInfo(context.Context, *GetProjectBillingInfoRequest) (*ProjectBillingInfo, error)
    // Sets or updates the billing account associated with a project. You specify
    // the new billing account by setting the `billing_account_name` in the
    // `ProjectBillingInfo` resource to the resource name of a billing account.
    // Associating a project with an open billing account enables billing on the
    // project and allows charges for resource usage. If the project already had a
    // billing account, this method changes the billing account used for resource
    // usage charges.
    //
    // *Note:* Incurred charges that have not yet been reported in the transaction
    // history of the GCP Console might be billed to the new billing
    // account, even if the charge occurred before the new billing account was
    // assigned to the project.
    //
    // The current authenticated user must have ownership privileges for both the
    // [project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo
    // ) and the [billing
    // account](https://cloud.google.com/billing/docs/how-to/billing-access).
    //
    // You can disable billing on the project by setting the
    // `billing_account_name` field to empty. This action disassociates the
    // current billing account from the project. Any billable activity of your
    // in-use services will stop, and your application could stop functioning as
    // expected. Any unbilled charges to date will be billed to the previously
    // associated account. The current authenticated user must be either an owner
    // of the project or an owner of the billing account for the project.
    //
    // Note that associating a project with a *closed* billing account will have
    // much the same effect as disabling billing on the project: any paid
    // resources used by the project will be shut down. Thus, unless you wish to
    // disable billing, you should always call this method with the name of an
    // *open* billing account.
    UpdateProjectBillingInfo(context.Context, *UpdateProjectBillingInfoRequest) (*ProjectBillingInfo, error)
    // Gets the access control policy for a billing account.
    // The caller must have the `billing.accounts.getIamPolicy` permission on the
    // account, which is often given to billing account
    // [viewers](https://cloud.google.com/billing/docs/how-to/billing-access).
    GetIamPolicy(context.Context, *v1.GetIamPolicyRequest) (*v1.Policy, error)
    // Sets the access control policy for a billing account. Replaces any existing
    // policy.
    // The caller must have the `billing.accounts.setIamPolicy` permission on the
    // account, which is often given to billing account
    // [administrators](https://cloud.google.com/billing/docs/how-to/billing-access).
    SetIamPolicy(context.Context, *v1.SetIamPolicyRequest) (*v1.Policy, error)
    // Tests the access control policy for a billing account. This method takes
    // the resource and a set of permissions as input and returns the subset of
    // the input permissions that the caller is allowed for that resource.
    TestIamPermissions(context.Context, *v1.TestIamPermissionsRequest) (*v1.TestIamPermissionsResponse, error)
}

CloudBillingServer is the server API for CloudBilling service.

type CloudCatalogClient Uses

type CloudCatalogClient interface {
    // Lists all public cloud services.
    ListServices(ctx context.Context, in *ListServicesRequest, opts ...grpc.CallOption) (*ListServicesResponse, error)
    // Lists all publicly available SKUs for a given cloud service.
    ListSkus(ctx context.Context, in *ListSkusRequest, opts ...grpc.CallOption) (*ListSkusResponse, error)
}

CloudCatalogClient is the client API for CloudCatalog service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewCloudCatalogClient Uses

func NewCloudCatalogClient(cc grpc.ClientConnInterface) CloudCatalogClient

type CloudCatalogServer Uses

type CloudCatalogServer interface {
    // Lists all public cloud services.
    ListServices(context.Context, *ListServicesRequest) (*ListServicesResponse, error)
    // Lists all publicly available SKUs for a given cloud service.
    ListSkus(context.Context, *ListSkusRequest) (*ListSkusResponse, error)
}

CloudCatalogServer is the server API for CloudCatalog service.

type CreateBillingAccountRequest Uses

type CreateBillingAccountRequest struct {

    // Required. The billing account resource to create.
    // Currently CreateBillingAccount only supports subaccount creation, so
    // any created billing accounts must be under a provided master billing
    // account.
    BillingAccount *BillingAccount `protobuf:"bytes,1,opt,name=billing_account,json=billingAccount,proto3" json:"billing_account,omitempty"`
    // contains filtered or unexported fields
}

Request message for `CreateBillingAccount`.

func (*CreateBillingAccountRequest) Descriptor Uses

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

Deprecated: Use CreateBillingAccountRequest.ProtoReflect.Descriptor instead.

func (*CreateBillingAccountRequest) GetBillingAccount Uses

func (x *CreateBillingAccountRequest) GetBillingAccount() *BillingAccount

func (*CreateBillingAccountRequest) ProtoMessage Uses

func (*CreateBillingAccountRequest) ProtoMessage()

func (*CreateBillingAccountRequest) ProtoReflect Uses

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

func (*CreateBillingAccountRequest) Reset Uses

func (x *CreateBillingAccountRequest) Reset()

func (*CreateBillingAccountRequest) String Uses

func (x *CreateBillingAccountRequest) String() string

type GetBillingAccountRequest Uses

type GetBillingAccountRequest struct {

    // Required. The resource name of the billing account to retrieve. For example,
    // `billingAccounts/012345-567890-ABCDEF`.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // contains filtered or unexported fields
}

Request message for `GetBillingAccount`.

func (*GetBillingAccountRequest) Descriptor Uses

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

Deprecated: Use GetBillingAccountRequest.ProtoReflect.Descriptor instead.

func (*GetBillingAccountRequest) GetName Uses

func (x *GetBillingAccountRequest) GetName() string

func (*GetBillingAccountRequest) ProtoMessage Uses

func (*GetBillingAccountRequest) ProtoMessage()

func (*GetBillingAccountRequest) ProtoReflect Uses

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

func (*GetBillingAccountRequest) Reset Uses

func (x *GetBillingAccountRequest) Reset()

func (*GetBillingAccountRequest) String Uses

func (x *GetBillingAccountRequest) String() string

type GetProjectBillingInfoRequest Uses

type GetProjectBillingInfoRequest struct {

    // Required. The resource name of the project for which billing information is
    // retrieved. For example, `projects/tokyo-rain-123`.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // contains filtered or unexported fields
}

Request message for `GetProjectBillingInfo`.

func (*GetProjectBillingInfoRequest) Descriptor Uses

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

Deprecated: Use GetProjectBillingInfoRequest.ProtoReflect.Descriptor instead.

func (*GetProjectBillingInfoRequest) GetName Uses

func (x *GetProjectBillingInfoRequest) GetName() string

func (*GetProjectBillingInfoRequest) ProtoMessage Uses

func (*GetProjectBillingInfoRequest) ProtoMessage()

func (*GetProjectBillingInfoRequest) ProtoReflect Uses

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

func (*GetProjectBillingInfoRequest) Reset Uses

func (x *GetProjectBillingInfoRequest) Reset()

func (*GetProjectBillingInfoRequest) String Uses

func (x *GetProjectBillingInfoRequest) String() string

type ListBillingAccountsRequest Uses

type ListBillingAccountsRequest struct {

    // Requested page size. The maximum page size is 100; this is also the
    // default.
    PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
    // A token identifying a page of results to return. This should be a
    // `next_page_token` value returned from a previous `ListBillingAccounts`
    // call. If unspecified, the first page of results is returned.
    PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
    // Options for how to filter the returned billing accounts.
    // Currently this only supports filtering for
    // [subaccounts](https://cloud.google.com/billing/docs/concepts) under a
    // single provided reseller billing account.
    // (e.g. "master_billing_account=billingAccounts/012345-678901-ABCDEF").
    // Boolean algebra and other fields are not currently supported.
    Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
    // contains filtered or unexported fields
}

Request message for `ListBillingAccounts`.

func (*ListBillingAccountsRequest) Descriptor Uses

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

Deprecated: Use ListBillingAccountsRequest.ProtoReflect.Descriptor instead.

func (*ListBillingAccountsRequest) GetFilter Uses

func (x *ListBillingAccountsRequest) GetFilter() string

func (*ListBillingAccountsRequest) GetPageSize Uses

func (x *ListBillingAccountsRequest) GetPageSize() int32

func (*ListBillingAccountsRequest) GetPageToken Uses

func (x *ListBillingAccountsRequest) GetPageToken() string

func (*ListBillingAccountsRequest) ProtoMessage Uses

func (*ListBillingAccountsRequest) ProtoMessage()

func (*ListBillingAccountsRequest) ProtoReflect Uses

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

func (*ListBillingAccountsRequest) Reset Uses

func (x *ListBillingAccountsRequest) Reset()

func (*ListBillingAccountsRequest) String Uses

func (x *ListBillingAccountsRequest) String() string

type ListBillingAccountsResponse Uses

type ListBillingAccountsResponse struct {

    // A list of billing accounts.
    BillingAccounts []*BillingAccount `protobuf:"bytes,1,rep,name=billing_accounts,json=billingAccounts,proto3" json:"billing_accounts,omitempty"`
    // A token to retrieve the next page of results. To retrieve the next page,
    // call `ListBillingAccounts` again with the `page_token` field set to this
    // value. This field is empty if there are no more results to retrieve.
    NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
    // contains filtered or unexported fields
}

Response message for `ListBillingAccounts`.

func (*ListBillingAccountsResponse) Descriptor Uses

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

Deprecated: Use ListBillingAccountsResponse.ProtoReflect.Descriptor instead.

func (*ListBillingAccountsResponse) GetBillingAccounts Uses

func (x *ListBillingAccountsResponse) GetBillingAccounts() []*BillingAccount

func (*ListBillingAccountsResponse) GetNextPageToken Uses

func (x *ListBillingAccountsResponse) GetNextPageToken() string

func (*ListBillingAccountsResponse) ProtoMessage Uses

func (*ListBillingAccountsResponse) ProtoMessage()

func (*ListBillingAccountsResponse) ProtoReflect Uses

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

func (*ListBillingAccountsResponse) Reset Uses

func (x *ListBillingAccountsResponse) Reset()

func (*ListBillingAccountsResponse) String Uses

func (x *ListBillingAccountsResponse) String() string

type ListProjectBillingInfoRequest Uses

type ListProjectBillingInfoRequest struct {

    // Required. The resource name of the billing account associated with the projects that
    // you want to list. For example, `billingAccounts/012345-567890-ABCDEF`.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // Requested page size. The maximum page size is 100; this is also the
    // default.
    PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
    // A token identifying a page of results to be returned. This should be a
    // `next_page_token` value returned from a previous `ListProjectBillingInfo`
    // call. If unspecified, the first page of results is returned.
    PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
    // contains filtered or unexported fields
}

Request message for `ListProjectBillingInfo`.

func (*ListProjectBillingInfoRequest) Descriptor Uses

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

Deprecated: Use ListProjectBillingInfoRequest.ProtoReflect.Descriptor instead.

func (*ListProjectBillingInfoRequest) GetName Uses

func (x *ListProjectBillingInfoRequest) GetName() string

func (*ListProjectBillingInfoRequest) GetPageSize Uses

func (x *ListProjectBillingInfoRequest) GetPageSize() int32

func (*ListProjectBillingInfoRequest) GetPageToken Uses

func (x *ListProjectBillingInfoRequest) GetPageToken() string

func (*ListProjectBillingInfoRequest) ProtoMessage Uses

func (*ListProjectBillingInfoRequest) ProtoMessage()

func (*ListProjectBillingInfoRequest) ProtoReflect Uses

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

func (*ListProjectBillingInfoRequest) Reset Uses

func (x *ListProjectBillingInfoRequest) Reset()

func (*ListProjectBillingInfoRequest) String Uses

func (x *ListProjectBillingInfoRequest) String() string

type ListProjectBillingInfoResponse Uses

type ListProjectBillingInfoResponse struct {

    // A list of `ProjectBillingInfo` resources representing the projects
    // associated with the billing account.
    ProjectBillingInfo []*ProjectBillingInfo `protobuf:"bytes,1,rep,name=project_billing_info,json=projectBillingInfo,proto3" json:"project_billing_info,omitempty"`
    // A token to retrieve the next page of results. To retrieve the next page,
    // call `ListProjectBillingInfo` again with the `page_token` field set to this
    // value. This field is empty if there are no more results to retrieve.
    NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
    // contains filtered or unexported fields
}

Request message for `ListProjectBillingInfoResponse`.

func (*ListProjectBillingInfoResponse) Descriptor Uses

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

Deprecated: Use ListProjectBillingInfoResponse.ProtoReflect.Descriptor instead.

func (*ListProjectBillingInfoResponse) GetNextPageToken Uses

func (x *ListProjectBillingInfoResponse) GetNextPageToken() string

func (*ListProjectBillingInfoResponse) GetProjectBillingInfo Uses

func (x *ListProjectBillingInfoResponse) GetProjectBillingInfo() []*ProjectBillingInfo

func (*ListProjectBillingInfoResponse) ProtoMessage Uses

func (*ListProjectBillingInfoResponse) ProtoMessage()

func (*ListProjectBillingInfoResponse) ProtoReflect Uses

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

func (*ListProjectBillingInfoResponse) Reset Uses

func (x *ListProjectBillingInfoResponse) Reset()

func (*ListProjectBillingInfoResponse) String Uses

func (x *ListProjectBillingInfoResponse) String() string

type ListServicesRequest Uses

type ListServicesRequest struct {

    // Requested page size. Defaults to 5000.
    PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
    // A token identifying a page of results to return. This should be a
    // `next_page_token` value returned from a previous `ListServices`
    // call. If unspecified, the first page of results is returned.
    PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
    // contains filtered or unexported fields
}

Request message for `ListServices`.

func (*ListServicesRequest) Descriptor Uses

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

Deprecated: Use ListServicesRequest.ProtoReflect.Descriptor instead.

func (*ListServicesRequest) GetPageSize Uses

func (x *ListServicesRequest) GetPageSize() int32

func (*ListServicesRequest) GetPageToken Uses

func (x *ListServicesRequest) GetPageToken() string

func (*ListServicesRequest) ProtoMessage Uses

func (*ListServicesRequest) ProtoMessage()

func (*ListServicesRequest) ProtoReflect Uses

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

func (*ListServicesRequest) Reset Uses

func (x *ListServicesRequest) Reset()

func (*ListServicesRequest) String Uses

func (x *ListServicesRequest) String() string

type ListServicesResponse Uses

type ListServicesResponse struct {

    // A list of services.
    Services []*Service `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"`
    // A token to retrieve the next page of results. To retrieve the next page,
    // call `ListServices` again with the `page_token` field set to this
    // value. This field is empty if there are no more results to retrieve.
    NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
    // contains filtered or unexported fields
}

Response message for `ListServices`.

func (*ListServicesResponse) Descriptor Uses

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

Deprecated: Use ListServicesResponse.ProtoReflect.Descriptor instead.

func (*ListServicesResponse) GetNextPageToken Uses

func (x *ListServicesResponse) GetNextPageToken() string

func (*ListServicesResponse) GetServices Uses

func (x *ListServicesResponse) GetServices() []*Service

func (*ListServicesResponse) ProtoMessage Uses

func (*ListServicesResponse) ProtoMessage()

func (*ListServicesResponse) ProtoReflect Uses

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

func (*ListServicesResponse) Reset Uses

func (x *ListServicesResponse) Reset()

func (*ListServicesResponse) String Uses

func (x *ListServicesResponse) String() string

type ListSkusRequest Uses

type ListSkusRequest struct {

    // Required. The name of the service.
    // Example: "services/DA34-426B-A397"
    Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
    // Optional inclusive start time of the time range for which the pricing
    // versions will be returned. Timestamps in the future are not allowed.
    // The time range has to be within a single calendar month in
    // America/Los_Angeles timezone. Time range as a whole is optional. If not
    // specified, the latest pricing will be returned (up to 12 hours old at
    // most).
    StartTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
    // Optional exclusive end time of the time range for which the pricing
    // versions will be returned. Timestamps in the future are not allowed.
    // The time range has to be within a single calendar month in
    // America/Los_Angeles timezone. Time range as a whole is optional. If not
    // specified, the latest pricing will be returned (up to 12 hours old at
    // most).
    EndTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
    // The ISO 4217 currency code for the pricing info in the response proto.
    // Will use the conversion rate as of start_time.
    // Optional. If not specified USD will be used.
    CurrencyCode string `protobuf:"bytes,4,opt,name=currency_code,json=currencyCode,proto3" json:"currency_code,omitempty"`
    // Requested page size. Defaults to 5000.
    PageSize int32 `protobuf:"varint,5,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
    // A token identifying a page of results to return. This should be a
    // `next_page_token` value returned from a previous `ListSkus`
    // call. If unspecified, the first page of results is returned.
    PageToken string `protobuf:"bytes,6,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
    // contains filtered or unexported fields
}

Request message for `ListSkus`.

func (*ListSkusRequest) Descriptor Uses

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

Deprecated: Use ListSkusRequest.ProtoReflect.Descriptor instead.

func (*ListSkusRequest) GetCurrencyCode Uses

func (x *ListSkusRequest) GetCurrencyCode() string

func (*ListSkusRequest) GetEndTime Uses

func (x *ListSkusRequest) GetEndTime() *timestamp.Timestamp

func (*ListSkusRequest) GetPageSize Uses

func (x *ListSkusRequest) GetPageSize() int32

func (*ListSkusRequest) GetPageToken Uses

func (x *ListSkusRequest) GetPageToken() string

func (*ListSkusRequest) GetParent Uses

func (x *ListSkusRequest) GetParent() string

func (*ListSkusRequest) GetStartTime Uses

func (x *ListSkusRequest) GetStartTime() *timestamp.Timestamp

func (*ListSkusRequest) ProtoMessage Uses

func (*ListSkusRequest) ProtoMessage()

func (*ListSkusRequest) ProtoReflect Uses

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

func (*ListSkusRequest) Reset Uses

func (x *ListSkusRequest) Reset()

func (*ListSkusRequest) String Uses

func (x *ListSkusRequest) String() string

type ListSkusResponse Uses

type ListSkusResponse struct {

    // The list of public SKUs of the given service.
    Skus []*Sku `protobuf:"bytes,1,rep,name=skus,proto3" json:"skus,omitempty"`
    // A token to retrieve the next page of results. To retrieve the next page,
    // call `ListSkus` again with the `page_token` field set to this
    // value. This field is empty if there are no more results to retrieve.
    NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
    // contains filtered or unexported fields
}

Response message for `ListSkus`.

func (*ListSkusResponse) Descriptor Uses

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

Deprecated: Use ListSkusResponse.ProtoReflect.Descriptor instead.

func (*ListSkusResponse) GetNextPageToken Uses

func (x *ListSkusResponse) GetNextPageToken() string

func (*ListSkusResponse) GetSkus Uses

func (x *ListSkusResponse) GetSkus() []*Sku

func (*ListSkusResponse) ProtoMessage Uses

func (*ListSkusResponse) ProtoMessage()

func (*ListSkusResponse) ProtoReflect Uses

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

func (*ListSkusResponse) Reset Uses

func (x *ListSkusResponse) Reset()

func (*ListSkusResponse) String Uses

func (x *ListSkusResponse) String() string

type PricingExpression Uses

type PricingExpression struct {

    // The short hand for unit of usage this pricing is specified in.
    // Example: usage_unit of "GiBy" means that usage is specified in "Gibi Byte".
    UsageUnit string `protobuf:"bytes,1,opt,name=usage_unit,json=usageUnit,proto3" json:"usage_unit,omitempty"`
    // The unit of usage in human readable form.
    // Example: "gibi byte".
    UsageUnitDescription string `protobuf:"bytes,4,opt,name=usage_unit_description,json=usageUnitDescription,proto3" json:"usage_unit_description,omitempty"`
    // The base unit for the SKU which is the unit used in usage exports.
    // Example: "By"
    BaseUnit string `protobuf:"bytes,5,opt,name=base_unit,json=baseUnit,proto3" json:"base_unit,omitempty"`
    // The base unit in human readable form.
    // Example: "byte".
    BaseUnitDescription string `protobuf:"bytes,6,opt,name=base_unit_description,json=baseUnitDescription,proto3" json:"base_unit_description,omitempty"`
    // Conversion factor for converting from price per usage_unit to price per
    // base_unit, and start_usage_amount to start_usage_amount in base_unit.
    // unit_price / base_unit_conversion_factor = price per base_unit.
    // start_usage_amount * base_unit_conversion_factor = start_usage_amount in
    // base_unit.
    BaseUnitConversionFactor float64 `protobuf:"fixed64,7,opt,name=base_unit_conversion_factor,json=baseUnitConversionFactor,proto3" json:"base_unit_conversion_factor,omitempty"`
    // The recommended quantity of units for displaying pricing info. When
    // displaying pricing info it is recommended to display:
    // (unit_price * display_quantity) per display_quantity usage_unit.
    // This field does not affect the pricing formula and is for display purposes
    // only.
    // Example: If the unit_price is "0.0001 USD", the usage_unit is "GB" and
    // the display_quantity is "1000" then the recommended way of displaying the
    // pricing info is "0.10 USD per 1000 GB"
    DisplayQuantity float64 `protobuf:"fixed64,2,opt,name=display_quantity,json=displayQuantity,proto3" json:"display_quantity,omitempty"`
    // The list of tiered rates for this pricing. The total cost is computed by
    // applying each of the tiered rates on usage. This repeated list is sorted
    // by ascending order of start_usage_amount.
    TieredRates []*PricingExpression_TierRate `protobuf:"bytes,3,rep,name=tiered_rates,json=tieredRates,proto3" json:"tiered_rates,omitempty"`
    // contains filtered or unexported fields
}

Expresses a mathematical pricing formula. For Example:-

`usage_unit: GBy` `tiered_rates:`

`[start_usage_amount: 20, unit_price: $10]`
`[start_usage_amount: 100, unit_price: $5]`

The above expresses a pricing formula where the first 20GB is free, the next 80GB is priced at $10 per GB followed by $5 per GB for additional usage.

func (*PricingExpression) Descriptor Uses

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

Deprecated: Use PricingExpression.ProtoReflect.Descriptor instead.

func (*PricingExpression) GetBaseUnit Uses

func (x *PricingExpression) GetBaseUnit() string

func (*PricingExpression) GetBaseUnitConversionFactor Uses

func (x *PricingExpression) GetBaseUnitConversionFactor() float64

func (*PricingExpression) GetBaseUnitDescription Uses

func (x *PricingExpression) GetBaseUnitDescription() string

func (*PricingExpression) GetDisplayQuantity Uses

func (x *PricingExpression) GetDisplayQuantity() float64

func (*PricingExpression) GetTieredRates Uses

func (x *PricingExpression) GetTieredRates() []*PricingExpression_TierRate

func (*PricingExpression) GetUsageUnit Uses

func (x *PricingExpression) GetUsageUnit() string

func (*PricingExpression) GetUsageUnitDescription Uses

func (x *PricingExpression) GetUsageUnitDescription() string

func (*PricingExpression) ProtoMessage Uses

func (*PricingExpression) ProtoMessage()

func (*PricingExpression) ProtoReflect Uses

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

func (*PricingExpression) Reset Uses

func (x *PricingExpression) Reset()

func (*PricingExpression) String Uses

func (x *PricingExpression) String() string

type PricingExpression_TierRate Uses

type PricingExpression_TierRate struct {

    // Usage is priced at this rate only after this amount.
    // Example: start_usage_amount of 10 indicates that the usage will be priced
    // at the unit_price after the first 10 usage_units.
    StartUsageAmount float64 `protobuf:"fixed64,1,opt,name=start_usage_amount,json=startUsageAmount,proto3" json:"start_usage_amount,omitempty"`
    // The price per unit of usage.
    // Example: unit_price of amount $10 indicates that each unit will cost $10.
    UnitPrice *money.Money `protobuf:"bytes,2,opt,name=unit_price,json=unitPrice,proto3" json:"unit_price,omitempty"`
    // contains filtered or unexported fields
}

The price rate indicating starting usage and its corresponding price.

func (*PricingExpression_TierRate) Descriptor Uses

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

Deprecated: Use PricingExpression_TierRate.ProtoReflect.Descriptor instead.

func (*PricingExpression_TierRate) GetStartUsageAmount Uses

func (x *PricingExpression_TierRate) GetStartUsageAmount() float64

func (*PricingExpression_TierRate) GetUnitPrice Uses

func (x *PricingExpression_TierRate) GetUnitPrice() *money.Money

func (*PricingExpression_TierRate) ProtoMessage Uses

func (*PricingExpression_TierRate) ProtoMessage()

func (*PricingExpression_TierRate) ProtoReflect Uses

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

func (*PricingExpression_TierRate) Reset Uses

func (x *PricingExpression_TierRate) Reset()

func (*PricingExpression_TierRate) String Uses

func (x *PricingExpression_TierRate) String() string

type PricingInfo Uses

type PricingInfo struct {

    // The timestamp from which this pricing was effective within the requested
    // time range. This is guaranteed to be greater than or equal to the
    // start_time field in the request and less than the end_time field in the
    // request. If a time range was not specified in the request this field will
    // be equivalent to a time within the last 12 hours, indicating the latest
    // pricing info.
    EffectiveTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=effective_time,json=effectiveTime,proto3" json:"effective_time,omitempty"`
    // An optional human readable summary of the pricing information, has a
    // maximum length of 256 characters.
    Summary string `protobuf:"bytes,2,opt,name=summary,proto3" json:"summary,omitempty"`
    // Expresses the pricing formula. See `PricingExpression` for an example.
    PricingExpression *PricingExpression `protobuf:"bytes,3,opt,name=pricing_expression,json=pricingExpression,proto3" json:"pricing_expression,omitempty"`
    // Aggregation Info. This can be left unspecified if the pricing expression
    // doesn't require aggregation.
    AggregationInfo *AggregationInfo `protobuf:"bytes,4,opt,name=aggregation_info,json=aggregationInfo,proto3" json:"aggregation_info,omitempty"`
    // Conversion rate used for currency conversion, from USD to the currency
    // specified in the request. This includes any surcharge collected for billing
    // in non USD currency. If a currency is not specified in the request this
    // defaults to 1.0.
    // Example: USD * currency_conversion_rate = JPY
    CurrencyConversionRate float64 `protobuf:"fixed64,5,opt,name=currency_conversion_rate,json=currencyConversionRate,proto3" json:"currency_conversion_rate,omitempty"`
    // contains filtered or unexported fields
}

Represents the pricing information for a SKU at a single point of time.

func (*PricingInfo) Descriptor Uses

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

Deprecated: Use PricingInfo.ProtoReflect.Descriptor instead.

func (*PricingInfo) GetAggregationInfo Uses

func (x *PricingInfo) GetAggregationInfo() *AggregationInfo

func (*PricingInfo) GetCurrencyConversionRate Uses

func (x *PricingInfo) GetCurrencyConversionRate() float64

func (*PricingInfo) GetEffectiveTime Uses

func (x *PricingInfo) GetEffectiveTime() *timestamp.Timestamp

func (*PricingInfo) GetPricingExpression Uses

func (x *PricingInfo) GetPricingExpression() *PricingExpression

func (*PricingInfo) GetSummary Uses

func (x *PricingInfo) GetSummary() string

func (*PricingInfo) ProtoMessage Uses

func (*PricingInfo) ProtoMessage()

func (*PricingInfo) ProtoReflect Uses

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

func (*PricingInfo) Reset Uses

func (x *PricingInfo) Reset()

func (*PricingInfo) String Uses

func (x *PricingInfo) String() string

type ProjectBillingInfo Uses

type ProjectBillingInfo struct {

    // The resource name for the `ProjectBillingInfo`; has the form
    // `projects/{project_id}/billingInfo`. For example, the resource name for the
    // billing information for project `tokyo-rain-123` would be
    // `projects/tokyo-rain-123/billingInfo`. This field is read-only.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // The ID of the project that this `ProjectBillingInfo` represents, such as
    // `tokyo-rain-123`. This is a convenience field so that you don't need to
    // parse the `name` field to obtain a project ID. This field is read-only.
    ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
    // The resource name of the billing account associated with the project, if
    // any. For example, `billingAccounts/012345-567890-ABCDEF`.
    BillingAccountName string `protobuf:"bytes,3,opt,name=billing_account_name,json=billingAccountName,proto3" json:"billing_account_name,omitempty"`
    // True if the project is associated with an open billing account, to which
    // usage on the project is charged. False if the project is associated with a
    // closed billing account, or no billing account at all, and therefore cannot
    // use paid services. This field is read-only.
    BillingEnabled bool `protobuf:"varint,4,opt,name=billing_enabled,json=billingEnabled,proto3" json:"billing_enabled,omitempty"`
    // contains filtered or unexported fields
}

Encapsulation of billing information for a GCP Console project. A project has at most one associated billing account at a time (but a billing account can be assigned to multiple projects).

func (*ProjectBillingInfo) Descriptor Uses

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

Deprecated: Use ProjectBillingInfo.ProtoReflect.Descriptor instead.

func (*ProjectBillingInfo) GetBillingAccountName Uses

func (x *ProjectBillingInfo) GetBillingAccountName() string

func (*ProjectBillingInfo) GetBillingEnabled Uses

func (x *ProjectBillingInfo) GetBillingEnabled() bool

func (*ProjectBillingInfo) GetName Uses

func (x *ProjectBillingInfo) GetName() string

func (*ProjectBillingInfo) GetProjectId Uses

func (x *ProjectBillingInfo) GetProjectId() string

func (*ProjectBillingInfo) ProtoMessage Uses

func (*ProjectBillingInfo) ProtoMessage()

func (*ProjectBillingInfo) ProtoReflect Uses

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

func (*ProjectBillingInfo) Reset Uses

func (x *ProjectBillingInfo) Reset()

func (*ProjectBillingInfo) String Uses

func (x *ProjectBillingInfo) String() string

type Service Uses

type Service struct {

    // The resource name for the service.
    // Example: "services/DA34-426B-A397"
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // The identifier for the service.
    // Example: "DA34-426B-A397"
    ServiceId string `protobuf:"bytes,2,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
    // A human readable display name for this service.
    DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
    // The business under which the service is offered.
    // Ex. "businessEntities/GCP", "businessEntities/Maps"
    BusinessEntityName string `protobuf:"bytes,4,opt,name=business_entity_name,json=businessEntityName,proto3" json:"business_entity_name,omitempty"`
    // contains filtered or unexported fields
}

Encapsulates a single service in Google Cloud Platform.

func (*Service) Descriptor Uses

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

Deprecated: Use Service.ProtoReflect.Descriptor instead.

func (*Service) GetBusinessEntityName Uses

func (x *Service) GetBusinessEntityName() string

func (*Service) GetDisplayName Uses

func (x *Service) GetDisplayName() string

func (*Service) GetName Uses

func (x *Service) GetName() string

func (*Service) GetServiceId Uses

func (x *Service) GetServiceId() string

func (*Service) ProtoMessage Uses

func (*Service) ProtoMessage()

func (*Service) ProtoReflect Uses

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

func (*Service) Reset Uses

func (x *Service) Reset()

func (*Service) String Uses

func (x *Service) String() string

type Sku Uses

type Sku struct {

    // The resource name for the SKU.
    // Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // The identifier for the SKU.
    // Example: "AA95-CD31-42FE"
    SkuId string `protobuf:"bytes,2,opt,name=sku_id,json=skuId,proto3" json:"sku_id,omitempty"`
    // A human readable description of the SKU, has a maximum length of 256
    // characters.
    Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
    // The category hierarchy of this SKU, purely for organizational purpose.
    Category *Category `protobuf:"bytes,4,opt,name=category,proto3" json:"category,omitempty"`
    // List of service regions this SKU is offered at.
    // Example: "asia-east1"
    // Service regions can be found at https://cloud.google.com/about/locations/
    ServiceRegions []string `protobuf:"bytes,5,rep,name=service_regions,json=serviceRegions,proto3" json:"service_regions,omitempty"`
    // A timeline of pricing info for this SKU in chronological order.
    PricingInfo []*PricingInfo `protobuf:"bytes,6,rep,name=pricing_info,json=pricingInfo,proto3" json:"pricing_info,omitempty"`
    // Identifies the service provider.
    // This is 'Google' for first party services in Google Cloud Platform.
    ServiceProviderName string `protobuf:"bytes,7,opt,name=service_provider_name,json=serviceProviderName,proto3" json:"service_provider_name,omitempty"`
    // contains filtered or unexported fields
}

Encapsulates a single SKU in Google Cloud Platform

func (*Sku) Descriptor Uses

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

Deprecated: Use Sku.ProtoReflect.Descriptor instead.

func (*Sku) GetCategory Uses

func (x *Sku) GetCategory() *Category

func (*Sku) GetDescription Uses

func (x *Sku) GetDescription() string

func (*Sku) GetName Uses

func (x *Sku) GetName() string

func (*Sku) GetPricingInfo Uses

func (x *Sku) GetPricingInfo() []*PricingInfo

func (*Sku) GetServiceProviderName Uses

func (x *Sku) GetServiceProviderName() string

func (*Sku) GetServiceRegions Uses

func (x *Sku) GetServiceRegions() []string

func (*Sku) GetSkuId Uses

func (x *Sku) GetSkuId() string

func (*Sku) ProtoMessage Uses

func (*Sku) ProtoMessage()

func (*Sku) ProtoReflect Uses

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

func (*Sku) Reset Uses

func (x *Sku) Reset()

func (*Sku) String Uses

func (x *Sku) String() string

type UnimplementedCloudBillingServer Uses

type UnimplementedCloudBillingServer struct {
}

UnimplementedCloudBillingServer can be embedded to have forward compatible implementations.

func (*UnimplementedCloudBillingServer) CreateBillingAccount Uses

func (*UnimplementedCloudBillingServer) CreateBillingAccount(context.Context, *CreateBillingAccountRequest) (*BillingAccount, error)

func (*UnimplementedCloudBillingServer) GetBillingAccount Uses

func (*UnimplementedCloudBillingServer) GetBillingAccount(context.Context, *GetBillingAccountRequest) (*BillingAccount, error)

func (*UnimplementedCloudBillingServer) GetIamPolicy Uses

func (*UnimplementedCloudBillingServer) GetIamPolicy(context.Context, *v1.GetIamPolicyRequest) (*v1.Policy, error)

func (*UnimplementedCloudBillingServer) GetProjectBillingInfo Uses

func (*UnimplementedCloudBillingServer) GetProjectBillingInfo(context.Context, *GetProjectBillingInfoRequest) (*ProjectBillingInfo, error)

func (*UnimplementedCloudBillingServer) ListBillingAccounts Uses

func (*UnimplementedCloudBillingServer) ListBillingAccounts(context.Context, *ListBillingAccountsRequest) (*ListBillingAccountsResponse, error)

func (*UnimplementedCloudBillingServer) ListProjectBillingInfo Uses

func (*UnimplementedCloudBillingServer) ListProjectBillingInfo(context.Context, *ListProjectBillingInfoRequest) (*ListProjectBillingInfoResponse, error)

func (*UnimplementedCloudBillingServer) SetIamPolicy Uses

func (*UnimplementedCloudBillingServer) SetIamPolicy(context.Context, *v1.SetIamPolicyRequest) (*v1.Policy, error)

func (*UnimplementedCloudBillingServer) TestIamPermissions Uses

func (*UnimplementedCloudBillingServer) TestIamPermissions(context.Context, *v1.TestIamPermissionsRequest) (*v1.TestIamPermissionsResponse, error)

func (*UnimplementedCloudBillingServer) UpdateBillingAccount Uses

func (*UnimplementedCloudBillingServer) UpdateBillingAccount(context.Context, *UpdateBillingAccountRequest) (*BillingAccount, error)

func (*UnimplementedCloudBillingServer) UpdateProjectBillingInfo Uses

func (*UnimplementedCloudBillingServer) UpdateProjectBillingInfo(context.Context, *UpdateProjectBillingInfoRequest) (*ProjectBillingInfo, error)

type UnimplementedCloudCatalogServer Uses

type UnimplementedCloudCatalogServer struct {
}

UnimplementedCloudCatalogServer can be embedded to have forward compatible implementations.

func (*UnimplementedCloudCatalogServer) ListServices Uses

func (*UnimplementedCloudCatalogServer) ListServices(context.Context, *ListServicesRequest) (*ListServicesResponse, error)

func (*UnimplementedCloudCatalogServer) ListSkus Uses

func (*UnimplementedCloudCatalogServer) ListSkus(context.Context, *ListSkusRequest) (*ListSkusResponse, error)

type UpdateBillingAccountRequest Uses

type UpdateBillingAccountRequest struct {

    // Required. The name of the billing account resource to be updated.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // Required. The billing account resource to replace the resource on the server.
    Account *BillingAccount `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"`
    // The update mask applied to the resource.
    // Only "display_name" is currently supported.
    UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
    // contains filtered or unexported fields
}

Request message for `UpdateBillingAccount`.

func (*UpdateBillingAccountRequest) Descriptor Uses

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

Deprecated: Use UpdateBillingAccountRequest.ProtoReflect.Descriptor instead.

func (*UpdateBillingAccountRequest) GetAccount Uses

func (x *UpdateBillingAccountRequest) GetAccount() *BillingAccount

func (*UpdateBillingAccountRequest) GetName Uses

func (x *UpdateBillingAccountRequest) GetName() string

func (*UpdateBillingAccountRequest) GetUpdateMask Uses

func (x *UpdateBillingAccountRequest) GetUpdateMask() *field_mask.FieldMask

func (*UpdateBillingAccountRequest) ProtoMessage Uses

func (*UpdateBillingAccountRequest) ProtoMessage()

func (*UpdateBillingAccountRequest) ProtoReflect Uses

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

func (*UpdateBillingAccountRequest) Reset Uses

func (x *UpdateBillingAccountRequest) Reset()

func (*UpdateBillingAccountRequest) String Uses

func (x *UpdateBillingAccountRequest) String() string

type UpdateProjectBillingInfoRequest Uses

type UpdateProjectBillingInfoRequest struct {

    // Required. The resource name of the project associated with the billing information
    // that you want to update. For example, `projects/tokyo-rain-123`.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // The new billing information for the project. Read-only fields are ignored;
    // thus, you can leave empty all fields except `billing_account_name`.
    ProjectBillingInfo *ProjectBillingInfo `protobuf:"bytes,2,opt,name=project_billing_info,json=projectBillingInfo,proto3" json:"project_billing_info,omitempty"`
    // contains filtered or unexported fields
}

Request message for `UpdateProjectBillingInfo`.

func (*UpdateProjectBillingInfoRequest) Descriptor Uses

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

Deprecated: Use UpdateProjectBillingInfoRequest.ProtoReflect.Descriptor instead.

func (*UpdateProjectBillingInfoRequest) GetName Uses

func (x *UpdateProjectBillingInfoRequest) GetName() string

func (*UpdateProjectBillingInfoRequest) GetProjectBillingInfo Uses

func (x *UpdateProjectBillingInfoRequest) GetProjectBillingInfo() *ProjectBillingInfo

func (*UpdateProjectBillingInfoRequest) ProtoMessage Uses

func (*UpdateProjectBillingInfoRequest) ProtoMessage()

func (*UpdateProjectBillingInfoRequest) ProtoReflect Uses

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

func (*UpdateProjectBillingInfoRequest) Reset Uses

func (x *UpdateProjectBillingInfoRequest) Reset()

func (*UpdateProjectBillingInfoRequest) String Uses

func (x *UpdateProjectBillingInfoRequest) String() string

Package billing imports 14 packages (graph) and is imported by 1 packages. Updated 2020-06-16. Refresh now. Tools for package owners.