Versions in this module Expand all Collapse all v0 v0.0.1 Dec 7, 2023 Changes in this version + const CloudBillingReadonlyScope + const CloudBillingScope + const CloudPlatformScope + type APIService struct + BasePath string + BillingAccounts *BillingAccountsService + Organizations *OrganizationsService + Projects *ProjectsService + Services *ServicesService + UserAgent string + func New(client *http.Client) (*APIService, error) + func NewService(ctx context.Context, opts ...option.ClientOption) (*APIService, error) + type AggregationInfo struct + AggregationCount int64 + AggregationInterval string + AggregationLevel string + ForceSendFields []string + NullFields []string + func (s *AggregationInfo) MarshalJSON() ([]byte, error) + type AuditConfig struct + AuditLogConfigs []*AuditLogConfig + ForceSendFields []string + NullFields []string + Service string + func (s *AuditConfig) MarshalJSON() ([]byte, error) + type AuditLogConfig struct + ExemptedMembers []string + ForceSendFields []string + LogType string + NullFields []string + func (s *AuditLogConfig) MarshalJSON() ([]byte, error) + type BillingAccount struct + DisplayName string + ForceSendFields []string + MasterBillingAccount string + Name string + NullFields []string + Open bool + Parent string + func (s *BillingAccount) MarshalJSON() ([]byte, error) + type BillingAccountsCreateCall struct + func (c *BillingAccountsCreateCall) Context(ctx context.Context) *BillingAccountsCreateCall + func (c *BillingAccountsCreateCall) Do(opts ...googleapi.CallOption) (*BillingAccount, error) + func (c *BillingAccountsCreateCall) Fields(s ...googleapi.Field) *BillingAccountsCreateCall + func (c *BillingAccountsCreateCall) Header() http.Header + func (c *BillingAccountsCreateCall) Parent(parent string) *BillingAccountsCreateCall + type BillingAccountsGetCall struct + func (c *BillingAccountsGetCall) Context(ctx context.Context) *BillingAccountsGetCall + func (c *BillingAccountsGetCall) Do(opts ...googleapi.CallOption) (*BillingAccount, error) + func (c *BillingAccountsGetCall) Fields(s ...googleapi.Field) *BillingAccountsGetCall + func (c *BillingAccountsGetCall) Header() http.Header + func (c *BillingAccountsGetCall) IfNoneMatch(entityTag string) *BillingAccountsGetCall + type BillingAccountsGetIamPolicyCall struct + func (c *BillingAccountsGetIamPolicyCall) Context(ctx context.Context) *BillingAccountsGetIamPolicyCall + func (c *BillingAccountsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) + func (c *BillingAccountsGetIamPolicyCall) Fields(s ...googleapi.Field) *BillingAccountsGetIamPolicyCall + func (c *BillingAccountsGetIamPolicyCall) Header() http.Header + func (c *BillingAccountsGetIamPolicyCall) IfNoneMatch(entityTag string) *BillingAccountsGetIamPolicyCall + func (c *BillingAccountsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *BillingAccountsGetIamPolicyCall + type BillingAccountsListCall struct + func (c *BillingAccountsListCall) Context(ctx context.Context) *BillingAccountsListCall + func (c *BillingAccountsListCall) Do(opts ...googleapi.CallOption) (*ListBillingAccountsResponse, error) + func (c *BillingAccountsListCall) Fields(s ...googleapi.Field) *BillingAccountsListCall + func (c *BillingAccountsListCall) Filter(filter string) *BillingAccountsListCall + func (c *BillingAccountsListCall) Header() http.Header + func (c *BillingAccountsListCall) IfNoneMatch(entityTag string) *BillingAccountsListCall + func (c *BillingAccountsListCall) PageSize(pageSize int64) *BillingAccountsListCall + func (c *BillingAccountsListCall) PageToken(pageToken string) *BillingAccountsListCall + func (c *BillingAccountsListCall) Pages(ctx context.Context, f func(*ListBillingAccountsResponse) error) error + func (c *BillingAccountsListCall) Parent(parent string) *BillingAccountsListCall + type BillingAccountsMoveCall struct + func (c *BillingAccountsMoveCall) Context(ctx context.Context) *BillingAccountsMoveCall + func (c *BillingAccountsMoveCall) Do(opts ...googleapi.CallOption) (*BillingAccount, error) + func (c *BillingAccountsMoveCall) Fields(s ...googleapi.Field) *BillingAccountsMoveCall + func (c *BillingAccountsMoveCall) Header() http.Header + type BillingAccountsPatchCall struct + func (c *BillingAccountsPatchCall) Context(ctx context.Context) *BillingAccountsPatchCall + func (c *BillingAccountsPatchCall) Do(opts ...googleapi.CallOption) (*BillingAccount, error) + func (c *BillingAccountsPatchCall) Fields(s ...googleapi.Field) *BillingAccountsPatchCall + func (c *BillingAccountsPatchCall) Header() http.Header + func (c *BillingAccountsPatchCall) UpdateMask(updateMask string) *BillingAccountsPatchCall + type BillingAccountsProjectsListCall struct + func (c *BillingAccountsProjectsListCall) Context(ctx context.Context) *BillingAccountsProjectsListCall + func (c *BillingAccountsProjectsListCall) Do(opts ...googleapi.CallOption) (*ListProjectBillingInfoResponse, error) + func (c *BillingAccountsProjectsListCall) Fields(s ...googleapi.Field) *BillingAccountsProjectsListCall + func (c *BillingAccountsProjectsListCall) Header() http.Header + func (c *BillingAccountsProjectsListCall) IfNoneMatch(entityTag string) *BillingAccountsProjectsListCall + func (c *BillingAccountsProjectsListCall) PageSize(pageSize int64) *BillingAccountsProjectsListCall + func (c *BillingAccountsProjectsListCall) PageToken(pageToken string) *BillingAccountsProjectsListCall + func (c *BillingAccountsProjectsListCall) Pages(ctx context.Context, f func(*ListProjectBillingInfoResponse) error) error + type BillingAccountsProjectsService struct + func NewBillingAccountsProjectsService(s *APIService) *BillingAccountsProjectsService + func (r *BillingAccountsProjectsService) List(name string) *BillingAccountsProjectsListCall + type BillingAccountsService struct + Projects *BillingAccountsProjectsService + SubAccounts *BillingAccountsSubAccountsService + func NewBillingAccountsService(s *APIService) *BillingAccountsService + func (r *BillingAccountsService) Create(billingaccount *BillingAccount) *BillingAccountsCreateCall + func (r *BillingAccountsService) Get(name string) *BillingAccountsGetCall + func (r *BillingAccountsService) GetIamPolicy(resource string) *BillingAccountsGetIamPolicyCall + func (r *BillingAccountsService) List() *BillingAccountsListCall + func (r *BillingAccountsService) Move(name string, movebillingaccountrequest *MoveBillingAccountRequest) *BillingAccountsMoveCall + func (r *BillingAccountsService) Patch(name string, billingaccount *BillingAccount) *BillingAccountsPatchCall + func (r *BillingAccountsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *BillingAccountsSetIamPolicyCall + func (r *BillingAccountsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *BillingAccountsTestIamPermissionsCall + type BillingAccountsSetIamPolicyCall struct + func (c *BillingAccountsSetIamPolicyCall) Context(ctx context.Context) *BillingAccountsSetIamPolicyCall + func (c *BillingAccountsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) + func (c *BillingAccountsSetIamPolicyCall) Fields(s ...googleapi.Field) *BillingAccountsSetIamPolicyCall + func (c *BillingAccountsSetIamPolicyCall) Header() http.Header + type BillingAccountsSubAccountsCreateCall struct + func (c *BillingAccountsSubAccountsCreateCall) Context(ctx context.Context) *BillingAccountsSubAccountsCreateCall + func (c *BillingAccountsSubAccountsCreateCall) Do(opts ...googleapi.CallOption) (*BillingAccount, error) + func (c *BillingAccountsSubAccountsCreateCall) Fields(s ...googleapi.Field) *BillingAccountsSubAccountsCreateCall + func (c *BillingAccountsSubAccountsCreateCall) Header() http.Header + type BillingAccountsSubAccountsListCall struct + func (c *BillingAccountsSubAccountsListCall) Context(ctx context.Context) *BillingAccountsSubAccountsListCall + func (c *BillingAccountsSubAccountsListCall) Do(opts ...googleapi.CallOption) (*ListBillingAccountsResponse, error) + func (c *BillingAccountsSubAccountsListCall) Fields(s ...googleapi.Field) *BillingAccountsSubAccountsListCall + func (c *BillingAccountsSubAccountsListCall) Filter(filter string) *BillingAccountsSubAccountsListCall + func (c *BillingAccountsSubAccountsListCall) Header() http.Header + func (c *BillingAccountsSubAccountsListCall) IfNoneMatch(entityTag string) *BillingAccountsSubAccountsListCall + func (c *BillingAccountsSubAccountsListCall) PageSize(pageSize int64) *BillingAccountsSubAccountsListCall + func (c *BillingAccountsSubAccountsListCall) PageToken(pageToken string) *BillingAccountsSubAccountsListCall + func (c *BillingAccountsSubAccountsListCall) Pages(ctx context.Context, f func(*ListBillingAccountsResponse) error) error + type BillingAccountsSubAccountsService struct + func NewBillingAccountsSubAccountsService(s *APIService) *BillingAccountsSubAccountsService + func (r *BillingAccountsSubAccountsService) Create(parent string, billingaccount *BillingAccount) *BillingAccountsSubAccountsCreateCall + func (r *BillingAccountsSubAccountsService) List(parent string) *BillingAccountsSubAccountsListCall + type BillingAccountsTestIamPermissionsCall struct + func (c *BillingAccountsTestIamPermissionsCall) Context(ctx context.Context) *BillingAccountsTestIamPermissionsCall + func (c *BillingAccountsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) + func (c *BillingAccountsTestIamPermissionsCall) Fields(s ...googleapi.Field) *BillingAccountsTestIamPermissionsCall + func (c *BillingAccountsTestIamPermissionsCall) Header() http.Header + type Binding struct + Condition *Expr + ForceSendFields []string + Members []string + NullFields []string + Role string + func (s *Binding) MarshalJSON() ([]byte, error) + type Category struct + ForceSendFields []string + NullFields []string + ResourceFamily string + ResourceGroup string + ServiceDisplayName string + UsageType string + func (s *Category) MarshalJSON() ([]byte, error) + type Expr struct + Description string + Expression string + ForceSendFields []string + Location string + NullFields []string + Title string + func (s *Expr) MarshalJSON() ([]byte, error) + type GeoTaxonomy struct + ForceSendFields []string + NullFields []string + Regions []string + Type string + func (s *GeoTaxonomy) MarshalJSON() ([]byte, error) + type ListBillingAccountsResponse struct + BillingAccounts []*BillingAccount + ForceSendFields []string + NextPageToken string + NullFields []string + func (s *ListBillingAccountsResponse) MarshalJSON() ([]byte, error) + type ListProjectBillingInfoResponse struct + ForceSendFields []string + NextPageToken string + NullFields []string + ProjectBillingInfo []*ProjectBillingInfo + func (s *ListProjectBillingInfoResponse) MarshalJSON() ([]byte, error) + type ListServicesResponse struct + ForceSendFields []string + NextPageToken string + NullFields []string + Services []*Service + func (s *ListServicesResponse) MarshalJSON() ([]byte, error) + type ListSkusResponse struct + ForceSendFields []string + NextPageToken string + NullFields []string + Skus []*Sku + func (s *ListSkusResponse) MarshalJSON() ([]byte, error) + type Money struct + CurrencyCode string + ForceSendFields []string + Nanos int64 + NullFields []string + Units int64 + func (s *Money) MarshalJSON() ([]byte, error) + type MoveBillingAccountRequest struct + DestinationParent string + ForceSendFields []string + NullFields []string + func (s *MoveBillingAccountRequest) MarshalJSON() ([]byte, error) + type OrganizationsBillingAccountsCreateCall struct + func (c *OrganizationsBillingAccountsCreateCall) Context(ctx context.Context) *OrganizationsBillingAccountsCreateCall + func (c *OrganizationsBillingAccountsCreateCall) Do(opts ...googleapi.CallOption) (*BillingAccount, error) + func (c *OrganizationsBillingAccountsCreateCall) Fields(s ...googleapi.Field) *OrganizationsBillingAccountsCreateCall + func (c *OrganizationsBillingAccountsCreateCall) Header() http.Header + type OrganizationsBillingAccountsListCall struct + func (c *OrganizationsBillingAccountsListCall) Context(ctx context.Context) *OrganizationsBillingAccountsListCall + func (c *OrganizationsBillingAccountsListCall) Do(opts ...googleapi.CallOption) (*ListBillingAccountsResponse, error) + func (c *OrganizationsBillingAccountsListCall) Fields(s ...googleapi.Field) *OrganizationsBillingAccountsListCall + func (c *OrganizationsBillingAccountsListCall) Filter(filter string) *OrganizationsBillingAccountsListCall + func (c *OrganizationsBillingAccountsListCall) Header() http.Header + func (c *OrganizationsBillingAccountsListCall) IfNoneMatch(entityTag string) *OrganizationsBillingAccountsListCall + func (c *OrganizationsBillingAccountsListCall) PageSize(pageSize int64) *OrganizationsBillingAccountsListCall + func (c *OrganizationsBillingAccountsListCall) PageToken(pageToken string) *OrganizationsBillingAccountsListCall + func (c *OrganizationsBillingAccountsListCall) Pages(ctx context.Context, f func(*ListBillingAccountsResponse) error) error + type OrganizationsBillingAccountsMoveCall struct + func (c *OrganizationsBillingAccountsMoveCall) Context(ctx context.Context) *OrganizationsBillingAccountsMoveCall + func (c *OrganizationsBillingAccountsMoveCall) Do(opts ...googleapi.CallOption) (*BillingAccount, error) + func (c *OrganizationsBillingAccountsMoveCall) Fields(s ...googleapi.Field) *OrganizationsBillingAccountsMoveCall + func (c *OrganizationsBillingAccountsMoveCall) Header() http.Header + func (c *OrganizationsBillingAccountsMoveCall) IfNoneMatch(entityTag string) *OrganizationsBillingAccountsMoveCall + type OrganizationsBillingAccountsService struct + func NewOrganizationsBillingAccountsService(s *APIService) *OrganizationsBillingAccountsService + func (r *OrganizationsBillingAccountsService) Create(parent string, billingaccount *BillingAccount) *OrganizationsBillingAccountsCreateCall + func (r *OrganizationsBillingAccountsService) List(parent string) *OrganizationsBillingAccountsListCall + func (r *OrganizationsBillingAccountsService) Move(destinationParent string, name string) *OrganizationsBillingAccountsMoveCall + type OrganizationsService struct + BillingAccounts *OrganizationsBillingAccountsService + func NewOrganizationsService(s *APIService) *OrganizationsService + type Policy struct + AuditConfigs []*AuditConfig + Bindings []*Binding + Etag string + ForceSendFields []string + NullFields []string + Version int64 + func (s *Policy) MarshalJSON() ([]byte, error) + type PricingExpression struct + BaseUnit string + BaseUnitConversionFactor float64 + BaseUnitDescription string + DisplayQuantity float64 + ForceSendFields []string + NullFields []string + TieredRates []*TierRate + UsageUnit string + UsageUnitDescription string + func (s *PricingExpression) MarshalJSON() ([]byte, error) + func (s *PricingExpression) UnmarshalJSON(data []byte) error + type PricingInfo struct + AggregationInfo *AggregationInfo + CurrencyConversionRate float64 + EffectiveTime string + ForceSendFields []string + NullFields []string + PricingExpression *PricingExpression + Summary string + func (s *PricingInfo) MarshalJSON() ([]byte, error) + func (s *PricingInfo) UnmarshalJSON(data []byte) error + type ProjectBillingInfo struct + BillingAccountName string + BillingEnabled bool + ForceSendFields []string + Name string + NullFields []string + ProjectId string + func (s *ProjectBillingInfo) MarshalJSON() ([]byte, error) + type ProjectsGetBillingInfoCall struct + func (c *ProjectsGetBillingInfoCall) Context(ctx context.Context) *ProjectsGetBillingInfoCall + func (c *ProjectsGetBillingInfoCall) Do(opts ...googleapi.CallOption) (*ProjectBillingInfo, error) + func (c *ProjectsGetBillingInfoCall) Fields(s ...googleapi.Field) *ProjectsGetBillingInfoCall + func (c *ProjectsGetBillingInfoCall) Header() http.Header + func (c *ProjectsGetBillingInfoCall) IfNoneMatch(entityTag string) *ProjectsGetBillingInfoCall + type ProjectsService struct + func NewProjectsService(s *APIService) *ProjectsService + func (r *ProjectsService) GetBillingInfo(name string) *ProjectsGetBillingInfoCall + func (r *ProjectsService) UpdateBillingInfo(name string, projectbillinginfo *ProjectBillingInfo) *ProjectsUpdateBillingInfoCall + type ProjectsUpdateBillingInfoCall struct + func (c *ProjectsUpdateBillingInfoCall) Context(ctx context.Context) *ProjectsUpdateBillingInfoCall + func (c *ProjectsUpdateBillingInfoCall) Do(opts ...googleapi.CallOption) (*ProjectBillingInfo, error) + func (c *ProjectsUpdateBillingInfoCall) Fields(s ...googleapi.Field) *ProjectsUpdateBillingInfoCall + func (c *ProjectsUpdateBillingInfoCall) Header() http.Header + type Service struct + BusinessEntityName string + DisplayName string + ForceSendFields []string + Name string + NullFields []string + ServiceId string + func (s *Service) MarshalJSON() ([]byte, error) + type ServicesListCall struct + func (c *ServicesListCall) Context(ctx context.Context) *ServicesListCall + func (c *ServicesListCall) Do(opts ...googleapi.CallOption) (*ListServicesResponse, error) + func (c *ServicesListCall) Fields(s ...googleapi.Field) *ServicesListCall + func (c *ServicesListCall) Header() http.Header + func (c *ServicesListCall) IfNoneMatch(entityTag string) *ServicesListCall + func (c *ServicesListCall) PageSize(pageSize int64) *ServicesListCall + func (c *ServicesListCall) PageToken(pageToken string) *ServicesListCall + func (c *ServicesListCall) Pages(ctx context.Context, f func(*ListServicesResponse) error) error + type ServicesService struct + Skus *ServicesSkusService + func NewServicesService(s *APIService) *ServicesService + func (r *ServicesService) List() *ServicesListCall + type ServicesSkusListCall struct + func (c *ServicesSkusListCall) Context(ctx context.Context) *ServicesSkusListCall + func (c *ServicesSkusListCall) CurrencyCode(currencyCode string) *ServicesSkusListCall + func (c *ServicesSkusListCall) Do(opts ...googleapi.CallOption) (*ListSkusResponse, error) + func (c *ServicesSkusListCall) EndTime(endTime string) *ServicesSkusListCall + func (c *ServicesSkusListCall) Fields(s ...googleapi.Field) *ServicesSkusListCall + func (c *ServicesSkusListCall) Header() http.Header + func (c *ServicesSkusListCall) IfNoneMatch(entityTag string) *ServicesSkusListCall + func (c *ServicesSkusListCall) PageSize(pageSize int64) *ServicesSkusListCall + func (c *ServicesSkusListCall) PageToken(pageToken string) *ServicesSkusListCall + func (c *ServicesSkusListCall) Pages(ctx context.Context, f func(*ListSkusResponse) error) error + func (c *ServicesSkusListCall) StartTime(startTime string) *ServicesSkusListCall + type ServicesSkusService struct + func NewServicesSkusService(s *APIService) *ServicesSkusService + func (r *ServicesSkusService) List(parent string) *ServicesSkusListCall + type SetIamPolicyRequest struct + ForceSendFields []string + NullFields []string + Policy *Policy + UpdateMask string + func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) + type Sku struct + Category *Category + Description string + ForceSendFields []string + GeoTaxonomy *GeoTaxonomy + Name string + NullFields []string + PricingInfo []*PricingInfo + ServiceProviderName string + ServiceRegions []string + SkuId string + func (s *Sku) MarshalJSON() ([]byte, error) + type TestIamPermissionsRequest struct + ForceSendFields []string + NullFields []string + Permissions []string + func (s *TestIamPermissionsRequest) MarshalJSON() ([]byte, error) + type TestIamPermissionsResponse struct + ForceSendFields []string + NullFields []string + Permissions []string + func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) + type TierRate struct + ForceSendFields []string + NullFields []string + StartUsageAmount float64 + UnitPrice *Money + func (s *TierRate) MarshalJSON() ([]byte, error) + func (s *TierRate) UnmarshalJSON(data []byte) error